From: Simone Piccardi Date: Sat, 11 Aug 2007 15:11:07 +0000 (+0000) Subject: Un po' di materiale su {{{splice}}} e inizio della ripulitura degli X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=commitdiff_plain;h=31f55ec58bee8b2c4993633849b7da4e30cab222;p=gapil.git Un po' di materiale su {{{splice}}} e inizio della ripulitura degli include delle funzioni di sistema --- diff --git a/sources/BarCode.c b/sources/BarCode.c index a6d1519..7248d2d 100644 --- a/sources/BarCode.c +++ b/sources/BarCode.c @@ -29,23 +29,20 @@ * http://localhost/cgi-bin/barcode?string * where string is the code to be converted * - * $Id: BarCode.c,v 1.9 2003/05/02 09:55:13 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* stat deinitiions */ -#include /* include unix standard library */ -/* */ -#include /* include standard I/O library */ -#include /* include standard library */ -#include /* include string library */ -#include /* include wait call */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include +#include /* file control functions */ #include -#include +#include /* date and time constants, types and functions */ #include"macros.h" diff --git a/sources/BarCodePage.c b/sources/BarCodePage.c index 430ac9a..4abd29a 100644 --- a/sources/BarCodePage.c +++ b/sources/BarCodePage.c @@ -29,22 +29,21 @@ * http://localhost/cgi-bin/barcode?string * where string is the code to be converted * - * $Id: BarCodePage.c,v 1.4 2003/05/02 09:55:13 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* stat deinitiions */ -#include /* include unix standard library */ -#include /* include standard I/O library */ -#include /* include standard library */ -#include /* include string library */ -#include /* include wait call */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include /* */ +#include /* file control functions */ #include -#include +#include /* date and time constants, types and functions */ + #include"macros.h" void WriteMess(char *mess); diff --git a/sources/ErrCode.c b/sources/ErrCode.c index d8b6906..23ff956 100644 --- a/sources/ErrCode.c +++ b/sources/ErrCode.c @@ -26,8 +26,6 @@ * * Usage: errcode -h give all info's * - * $Id: ErrCode.c,v 1.8 2003/07/27 14:28:19 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -36,7 +34,7 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ #include /* system limits values */ /* Help printing routine */ diff --git a/sources/Flock.c b/sources/Flock.c index fb88d17..f20f6df 100644 --- a/sources/Flock.c +++ b/sources/Flock.c @@ -36,8 +36,10 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ -#include /* string functions */ +#include /* C strings library */ +#include /* file control functions */ + + /* user defined header */ #include "macros.h" /* some useful macros */ diff --git a/sources/ForkTest.c b/sources/ForkTest.c index f12792e..0561b59 100644 --- a/sources/ForkTest.c +++ b/sources/ForkTest.c @@ -36,7 +36,7 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ #include "Gapil.h" #include "macros.h" diff --git a/sources/FortuneClient.c b/sources/FortuneClient.c index 6096dec..caf3002 100644 --- a/sources/FortuneClient.c +++ b/sources/FortuneClient.c @@ -26,18 +26,16 @@ * * Usage: fortune -h give all info * - * $Id: FortuneClient.c,v 1.4 2003/05/02 09:55:13 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* include standard I/O library */ -#include -#include +#include /* standard I/O library */ +#include > /* error definitions and routines */ +#include /* file control functions */ #include "macros.h" diff --git a/sources/FortuneParse.c b/sources/FortuneParse.c index da1f68d..b6a4531 100644 --- a/sources/FortuneParse.c +++ b/sources/FortuneParse.c @@ -28,20 +28,18 @@ * Read n fortunes from fortune file file, and put it into the * string array fortune * - * $Id: FortuneParse.c,v 1.5 2003/05/02 09:55:13 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ #include /* predefined types */ -#include /* */ -#include /* include unix standard library */ -#include /* include standard I/O library */ -#include /* standard library */ -#include /* ANSI C standard string */ -#include /* error definitions */ -#include /* */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include /* error definitions and routines */ +#include /* file control functions */ #include "macros.h" diff --git a/sources/FortuneServer.c b/sources/FortuneServer.c index c1c1146..4cb65ca 100644 --- a/sources/FortuneServer.c +++ b/sources/FortuneServer.c @@ -26,21 +26,19 @@ * * Usage: fortuned -h give all info * - * $Id: FortuneServer.c,v 1.8 2003/05/02 09:55:13 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* */ -#include /* include unix standard library */ -#include /* include standard I/O library */ -#include /* standard library */ -#include /* ANSI C standard string */ -#include /* errorstring */ -#include /* signals */ -#include /* */ +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include /* error definitions and routines */ +#include /* signal constants, types and functions */ +#include /* file control functions */ #include "macros.h" #include "Gapil.h" diff --git a/sources/IPCTestId.c b/sources/IPCTestId.c index b81a873..2cbbf4d 100644 --- a/sources/IPCTestId.c +++ b/sources/IPCTestId.c @@ -26,8 +26,6 @@ * * Usage: ipctestid -h give all info's * - * $Id: IPCTestId.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -36,11 +34,11 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ #include /* SysV IPC functions */ -#include /* SysV Message Queue */ -#include /* SysV Semaphores */ -#include /* SysV Shared Memory */ +#include /* SysV message queues */ +#include /* SysV semaphores */ +#include /* SysV shared memory */ #include "macros.h" /* My macros */ /* Help printing routine */ diff --git a/sources/LockFile.c b/sources/LockFile.c index 5bdc4a3..432ec27 100644 --- a/sources/LockFile.c +++ b/sources/LockFile.c @@ -28,8 +28,8 @@ *****************************************************************************/ #include #include -#include /* unix standard functions */ -#include /* file control (lock) functions */ +#include /* unix standard functions */ +#include /* file control functions */ /* * Function LockFile: * diff --git a/sources/MQFortuneClient.c b/sources/MQFortuneClient.c index ddb8397..408eda4 100644 --- a/sources/MQFortuneClient.c +++ b/sources/MQFortuneClient.c @@ -26,22 +26,21 @@ * * Usage: fortune -h give all info * - * $Id: MQFortuneClient.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* */ -#include /* include unix standard library */ -#include /* include standard I/O library */ -#include /* standard library */ -#include /* ANSI C standard string */ -#include /* errorstring */ -#include /* signals */ -#include -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include /* error definitions and routines */ +#include /* signal constants, types and functions */ +#include /* SysV IPC functions */ +#include /* SysV message queues */ + #include "macros.h" diff --git a/sources/MQFortuneServer.c b/sources/MQFortuneServer.c index 09240b8..cac9e3a 100644 --- a/sources/MQFortuneServer.c +++ b/sources/MQFortuneServer.c @@ -26,22 +26,20 @@ * * Usage: fortuned -h give all info * - * $Id: MQFortuneServer.c,v 1.6 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* */ -#include /* include unix standard library */ -#include /* include standard I/O library */ -#include /* standard library */ -#include /* ANSI C standard string */ -#include /* errorstring */ -#include /* signals */ -#include -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* standard I/O library */ +#include /* C standard library */ +#include /* C strings library */ +#include /* error definitions and routines */ +#include /* signal constants, types and functions */ +#include /* SysV IPC functions */ +#include /* SysV message queues */ #include "macros.h" #include "Gapil.h" diff --git a/sources/Mutex.c b/sources/Mutex.c index 35220a8..2e2736e 100644 --- a/sources/Mutex.c +++ b/sources/Mutex.c @@ -28,7 +28,7 @@ #include /* IPC semaphore declarations */ #include #include -#include +#include /* file control functions */ #include /* signal handling declarations */ #include "Gapil.h" diff --git a/sources/ProcInfo.c b/sources/ProcInfo.c index d2dfbe1..d4c012f 100644 --- a/sources/ProcInfo.c +++ b/sources/ProcInfo.c @@ -26,8 +26,6 @@ * * Usage: procinfo -h give all info's * - * $Id: ProcInfo.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -37,7 +35,7 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ /* Help printing routine */ void usage(void); diff --git a/sources/SharedMem.c b/sources/SharedMem.c index e2a7493..63282d0 100644 --- a/sources/SharedMem.c +++ b/sources/SharedMem.c @@ -26,19 +26,17 @@ * * Author: S. Piccardi * - * $Id: SharedMem.c,v 1.8 2003/05/02 09:55:14 piccardi Exp $ - * ***************************************************************/ -#include /* SysV IPC shared memory declarations */ -#include +#include /* SysV IPC shared memory */ +#include /* primitive system data types */ #include -#include /* standard I/O functions */ -#include -#include /* signal handling declarations */ -#include +#include /* standard I/O functions */ +#include /* file control functions */ +#include /* signal constants, types and functions */ +#include /* unix standard library */ #include -#include -#include +#include /* C strings library */ +#include /* error definitions and routines */ #include "macros.h" /* ************************************************************************* diff --git a/sources/SockUtil.c b/sources/SockUtil.c index a2a6fcd..421919c 100644 --- a/sources/SockUtil.c +++ b/sources/SockUtil.c @@ -1,4 +1,4 @@ -/* Sockutils.c +/* SockUtil.c * * Copyright (C) 2004 Simone Piccardi * @@ -18,24 +18,21 @@ */ /*************************************************************** * - * File SockUtils.c + * File SockUtil.c * Routines for socket operations. * * Define routines for socket handling * * Author: S. Piccardi * - * $Id$ - * ***************************************************************/ -#include -#include /* standard I/O functions */ -#include -#include -#include +#include /* primitive system data types */ +#include /* standard I/O library */ +#include /* unix standard library */ +#include /* C strings library */ +#include /* error definitions and routines */ +#include /* socket constants, types and functions */ #include -#include -#include #include #include @@ -50,8 +47,6 @@ * Author: Simone Piccardi * Dec. 2004 * - * $Id$ - * **************************************************************************/ char *ip_ntop(struct addrinfo *addr, char *dst, socklen_t cnt) { @@ -82,8 +77,6 @@ char *ip_ntop(struct addrinfo *addr, char *dst, socklen_t cnt) * Author: Simone Piccardi * Dec. 2004 * - * $Id$ - * ****************************************************************/ int sockconn(char *host, char *serv, int prot, int type) { @@ -140,8 +133,6 @@ int sockconn(char *host, char *serv, int prot, int type) * Author: Simone Piccardi * Dec. 2004 * - * $Id$ - * ****************************************************************/ int sockbind(char *host, char *serv, int prot, int type) { @@ -202,8 +193,6 @@ int sockbind(char *host, char *serv, int prot, int type) * Author: Simone Piccardi * Mar. 2005 * - * $Id$ - * ****************************************************************/ int sockbindopt(char *host, char *serv, int prot, int type, int reuse) { diff --git a/sources/TCP_countd.c b/sources/TCP_countd.c index 4e788e9..d5c6021 100644 --- a/sources/TCP_countd.c +++ b/sources/TCP_countd.c @@ -31,19 +31,19 @@ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ #include #include #include /* syslog system functions */ -#include /* signal functions */ -#include /* error code */ -#include /* error strings */ -#include +#include /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_cunc_daytimed.c b/sources/TCP_cunc_daytimed.c index 9c33203..5da2288 100644 --- a/sources/TCP_cunc_daytimed.c +++ b/sources/TCP_cunc_daytimed.c @@ -26,18 +26,16 @@ * * Usage: daytimed -h give all info * - * $Id: TCP_cunc_daytimed.c,v 1.4 2003/12/25 17:31:09 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ #define MAXLINE 80 #define BACKLOG 10 diff --git a/sources/TCP_daytime.c b/sources/TCP_daytime.c index be1e3a3..80e2c38 100644 --- a/sources/TCP_daytime.c +++ b/sources/TCP_daytime.c @@ -26,17 +26,15 @@ * * Usage: daytime -h give all info's * - * $Id: TCP_daytime.c,v 1.5 2004/03/20 22:42:07 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ #define MAXLINE 80 /* Program begin */ diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index 50f681b..45bd7b8 100644 --- a/sources/TCP_echo.c +++ b/sources/TCP_echo.c @@ -26,21 +26,19 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.11 2003/10/20 22:44:16 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ -#include -#include +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ +#include /* TCP constants and types */ /* still not defined in some include, because too new ... */ #ifndef TCP_CONGESTION diff --git a/sources/TCP_echo_fifth.c b/sources/TCP_echo_fifth.c index f60c518..e29fe33 100644 --- a/sources/TCP_echo_fifth.c +++ b/sources/TCP_echo_fifth.c @@ -26,19 +26,17 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.11 2003/10/20 22:44:16 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* error definitions and routines */ +#include /* C strings library */ #include "Gapil.h" #include "macros.h" diff --git a/sources/TCP_echo_first.c b/sources/TCP_echo_first.c index 089bd67..ce085ea 100644 --- a/sources/TCP_echo_first.c +++ b/sources/TCP_echo_first.c @@ -27,17 +27,15 @@ * * Usage: echo -h give all info's * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ #define MAXLINE 256 void usage(void); diff --git a/sources/TCP_echo_fourth.c b/sources/TCP_echo_fourth.c index 691911e..3a1aed6 100644 --- a/sources/TCP_echo_fourth.c +++ b/sources/TCP_echo_fourth.c @@ -26,19 +26,17 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.11 2003/10/20 22:44:16 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* error definitions and routines */ +#include /* C strings library */ #include "macros.h" diff --git a/sources/TCP_echo_second.c b/sources/TCP_echo_second.c index 5f0a92e..b9d932a 100644 --- a/sources/TCP_echo_second.c +++ b/sources/TCP_echo_second.c @@ -27,19 +27,17 @@ * * Usage: echo -h give all info's * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* error definitions and routines */ +#include /* C strings library */ #define MAXLINE 256 void usage(void); diff --git a/sources/TCP_echo_third.c b/sources/TCP_echo_third.c index ee2fa94..952344f 100644 --- a/sources/TCP_echo_third.c +++ b/sources/TCP_echo_third.c @@ -27,19 +27,17 @@ * * Usage: echo -h give all info's * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* error definitions and routines */ +#include /* C strings library */ #include "macros.h" diff --git a/sources/TCP_echod.c b/sources/TCP_echod.c index ff866ef..a7f0d29 100644 --- a/sources/TCP_echod.c +++ b/sources/TCP_echod.c @@ -26,23 +26,21 @@ * * Usage: echod -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_echod_fifth.c b/sources/TCP_echod_fifth.c index ff866ef..0f55072 100644 --- a/sources/TCP_echod_fifth.c +++ b/sources/TCP_echod_fifth.c @@ -1,4 +1,4 @@ -/* TCP_echod.c +/* TCP_echod_fifth.c * * Copyright (C) 2001-2004 Simone Piccardi * @@ -20,29 +20,28 @@ * * Program echod * Elementary TCP server for echo service (port 7) + * Fifth version * * Author: Simone Piccardi * Jun. 2001 * * Usage: echod -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_echod_first.c b/sources/TCP_echod_first.c index bfe826a..31e3c16 100644 --- a/sources/TCP_echod_first.c +++ b/sources/TCP_echod_first.c @@ -20,29 +20,28 @@ * * Program echod * Elementary TCP server for echo service (port 7) + * First version * * Author: Simone Piccardi * Jun. 2001 * * Usage: echod -h give all info * - * $Id: TCP_echod_first.c,v 1.3 2003/12/25 17:31:09 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_echod_fourth.c b/sources/TCP_echod_fourth.c index 48d564c..394cd30 100644 --- a/sources/TCP_echod_fourth.c +++ b/sources/TCP_echod_fourth.c @@ -1,4 +1,4 @@ -/* TCP_echod.c +/* TCP_echod_fourth.c * * Copyright (C) 2001-2004 Simone Piccardi * @@ -20,29 +20,28 @@ * * Program echod * Elementary TCP server for echo service (port 7) + * Fourth version * * Author: Simone Piccardi * Jun. 2001 * * Usage: echod -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_echod_second.c b/sources/TCP_echod_second.c index 0ac7c0e..de9d2f2 100644 --- a/sources/TCP_echod_second.c +++ b/sources/TCP_echod_second.c @@ -27,23 +27,21 @@ * * Usage: echod -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_echod_third.c b/sources/TCP_echod_third.c index 6890492..7fb35bb 100644 --- a/sources/TCP_echod_third.c +++ b/sources/TCP_echod_third.c @@ -1,4 +1,4 @@ -/* TCP_echod.c +/* TCP_echod_third.c * * Copyright (C) 2001-2004 Simone Piccardi * @@ -20,29 +20,28 @@ * * Program echod * Elementary TCP server for echo service (port 7) + * Third version * * Author: Simone Piccardi * Jun. 2001 * * Usage: echod -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" diff --git a/sources/TCP_iter_daytimed.c b/sources/TCP_iter_daytimed.c index 2d05548..2917b2d 100644 --- a/sources/TCP_iter_daytimed.c +++ b/sources/TCP_iter_daytimed.c @@ -26,18 +26,16 @@ * * Usage: daytimed -h give all info * - * $Id: TCP_iter_daytimed.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ #define MAXLINE 80 #define BACKLOG 10 diff --git a/sources/TestRen.c b/sources/TestRen.c index 9026cff..c6a3fba 100644 --- a/sources/TestRen.c +++ b/sources/TestRen.c @@ -26,8 +26,6 @@ * * Usage: testrem -h give all info's * - * $Id: TestRen.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -36,7 +34,7 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ /* Help printing routine */ void usage(void); diff --git a/sources/UDP_daytime.c b/sources/UDP_daytime.c index 97b7f6c..f99ff64 100644 --- a/sources/UDP_daytime.c +++ b/sources/UDP_daytime.c @@ -26,17 +26,15 @@ * * Usage: daytime -h give all info's * - * $Id: UDP_daytime.c,v 1.1 2004/03/20 22:42:07 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ #define MAXLINE 80 /* Program begin */ diff --git a/sources/UDP_daytimed.c b/sources/UDP_daytimed.c index 6f60794..4011246 100644 --- a/sources/UDP_daytimed.c +++ b/sources/UDP_daytimed.c @@ -26,18 +26,16 @@ * * Usage: daytimed -h give all info * - * $Id: UDP_daytimed.c,v 1.2 2004/03/21 23:01:01 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 */ #define MAXLINE 80 /* Program begin */ diff --git a/sources/UDP_echo.c b/sources/UDP_echo.c index 238effb..e8fa3ad 100644 --- a/sources/UDP_echo.c +++ b/sources/UDP_echo.c @@ -26,20 +26,18 @@ * * Usage: echo -h give all info's * - * $Id: UDP_echo.c,v 1.4 2004/06/04 00:31:33 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ -#include +#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 /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "macros.h" diff --git a/sources/UDP_echo_first.c b/sources/UDP_echo_first.c index b30c12c..8f00498 100644 --- a/sources/UDP_echo_first.c +++ b/sources/UDP_echo_first.c @@ -27,19 +27,17 @@ * * Usage: echo -h give all info's * - * $Id: UDP_echo_first.c,v 1.1 2004/06/02 16:31:50 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include /* include error codes */ -#include /* include erroro strings definitions */ +#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 /* error definitions and routines */ +#include /* C strings library */ #include "macros.h" diff --git a/sources/WriteShm.c b/sources/WriteShm.c index 8f472d6..db5b132 100644 --- a/sources/WriteShm.c +++ b/sources/WriteShm.c @@ -25,15 +25,13 @@ * * Author: S. Piccardi Jan. 2003 * - * $Id: WriteShm.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * *****************************************************************************/ -#include +#include /* primitive system data types */ #include #include /* directory */ #include /* C standard library */ -#include -#include +#include /* unix standard library */ +#include /* standard I/O library */ #include "Gapil.h" #include "macros.h" diff --git a/sources/epoll_inotify_monitor.c b/sources/epoll_inotify_monitor.c index 2a6dbf0..d6cf1cf 100644 --- a/sources/epoll_inotify_monitor.c +++ b/sources/epoll_inotify_monitor.c @@ -26,16 +26,16 @@ * Author: S. Piccardi Jul. 2007 * *****************************************************************************/ -#include -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ #include /* Linux inotify interface */ #include /* Linux epoll interface */ #include /* C standard library */ #include /* Unix standard library */ #include /* error definitions and routines */ #include /* standard I/O library */ -#include /* string functions */ -#include /* fcntl function */ +#include /* C strings library */ +#include /* file control function */ #include /* ioctl function */ diff --git a/sources/getcap.c b/sources/getcap.c index 19974ee..3493812 100644 --- a/sources/getcap.c +++ b/sources/getcap.c @@ -26,7 +26,6 @@ * * Usage: getcap -h give all info's * - * ****************************************************************/ /* * Include needed headers @@ -36,8 +35,8 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ -#include +#include /* C strings library */ +#include /* primitive system data types */ #include /* Help printing routine */ diff --git a/sources/gethost.c b/sources/gethost.c index da2a6c9..e949713 100644 --- a/sources/gethost.c +++ b/sources/gethost.c @@ -26,8 +26,6 @@ * * Usage: gethost -h give all info's * - * $Id: gethost.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -37,9 +35,9 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ -#include -#include +#include /* C strings library */ +#include /* primitive system data types */ +#include /* socket constants, types and functions */ #include /* Help printing routine */ diff --git a/sources/getparam.c b/sources/getparam.c index 6410bb5..521b0df 100644 --- a/sources/getparam.c +++ b/sources/getparam.c @@ -26,8 +26,6 @@ * * Usage: getparam -h give all info's * - * $Id: getparam.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -36,12 +34,11 @@ #include /* error definitions and routines */ #include /* C standard library */ #include /* unix standard library */ -#include /* string functions */ +#include /* C strings library */ #include -#include - +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ -#include /* for CLK_TCK e CLOCKS_PER_SEC */ /* Table of constants for sysconf() */ char *sc_names[]={"_SC_ARG_MAX", diff --git a/sources/inotify_monitor.c b/sources/inotify_monitor.c index 4d46f7e..db3e6b2 100644 --- a/sources/inotify_monitor.c +++ b/sources/inotify_monitor.c @@ -26,15 +26,15 @@ * Author: S. Piccardi Jul. 2007 * *****************************************************************************/ -#include -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ #include /* Linux inotify interface */ #include /* C standard library */ #include /* Unix standard library */ #include /* error definitions and routines */ #include /* standard I/O library */ -#include /* string functions */ -#include /* fcntl function */ +#include /* C strings library */ +#include /* file control functions */ #include /* ioctl function */ diff --git a/sources/mygetaddr.c b/sources/mygetaddr.c index 3f51313..d3eb9d8 100644 --- a/sources/mygetaddr.c +++ b/sources/mygetaddr.c @@ -22,19 +22,17 @@ * * Author: S. Piccardi Nov. 2004 * - * $Id$ - * *****************************************************************************/ -#include -#include -#include -#include -#include /* C standard library */ -#include /* I/O standard library */ -#include +#include /* C strings library */ +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* C standard library */ +#include /* I/O standard library */ #include -#include +#include /* socket constants, types and functions */ #include +#include #include "Gapil.h" /* diff --git a/sources/mygethost.c b/sources/mygethost.c index 11ae1ce..d5ee811 100644 --- a/sources/mygethost.c +++ b/sources/mygethost.c @@ -22,16 +22,17 @@ * * Author: S. Piccardi Jul. 2004 * - * $Id$ - * *****************************************************************************/ -#include -#include -#include -#include /* C standard library */ -#include /* I/O standard library */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* C standard library */ +#include /* I/O standard library */ +#include /* unix standard library */ #include +#include + + + extern int h_errno; #include "Gapil.h" diff --git a/sources/poll_echod.c b/sources/poll_echod.c index c219299..4af8f58 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.3 2004/02/17 23:48:46 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ #define _XOPEN_SOURCE #include /* system limits */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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" diff --git a/sources/select_echod.c b/sources/select_echod.c index 3a0690b..49b8175 100644 --- a/sources/select_echod.c +++ b/sources/select_echod.c @@ -32,17 +32,17 @@ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ +#include /* primitive system data types */ +#include /* unix standard library */ #include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#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 /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "macros.h" #include "Gapil.h" diff --git a/sources/sleep1.c b/sources/sleep1.c index 2225c96..825bb9b 100644 --- a/sources/sleep1.c +++ b/sources/sleep1.c @@ -30,7 +30,7 @@ */ #define _GNU_SOURCE #include /* unix standard library */ -#include /* signal standard library */ +#include /* signal constants, types and functions */ void alarm_hand(int sig) { /* check if the signal is the right one */ diff --git a/sources/test_fopen.c b/sources/test_fopen.c index a98bd1e..9247fa1 100644 --- a/sources/test_fopen.c +++ b/sources/test_fopen.c @@ -26,8 +26,6 @@ * * Usage: testfopen -h give all info's * - * $Id: test_fopen.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -37,7 +35,7 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ +#include /* C strings library */ /* Help printing routine */ void usage(void); diff --git a/sources/wwwd.c b/sources/wwwd.c index 9524dd4..db81af4 100644 --- a/sources/wwwd.c +++ b/sources/wwwd.c @@ -26,24 +26,23 @@ * * Usage: wwwd -h give all info * - * $Id$ - * ****************************************************************/ /* * Include needed headers */ #define _GNU_SOURCE -#include /* error strings */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* unix standard library */ +#include /* C 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 +#include /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ #include "Gapil.h"