Un po' di materiale su {{{splice}}} e inizio della ripulitura degli
authorSimone Piccardi <piccardi@gnulinux.it>
Sat, 11 Aug 2007 15:11:07 +0000 (15:11 +0000)
committerSimone Piccardi <piccardi@gnulinux.it>
Sat, 11 Aug 2007 15:11:07 +0000 (15:11 +0000)
include delle funzioni di sistema

50 files changed:
sources/BarCode.c
sources/BarCodePage.c
sources/ErrCode.c
sources/Flock.c
sources/ForkTest.c
sources/FortuneClient.c
sources/FortuneParse.c
sources/FortuneServer.c
sources/IPCTestId.c
sources/LockFile.c
sources/MQFortuneClient.c
sources/MQFortuneServer.c
sources/Mutex.c
sources/ProcInfo.c
sources/SharedMem.c
sources/SockUtil.c
sources/TCP_countd.c
sources/TCP_cunc_daytimed.c
sources/TCP_daytime.c
sources/TCP_echo.c
sources/TCP_echo_fifth.c
sources/TCP_echo_first.c
sources/TCP_echo_fourth.c
sources/TCP_echo_second.c
sources/TCP_echo_third.c
sources/TCP_echod.c
sources/TCP_echod_fifth.c
sources/TCP_echod_first.c
sources/TCP_echod_fourth.c
sources/TCP_echod_second.c
sources/TCP_echod_third.c
sources/TCP_iter_daytimed.c
sources/TestRen.c
sources/UDP_daytime.c
sources/UDP_daytimed.c
sources/UDP_echo.c
sources/UDP_echo_first.c
sources/WriteShm.c
sources/epoll_inotify_monitor.c
sources/getcap.c
sources/gethost.c
sources/getparam.c
sources/inotify_monitor.c
sources/mygetaddr.c
sources/mygethost.c
sources/poll_echod.c
sources/select_echod.c
sources/sleep1.c
sources/test_fopen.c
sources/wwwd.c

index a6d1519d35dbf58389a47159ab8e00b1e9c58f08..7248d2dfe18bf134e0647d3fcb0ac4e5e4a21b64 100644 (file)
  * http://localhost/cgi-bin/barcode?string
  * where string is the code to be converted
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /* stat deinitiions */
-#include <unistd.h>      /* include unix standard library */
-/* */
-#include <stdio.h>      /* include standard I/O library */
-#include <stdlib.h>     /* include standard library */
-#include <string.h>     /* include string library */
-#include <wait.h>       /* include wait call */
-#include <fcntl.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>      /* standard I/O library */
+#include <stdlib.h>     /* C standard library */
+#include <string.h>     /* C strings library */
+#include <wait.h>
+#include <fcntl.h>      /* file control functions */
 #include <assert.h>
 #include <assert.h>
-#include <time.h>
+#include <time.h>        /* date and time constants, types and functions */
 
 #include"macros.h"
 
 
 #include"macros.h"
 
index 430ac9ac27020e1113da79d143e2421917526d36..4abd29aba3fff4750b04de5d77d1079ea75e3632 100644 (file)
  * http://localhost/cgi-bin/barcode?string
  * where string is the code to be converted
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /* stat deinitiions */
-#include <unistd.h>      /* include unix standard library */
-#include <stdio.h>      /* include standard I/O library */
-#include <stdlib.h>     /* include standard library */
-#include <string.h>     /* include string library */
-#include <wait.h>       /* include wait call */
-#include <fcntl.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>      /* standard I/O library */
+#include <stdlib.h>     /* C standard library */
+#include <string.h>     /* C strings library */
+#include <wait.h>       /*  */
+#include <fcntl.h>       /* file control functions */
 #include <assert.h>
 #include <assert.h>
-#include <time.h>
+#include <time.h>        /* date and time constants, types and functions */
+
 
 #include"macros.h"
 void WriteMess(char *mess);
 
 #include"macros.h"
 void WriteMess(char *mess);
index d8b6906bfeec6ae00d129f75859f69065b4b8f09..23ff95622bb05e5208937750357ef6cbfc919381 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: errcode -h give all info's
  *
  *
  * Usage: errcode -h give all info's
  *
