Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 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 | |
Damien Miller | 402b331 | 2001-04-14 00:28:42 +1000 | [diff] [blame^] | 16 | /* $Id: bsd-cygwin_util.h,v 1.4 2001/04/13 14:28:43 djm Exp $ */ |
Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame] | 17 | |
Damien Miller | 2deb3f6 | 2001-02-18 12:30:55 +1100 | [diff] [blame] | 18 | #ifndef _BSD_CYGWIN_UTIL_H |
| 19 | #define _BSD_CYGWIN_UTIL_H |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 20 | |
| 21 | #ifdef HAVE_CYGWIN |
| 22 | |
Damien Miller | 402b331 | 2001-04-14 00:28:42 +1000 | [diff] [blame^] | 23 | #include <io.h> |
| 24 | |
Damien Miller | 05dd795 | 2000-10-01 00:42:48 +1100 | [diff] [blame] | 25 | int binary_open(const char *filename, int flags, ...); |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 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 */ |
Damien Miller | 2deb3f6 | 2001-02-18 12:30:55 +1100 | [diff] [blame] | 34 | |
| 35 | #endif /* _BSD_CYGWIN_UTIL_H */ |