Merge branch 'master' of ssh://gapil.gnulinux.it/srv/git/gapil
[gapil.git] / sources / poll_echod.c
index 9abccf4c58d0cb56b2ff01d122c32487ef598e25..22bb9dd9d5c9228e6bf69a86fd6d6da4d45a49fe 100644 (file)
  *
  * Usage: echod -h give all info
  *
- * $Id: poll_echod.c,v 1.2 2004/01/05 19:24:52 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
 #define _XOPEN_SOURCE
-#include <limits.h>      /* system limits */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
-#include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <time.h>
+#include <limits.h>      /* system limits constants, types and functions */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
+#include <arpa/inet.h>   /* IP addresses conversion utilities */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <time.h>        /* date and time constants, types and functions */
 #include <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
-#include <sys/poll.h>    /* poll function definition */
+#include <signal.h>      /* signal constants, types and functions */
+#include <errno.h>       /* error definitions and routines */
+#include <string.h>      /* C strings library */
+#include <stdlib.h>      /* C standard library */
+#include <sys/poll.h>    /* poll syscall */
 
 #include "macros.h"
 #include "Gapil.h"
@@ -236,8 +234,9 @@ void usage(void) {
     printf("  -h          print this help\n");
     printf("  -d          write debug info\n");
     printf("  -i          use interactively\n");
-    printf("  -c          disable BSD semantics\n");
-    printf("  -w N        wait N sec. before calling accept\n");
+    printf("  -c          disable BSD signal semantics\n");
+    printf("  -n N        set max contemporary connection\n");
+    printf("  -w N        wait N sec. before calling poll\n");
     exit(1);
 }
 /*