version 1.196, 2020/04/09 15:35:27 |
version 1.197, 2020/04/16 07:28:36 |
|
|
#include <locale.h> |
#include <locale.h> |
#include <paths.h> |
#include <paths.h> |
#include <pwd.h> |
#include <pwd.h> |
|
#include <signal.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <time.h> |
#include <time.h> |
|
|
mode &= ~O_NONBLOCK; |
mode &= ~O_NONBLOCK; |
fcntl(fd, F_SETFL, mode); |
fcntl(fd, F_SETFL, mode); |
} |
} |
|
} |
|
|
|
const char * |
|
sig2name(int signo) |
|
{ |
|
static char s[11]; |
|
|
|
if (signo > 0 && signo < NSIG) |
|
return (sys_signame[signo]); |
|
xsnprintf(s, sizeof s, "%d", signo); |
|
return (s); |
} |
} |
|
|
const char * |
const char * |