summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:40:02 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:40:50 -0800
commit1c27b56095b4a82be7d072baabc09262cb4227e5 (patch)
tree116db7c0c9eec1c6321db7e079975f897554ea7c /src/head.c
parenta24e9cc55c36f148639557767a39958683577b72 (diff)
downloadcoreutils-1c27b56095b4a82be7d072baabc09262cb4227e5.tar.xz
maint: xsetmode renamed to xbinary-ioHEADmaster
* bootstrap.conf, src/base64.c, src/cat.c, src/cksum.c: * src/head.c, src/md5sum.c, src/od.c, src/split.c, src/sum.c: * src/tac.c, src/tail.c, src/tee.c, src/tr.c, src/wc.c: Adjust to renaming of the xsetmode module to xbinary-io, and of the xsetmode function to xset_binary_mode.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/head.c b/src/head.c
index 49c942fea..d284b30de 100644
--- a/src/head.c
+++ b/src/head.c
@@ -37,8 +37,8 @@
#include "quote.h"
#include "safe-read.h"
#include "stat-size.h"
+#include "xbinary-io.h"
#include "xdectoint.h"
-#include "xsetmode.h"
/* The official name of this program (e.g., no 'g' prefix). */
#define PROGRAM_NAME "head"
@@ -878,7 +878,7 @@ head_file (const char *filename, uintmax_t n_units, bool count_lines,
have_read_stdin = true;
fd = STDIN_FILENO;
filename = _("standard input");
- xsetmode (STDIN_FILENO, O_BINARY);
+ xset_binary_mode (STDIN_FILENO, O_BINARY);
}
else
{
@@ -1082,7 +1082,7 @@ main (int argc, char **argv)
? (char const *const *) &argv[optind]
: default_file_list);
- xsetmode (STDOUT_FILENO, O_BINARY);
+ xset_binary_mode (STDOUT_FILENO, O_BINARY);
for (i = 0; file_list[i]; ++i)
ok &= head_file (file_list[i], n_units, count_lines, elide_from_end);