[8785] in Athena Bugs
decmips 7.3P: accept(2)
daemon@ATHENA.MIT.EDU (mhpower@Athena.MIT.EDU)
Sun Dec 29 18:23:22 1991
From: mhpower@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Sun, 29 Dec 91 18:23:08 EST
System name: podge
Type and version: KN01 7.3P (1 update(s) to same version)
Display type: PMAX-MFB
What were you trying to do?
Read the first few lines of the accept man page.
What's wrong:
accept(s, addr, addrlen)
int ns, s;
struct sockaddr *addr;
int *addrlen;
Description
The accept system call accepts a connection on a socket. The argument s
is a socket that has been created with the socket, call, bound to an
address with the bind, call and is listening for connections after a
listen call.
What should have happened:
The role of the variable ns should be indicated in the
"Syntax" section, and the extraneous commas should be deleted
from the second sentence of the "Description" section, i.e.,
ns = accept(s, addr, addrlen)
int ns, s;
struct sockaddr *addr;
int *addrlen;
Description
The accept system call accepts a connection on a socket. The argument s
is a socket that has been created with the socket call, bound to an
address with the bind call and is listening for connections after a
listen call.
Please describe any relevant documentation references:
accept(2)