From 72c9a7e958689740cb3449df5732e0956d52ef5b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 24 Sep 2000 11:10:13 +1100 Subject: - (djm) Merged cleanup patch from Mark Miller - (djm) A bit more cleanup - created cygwin_util.h --- cygwin_util.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cygwin_util.h (limited to 'cygwin_util.h') 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 @@ +/* + * + * cygwin_util.c + * + * Author: Corinna Vinschen + * + * Copyright (c) 2000 Corinna Vinschen , Duisburg, Germany + * All rights reserved + * + * Created: Sat Sep 02 12:17:00 2000 cv + * + * This file contains functions for forcing opened file descriptors to + * binary mode on Windows systems. + */ + +#include "config.h" + +#ifdef HAVE_CYGWIN + +int binary_open(const char *filename, int flags, mode_t mode); +int binary_pipe(int fd[2]); +int check_nt_auth(int pwd_authenticated, uid_t uid); +int check_ntsec(const char *filename); + +#define open binary_open +#define pipe binary_pipe + +#endif /* HAVE_CYGWIN */ -- cgit v1.2.3