X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fpoll_echod.c;h=22bb9dd9d5c9228e6bf69a86fd6d6da4d45a49fe;hp=9abccf4c58d0cb56b2ff01d122c32487ef598e25;hb=HEAD;hpb=bb7af0b0462a0f09ae13f617ef8f40c24e1857cf diff --git a/sources/poll_echod.c b/sources/poll_echod.c index 9abccf4..22bb9dd 100644 --- a/sources/poll_echod.c +++ b/sources/poll_echod.c @@ -26,26 +26,24 @@ * * 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 /* system limits */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* system limits constants, types and functions */ +#include /* primitive system data types */ +#include /* unix standard library */ +#include /* IP addresses conversion utilities */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ #include /* syslog system functions */ -#include /* signal functions */ -#include /* error code */ -#include /* error strings */ -#include -#include /* poll function definition */ +#include /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ +#include /* 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); } /*