Functions omitted, Notes, Nonposix functions – Comtrol eCos User Manual
Page 469: General io functions, Socket functions, Non-posix functions, General i/o functions

Chapter 31. POSIX Standard Support
int pthread_setcanceltype(int type, int
∗
oldtype);
void pthread_testcancel(void);
void pthread_cleanup_push( void (
∗
routine)(void
∗
),
void
∗
arg);
void pthread_cleanup_pop( int execute);
Functions Omitted
Notes
Asynchronous cancellation is only partially implemented. In particular, cancellation may occur in unexpected
places in some functions. It is strongly recommended that only synchronous cancellation be used.
Non-POSIX Functions
In addition to the standard POSIX functions defined above, the following non-POSIX functions are defined in the
FILEIO package.
General I/O Functions
int ioctl( int fd, CYG_ADDRWORD com, CYG_ADDRWORD data );
int select( int nfd, fd_set
∗
in, fd_set
∗
out, fd_set
∗
ex, struct timeval
∗
tv);
Socket Functions
int socket( int domain, int type, int protocol);
int bind( int s, const struct sockaddr
∗
sa, unsigned int len);
int listen( int s, int len);
int accept( int s, struct sockaddr
∗
sa, socklen_t
∗
addrlen);
int connect( int s, const struct sockaddr
∗
sa, socklen_t len);
int getpeername( int s, struct sockaddr
∗
sa, socklen_t
∗
len);
int getsockname( int s, struct sockaddr
∗
sa, socklen_t
∗
len);
int setsockopt( int s, int level, int optname, const void
∗
optval,
socklen_t optlen);
int getsockopt( int s, int level, int optname, void
∗
optval,
socklen_t
∗
optlen);
ssize_t recvmsg( int s, struct msghdr
∗
msg, int flags);
ssize_t recvfrom( int s, void
∗
buf, size_t len, int flags,
struct sockaddr
∗
from, socklen_t
∗
fromlen);
ssize_t recv( int s, void
∗
buf, size_t len, int flags);
ssize_t sendmsg( int s, const struct msghdr
∗
msg, int flags);
ssize_t sendto( int s, const void
∗
buf, size_t len, int flags,
const struct sockaddr
∗
to, socklen_t tolen);
ssize_t send( int s, const void
∗
buf, size_t len, int flags);
365