Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e98b1d5 in mainline


Ignore:
Timestamp:
2010-09-26T11:37:37Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
c5b59ce
Parents:
29fa68b
Message:

Include socket and networking error codes in the standard library's errno.h.

Location:
uspace
Files:
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/netecho/print_error.c

    r29fa68b re98b1d5  
    3636
    3737#include <stdio.h>
     38#include <errno.h>
    3839
    3940#include <icmp_codes.h>
    40 #include <socket_errno.h>
    4141
    4242#include "print_error.h"
  • uspace/app/ping/ping.c

    r29fa68b re98b1d5  
    4242#include <ipc/services.h>
    4343#include <str_error.h>
     44#include <errno.h>
    4445#include <arg_parse.h>
    4546
     
    4950#include <inet.h>
    5051#include <ip_codes.h>
    51 #include <socket_errno.h>
    5252#include <socket_parse.h>
    5353
  • uspace/lib/c/include/errno.h

    r29fa68b re98b1d5  
    5656#define EMLINK        (-266)
    5757
     58/** An API function is called while another blocking function is in progress. */
     59#define EINPROGRESS     (-10036)
     60
     61/** The socket identifier is not valid. */
     62#define ENOTSOCK        (-10038)
     63
     64/** The destination address required. */
     65#define EDESTADDRREQ    (-10039)
     66
     67/** Protocol is not supported.  */
     68#define EPROTONOSUPPORT (-10043)
     69
     70/** Socket type is not supported. */
     71#define ESOCKTNOSUPPORT (-10044)
     72
     73/** Protocol family is not supported. */
     74#define EPFNOSUPPORT    (-10046)
     75
     76/** Address family is not supported. */
     77#define EAFNOSUPPORT    (-10047)
     78
     79/** Address is already in use. */
     80#define EADDRINUSE      (-10048)
     81
     82/** The socket is not connected or bound. */
     83#define ENOTCONN        (-10057)
     84
     85/** The requested operation was not performed.
     86 *  Try again later.
     87 */
     88#define TRY_AGAIN       (-11002)
     89
     90/** No data.
     91 */
     92#define NO_DATA         (-11004)
     93
    5894#endif
    5995
  • uspace/lib/net/il/ip_client.c

    r29fa68b re98b1d5  
    4040
    4141#include <ip_client.h>
    42 #include <socket_errno.h>
    4342#include <packet/packet.h>
    4443#include <packet/packet_client.h>
  • uspace/lib/net/tl/tl_common.c

    r29fa68b re98b1d5  
    3838#include <async.h>
    3939#include <ipc/services.h>
     40#include <errno.h>
    4041
    4142#include <net_err.h>
     
    5152#include <ip_remote.h>
    5253#include <socket_codes.h>
    53 #include <socket_errno.h>
    5454#include <ip_interface.h>
    5555#include <tl_interface.h>
  • uspace/lib/socket/generic/socket_client.c

    r29fa68b re98b1d5  
    4242#include <stdint.h>
    4343#include <stdlib.h>
     44#include <errno.h>
    4445
    4546#include <ipc/services.h>
     
    4950#include <in.h>
    5051#include <socket.h>
    51 #include <socket_errno.h>
    5252#include <adt/dynamic_fifo.h>
    5353#include <adt/int_map.h>
  • uspace/lib/socket/generic/socket_core.c

    r29fa68b re98b1d5  
    3737#include <stdint.h>
    3838#include <stdlib.h>
     39#include <errno.h>
    3940
    4041#include <net_err.h>
     
    4243#include <inet.h>
    4344#include <socket_codes.h>
    44 #include <socket_errno.h>
    4545#include <adt/dynamic_fifo.h>
    4646#include <adt/int_map.h>
  • uspace/lib/socket/include/socket.h

    r29fa68b re98b1d5  
    4545#include <inet.h>
    4646#include <socket_codes.h>
    47 #include <socket_errno.h>
     47#include <errno.h>
    4848
    4949/** @name Socket application programming interface
  • uspace/srv/net/il/ip/ip.c

    r29fa68b re98b1d5  
    6565#include <tl_interface.h>
    6666#include <socket_codes.h>
    67 #include <socket_errno.h>
    6867#include <adt/measured_strings.h>
    6968#include <adt/module_map.h>
  • uspace/srv/net/tl/icmp/icmp.c

    r29fa68b re98b1d5  
    4646#include <sys/time.h>
    4747#include <sys/types.h>
     48#include <errno.h>
    4849
    4950#include <net_err.h>
     
    6667#include <net_interface.h>
    6768#include <socket_codes.h>
    68 #include <socket_errno.h>
    6969#include <tl_messages.h>
    7070#include <tl_interface.h>
  • uspace/srv/net/tl/tcp/tcp.c

    r29fa68b re98b1d5  
    4242//TODO remove stdio
    4343#include <stdio.h>
     44#include <errno.h>
    4445
    4546#include <ipc/ipc.h>
     
    6364#include <net_interface.h>
    6465#include <socket_codes.h>
    65 #include <socket_errno.h>
    6666#include <tcp_codes.h>
    6767#include <socket_core.h>
  • uspace/srv/net/tl/udp/udp.c

    r29fa68b re98b1d5  
    4242#include <ipc/ipc.h>
    4343#include <ipc/services.h>
     44#include <errno.h>
    4445
    4546#include <net_err.h>
     
    6061#include <net_interface.h>
    6162#include <socket_codes.h>
    62 #include <socket_errno.h>
    6363#include <socket_core.h>
    6464#include <socket_messages.h>
Note: See TracChangeset for help on using the changeset viewer.