- * $Id: ErrCode.c,v 1.8 2003/07/27 14:28:19 piccardi Exp $ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
@@ -36,7 +34,7 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 #include <limits.h>      /* system limits values */
 
 /* Help printing routine */
 #include <limits.h>      /* system limits values */
 
 /* Help printing routine */
index fb88d1719546f3abbcbc4bde34f35884e36d6c89..f20f6df7576d2c691e13e8809083b1eacbefcc0c 100644 (file)
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
-#include <fcntl.h>       /* string functions */
+#include <string.h>      /* C strings library */
+#include <fcntl.h>       /* file control functions */
+
+
 /* user defined header */
 #include "macros.h"      /* some useful macros */
 
 /* user defined header */
 #include "macros.h"      /* some useful macros */
 
index f12792edf357493be08c9192252f8b66ddc31945..0561b59862c8967a4952bce366908a0ab90e8276 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 
 #include "Gapil.h"
 #include "macros.h"
 
 #include "Gapil.h"
 #include "macros.h"
index 6096dec83dafbf4edd8c0b1e09aa473390ae1ad8..caf3002d7ee7c06532418e21a2cc57068395af50 100644 (file)
  *
  * Usage: fortune -h give all info
  *
  *
  * Usage: fortune -h give all info
  *
- * $Id: FortuneClient.c,v 1.4 2003/05/02 09:55:13 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>
-#include <fcntl.h>
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>>      /* error definitions and routines */
+#include <fcntl.h>       /* file control functions */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index da1f68d61346d0ffa3f368d2e91bbce0c34ec44f..b6a4531d76e6c03a0e4d968b122feba514e248b1 100644 (file)
  * Read n fortunes from fortune file file, and put it into the
  * string array fortune
  *
  * 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 <sys/types.h>   /* predefined types */
  ****************************************************************/
 /* 
  * Include needed headers
  */
 #include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /*  */
-#include <unistd.h>      /* include unix standard library */
-#include <stdio.h>       /* include standard I/O library */
-#include <stdlib.h>     /* standard library */
-#include <string.h>     /* ANSI C standard string */
-#include <errno.h>      /* error definitions */
-#include <fcntl.h>      /*  */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>       /* standard I/O library */
+#include <stdlib.h>     /* standard library */
+#include <string.h>     /* C strings library */
+#include <errno.h>      /* error definitions and routines */
+#include <fcntl.h>      /* file control functions */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index c1c11462e81065e8d6c81fba04aef4ce35641310..4cb65cac20e3fea98cff688b0b0e5e9ab0f3ce86 100644 (file)
  *
  * Usage: fortuned -h give all info
  *
  *
  * Usage: fortuned -h give all info
  *
- * $Id: FortuneServer.c,v 1.8 2003/05/02 09:55:13 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /*  */
-#include <unistd.h>      /* include unix standard library */
-#include <stdio.h>       /* include standard I/O library */
-#include <stdlib.h>     /* standard library */
-#include <string.h>     /* ANSI C standard string */
-#include <errno.h>      /* errorstring */
-#include <signal.h>     /* signals */
-#include <fcntl.h>      /*  */
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>       /* standard I/O library */
+#include <stdlib.h>     /* standard library */
+#include <string.h>     /* C strings library */
+#include <errno.h>      /* error definitions and routines */
+#include <signal.h>     /* signal constants, types and functions */
+#include <fcntl.h>      /* file control functions */
 
 #include "macros.h"
 #include "Gapil.h"
 
 #include "macros.h"
 #include "Gapil.h"
index b81a8730087ab7fcd6d7ff1d7cea618cf32162d3..2cbbf4db2f0543f3eb34fa16b6346ae6ae32b5ba 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: ipctestid -h give all info's
  *
  *
  * Usage: ipctestid -h give all info's
  *
- * $Id: IPCTestId.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 #include <sys/ipc.h>     /* SysV IPC functions */
 #include <sys/ipc.h>     /* SysV IPC functions */
