comparison lib-src/gnuserv.c @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents cc15677e0335
children 74fd4e045ea6
comparison
equal deleted inserted replaced
379:76b7d63099ad 380:8626e4521993
561 561
562 } /* add_host */ 562 } /* add_host */
563 563
564 564
565 /* 565 /*
566 setup_table -- initialise the table of hosts allowed to contact the server, 566 setup_table -- initialize the table of hosts allowed to contact the server,
567 by reading from the file specified by the GNU_SECURE 567 by reading from the file specified by the GNU_SECURE
568 environment variable 568 environment variable
569 Put in the local machine, and, if a security file is specifed, 569 Put in the local machine, and, if a security file is specifed,
570 add each host that is named in the file. 570 add each host that is named in the file.
571 Return the number of hosts added. 571 Return the number of hosts added.
830 } /* handle_unix_request */ 830 } /* handle_unix_request */
831 #endif /* UNIX_DOMAIN_SOCKETS */ 831 #endif /* UNIX_DOMAIN_SOCKETS */
832 832
833 833
834 int 834 int
835 main(argc,argv) 835 main (int argc, char *argv[])
836 int argc;
837 char *argv[];
838 { 836 {
839 int chan; /* temporary channel number */ 837 int chan; /* temporary channel number */
840 #ifdef SYSV_IPC 838 #ifdef SYSV_IPC
841 struct msgbuf *msgp; /* message buffer */ 839 struct msgbuf *msgp; /* message buffer */
842 #else 840 #else
865 #ifdef SYSV_IPC 863 #ifdef SYSV_IPC
866 ipc_init(&msgp); /* get a msqid to listen on, and a message buffer */ 864 ipc_init(&msgp); /* get a msqid to listen on, and a message buffer */
867 #endif /* SYSV_IPC */ 865 #endif /* SYSV_IPC */
868 866
869 #ifdef INTERNET_DOMAIN_SOCKETS 867 #ifdef INTERNET_DOMAIN_SOCKETS
870 ils = internet_init(); /* get a internet domain socket to listen on */ 868 ils = internet_init(); /* get an internet domain socket to listen on */
871 #endif /* INTERNET_DOMAIN_SOCKETS */ 869 #endif /* INTERNET_DOMAIN_SOCKETS */
872 870
873 #ifdef UNIX_DOMAIN_SOCKETS 871 #ifdef UNIX_DOMAIN_SOCKETS
874 uls = unix_init(); /* get a unix domain socket to listen on */ 872 uls = unix_init(); /* get a unix domain socket to listen on */
875 #endif /* UNIX_DOMAIN_SOCKETS */ 873 #endif /* UNIX_DOMAIN_SOCKETS */