projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Altra roba connessa con le pipe
[gapil.git]
/
sources
/
wrappers.h
diff --git
a/sources/wrappers.h
b/sources/wrappers.h
index 70eb402240b2f6fdca8af8328ddad7f689d30ffc..7120c4348a5fef08fc27671b4c592ffa30773ccd 100644
(file)
--- a/
sources/wrappers.h
+++ b/
sources/wrappers.h
@@
-5,7
+5,7
@@
*
* Author: S. Piccardi
*
*
* 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 <sys/sem.h> /* IPC semaphore declarations */
*
***************************************************************/
#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);
* 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;
{
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);
}
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);
+