summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-10-03 09:22:27 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-10-03 09:22:27 +0000
commit3ee82b0876af66fa17d2cc4b40e64da2418347c3 (patch)
tree77777971bf8083a58417389cad55ee5fda6f3bde /usr.bin/ssh/misc.h
parentfaa4db0370ea9a911874922ef7d97d8e26292f89 (diff)
There are lots of place where we want to redirect stdin, stdout
and/or stderr to /dev/null. Factor all these out to a single stdfd_devnull() function that allows selection of which of these to redirect. ok markus@
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r--usr.bin/ssh/misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h
index 7e0af3ce434..553b0922007 100644
--- a/usr.bin/ssh/misc.h
+++ b/usr.bin/ssh/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.87 2020/05/29 11:17:56 dtucker Exp $ */
+/* $OpenBSD: misc.h,v 1.88 2020/10/03 09:22:26 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -90,6 +90,7 @@ const char *atoi_err(const char *, int *);
int parse_absolute_time(const char *, uint64_t *);
void format_absolute_time(uint64_t, char *, size_t);
int path_absolute(const char *);
+int stdfd_devnull(int, int, int);
struct passwd *pwcopy(struct passwd *);
const char *ssh_gai_strerror(int);