Changeset cf29bcb9 in rtems


Ignore:
Timestamp:
May 8, 2005, 6:40:09 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a794d531
Parents:
e1d54b84
Message:

Cosmetics from FreeBSD.

Location:
cpukit/libnetworking
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/libc/inet_addr.c

    re1d54b84 rcf29bcb9  
    6565
    6666/*
    67  * Ascii internet address interpretation routine.
     67 * ASCII internet address interpretation routine.
    6868 * The value returned is in network order.
    6969 */
    7070u_long
    7171inet_addr(cp)
    72         register const char *cp;
     72        const char *cp;
    7373{
    7474        struct in_addr val;
     
    8080
    8181/*
    82  * Check whether "cp" is a valid ascii representation
     82 * Check whether "cp" is a valid ASCII representation
    8383 * of an Internet address and convert to a binary address.
    8484 * Returns 1 if the address is valid, 0 if not.
     
    8888int
    8989inet_aton(cp, addr)
    90         register const char *cp;
     90        const char *cp;
    9191        struct in_addr *addr;
    9292{
     
    175175                break;
    176176        }
    177         if (addr)
     177        if (addr != NULL)
    178178                addr->s_addr = htonl(val);
    179179        return (1);
  • cpukit/libnetworking/netinet/in.h

    re1d54b84 rcf29bcb9  
    2828 *
    2929 *      @(#)in.h        8.3 (Berkeley) 1/3/94
    30  * $FreeBSD: src/sys/netinet/in.h,v 1.89 2005/01/07 01:45:44 imp Exp $
     30 * $FreeBSD: src/sys/netinet/in.h,v 1.90 2005/02/22 13:04:03 glebius Exp $
    3131 */
    3232 
  • cpukit/libnetworking/sys/socket.h

    re1d54b84 rcf29bcb9  
    5656#define SOCK_DGRAM      2               /* datagram socket */
    5757#define SOCK_RAW        3               /* raw-protocol interface */
     58#if __BSD_VISIBLE
    5859#define SOCK_RDM        4               /* reliably-delivered message */
     60#endif
    5961#define SOCK_SEQPACKET  5               /* sequenced packet stream */
    6062
     
    6870#define SO_DONTROUTE    0x0010          /* just use interface addresses */
    6971#define SO_BROADCAST    0x0020          /* permit sending of broadcast msgs */
     72#if __BSD_VISIBLE
    7073#define SO_USELOOPBACK  0x0040          /* bypass hardware when possible */
     74#endif
    7175#define SO_LINGER       0x0080          /* linger on close if data present */
    7276#define SO_OOBINLINE    0x0100          /* leave received OOB data in line */
     77#if __BSD_VISIBLE
    7378#define SO_REUSEPORT    0x0200          /* allow local address & port reuse */
    7479#define SO_TIMESTAMP    0x0400          /* timestamp received dgram traffic */
     80#define SO_NOSIGPIPE    0x0800          /* no SIGPIPE from EPIPE */
     81#define SO_ACCEPTFILTER 0x1000          /* there is an accept filter */
     82#define SO_BINTIME      0x2000          /* timestamp received dgram traffic */
     83#endif
    7584
    7685/*
     
    119128 */
    120129#define AF_UNSPEC       0               /* unspecified */
    121 #define AF_LOCAL        1               /* local to host (pipes, portals) */
    122 #define AF_UNIX         AF_LOCAL        /* backward compatibility */
     130#if __BSD_VISIBLE
     131#define AF_LOCAL        AF_UNIX         /* local to host (pipes, portals) */
     132#endif
     133#define AF_UNIX         1               /* standardized name for AF_LOCAL */
    123134#define AF_INET         2               /* internetwork: UDP, TCP, etc. */
    124135#define AF_IMPLINK      3               /* arpanet imp addresses */
Note: See TracChangeset for help on using the changeset viewer.