source: npl/system/klibc/patches/syscalls-override-detection-of-direct-socket-syscalls-on-i386-m68k-s390.patch @ 892871d

Last change on this file since 892871d was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.4 KB
  • usr/include/arch/i386/klibc/archconfig.h

    From: Ben Hutchings <ben@decadent.org.uk>
    Date: Tue, 05 Jan 2016 21:11:41 +0000
    Subject: syscalls: Override detection of direct socket syscalls on i386, m68k, s390
    Bug-Debian: https://bugs.debian.org/809423
    Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003882.html
    
    The direct socket syscalls are now implemented on i386, m68k and s390,
    making socketcall() obsolete.  However we need to keep klibc/unstable
    working with the last stable kernel version (3.16) so we shouldn't use
    them yet.
    
    ---
    a b  
    1515/* We have __libc_arch_init() */
    1616#define _KLIBC_HAS_ARCHINIT 1
    1717
     18/* Use sys_socketcall unconditionally */
     19#define _KLIBC_SYS_SOCKETCALL 1
     20
    1821#endif                          /* _KLIBC_ARCHCONFIG_H */
  • usr/include/arch/m68k/klibc/archconfig.h

    a b  
    1212/* On m68k, sys_mmap2 uses the current page size as the shift factor */
    1313#define _KLIBC_MMAP2_SHIFT      __getpageshift()
    1414
     15/* Use sys_socketcall unconditionally */
     16#define _KLIBC_SYS_SOCKETCALL 1
     17
    1518#endif                          /* _KLIBC_ARCHCONFIG_H */
  • usr/include/arch/s390/klibc/archconfig.h

    a b  
    1212/* Both s390 and s390x use the "32-bit" version of this structure */
    1313#define _KLIBC_STATFS_F_TYPE_64 0
    1414
     15/* Use sys_socketcall unconditionally */
     16#define _KLIBC_SYS_SOCKETCALL 1
     17
    1518#endif                          /* _KLIBC_ARCHCONFIG_H */
Note: See TracBrowser for help on using the repository browser.