1. 27 Sep, 2012 6 commits
  2. 15 Aug, 2012 1 commit
  3. 04 Aug, 2012 1 commit
  4. 31 Jul, 2012 2 commits
  5. 29 Jul, 2012 1 commit
  6. 22 Jul, 2012 1 commit
  7. 14 Jul, 2012 12 commits
  8. 08 Jul, 2012 1 commit
  9. 01 Jun, 2012 4 commits
  10. 03 May, 2012 2 commits
  11. 09 Apr, 2012 1 commit
  12. 19 Feb, 2012 1 commit
    • David Howells's avatar
      Wrap accesses to the fd_sets in struct fdtable · 1dce27c5
      David Howells authored
      Wrap accesses to the fd_sets in struct fdtable (for recording open files and
      close-on-exec flags) so that we can move away from using fd_sets since we
      abuse the fd_set structs by not allocating the full-sized structure under
      normal circumstances and by non-core code looking at the internals of the
      The first abuse means that use of FD_ZERO() on these fd_sets is not permitted,
      since that cannot be told about their abnormal lengths.
      This introduces six wrapper functions for setting, clearing and testing
      close-on-exec flags and fd-is-open flags:
      	void __set_close_on_exec(int fd, struct fdtable *fdt);
      	void __clear_close_on_exec(int fd, struct fdtable *fdt);
      	bool close_on_exec(int fd, const struct fdtable *fdt);
      	void __set_open_fd(int fd, struct fdtable *fdt);
      	void __clear_open_fd(int fd, struct fdtable *fdt);
      	bool fd_is_open(int fd, const struct fdtable *fdt);
      Note that I've prepended '__' to the names of the set/clear functions because
      they require the caller to hold a lock to use them.
      Note also that I haven't added wrappers for looking behind the scenes at the
      the array.  Possibly that should exist too.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Link: http://lkml.kernel.org/r/20120216174942.23314.1364.stgit@warthog.procyon.org.ukSigned-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
  13. 07 Jan, 2012 1 commit
  14. 04 Jan, 2012 3 commits
  15. 28 Oct, 2011 1 commit
  16. 26 Jul, 2011 1 commit
    • Al Viro's avatar
      merge fchmod() and fchmodat() guts, kill ancient broken kludge · e57712eb
      Al Viro authored
      The kludge in question is undocumented and doesn't work for 32bit
      binaries on amd64, sparc64 and s390.  Passing (mode_t)-1 as
      mode had (since 0.99.14v and contrary to behaviour of any
      other Unix, prescriptions of POSIX, SuS and our own manpages)
      was kinda-sorta no-op.  Note that any software relying on
      that (and looking for examples shows none) would be visibly
      broken on sparc64, where practically all userland is built
      32bit.  No such complaints noticed...
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
  17. 22 Jul, 2011 1 commit