6f52f41fb2
components of the system. The license is poorly worded, though I have an (email only) release from the author for unlimited FreeBSD use. I will try to get something more concrete, though the author's remote location makes this difficult. Submitted by: Oleg Orel <orel@oea.ihep.su>
35 lines
858 B
C
35 lines
858 B
C
/*
|
|
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 <errno.h>
|
|
|
|
#define DEF(syscal,name) name(a,b,c,d,e,f,g,h) \
|
|
{\
|
|
register int status;\
|
|
while (((status=syscal(a,b,c,d,e,f,g,h))==-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)
|