OSDN Git Service

Throughout, eliminate third argument to path_conv and use new PC_* constants
authorcgf <cgf>
Mon, 17 Jul 2000 19:18:21 +0000 (19:18 +0000)
committercgf <cgf>
Mon, 17 Jul 2000 19:18:21 +0000 (19:18 +0000)
commit7d95a4779b52e8a76cf3d47afd63e8dc59b4b0d6
tree7c17132b615d2e5d0e0f8f25eeb531f0b63da5f1
parent91c7477666832683db27f2bb9a8095a5361abb24
Throughout, eliminate third argument to path_conv and use new PC_* constants
for second argument.
* path.h: Generalize SYMLINK_* constants to PC_*.
(path_conv): Create a new method.  Fold third argument into second.
* dll_init.cc (dll_list::alloc): Try harder to find space to allocate dll
struct.
(dll_dllcrt0): Don't check sanity if we've already called dll_crt0.
* path.cc (path_conv::check): Don't check for a null or empty path unless
specifically told with a flag setting.
(check_null_empty_path): New function, adapted from macro.
* syscalls.cc (_rename): Use already-determined file attributes rather than
checking again.
* lib/cygwin/cygwin_attach.dll.c (cygwin_attach_dll): Use a static per_process
structure since this is apparently supposed to be zeroed.
* lib/cygwin_crt0.c (cygwin_crt0): Zero per_process structure sent to older
DLLs.
15 files changed:
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/dir.cc
winsup/cygwin/dlfcn.cc
winsup/cygwin/dll_init.cc
winsup/cygwin/environ.cc
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler_raw.cc
winsup/cygwin/lib/cygwin_attach_dll.c
winsup/cygwin/lib/cygwin_crt0.c
winsup/cygwin/path.cc
winsup/cygwin/path.h
winsup/cygwin/security.cc
winsup/cygwin/spawn.cc
winsup/cygwin/syscalls.cc