-#include <sys/msg.h>     /* SysV Message Queue */
-#include <sys/sem.h>     /* SysV Semaphores */
-#include <sys/shm.h>     /* SysV Shared Memory */
+#include <sys/msg.h>     /* SysV message queues */
+#include <sys/sem.h>     /* SysV semaphores */
+#include <sys/shm.h>     /* SysV shared memory */
 
 #include "macros.h"      /* My macros */
 /* Help printing routine */
 
 #include "macros.h"      /* My macros */
 /* Help printing routine */
index 5bdc4a36cc30634aabee393d3bfbda8d67951784..432ec27e0e1c9adceeb7a70c9060d7c14f88e7e9 100644 (file)
@@ -28,8 +28,8 @@
  *****************************************************************************/
 #include <sys/types.h>
 #include <sys/stat.h>
  *****************************************************************************/
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>                               /* unix standard functions */
-#include <fcntl.h>                          /* file control (lock) functions */
+#include <unistd.h>      /* unix standard functions */
+#include <fcntl.h>       /* file control functions */
 /*
  * Function LockFile:
  *
 /*
  * Function LockFile:
  *
index ddb83974a8b91e9204a1d1433c5f0a24c85af39d..408eda49c7fe8b92ad39e64d617a0ba387069a15 100644 (file)
  *
  * Usage: fortune -h give all info
  *
  *
  * Usage: fortune -h give all info
  *
- * $Id: MQFortuneClient.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /*  */
-#include <unistd.h>      /* include unix standard library */
-#include <stdio.h>       /* include standard I/O library */
-#include <stdlib.h>     /* standard library */
-#include <string.h>     /* ANSI C standard string */
-#include <errno.h>      /* errorstring */
-#include <signal.h>     /* signals */
-#include <sys/ipc.h>
-#include <sys/msg.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>       /* standard I/O library */
+#include <stdlib.h>     /* C standard library */
+#include <string.h>     /* C strings library */
+#include <errno.h>      /* error definitions and routines */
+#include <signal.h>     /* signal constants, types and functions */
+#include <sys/ipc.h>     /* SysV IPC functions */
+#include <sys/msg.h>     /* SysV message queues */
+
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index 09240b8f9588a134b91f2b9b476f7b7c97be6a70..cac9e3ad80a0425727139d352231488f67c73367 100644 (file)
  *
  * Usage: fortuned -h give all info
  *
  *
  * Usage: fortuned -h give all info
  *
- * $Id: MQFortuneServer.c,v 1.6 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <sys/stat.h>    /*  */
-#include <unistd.h>      /* include unix standard library */
-#include <stdio.h>       /* include standard I/O library */
-#include <stdlib.h>     /* standard library */
-#include <string.h>     /* ANSI C standard string */
-#include <errno.h>      /* errorstring */
-#include <signal.h>     /* signals */
-#include <sys/ipc.h>
-#include <sys/msg.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdio.h>       /* standard I/O library */
+#include <stdlib.h>     /* standard library */
+#include <string.h>     /* C strings library */
+#include <errno.h>      /* error definitions and routines */
+#include <signal.h>     /* signal constants, types and functions */
+#include <sys/ipc.h>     /* SysV IPC functions */
+#include <sys/msg.h>     /* SysV message queues */
 
 #include "macros.h"
 #include "Gapil.h"
 
 #include "macros.h"
 #include "Gapil.h"
index 35220a8e17628ea4f2cc359c065ef4cc6550876a..2e2736e1efdee84a2cf178011cfedc5f5eea8eaa 100644 (file)
@@ -28,7 +28,7 @@
 #include <sys/sem.h>     /* IPC semaphore declarations */
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/sem.h>     /* IPC semaphore declarations */
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
+#include <fcntl.h>       /* file control functions */
 #include <signal.h>      /* signal handling declarations */
 
 #include "Gapil.h"
 #include <signal.h>      /* signal handling declarations */
 
 #include "Gapil.h"
index d2dfbe1c715abd116da5a7dc489be353e15c169c..d4c012f1eee828497b42b4161f312ebb893dcf26 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: procinfo -h give all info's
  *
  *
  * Usage: procinfo -h give all info's
  *
