ptg10805159
Appendix A. Function Prototypes
This appendix contains the function prototypes for the standardISO C, POSIX, and
UNIX System functions described in the text. Often, we want to see only the arguments
to a function (‘‘Which argument is the file pointer forfgets?’’) or only the return value
(‘‘Doessprintfreturn a pointer or a count?’’). These prototypes also show which
headers need to be included to obtain the definitions of any special constants and to
obtain the ISO C function prototype to help detect any compile-time errors.
The page number reference for each function prototype appears to the right of the
first header file listed for the function. The page number reference gives the page
containing the prototype for the function. That page should be consulted for additional
information on the function.
Some functions aresupported by only a few of the platforms described in this text.
In addition, some platforms support function flags that other platforms don’t support.
In these cases, we usually list the platforms for which support is provided. Inafew
cases, however, we list platforms that lack support.
void abort(void);
This function never returns
int accept(intsockfd,struct sockaddr restrictaddr,
socklen_t restrictlen);
<sys/socket.h> p. 608
Returns: file (socket) descriptor if OK,−1 on error
845