]> Savannah Git Hosting - gnulib.git/commit
stdopen: modernize and simplify
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Jan 2019 02:02:32 +0000 (18:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Jan 2019 02:04:24 +0000 (18:04 -0800)
commita4015f0453aeb60cfa70dcdfbd78db62b3a79b62
tree1610aa11de37a70de9bc193ff0259b52032dbe53
parent14e1f1c39766bcb3fe4d6ec975ecac4058d11d98
stdopen: modernize and simplify

* 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.
ChangeLog
lib/stdopen.c
lib/stdopen.h
m4/stdopen.m4 [deleted file]
modules/stdopen [new file with mode: 0644]