version 1.85, 2001/05/19 00:33:03
|
version 1.86, 2001/05/19 02:19:33
|
Line 27
|
Line 27
|
#include <string.h> |
#include <string.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <netdb.h> |
#include <netdb.h> |
|
#include <signal.h> |
|
|
int foo; |
int foo; |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
sigset_t s; /* sigsetops */ |
|
|
|
#if 0 |
|
if (fork()==0) { |
|
sleep(2); |
|
exit(0); |
|
} |
|
#endif |
|
sigemptyset(&s); |
|
sigaddset(&s,SIGCHLD); |
|
sigaddset(&s,SIGHUP); |
|
sigsuspend(&s); |
#if 0 |
#if 0 |
char buf[1024]; |
char buf[1024]; |
FILE *f=popen("uname -srm","r"); |
FILE *f=popen("uname -srm","r"); |
Line 53 int main(int argc,char *argv[]) {
|
Line 66 int main(int argc,char *argv[]) {
|
printf("%p %p\n",inet_ntop(AF_INET6,ip,buf,100),buf); |
printf("%p %p\n",inet_ntop(AF_INET6,ip,buf,100),buf); |
puts(buf); |
puts(buf); |
#endif |
#endif |
#if 1 |
#if 0 |
struct addrinfo *ai; |
struct addrinfo *ai; |
struct addrinfo hints; |
struct addrinfo hints; |
char buf[16]; |
char buf[16]; |