- * $Id: ProcInfo.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
@@ -37,7 +35,7 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 
 /* Help printing routine */
 void usage(void);
 
 /* Help printing routine */
 void usage(void);
index e2a7493d6e9e0e13a1d7413375dece45b1631e81..63282d08a006534d8bd929e6d2f6b4c63c9c8174 100644 (file)
  *
  * Author: S. Piccardi
  *
  *
  * Author: S. Piccardi
  *
- * $Id: SharedMem.c,v 1.8 2003/05/02 09:55:14 piccardi Exp $
- *
  ***************************************************************/
  ***************************************************************/
-#include <sys/shm.h>                  /* SysV IPC shared memory declarations */
-#include <sys/types.h>
+#include <sys/shm.h>      /* SysV IPC shared memory */
+#include <sys/types.h>    /* primitive system data types */
 #include <sys/stat.h>
 #include <sys/stat.h>
-#include <stdio.h>                                 /* standard I/O functions */
-#include <fcntl.h>
-#include <signal.h>                          /* signal handling declarations */
-#include <unistd.h>
+#include <stdio.h>        /* standard I/O functions */
+#include <fcntl.h>        /* file control functions */
+#include <signal.h>       /* signal constants, types and functions */
+#include <unistd.h>       /* unix standard library */
 #include <sys/mman.h>
 #include <sys/mman.h>
-#include <string.h>
-#include <errno.h>
+#include <string.h>       /* C strings library */
+#include <errno.h>        /* error definitions and routines */
 
 #include "macros.h"
 /* *************************************************************************
 
 #include "macros.h"
 /* *************************************************************************
index a2a6fcdb295665a0828db434656c3bbf2e20e812..421919c2118f950c35d0f7943a6d8e8488a03c9f 100644 (file)
@@ -1,4 +1,4 @@
-/* Sockutils.c
+/* SockUtil.c
  * 
  * Copyright (C) 2004 Simone Piccardi
  * 
  * 
  * Copyright (C) 2004 Simone Piccardi
  * 
  */
 /***************************************************************
  *
  */
 /***************************************************************
  *
- * File SockUtils.c 
+ * File SockUtil.c 
  * Routines for socket operations. 
  *
  * Define routines for socket handling 
  *
  * Author: S. Piccardi
  *
  * Routines for socket operations. 
  *
  * Define routines for socket handling 
  *
  * Author: S. Piccardi
  *
- * $Id$
- *
  ***************************************************************/
  ***************************************************************/
-#include <sys/types.h>
-#include <stdio.h>                                 /* standard I/O functions */
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <stdio.h>      /* standard I/O library */
+#include <unistd.h>      /* unix standard library */
+#include <string.h>      /* C strings library */
+#include <errno.h>       /* error definitions and routines */
+#include <sys/socket.h>  /* socket constants, types and functions */
 #include <arpa/inet.h>
 #include <arpa/inet.h>
-#include <sys/types.h>
-#include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
 
 #include <netinet/in.h>
 #include <netdb.h>
 
