Home | History | Annotate | Download | only in asm
      1 /*  DO NOT EDIT THIS FILE.
      2 
      3     It has been auto-edited by fixincludes from:
      4 
      5 	"/usr/include/asm/posix_types.h"
      6 
      7     This had to be done to correct non-standard usages in the
      8     original, manufacturer supplied header file.  */
      9 
     10 /* This file fixes a bug in the __FD_ZERO macro
     11    for older versions of the Linux kernel. */
     12 #ifndef _POSIX_TYPES_H_WRAPPER
     13 #include <features.h>
     14  #include_next <asm/posix_types.h>
     15 
     16 #if defined(__FD_ZERO) && !defined(__GLIBC__)
     17 #undef __FD_ZERO
     18 #define __FD_ZERO(fdsetp) \
     19   do { \
     20     int __d0, __d1; \
     21 __asm__ __volatile__("cld ; rep ; stosl" \
     22 : "=&c" (__d0), "=&D" (__d1) \
     23 : "a" (0), "0" (__FDSET_LONGS), \
     24   "1" ((__kernel_fd_set *) (fdsetp)) :"memory"); \
     25   } while (0)
     26 #endif
     27 
     28 #define _POSIX_TYPES_H_WRAPPER
     29 #endif /* _POSIX_TYPES_H_WRAPPER */
     30