From 7d5d232b50f9f0910d10cb6635d5132f774674f5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 13 Mar 2008 15:18:10 +0000 Subject: * path.sgml: Remove documentation for old path API. Add documentation for new path API. * security.sgml: New file to document cygwin_set_impersonation_token and cygwin_logon_user with only eight years of delay. * shared.sgml: Remove file. * include/sys/cygwin.h (cygwin32_attach_handle_to_fd): Move declaration into fully deprecated function block. (cygwin_logon_user): Move declaration down to declaration of cygwin_set_impersonation_token. --- winsup/cygwin/include/sys/cygwin.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'winsup/cygwin/include/sys/cygwin.h') diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 26daf0f7c..5a7c14df0 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -32,6 +32,7 @@ extern void cygwin32_conv_to_posix_path (const char *, char *); extern void cygwin32_conv_to_full_posix_path (const char *, char *); extern int cygwin32_posix_path_list_p (const char *); extern void cygwin32_split_path (const char *, char *, char *); +extern int cygwin32_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD); #endif /* DEPRECATED INTERFACES. These are restricted to MAX_PATH length. @@ -168,11 +169,6 @@ enum PID_EXITED = 0x80000000 /* Free entry. */ }; -#ifdef WINVER -#ifdef _PATH_PASSWD -extern HANDLE cygwin_logon_user (const struct passwd *, const char *); -#endif - /* This lives in the app and is initialized before jumping into the DLL. It should only contain stuff which the user's process needs to see, or which is needed before the user pointer is initialized, or is needed to @@ -263,10 +259,13 @@ extern void cygwin_premain1 (int argc, char **argv, struct per_process *); extern void cygwin_premain2 (int argc, char **argv, struct per_process *); extern void cygwin_premain3 (int argc, char **argv, struct per_process *); +#ifdef WINVER +#ifdef _PATH_PASSWD +extern HANDLE cygwin_logon_user (const struct passwd *, const char *); +#endif extern void cygwin_set_impersonation_token (const HANDLE); /* included if is included */ -extern int cygwin32_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD); extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD); #ifdef __CYGWIN__ -- cgit v1.2.3