Changeset 105dcfcd in rtems


Ignore:
Timestamp:
04/22/04 04:31:34 (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
593bc32
Parents:
8bbe9ea0
Message:

2004-04-22 Ralf Corsepius <ralf_corsepius@…>

  • libnetworking/sys/socket.h: Further update from FreeBSD (Add sa_family_t).
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8bbe9ea0 r105dcfcd  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * libnetworking/sys/socket.h: Further update from FreeBSD
     4        (Add sa_family_t).
     5
    162004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • cpukit/libnetworking/sys/socket.h

    r8bbe9ea0 r105dcfcd  
    4343/* RTEMS doesn't have FreeBSD's sys/_types.h machinery. */
    4444typedef int socklen_t;
     45typedef unsigned char   sa_family_t;
    4546#endif
    4647
     
    158159struct sockaddr {
    159160        unsigned char   sa_len;                 /* total length */
    160         u_char  sa_family;              /* address family */
     161        sa_family_t     sa_family;              /* address family */
    161162        char    sa_data[14];            /* actually longer; address value */
    162163};
     
    279280 */
    280281struct msghdr {
    281         void    *msg_name;              /* optional address */
    282         u_int   msg_namelen;            /* size of address */
     282        void            *msg_name;              /* optional address */
     283        socklen_t       msg_namelen;            /* size of address */
    283284        struct  iovec *msg_iov;         /* scatter/gather array */
    284285        int     msg_iovlen;             /* # elements in msg_iov */
    285         void    *msg_control;           /* ancillary data, see below */
    286         u_int   msg_controllen;         /* ancillary data buffer len */
     286        void            *msg_control;           /* ancillary data, see below */
     287        socklen_t       msg_controllen;         /* ancillary data buffer len */
    287288        int     msg_flags;              /* flags on received message */
    288289};
     
    306307 */
    307308struct cmsghdr {
    308         u_int   cmsg_len;               /* data byte count, including hdr */
     309        socklen_t       cmsg_len;               /* data byte count, including hdr */
    309310        int     cmsg_level;             /* originating protocol */
    310311        int     cmsg_type;              /* protocol-specific type */
Note: See TracChangeset for help on using the changeset viewer.