Ignore:
Timestamp:
Nov 13, 2017 6:06:25 AM (5 years ago)
Author:
ming
Message:

Re #2062: Remove deprecated Linux kernel implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/socket.h

    r5445 r5692  
    186186 
    187187/* 
    188  * Linux kernel specifics 
    189  */ 
    190 #if defined(PJ_LINUX_KERNEL) 
    191 #   include <linux/net.h> 
    192 #   include <asm/ioctls.h>              /* FIONBIO      */ 
    193 #   include <linux/syscalls.h>  /* sys_select() */ 
    194 #   include <asm/uaccess.h>     /* set/get_fs() */ 
    195  
    196     typedef int socklen_t; 
    197 #   define getsockopt  sys_getsockopt 
    198  
    199     /* 
    200      * Wrapper for select() in Linux kernel. 
    201      */ 
    202     PJ_INLINE(int) select(int n, fd_set *inp, fd_set *outp, fd_set *exp, 
    203                           struct timeval *tvp) 
    204     { 
    205         int count; 
    206         mm_segment_t oldfs = get_fs(); 
    207         set_fs(KERNEL_DS); 
    208         count = sys_select(n, inp, outp, exp, tvp); 
    209         set_fs(oldfs); 
    210         return count; 
    211     } 
    212 #endif  /* PJ_LINUX_KERNEL */ 
    213  
    214  
    215 /* 
    216188 * This will finally be obsoleted, since it should be declared in 
    217189 * os_auto.h 
Note: See TracChangeset for help on using the changeset viewer.