diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-02-22 14:51:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-02-22 14:51:16 +0000 |
commit | c5a4eacc6902e3a09e1074570fb1642974436fab (patch) | |
tree | 2e378be8d3ed758e273499f214c4053ed7be3ee0 /winsup/cygwin/cygerrno.h | |
parent | 79e56091c9e4f21ecf1807e0f0f4441ddddc84e6 (diff) | |
download | cygnal-c5a4eacc6902e3a09e1074570fb1642974436fab.tar.gz cygnal-c5a4eacc6902e3a09e1074570fb1642974436fab.tar.bz2 cygnal-c5a4eacc6902e3a09e1074570fb1642974436fab.zip |
* cygerrno.h: Revert previous patch.
* errno.cc: Ditto.
* dir.cc: Eliminate `dir_suffixes'.
(opendir): Remove usage of `dir_suffixes'.
(rmdir): Ditto.
* fhandler.cc (fhandler_disk_file::open): Remove usage of
`inner_suffixes'.
* path.cc: Rename `inner_suffixes' to `lnk_suffixes'.
(path_conv::check): Remove usage of `inner_suffixes'.
(symlink): Ditto.
(symlink_info::check): Handle checking for `.lnk' in path_conv
exclusively here.
(chdir): Remove usage of `dir_suffixes'.
* shortcut.c: Eliminate debug_printf lines.
(check_shortcut): Don't set error except on failing ReadFile.
* spawn.cc: Remove ".lnk" from `std_suffixes'.
* syscalls.cc (_unlink): Remove usage of `inner_suffixes'.
Remove ".lnk" from `stat_suffixes'.
(_rename): Add check for renaming a symlink to keep the ".lnk"
suffix after renaming.
Diffstat (limited to 'winsup/cygwin/cygerrno.h')
-rw-r--r-- | winsup/cygwin/cygerrno.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h index ad2fad7a1..dd40819b9 100644 --- a/winsup/cygwin/cygerrno.h +++ b/winsup/cygwin/cygerrno.h @@ -8,20 +8,9 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ -#ifdef __cplusplus -extern "C" { -#endif - -int __stdcall geterrno_from_win_error (DWORD code, int deferrno) __attribute__ ((regparm(2))); - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus - void __stdcall seterrno_from_win_error (const char *file, int line, DWORD code) __attribute__ ((regparm(3))); void __stdcall seterrno (const char *, int line) __attribute__ ((regparm(2))); +int __stdcall geterrno_from_win_error (DWORD code, int deferrno) __attribute__ ((regparm(2))); #define __seterrno() seterrno (__FILE__, __LINE__) #define __seterrno_from_win_error(val) seterrno_from_win_error (__FILE__, __LINE__, val) @@ -43,5 +32,3 @@ class save_errno extern const char *__sp_fn; extern int __sp_ln; - -#endif /* __cplusplus */ |