Changeset e79a0ca7 in rtems


Ignore:
Timestamp:
06/28/16 05:50:59 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
095ecbf
Parents:
4ba4f82
git-author:
Sebastian Huber <sebastian.huber@…> (06/28/16 05:50:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/28/16 11:10:01)
Message:

libnetworking: Move RTEMS-specific socket wake-up

Close #2748.

Location:
cpukit/libnetworking
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/kern/uipc_socket.c

    r4ba4f82 re79a0ca7  
    5252 */
    5353#define SO_PRIVSTATE    0x1009          /* get/deny privileged state */
     54
     55#include <rtems/rtems_bsdnet.h>
    5456#endif /* __rtems__ */
    5557
  • cpukit/libnetworking/rtems/rtems_bsdnet.h

    r4ba4f82 re79a0ca7  
    317317#define MBUF_MALLOC_MBUF        (2)
    318318
     319/*
     320 * RTEMS-specific socket wake-up additions previously part of <sys/socket.h>.
     321 *
     322 * An alternative in the LibBSD network stack for this is KQUEUE(2).
     323 */
     324
     325#define SO_SNDWAKEUP    0x1020          /* wakeup when ready to send */
     326#define SO_RCVWAKEUP    0x1021          /* wakeup when ready to receive */
     327
     328struct socket;
     329
     330struct  sockwakeup {
     331        void    (*sw_pfn)(struct socket *, void *);
     332        void    *sw_arg;
     333};
     334
    319335#ifdef __cplusplus
    320336}
  • cpukit/libnetworking/sys/socket.h

    r4ba4f82 re79a0ca7  
    103103
    104104/*
    105  * RTEMS addition: get and set wakeup functions.
    106  */
    107 #define SO_SNDWAKEUP    0x1020          /* wakeup when ready to send */
    108 #define SO_RCVWAKEUP    0x1021          /* wakeup when ready to receive */
    109 
    110 /*
    111105 * Structure used for manipulating linger option.
    112106 */
     
    114108        int     l_onoff;                /* option on/off */
    115109        int     l_linger;               /* linger time */
    116 };
    117 
    118 /*
    119  * RTEMS addition: structure used to get and set wakeup function.
    120  */
    121 struct socket;
    122 struct  sockwakeup {
    123         void    (*sw_pfn)(struct socket *, void *);
    124         void    *sw_arg;
    125110};
    126111
Note: See TracChangeset for help on using the changeset viewer.