1 //==========================================================================
5 // listen() system call
7 //==========================================================================
8 //####BSDCOPYRIGHTBEGIN####
10 // -------------------------------------------
12 // Portions of this software may have been derived from OpenBSD or other sources,
13 // and are covered by the appropriate copyright disclaimers included herein.
15 // -------------------------------------------
17 //####BSDCOPYRIGHTEND####
18 //==========================================================================
19 //#####DESCRIPTIONBEGIN####
22 // Contributors: gthomas
28 //####DESCRIPTIONEND####
30 //==========================================================================
33 #include <sys/param.h>
34 #include <cyg/io/file.h>
35 #include <sys/socket.h>
36 #include <sys/socketvar.h>
38 #include <sys/syscallargs.h>
41 listen(int s, int backlog)
43 struct sys_listen_args args;
45 SYSCALLARG(args,s) = s;
46 SYSCALLARG(args,backlog) = backlog;
47 error = sys_listen(&args, &res);