summaryrefslogtreecommitdiff
path: root/lib/stdopen.h
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* Add some copyright headers.Bruno Haible2020-07-051-0/+18
| | | | | | | | | | | | | | | * lib/dev-ino.h: Add copyright header. * lib/di-set.h: Likewise. * lib/fchown-stub.c: Likewise. * lib/file-set.h: Likewise. * lib/hash-triple.h: Likewise. * lib/idcache.h: Likewise. * lib/ino-map.h: Likewise. * lib/mkancesdirs.h: Likewise. * lib/scratch_buffer.h: Likewise. * lib/se-context.in.h: Likewise. * lib/stdopen.h: Likewise. * lib/userspec.h: Likewise.
* stdopen: modernize and simplifyPaul Eggert2019-01-051-3/+1
| | | | | | | | | | | * lib/stdopen.c: Update copyright date Do not include sys/types.h; no longer needed these days. (stdopen): Use C99-style decl in loop. Return int errno value, rather than just a bool. Do not worry about fd mismatches, since the caller cares only if 0, 1, 2 are occupied. * lib/stdopen.h: No need to include <stdbool.h>. * m4/stdopen.m4: Remove. * modules/stdopen: New file.
* stdopen: copy from last use in coreutilsPaul Eggert2019-01-051-0/+16
* lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4: New files, taken from their last commit in coreutils 2007-07-23T12:35:58Z!jim@meyering.net 71aa3ea88084d17bcb4fc1031ad7b66f8647115e.