Skip to content

Commit

Permalink
Some simple fn renames ... by the book [deprecated entry points reta…
Browse files Browse the repository at this point in the history
…ined]

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63472 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Jun 8, 2002
1 parent 7cd2b2e commit 9946b5b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions include/apr_signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal(int signo, apr_sigfunc_t * func);
* @param signum The signal number
* @return The description of the signal
*/
APR_DECLARE(const char *) apr_signal_description_get(int signum);

/**
* Deprecated: use apr_signal_description_get
*/
APR_DECLARE(const char *) apr_signal_get_description(int signum);

/**
Expand Down
7 changes: 6 additions & 1 deletion threadproc/netware/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void apr_signal_init(apr_pool_t *pglobal)
{
}

const char *apr_signal_get_description(int signum)
const char *apr_signal_description_get(int signum)
{
switch (signum)
{
Expand Down Expand Up @@ -109,3 +109,8 @@ APR_DECLARE(apr_status_t) apr_setup_signal_thread(void)
return rv;
}

/* Deprecated */
const char *apr_signal_get_description(int signum)
{
return apr_signal_description_get(signum);
}
10 changes: 8 additions & 2 deletions threadproc/unix/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal(int signo, apr_sigfunc_t * func)
void apr_signal_init(apr_pool_t *pglobal)
{
}
const char *apr_signal_get_description(int signum)
const char *apr_signal_description_get(int signum)
{
return sys_siglist[signum];
}
Expand Down Expand Up @@ -284,7 +284,7 @@ void apr_signal_init(apr_pool_t *pglobal)
signal_description[sig] = apr_psprintf(pglobal, "signal #%d", sig);
}

const char *apr_signal_get_description(int signum)
const char *apr_signal_description_get(int signum)
{
return
signum < APR_NUMSIG
Expand Down Expand Up @@ -453,3 +453,9 @@ APR_DECLARE(apr_status_t) apr_setup_signal_thread(void)
}

#endif

/* Deprecated */
const char *apr_signal_get_description(int signum)
{
return apr_signal_description_get(signum);
}
8 changes: 7 additions & 1 deletion threadproc/win32/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ APR_DECLARE(apr_status_t) apr_proc_kill(apr_proc_t *proc, int signal)
void apr_signal_init(apr_pool_t *pglobal)
{
}
const char *apr_signal_get_description(int signum)
const char *apr_signal_description_get(int signum)
{
return "unknown signal (not supported)";
}

/* Deprecated */
const char *apr_signal_get_description(int signum)
{
return apr_signal_description_get(signum);
}

0 comments on commit 9946b5b

Please sign in to comment.