@@ -50,8 +47,6 @@
  * Author: Simone Piccardi
  * Dec. 2004
  *
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  **************************************************************************/
 char *ip_ntop(struct addrinfo *addr, char *dst, socklen_t cnt)
 {
  **************************************************************************/
 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
  *
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockconn(char *host, char *serv, int prot, int type) 
 {
  ****************************************************************/
 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
  *
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockbind(char *host, char *serv, int prot, int type) 
 {
  ****************************************************************/
 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
  *
  * Author: Simone Piccardi
  * Mar. 2005
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockbindopt(char *host, char *serv, int prot, int type, int reuse) 
 {
  ****************************************************************/
 int sockbindopt(char *host, char *serv, int prot, int type, int reuse) 
 {
index 4e788e9340b6358f0050402caab51c9ecf8b2c6d..d5c60214784fcf17863af9196d5aab805ebcf0cf 100644 (file)
 /* 
  * Include needed headers
  */
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <sys/mman.h>
 #include <semaphore.h>
 #include <syslog.h>      /* syslog system functions */
 #include <sys/mman.h>
 #include <semaphore.h>
 #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 <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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index 9c332039a6eb7e965a61d9620a706090379d9d9a..5da2288d388be8928f8654f580c53f900c2c5949 100644 (file)
  *
  * Usage: daytimed -h give all info
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 */
 
 #define MAXLINE 80
 #define BACKLOG 10
 
 #define MAXLINE 80
 #define BACKLOG 10
index be1e3a36da27315998b24a9764c77dc9bc7ea2f8..80e2c3835f3dc633a2f078f8370893a35a494f76 100644 (file)
  *
  * Usage: daytime -h give all info's
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
 
 #define MAXLINE 80
 /* Program begin */
 
 #define MAXLINE 80
 /* Program begin */
index 50f681b6e09aacb0d59acccaf885161294337601..45bd7b8ffa53651999b939d7de592718b9c0e9bd 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
-#include <stdlib.h>
-#include <netinet/tcp.h>
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
+#include <stdlib.h>      /* C standard library */
+#include <netinet/tcp.h> /* TCP constants and types */
 
 /* still not defined in some include, because too new ... */
 #ifndef TCP_CONGESTION
 
 /* still not defined in some include, because too new ... */
 #ifndef TCP_CONGESTION
index f60c518233c4d2e399d9fcc7357c74319a5b571b..e29fe333def9660741f9918fa79c52356ac346dc 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
 
 #include "Gapil.h"
 #include "macros.h"
 
 #include "Gapil.h"
 #include "macros.h"
index 089bd67c7ebb0839a08da77c127b37bb67921034..ce085ea45d632f762dad06101e457039fc091222 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * Usage: echo -h give all info's
  *
- * $Id$
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
 
 #define MAXLINE 256
 void usage(void);
 
 #define MAXLINE 256
 void usage(void);
index 691911e0c57c0c23b38ac742d7fa4a3d707d9ff0..3a1aed69dc05a3e9a734d9761cbadc47d4bcd9b2 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index 5f0a92e0564d53201cdff8686c19623cd431334d..b9d932a02647b1fb0433d3ec72ea8423557a3808 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * Usage: echo -h give all info's
  *
- * $Id$
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
 
 #define MAXLINE 256
 void usage(void);
 
 #define MAXLINE 256
 void usage(void);
index ee2fa94708b63fce9f8d96274bef76178e008f8b..952344f2bd2b6c9fa78cea7d2080c7710e29f3d3 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * Usage: echo -h give all info's
  *
- * $Id$
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
-#include <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index ff866efa581860497f57a32a194c5eea5798a11c..a7f0d2993679b95e3846cedb249c11ad90d2422d 100644 (file)
  *
  * Usage: echod -h give all info
  *
  *
  * Usage: echod -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index ff866efa581860497f57a32a194c5eea5798a11c..0f550725ce8824c39d3f23d993a7365fb1c08e6b 100644 (file)
@@ -1,4 +1,4 @@
-/* TCP_echod.c
+/* TCP_echod_fifth.c
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
+ * Fifth version
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index bfe826a8c76d7ad61a05ac032390c32cb456d5b4..31e3c16c70a379990b06b17fd11dc398b8a72822 100644 (file)
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
+ * First version
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
 #include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#include <errno.h>       /* error definitions and routines */
+#include <string.h>      /* C strings library */
+#include <stdlib.h>      /* C standard library */
 
 #include "Gapil.h"
 
 
 #include "Gapil.h"
 
index 48d564cc7c6e0ad4f57d952b5d036bcb7fb7462a..394cd30131c95262a2d429888da7c34e5f70c656 100644 (file)
@@ -1,4 +1,4 @@
-/* TCP_echod.c
+/* TCP_echod_fourth.c
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
+ * Fourth version
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index 0ac7c0ef072a15dcedf5dc9d6d701bdabbce0462..de9d2f2bf0ced189be6a889100c5e7651225f0e2 100644 (file)
  *
  * Usage: echod -h give all info
  *
  *
  * Usage: echod -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index 689049265861498279830c4fe0626f8ff22ac9c8..7fb35bb4ec9b0bd3cceb9085d786ac0619c5586c 100644 (file)
@@ -1,4 +1,4 @@
-/* TCP_echod.c
+/* TCP_echod_third.c
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  * 
  * Copyright (C) 2001-2004 Simone Piccardi
  * 
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
  *
  * Program echod 
  * Elementary TCP server for echo service (port 7)
+ * Third version
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
  *
  * Author: Simone Piccardi
  * Jun. 2001
  *
  * Usage: echod -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "Gapil.h"
 
 
 #include "Gapil.h"
 
index 2d05548817bfdbba63342ab3bf2b6e1201aab6a6..2917b2dce562da762ae0004c1c297454ef3f03bd 100644 (file)
  *
  * Usage: daytimed -h give all info
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 */
 
 #define MAXLINE 80
 #define BACKLOG 10
 
 #define MAXLINE 80
 #define BACKLOG 10
index 9026cff8ba547308fd863de8a0f37428967b1b62..c6a3fba944853f38948367414835d772f013676d 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: testrem -h give all info's
  *
  *
  * Usage: testrem -h give all info's
  *
- * $Id: TestRen.c,v 1.4 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
@@ -36,7 +34,7 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 
 /* Help printing routine */
 void usage(void);
 
 /* Help printing routine */
 void usage(void);
index 97b7f6ce561633291eb376e2d8e8c8eef5da30d6..f99ff64e58720dbdc68a170a68f56eb571c214e8 100644 (file)
  *
  * Usage: daytime -h give all info's
  *
  *
  * 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 needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
 
 #define MAXLINE 80
 /* Program begin */
 
 #define MAXLINE 80
 /* Program begin */
index 6f607944e668c574699cd23d9e046b0eaadc7401..40112468127d9b29fff38577491cddd92eab2232 100644 (file)
  *
  * Usage: daytimed -h give all info
  *
  *
  * 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 needed headers
  */
-#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 <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 */
 
 #define MAXLINE 80
 /* Program begin */
 
 #define MAXLINE 80
 /* Program begin */
index 238effb3bdc49ad257410e56dcca0604962b5559..e8fa3adbcfd8a247c6b5d58fbcc699321d918efb 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * 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 needed headers
  */
-#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 <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
-#include <stdlib.h>
+#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 <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
+#include <stdlib.h>      /* C standard library */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index b30c12c2e43652ece1fedc753b06e6ae8e3aac9a..8f00498f044401ac612475b09536211676630511 100644 (file)
  *
  * Usage: echo -h give all info's
  *
  *
  * 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 needed headers
  */
-#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 <errno.h>      /* include error codes */
-#include <string.h>     /* include erroro strings definitions */
+#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 <errno.h>      /* error definitions and routines */
+#include <string.h>     /* C strings library */
 
 #include "macros.h"
 
 
 #include "macros.h"
 
index 8f472d69e28c8e3a188ee1a1afa3259c8388a092..db5b132ff817643621d5cfa03bea3bffb812e009 100644 (file)
  *
  * Author: S. Piccardi Jan. 2003
  *
  *
  * Author: S. Piccardi Jan. 2003
  *
- * $Id: WriteShm.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
  *****************************************************************************/
  *****************************************************************************/
-#include <sys/types.h>
+#include <sys/types.h>     /* primitive system data types */
 #include <sys/stat.h>
 #include <dirent.h>        /* directory */
 #include <stdlib.h>        /* C standard library */
 #include <sys/stat.h>
 #include <dirent.h>        /* directory */
 #include <stdlib.h>        /* C standard library */
-#include <unistd.h>
-#include <stdio.h>
+#include <unistd.h>        /* unix standard library */
+#include <stdio.h>         /* standard I/O library */
 
 #include "Gapil.h"
 #include "macros.h"
 
 #include "Gapil.h"
 #include "macros.h"
index 2a6dbf07aaabcc7c1dbfc8e9ccc2e81ab1fd491a..d6cf1cf07b7ede3a523e3e5dbc45535663700f61 100644 (file)
  * Author: S. Piccardi Jul. 2007
  *
  *****************************************************************************/
  * Author: S. Piccardi Jul. 2007
  *
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
 #include <sys/inotify.h> /* Linux inotify interface */
 #include <sys/epoll.h>   /* Linux epoll interface */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* Unix standard library */
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdio.h>       /* standard I/O library */
 #include <sys/inotify.h> /* Linux inotify interface */
 #include <sys/epoll.h>   /* Linux epoll interface */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* Unix standard library */
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdio.h>       /* standard I/O library */
-#include <string.h>      /* string functions */
-#include <fcntl.h>       /* fcntl function */
+#include <string.h>      /* C strings library */
+#include <fcntl.h>       /* file control function */
 #include <sys/ioctl.h>   /* ioctl function */
 
 
 #include <sys/ioctl.h>   /* ioctl function */
 
 
index 19974eebdb559e73c6b6385e0935bdb9ed1f644f..349381279bae83cf67072bb52a57e9e628239937 100644 (file)
@@ -26,7 +26,6 @@
  *
  * Usage: getcap -h give all info's
  *
  *
  * Usage: getcap -h give all info's
  *
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
@@ -36,8 +35,8 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
-#include <sys/types.h>
+#include <string.h>      /* C strings library */
+#include <sys/types.h>   /* primitive system data types */
 #include <sys/capability.h>
 
 /* Help printing routine */
 #include <sys/capability.h>
 
 /* Help printing routine */
index da2a6c96cc284691bcafce3dc2a169cb74c85f36..e949713cb54d80ca6259f5bd4860129f381e0ed8 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: gethost -h give all info's
  *
  *
  * Usage: gethost -h give all info's
  *
- * $Id: gethost.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
@@ -37,9 +35,9 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
-#include <sys/types.h>
-#include <sys/socket.h>
+#include <string.h>      /* C strings library */
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/socket.h>  /* socket constants, types and functions */
 #include <netdb.h>
 
 /* Help printing routine */
 #include <netdb.h>
 
 /* Help printing routine */
index 6410bb572e60fc27e63c9ff52b2a82b36f7fa2cd..521b0df5dc2c35ebeaebc37695b918d8c04dcd65 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: getparam -h give all info's
  *
  *
  * Usage: getparam -h give all info's
  *
- * $Id: getparam.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
  ****************************************************************/
 /* 
  * Include needed headers
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 #include <limits.h>
 #include <limits.h>
-#include <stdio.h>
-
+#include <stdio.h>      /* standard I/O library */
+#include <time.h>        /* date and time constants, types and functions */
 
 
-#include <time.h>        /* for CLK_TCK e CLOCKS_PER_SEC */
 
 /* Table of constants for sysconf() */
 char *sc_names[]={"_SC_ARG_MAX",
 
 /* Table of constants for sysconf() */
 char *sc_names[]={"_SC_ARG_MAX",
index 4d46f7e3eaec8ffc2e063300e1e937d6d32a02cf..db3e6b2eb4e9182b4aa813929f65a56a64bed73a 100644 (file)
  * Author: S. Piccardi Jul. 2007
  *
  *****************************************************************************/
  * Author: S. Piccardi Jul. 2007
  *
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
 #include <sys/inotify.h> /* Linux inotify interface */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* Unix standard library */
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdio.h>       /* standard I/O library */
 #include <sys/inotify.h> /* Linux inotify interface */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* Unix standard library */
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdio.h>       /* standard I/O library */
-#include <string.h>      /* string functions */
-#include <fcntl.h>       /* fcntl function */
+#include <string.h>      /* C strings library */
+#include <fcntl.h>       /* file control functions */
 #include <sys/ioctl.h>   /* ioctl function */
 
 
 #include <sys/ioctl.h>   /* ioctl function */
 
 
index 3f51313925df35744d01633e6cb0deb5ee0136c3..d3eb9d8e4912bccac0e6cb6477e99a653490bfbc 100644 (file)
  *
  * Author: S. Piccardi Nov. 2004
  *
  *
  * Author: S. Piccardi Nov. 2004
  *
- * $Id$
- *
  *****************************************************************************/
  *****************************************************************************/
-#include <netdb.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdlib.h>        /* C standard library */
-#include <stdio.h>         /* I/O standard library */
-#include <unistd.h>
+#include <string.h>      /* C strings library */
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdlib.h>      /* C standard library */
+#include <stdio.h>       /* I/O standard library */
 #include <arpa/inet.h>
 #include <arpa/inet.h>
-#include <sys/socket.h>
+#include <sys/socket.h>  /* socket constants, types and functions */
 #include <netinet/in.h>
 #include <netinet/in.h>
+#include <netdb.h>
 
 #include "Gapil.h"
 /*
 
 #include "Gapil.h"
 /*
index 11ae1cef264f4bbbfd36d9c071ccf3b9713af635..d5ee81155a49988e1cf5dbffe79a3ebdffc57f84 100644 (file)
  *
  * Author: S. Piccardi Jul. 2004
  *
  *
  * Author: S. Piccardi Jul. 2004
  *
- * $Id$
- *
  *****************************************************************************/
  *****************************************************************************/
-#include <netdb.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdlib.h>        /* C standard library */
-#include <stdio.h>         /* I/O standard library */
-#include <unistd.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <stdlib.h>      /* C standard library */
+#include <stdio.h>       /* I/O standard library */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>
 #include <arpa/inet.h>
+#include <netdb.h>
+
+
+
 extern int h_errno;
 
 #include "Gapil.h"
 extern int h_errno;
 
 #include "Gapil.h"
index c2192997dd31add52c185797de7021b02e37aecb..4af8f5816c3926c82a9bf3977c9a18347c3f7d3f 100644 (file)
  *
  * Usage: echod -h give all info
  *
  *
  * 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 <limits.h>      /* system limits */
  ****************************************************************/
 /* 
  * 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 <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <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"
 
 #include "macros.h"
 #include "Gapil.h"
index 3a0690bb5b283bfc5acbc02ffcc09e67f49d9a33..49b817548e765ae70c48ab8c0eaeba604c883d8f 100644 (file)
 /* 
  * Include needed headers
  */
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
+#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utiliites */
 #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 <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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <string.h>      /* error strings */
-#include <stdlib.h>
+#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 "macros.h"
 #include "Gapil.h"
 
 #include "macros.h"
 #include "Gapil.h"
index 2225c96eac15729b79cabedbaad09be25d5e4f25..825bb9b9258e79229042e7b6eb286a5472b0652f 100644 (file)
@@ -30,7 +30,7 @@
  */
 #define _GNU_SOURCE
 #include <unistd.h>      /* unix standard library */
  */
 #define _GNU_SOURCE
 #include <unistd.h>      /* unix standard library */
-#include <signal.h>      /* signal standard library */
+#include <signal.h>      /* signal constants, types and functions */
 
 void alarm_hand(int sig) {
     /* check if the signal is the right one */
 
 void alarm_hand(int sig) {
     /* check if the signal is the right one */
index a98bd1ee2400bacf99d0e7371e9027ff1ef22864..9247fa16ac684a89ec7d5a65aaba38fca66b9434 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: testfopen -h give all info's
  *
  *
  * 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
  ****************************************************************/
 /* 
  * Include needed headers
@@ -37,7 +35,7 @@
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
 #include <stdio.h>      /* standard I/O library */
-#include <string.h>      /* string functions */
+#include <string.h>      /* C strings library */
 
 /* Help printing routine */
 void usage(void);
 
 /* Help printing routine */
 void usage(void);
index 9524dd4b42be01e3cd2b8e8f1390b2390a3df1f1..db81af4daaecace370edd6d11ff1af25a8609c8c 100644 (file)
  *
  * Usage: wwwd -h give all info
  *
  *
  * Usage: wwwd -h give all info
  *
- * $Id$ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
 #define _GNU_SOURCE
  ****************************************************************/
 /* 
  * Include needed headers
  */
 #define _GNU_SOURCE
-#include <string.h>      /* error strings */
-#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 <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdlib.h>      /* C 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 <syslog.h>      /* syslog system functions */
-#include <signal.h>      /* signal functions */
-#include <errno.h>       /* error code */
-#include <stdlib.h>
+#include <signal.h>      /* signal constants, types and functions */
+#include <errno.h>       /* error definitions and routines */
+#include <string.h>      /* C strings library */
 
 #include "Gapil.h"
 
 
 #include "Gapil.h"