Correzioni varie al codice ed alle relative citazioni
[gapil.git] / sources / wrappers.h
index 70eb402240b2f6fdca8af8328ddad7f689d30ffc..ee8fa89da88d4d85489ae1bb209807408907eeab 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Author: S. Piccardi
  *
- * $Id: wrappers.h,v 1.1 2001/03/05 22:20:08 piccardi Exp $
+ * $Id: wrappers.h,v 1.3 2002/08/18 23:24:44 piccardi Exp $
  *
  ***************************************************************/
 #include <sys/sem.h>     /* IPC semaphore declarations */
@@ -213,7 +213,7 @@ inline void UnlockFile(const char* path_name)
  * Return: the previous sigaction structure
  */
 typedef void SigFunc(int);
-SigFunc * Signal(int signo, SigFunc *func) 
+inline SigFunc * Signal(int signo, SigFunc *func) 
 {
     struct sigaction new_handl, old_handl;
     new_handl.sa_handler=func;
@@ -231,3 +231,10 @@ SigFunc * Signal(int signo, SigFunc *func)
     return (old_handl.sa_handler);
 }
 
+/**
+ ** Defining prototypes for the all other functions
+ **/ 
+ssize_t SockRead(int fd, void *buf, size_t count);
+ssize_t SockWrite(int fd, const void *buf, size_t count);
+
+void HandSIGCHLD(int sig);