summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/openbsd-compat/bsd-cygwin_util.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-10-07 14:52:30 +0000
committerattilio <attilio@FreeBSD.org>2011-10-07 14:52:30 +0000
commit62842622e5f4dd7e394cb2530b955c9818aaeec0 (patch)
tree49f5e5c93a5ccb6bcbbfa674f9426f3ebfff0d06 /crypto/openssh/openbsd-compat/bsd-cygwin_util.c
parent7df8241791232daa11aee522d16abbdcf12edaee (diff)
parent94a8deed4efbf7e2dba2eda1286d2eb18cb16440 (diff)
downloadFreeBSD-src-62842622e5f4dd7e394cb2530b955c9818aaeec0.zip
FreeBSD-src-62842622e5f4dd7e394cb2530b955c9818aaeec0.tar.gz
MFC
Diffstat (limited to 'crypto/openssh/openbsd-compat/bsd-cygwin_util.c')
-rw-r--r--crypto/openssh/openbsd-compat/bsd-cygwin_util.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/crypto/openssh/openbsd-compat/bsd-cygwin_util.c b/crypto/openssh/openbsd-compat/bsd-cygwin_util.c
index e9fa3a0..9eedc88 100644
--- a/crypto/openssh/openbsd-compat/bsd-cygwin_util.c
+++ b/crypto/openssh/openbsd-compat/bsd-cygwin_util.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2001, Corinna Vinschen <vinschen@cygnus.com>
+ * Copyright (c) 2000, 2001, 2011 Corinna Vinschen <vinschen@redhat.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -34,9 +34,6 @@
#if defined(open) && open == binary_open
# undef open
#endif
-#if defined(pipe) && open == binary_pipe
-# undef pipe
-#endif
#include <sys/types.h>
@@ -59,18 +56,6 @@ binary_open(const char *filename, int flags, ...)
return (open(filename, flags | O_BINARY, mode));
}
-int
-binary_pipe(int fd[2])
-{
- int ret = pipe(fd);
-
- if (!ret) {
- setmode(fd[0], O_BINARY);
- setmode(fd[1], O_BINARY);
- }
- return (ret);
-}
-
int
check_ntsec(const char *filename)
{
OpenPOWER on IntegriCloud