diff options
author | Christopher Faylor <me@cgf.cx> | 2001-06-28 02:19:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-06-28 02:19:57 +0000 |
commit | 7a4078ee340b7f15c839257d6fa895d92abe0224 (patch) | |
tree | c12bcf5b7e6d1cfcf06276b8055aadc5d779ddd7 /winsup/cygwin/syscalls.cc | |
parent | c135faa8b30fd29a8b8e20cda6b07a882a042cbe (diff) | |
download | cygnal-7a4078ee340b7f15c839257d6fa895d92abe0224.tar.gz cygnal-7a4078ee340b7f15c839257d6fa895d92abe0224.tar.bz2 cygnal-7a4078ee340b7f15c839257d6fa895d92abe0224.zip |
Change check_null_empty_path* to check_null_empty_str* throughout.
* path.cc (path_conv::check): Add signal protection here since retrieving info
about remote shares can take some time.
* path.h (check_null_empty_str_errno): Convert to a function prototype.
* path.cc (check_null_empty_str): Move to miscfuncs.cc.
* miscfuncs.cc (check_null_empty_str_errno): New function.
(__check_null_invalid_struct): Ditto.
(__check_null_invalid_struct_errno): Ditto.
(check_null_empty_str): Change from VirtualQuery to IsBadWritePtr.
* thread.cc (check_valid_pointer): Ditto.
* resource.cc (getrlimit): Use check_null_invalid_struct macro for checking
validity of pointer.
(setrlimit): Ditto.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 8b1a41e1e..7fc972e6c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -445,7 +445,7 @@ _open (const char *unix_path, int flags, ...) sigframe thisframe (mainthread); syscall_printf ("open (%s, %p)", unix_path, flags); - if (!check_null_empty_path_errno (unix_path)) + if (!check_null_empty_str_errno (unix_path)) { SetResourceLock (LOCK_FD_LIST, WRITE_LOCK|READ_LOCK, " open "); @@ -698,7 +698,7 @@ chown_worker (const char *name, unsigned fmode, uid_t uid, gid_t gid) uid_t old_uid; gid_t old_gid; - if (check_null_empty_path_errno (name)) + if (check_null_empty_str_errno (name)) return -1; if (os_being_run != winNT) // real chown only works on NT |