home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22666 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  968 b 

  1. Path: sparky!uunet!math.fu-berlin.de!pyrrhus.hrz.tu-chemnitz.de!hrz.tu-chemnitz.de!jpo
  2. From: jpo@kappa.informatik.tu-chemnitz.de (Joerg Pommnitz)
  3. Newsgroups: comp.os.linux
  4. Subject: Bug in linux include file ?
  5. Date: 4 Jan 1993 18:21:09 +0100
  6. Organization: University of Technology Chemnitz, FRG
  7. Lines: 22
  8. Message-ID: <jpo.726167655@hrz.tu-chemnitz.de>
  9. NNTP-Posting-Host: kappa.informatik.tu-chemnitz.de
  10. Summary: possible bug in linux includes
  11. Keywords: struct fdset changed but macros not ?
  12.  
  13. A few kernel releases before the max number of open
  14. files changed to 256.
  15.  
  16. This influenced the select sys-call. The type fd_set is
  17. now defined as
  18.  
  19. typedef struct fd_set {
  20.     unsigned long fds_bits [__FDSET_LONGS];
  21. } fd_set;
  22.  
  23. where __FDSET_LONGS is 8.
  24.  
  25. There are a few macros to handle this type (FD_SET, 
  26. FD_CLR, ...).
  27.  
  28. But I think these macros havn't changed ! They still
  29. use a single 386 machine instruction to clear/set bits.
  30.  
  31. I think this is wrong.
  32. Any comments ?
  33.  
  34.                 Joerg
  35.