diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-24 11:10:13 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-24 11:10:13 +1100 |
commit | 72c9a7e958689740cb3449df5732e0956d52ef5b (patch) | |
tree | 70f861946c4e7750bd04cdd57fd7952da1c889fe /cygwin_util.h | |
parent | 62cee00753ef8ce31b322ce6a14318cb974e883d (diff) |
- (djm) Merged cleanup patch from Mark Miller <markm@swoon.net>
- (djm) A bit more cleanup - created cygwin_util.h
Diffstat (limited to 'cygwin_util.h')
-rw-r--r-- | cygwin_util.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cygwin_util.h b/cygwin_util.h new file mode 100644 index 000000000..efd28bfc9 --- /dev/null +++ b/cygwin_util.h | |||
@@ -0,0 +1,28 @@ | |||
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 | #include "config.h" | ||
17 | |||
18 | #ifdef HAVE_CYGWIN | ||
19 | |||
20 | int binary_open(const char *filename, int flags, mode_t mode); | ||
21 | int binary_pipe(int fd[2]); | ||
22 | int check_nt_auth(int pwd_authenticated, uid_t uid); | ||
23 | int check_ntsec(const char *filename); | ||
24 | |||
25 | #define open binary_open | ||
26 | #define pipe binary_pipe | ||
27 | |||
28 | #endif /* HAVE_CYGWIN */ | ||