summaryrefslogtreecommitdiffstats
path: root/gl/fd-safer.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2009-05-20 00:32:10 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2009-05-20 00:32:10 +0200
commit50b3ff7b91e78a61aca93247bee586d6d7eb27c8 (patch)
treedb4c7eee24479ac7ee6888ce1562facf60159b71 /gl/fd-safer.c
parent2701ccd500e60537a8c2977a81549ff33eeaef3f (diff)
downloadmonitoring-plugins-50b3ff7b91e78a61aca93247bee586d6d7eb27c8.tar.gz
Sync with the latest Gnulib code (cb75dc5)
Signed-off-by: Holger Weiss <holger@zedat.fu-berlin.de>
Diffstat (limited to 'gl/fd-safer.c')
-rw-r--r--gl/fd-safer.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gl/fd-safer.c b/gl/fd-safer.c
index df38c8f7..fb990018 100644
--- a/gl/fd-safer.c
+++ b/gl/fd-safer.c
@@ -1,6 +1,6 @@
1/* Return a safer copy of a file descriptor. 1/* Return a safer copy of a file descriptor.
2 2
3 Copyright (C) 2005, 2006 Free Software Foundation, Inc. 3 Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -24,12 +24,6 @@
24#include <errno.h> 24#include <errno.h>
25 25
26#include <unistd.h> 26#include <unistd.h>
27#ifndef STDIN_FILENO
28# define STDIN_FILENO 0
29#endif
30#ifndef STDERR_FILENO
31# define STDERR_FILENO 2
32#endif
33 27
34/* Return FD, unless FD would be a copy of standard input, output, or 28/* Return FD, unless FD would be a copy of standard input, output, or
35 error; in that case, return a duplicate of FD, closing FD. On 29 error; in that case, return a duplicate of FD, closing FD. On