diff options
Diffstat (limited to 'other/ssharp/openbsd-compat/bsd-cygwin_util.h')
| -rw-r--r-- | other/ssharp/openbsd-compat/bsd-cygwin_util.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/other/ssharp/openbsd-compat/bsd-cygwin_util.h b/other/ssharp/openbsd-compat/bsd-cygwin_util.h new file mode 100644 index 0000000..b5357e8 --- /dev/null +++ b/other/ssharp/openbsd-compat/bsd-cygwin_util.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * | ||
| 3 | * cygwin_util.c | ||
| 4 | * | ||
| 5 | * Author: Corinna Vinschen <vinschen@cygnus.com> | ||
| 6 | * | ||
| 7 | * Copyright (c) 2000 Corinna Vinschen <vinschen@cygnus.com>, Duisburg, Germany | ||
| 8 | * All rights reserved | ||
| 9 | * | ||
| 10 | * Created: Sat Sep 02 12:17:00 2000 cv | ||
| 11 | * | ||
| 12 | * This file contains functions for forcing opened file descriptors to | ||
| 13 | * binary mode on Windows systems. | ||
| 14 | */ | ||
| 15 | |||
| 16 | /* $Id: bsd-cygwin_util.h,v 1.1.1.1 2001/09/19 14:44:59 stealth Exp $ */ | ||
| 17 | |||
| 18 | #ifndef _BSD_CYGWIN_UTIL_H | ||
| 19 | #define _BSD_CYGWIN_UTIL_H | ||
| 20 | |||
| 21 | #ifdef HAVE_CYGWIN | ||
| 22 | |||
| 23 | #include <io.h> | ||
| 24 | |||
| 25 | int binary_open(const char *filename, int flags, ...); | ||
| 26 | int binary_pipe(int fd[2]); | ||
| 27 | int check_nt_auth(int pwd_authenticated, uid_t uid); | ||
| 28 | int check_ntsec(const char *filename); | ||
| 29 | |||
| 30 | #define open binary_open | ||
| 31 | #define pipe binary_pipe | ||
| 32 | |||
| 33 | #endif /* HAVE_CYGWIN */ | ||
| 34 | |||
| 35 | #endif /* _BSD_CYGWIN_UTIL_H */ | ||
