eCos Reference Manual
Prev | Chapter 31. POSIX Standard Support | Next

# 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);
    int shutdown( int s, int how);

## Notes

- The precise behaviour of these functions depends mainly on the functionality of the underlying filesystem or network stack to which they are applied.

Prev | Home | Next
Thread Cancellation [POSIX Section 18] | Up | µITRON