diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-27 07:55:50 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-27 07:55:50 +0000 |
commit | 0d7468cabdb40152d7715356c4768d6459c119da (patch) | |
tree | e4baa23887dbba6a7c287c3ef210b73d3c9eea1f /lib/chown.c | |
parent | cc4d59e9cd0a54118dc0f0dc833539102a42ea4a (diff) | |
download | coreutils-0d7468cabdb40152d7715356c4768d6459c119da.tar.xz |
(defined_S_IFMT): New macro.
Include stat-macros.h.
Include stdlib.h, for abort().
Don't include stdio.h or assert.h; no longer needed.
(same_file_type): Don't assume S_IFMT is defined, as POSIX
does not require this. Don't assume S_IFCHR and S_IFBLK have
their usual sort of bit pattern.
(fchmod_new): Open with O_NOCTTY for as well, for minor
improvement on hosts where that matters. Don't bother to assert,
since the caller (in this source file) checks the same thing.
Discard any errno from a close failure, for consistency with other
code.
Diffstat (limited to 'lib/chown.c')
0 files changed, 0 insertions, 0 deletions