Skip to content
Snippets Groups Projects
Select Git revision
  • 8.0
  • master default protected
  • 9.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
  • v8.0.1964
  • v8.0.1962
  • v8.0.1960
40 results

fdlib.c

Blame
    • Per Hedbor's avatar
      e16e5178
      Removed MAX_FD configure test · e16e5178
      Per Hedbor authored
      It only returns the current max anyway, which is usually
      smaller than the max if you are running as root, and can
      also be changed at any time at runtime.
      
      Instead, use sysconf(_SC_OPEN_MAX) when available if needed, and as a
      last resort a hardcoded value (on Windows), but as a secondary change
      all uses except two was removed:
      
      o Stdio.get_all_active_fd - On systems without /dev/fd and
        /proc/self/fd.
      
      o On NT, the size of FD_SET is now set to a hardcoded value (64k).
      
      The rewrite of get_all_active_fd also speeds it up a lot. Not that it
      is a frequently used function.
      e16e5178
      History
      Removed MAX_FD configure test
      Per Hedbor authored
      It only returns the current max anyway, which is usually
      smaller than the max if you are running as root, and can
      also be changed at any time at runtime.
      
      Instead, use sysconf(_SC_OPEN_MAX) when available if needed, and as a
      last resort a hardcoded value (on Windows), but as a secondary change
      all uses except two was removed:
      
      o Stdio.get_all_active_fd - On systems without /dev/fd and
        /proc/self/fd.
      
      o On NT, the size of FD_SET is now set to a hardcoded value (64k).
      
      The rewrite of get_all_active_fd also speeds it up a lot. Not that it
      is a frequently used function.