Merge branch 'master' of ssh://gapil.gnulinux.it/srv/git/gapil
[gapil.git] / sources / IPCTestId.c
index b81a8730087ab7fcd6d7ff1d7cea618cf32162d3..94ce9166b2987f5befbf50dae56ff53ae355e95e 100644 (file)
@@ -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
 #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/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 */
@@ -52,7 +50,7 @@ int main(int argc, char *argv[])
  * Variables definition  
  */
     int i; 
-    int n = 5;                                        /* default is 10 tryes */
+    int n = 3;                                      /* default is 3 times */
     char type='q';                                  /* default is use queues */
     int id;
     /*