mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
libc/time: Add an implementationof clock()
This commit is contained in:
@@ -136,15 +136,15 @@ static int psock_socketlevel_option(FAR struct socket *psock, int option,
|
||||
* is outside of the scope of getsockopt.
|
||||
*/
|
||||
|
||||
case SO_DEBUG: /* Enables recording of debugging information */
|
||||
case SO_BROADCAST: /* Permits sending of broadcast messages */
|
||||
case SO_REUSEADDR: /* Allow reuse of local addresses */
|
||||
case SO_DEBUG: /* Enables recording of debugging information */
|
||||
case SO_DONTROUTE: /* Requests outgoing messages bypass standard routing */
|
||||
#ifndef CONFIG_NET_TCPPROTO_OPTIONS
|
||||
case SO_KEEPALIVE: /* Verifies TCP connections active by enabling the
|
||||
* periodic transmission of probes */
|
||||
#endif
|
||||
case SO_OOBINLINE: /* Leaves received out-of-band data inline */
|
||||
case SO_DONTROUTE: /* Requests outgoing messages bypass standard routing */
|
||||
case SO_REUSEADDR: /* Allow reuse of local addresses */
|
||||
{
|
||||
sockopt_t optionset;
|
||||
|
||||
@@ -254,14 +254,14 @@ static int psock_socketlevel_option(FAR struct socket *psock, int option,
|
||||
}
|
||||
break;
|
||||
|
||||
/* The following are not yet implemented */
|
||||
/* The following are not yet implemented (return values other than {0,1) */
|
||||
|
||||
case SO_ACCEPTCONN: /* Reports whether socket listening is enabled */
|
||||
case SO_LINGER:
|
||||
case SO_SNDBUF: /* Sets send buffer size */
|
||||
case SO_RCVBUF: /* Sets receive buffer size */
|
||||
case SO_ERROR: /* Reports and clears error status. */
|
||||
case SO_LINGER: /* Lingers on a close() if data is present */
|
||||
case SO_RCVBUF: /* Sets receive buffer size */
|
||||
case SO_RCVLOWAT: /* Sets the minimum number of bytes to input */
|
||||
case SO_SNDBUF: /* Sets send buffer size */
|
||||
case SO_SNDLOWAT: /* Sets the minimum number of bytes to output */
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user