summaryrefslogtreecommitdiff
path: root/modules/stdopen
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-05 18:02:32 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-05 18:04:24 -0800
commita4015f0453aeb60cfa70dcdfbd78db62b3a79b62 (patch)
tree1610aa11de37a70de9bc193ff0259b52032dbe53 /modules/stdopen
parent14e1f1c39766bcb3fe4d6ec975ecac4058d11d98 (diff)
downloadgnulib-a4015f0453aeb60cfa70dcdfbd78db62b3a79b62.tar.gz
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.
Diffstat (limited to 'modules/stdopen')
-rw-r--r--modules/stdopen24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/stdopen b/modules/stdopen
new file mode 100644
index 0000000000..81de5765b8
--- /dev/null
+++ b/modules/stdopen
@@ -0,0 +1,24 @@
+Description:
+Arrange for stdin/stdout/stderr to be open.
+
+Files:
+lib/stdopen.c
+lib/stdopen.h
+
+Depends-on:
+fcntl
+unistd
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += stdopen.c
+
+Include:
+"stdopen.h"
+
+License:
+GPL
+
+Maintainer:
+all