30 #ifndef _BSD_CYGWIN_UTIL_H
31 #define _BSD_CYGWIN_UTIL_H
39 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
45 extern HANDLE cygwin_logon_user (
const struct passwd *,
const char *);
46 extern void cygwin_set_impersonation_token (
const HANDLE);
48 #include <sys/cygwin.h>
51 #define CYGWIN_SSH_PRIVSEP_USER (cygwin_ssh_privsep_user())
52 const char *cygwin_ssh_privsep_user();
54 int binary_open(
const char *,
int , ...);
55 int check_ntsec(
const char *);
56 char **fetch_windows_environment(
void);
57 void free_windows_environment(
char **);
58 int cygwin_ug_match_pattern_list(
const char *,
const char *);
60 #ifndef NO_BINARY_OPEN
61 #define open binary_open