diff options
Diffstat (limited to 'lib/libftp/FtpSyscalls.c')
-rw-r--r-- | lib/libftp/FtpSyscalls.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/libftp/FtpSyscalls.c b/lib/libftp/FtpSyscalls.c new file mode 100644 index 0000000..67fa4ca --- /dev/null +++ b/lib/libftp/FtpSyscalls.c @@ -0,0 +1,35 @@ +/* + Library for ftpd clients.(libftp) + Copyright by Oleg Orel + All rights reserved. + +This library is desined for free, non-commercial software creation. +It is changeable and can be improved. The author would greatly appreciate +any advises, new components and patches of the existing programs. +Commercial usage is also possible with participation of it's author. + + + +*/ + +#include "FtpLibrary.h" +#include <unistd.h> +#include <errno.h> + +#define DEF(syscal,name) int name(void *a, void *b, void *c) \ +{\ + register int status;\ + while (((status=syscal(a,b,c))==-1) && (errno==EINTR));\ + return status;\ +} + +DEF(open,nointr_open) +DEF(close,nointr_close) +DEF(select,nointr_select) +DEF(read,nointr_read) +DEF(write,nointr_write) +DEF(dup,nointr_dup) +DEF(wait,nointr_wait) +DEF(connect,nointr_connect) +DEF(listen,nointr_listen) +DEF(accept,nointr_accept) |