summaryrefslogtreecommitdiff
path: root/modules/xbinary-io
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:17:56 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:19:20 -0800
commit820fa6ad064bf3ba81dc9e2cd7fa2b98bb270902 (patch)
treec4de4c1ca4a0dc3d40c4d7ee6efdb3c522f51bd6 /modules/xbinary-io
parent87c456bf6fb9453144890f0941c118a49b20fda5 (diff)
downloadgnulib-820fa6ad064bf3ba81dc9e2cd7fa2b98bb270902.tar.gz
xbinary-io: rename from xsetmode
This patch is taken from suggestions by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL, not ENOTTY, when it is an inappropriate device. * lib/binary-io.h (SET_BINARY): Resurrect. * lib/xbinary-io.c: Rename from lib/xsetmode.c. (xset_binary_mode_error): Rename from xsetmode_error. * lib/xbinary-io.h: Rename from lib/xsetmode.h. (xset_binary_mode): Rename from xsetmode. All uses changed. * modules/xbinary-io: Rename from modules/xsetmode. Update file names. * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name. * NEWS: Update to match revised behavior.
Diffstat (limited to 'modules/xbinary-io')
-rw-r--r--modules/xbinary-io28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/xbinary-io b/modules/xbinary-io
new file mode 100644
index 0000000000..5344805fc5
--- /dev/null
+++ b/modules/xbinary-io
@@ -0,0 +1,28 @@
+Description:
+Checked Binary mode I/O.
+
+Files:
+lib/xbinary-io.h
+lib/xbinary-io.c
+
+Depends-on:
+binary-io
+error
+exitfail
+extern-inline
+stdbool
+verify
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += xbinary-io.h xbinary-io.c
+
+Include:
+"xbinary-io.h"
+
+License:
+LGPL
+
+Maintainer:
+all