blob: 7879501e0272f21648bd26aaed40073af5f6e05a [file] [log] [blame]
Damien Miller72c9a7e2000-09-24 11:10:13 +11001/*
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 Miller402b3312001-04-14 00:28:42 +100016/* $Id: bsd-cygwin_util.h,v 1.4 2001/04/13 14:28:43 djm Exp $ */
Damien Millere9cf3572001-02-09 12:55:35 +110017
Damien Miller2deb3f62001-02-18 12:30:55 +110018#ifndef _BSD_CYGWIN_UTIL_H
19#define _BSD_CYGWIN_UTIL_H
Damien Miller72c9a7e2000-09-24 11:10:13 +110020
21#ifdef HAVE_CYGWIN
22
Damien Miller402b3312001-04-14 00:28:42 +100023#include <io.h>
24
Damien Miller05dd7952000-10-01 00:42:48 +110025int binary_open(const char *filename, int flags, ...);
Damien Miller72c9a7e2000-09-24 11:10:13 +110026int binary_pipe(int fd[2]);
27int check_nt_auth(int pwd_authenticated, uid_t uid);
28int check_ntsec(const char *filename);
29
30#define open binary_open
31#define pipe binary_pipe
32
33#endif /* HAVE_CYGWIN */
Damien Miller2deb3f62001-02-18 12:30:55 +110034
35#endif /* _BSD_CYGWIN_UTIL_H */