X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2Fwrappers.h;h=7120c4348a5fef08fc27671b4c592ffa30773ccd;hb=327a8452b33c9626ebec4cfe6c9d6daad54f4b19;hp=70eb402240b2f6fdca8af8328ddad7f689d30ffc;hpb=3d44c36183fe67ed64bff95a36596ad87f620683;p=gapil.git diff --git a/sources/wrappers.h b/sources/wrappers.h index 70eb402..7120c43 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.2 2001/06/10 11:47:17 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,9 @@ 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); +