X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fwrappers.h;h=ee8fa89da88d4d85489ae1bb209807408907eeab;hp=70eb402240b2f6fdca8af8328ddad7f689d30ffc;hb=6c8d59152cff88b5835eeb749445148bb3546a5b;hpb=3d44c36183fe67ed64bff95a36596ad87f620683 diff --git a/sources/wrappers.h b/sources/wrappers.h index 70eb402..ee8fa89 100644 --- a/sources/wrappers.h +++ b/sources/wrappers.h @@ -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 /* 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);