source: rtems/testsuites/psxtests/psxhdrs/sys/socket/listen.c @ eedaf9b

4.115
Last change on this file since eedaf9b was eedaf9b, checked in by Joel Sherrill <joel.sherrill@…>, on 02/11/15 at 20:00:35

psxhdrs: Add tests for <sys/socket.h> API compliance

  • Property mode set to 100644
File size: 560 bytes
Line 
1/**
2 *  @file
3 *
4 *  This test file is used to verify that the listen() method has the
5 *  correct signature.
6 */
7
8/*
9 *  COPYRIGHT (c) 2015.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#ifdef HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <sys/socket.h>
22
23ssize_t test(void);
24
25ssize_t test(void)
26{
27  int     sockfd = 4;
28  int     backlog = 7;
29
30  return listen(sockfd, backlog);
31}
Note: See TracBrowser for help on using the repository browser.