2000-09-24 02:10:13 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* cygwin_util.c
|
|
|
|
*
|
|
|
|
* Author: Corinna Vinschen <vinschen@cygnus.com>
|
|
|
|
*
|
|
|
|
* Copyright (c) 2000 Corinna Vinschen <vinschen@cygnus.com>, 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.
|
|
|
|
*/
|
|
|
|
|
2001-12-29 04:08:28 +01:00
|
|
|
/* $Id: bsd-cygwin_util.h,v 1.6 2001/12/29 03:08:30 djm Exp $ */
|
2001-02-09 02:55:35 +01:00
|
|
|
|
2001-02-18 02:30:55 +01:00
|
|
|
#ifndef _BSD_CYGWIN_UTIL_H
|
|
|
|
#define _BSD_CYGWIN_UTIL_H
|
2000-09-24 02:10:13 +02:00
|
|
|
|
|
|
|
#ifdef HAVE_CYGWIN
|
|
|
|
|
2001-04-13 16:28:42 +02:00
|
|
|
#include <io.h>
|
|
|
|
|
2000-09-30 15:42:48 +02:00
|
|
|
int binary_open(const char *filename, int flags, ...);
|
2000-09-24 02:10:13 +02:00
|
|
|
int binary_pipe(int fd[2]);
|
2001-12-29 04:08:28 +01:00
|
|
|
int check_nt_auth(int pwd_authenticated, struct passwd *pw);
|
2000-09-24 02:10:13 +02:00
|
|
|
int check_ntsec(const char *filename);
|
2001-11-27 02:19:43 +01:00
|
|
|
void register_9x_service(void);
|
2000-09-24 02:10:13 +02:00
|
|
|
|
|
|
|
#define open binary_open
|
|
|
|
#define pipe binary_pipe
|
|
|
|
|
|
|
|
#endif /* HAVE_CYGWIN */
|
2001-02-18 02:30:55 +01:00
|
|
|
|
|
|
|
#endif /* _BSD_CYGWIN_UTIL_H */
|