summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * dll_init.cc (dll_list::alloc): Fix debugging output.Christopher Faylor2000-07-182-1/+5
|
* Update ChangeLog.Christopher Faylor2000-07-181-0/+2
|
* Throughout, eliminate third argument to path_conv and use new PC_* constantsChristopher Faylor2000-07-1715-99/+147
| | | | | | | | | | | | | | | | | | 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.
* Patch suggested by Eric Fifer <EFifer@sanwaint.com>Corinna Vinschen2000-07-172-3/+8
| | | | * poll.cc (poll): Fix erroneous negations.
* * environ.cc (setenv): Use __cygwin_environ instead ofCorinna Vinschen2000-07-172-2/+7
| | | | environ after reallocating environment space.
* * _cygwin_crt0_common.cc: Undef 'environ' or suffer compiler error.Christopher Faylor2000-07-172-0/+6
|
* * environ.cc: Use new definition of "environ" throughout.Christopher Faylor2000-07-165-17/+42
| | | | | | | | (environ_init): Explicitly initialize __cygwin_environ. (cur_environ): New function. Detects when user has updated their environment. * exec.cc: Use 'environ' define throughout rather than __cygwin_environ. * spawn.cc: Ditto. * winsup.h: Declare cur_environ, main_environ, environ.
* * acconfig.h: Add support for NEWVFORK.Christopher Faylor2000-07-167-52/+98
| | | | | | | | | * config.h.in: Ditto. * configure.in: Add --enable-vfork option. * configure: Regenerate. * dcrt0.cc (quoted): Detect and fix up quoted backslashes. * sigproc.cc (proc_subproc): Correctly name handle of newly added child process to avoid erroneous debugging messages about closing the wrong handle.
* * spawn.cc (spawn_guts): Use \ for quoting '"'.Christopher Faylor2000-07-163-17/+29
| | | | * dcrt0.cc (quoted): Understand \ quoting for '"'.
* Slightly more efficient version of previous change.Christopher Faylor2000-07-161-1/+1
|
* * dcrt0.cc (build_argv): Strip quotes from argv[0] since it should never beChristopher Faylor2000-07-163-52/+41
| | | | globified.
* Update comments.Christopher Faylor2000-07-161-15/+14
|
* * dll_init.cc (dll_list::alloc): Round correctly. Use VirtualAlloc sinceChristopher Faylor2000-07-152-7/+23
| | | | | | shared file mapping is unnecessary. (dll_list::detach): Release memory via VirtualFree since there we no longer use shared file mapping.
* * hinfo.cc (hinfo::linearize_fd_array): Make max_used_fd an int so that we canChristopher Faylor2000-07-1513-477/+408
| | | | | | | | | | | | | | | | | | | | detect when there are no fds to pass. * dcrt0.cc (host_dependent_constants::init): Revert Sat Mar 18 01:32:04 2000 change. (dll_crt0_1): Set "cygwin_finished_initializing" flag. (dll_crt0): Don't perform memcpy if uptr is already set to internal structure. (_dll_crt0): Remember location of programs envptr. * dll_init.h (per_module, dll, dll_list): Revamp. * dll_init.cc: Revamp. Use new classes. * fork.cc (fork): Use new revamped dll, dll_list, and per_module stuff. * environ.cc: Use __cygwin_environ throughout rather than the user_data->envptr. * exec.cc: Ditto. * spawn.cc: Ditto. * winsup.h: Declare update_envptrs, cygwin_finished_initializing. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Revert previous change. * lib/cygwin_attach_dll.cc (cygwin_attach_dll): Always pass in own per_process structure or we end up overwriting information from the main program.
* * mount.cc (mount_already_exists): Slightly rearrange.Corinna Vinschen2000-07-132-13/+24
| | | | Change message texts.
* * mount.cc (mount_already_exists): Additional warning messageCorinna Vinschen2000-07-132-0/+11
| | | | if mount point exists with another mount type.
* * debug.cc (thread_stub): Use impure_ptr in place of reent_data.Christopher Faylor2000-07-123-18/+9
| | | | | * dll_init.cc (dll_dllcrt0): Replace erroneous use of local symbol with correct __cygwin_user_data->impure_ptr.
* * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Don't reset environ ifChristopher Faylor2000-07-123-2/+10
| | | | already set.
* * include/shlobj.h: add CSIDL_COMMON_*DJ Delorie2000-07-112-0/+10
|
* * fhandler_console.cc (fhandler_console::read): Unicode interface toChristopher Faylor2000-07-102-2/+12
| | | | | ReadConsoleInput only exists on W2K, so use workaround from Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
* Add missing text.Christopher Faylor2000-07-101-1/+3
|
* * Makefile.in (install): Install textmode.o as well as binmode.o.Christopher Faylor2000-07-103-13/+20
|
* * spawn.cc (spawn_guts): Close handle `hToken' only if it's notCorinna Vinschen2000-07-093-2/+9
| | | | | | copied from myself->token. * syscalls.cc (seteuid): Replace CopySid by memcpy which is foolproof here.
* Slight optimization.Christopher Faylor2000-07-091-1/+1
|
* * cygwin.din: Export _getmode and getmode to allow querying of binary state ofChristopher Faylor2000-07-098-54/+125
| | | | | | | | | | | | | | | an fd. * external.cc (cygwin_internal): Add handling of perfile_table setting. * fhandler.cc (perfile_table): New global. (fhandler_base::get_default_fmode): New method to return a file's default mode based on its name. (fhandler_base::open): Use get_default_mode method to determine a file's mode. Record file mode in file flags. * fhandler.h (fhandler_base): Declare get_default_fmode * syscalls.cc (getmode): New function. * sys/cygwin.h (__cygwin_perfile): New structure. (cygwin_getinfo_types): Move outside of WINVER conditional. (per_process): Move inside of WINVER conditional.
* * external.cc (cygwin_internal): Export __cygwin_user_data.Christopher Faylor2000-07-087-42/+96
| | | | | | | | | | | | | | * include/sys/cygwin.h: Allow definition of per_process even when not compiling with C++. (cygwin_getinfo_types): Add CW_USER_DATA. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Get __cygwin_user_data pointer from cygwin_internal. If it doesn't exist, return failure. Use either this pointer or passed in pointer throughout. Clear forkee. * lib/crt0.h: Accomodate argument changes to _cygwin_crt0_common. * lib/cygwin_attach_dll.c (cygwin_attach_dll): Reorganize to allow use of newer binaries with older DLLs. Detect older DLLs when _cygwin_crt0_common returns 0 and allocate space for a per_process structure on the stack. * lib/cygwin_crt0.c (cygwin_crt0): Ditto.
* * include/sys/cygwin.h: Hide internal data types in per_processCorinna Vinschen2000-07-072-0/+10
| | | | when not __INSIDE_CYGWIN__.
* * dcrt0.cc (__cygwin_user_data): Initialize.Christopher Faylor2000-07-056-89/+85
| | | | | | | | | | | | | | | | | | | | | (dll_crt0_1): Eliminate user_data initialization. (dll_crt0): Set up impure_ptr_ptr for older executables. (cygwin_dll_init): Eliminate user_data initializations. (__api_fatal): Don't check for user_data initialization. * dll_init.cc (struct dll): Store entire contents of per_process rather than just a pointer. (add): Ditto. (initOneDll): Don't check for user_data initialization. (DllList::recordDll): Store contents of per_process argument. (DllList::detachDll): Pass address of per_process field. (DllList::initAll): Ditto. (DllList::doGlobalDestructorsOfDlls): Ditto. (DllListIterator::operator *): Ditto. (dll_dllcrt0): Default to __cygwin_user_data if arg is NULL. * include/sys/cygwin.h: Reorganize per_process to eliminate obsolete fields and accomodate new way of initializing. * lib/_cygwin_crt0_common: Initialize _impure_ptr from __cygwin_user_data.impure_ptr.
* * exceptions.cc (try_to_debug): Prevent recursive spawning of JIT debugger.Christopher Faylor2000-07-042-29/+64
| | | | Treat special event from debugger as command to continue.
* * poll.cc (poll): Zero out `open_fds' as well.Corinna Vinschen2000-07-042-0/+5
|
* * include/cygwin/version.h: Bump API minor version to 24.Corinna Vinschen2000-07-042-1/+6
|
* * security.cc (read_sd): Eliminate OemToChar.Corinna Vinschen2000-07-042-3/+5
|
* * poll.cc: New file. Implement `poll' system call.Corinna Vinschen2000-07-046-1/+119
| | | | | | | * include/poll.h: Ditto. * include/sys/poll.h: Ditto. * Makefile.in: Add poll.o as dependency. * cygwin.din: Add poll and _poll symbols.
* "Posting Guidelines": New name for old entry.David Starks-Browning2000-07-041-45/+75
| | | | | | | | | "Multiple copies of DLL": shared region corrupt error message. "Why the weird directory structure": re-wrote for latest. "Symlinks on Samba": fix typo. "Where is glibc": new entry. "HT build relocatable dll": (interim update) link to Carl Thompson's message in cygwin list. "Can I mix msvc++ and gcc objects": remove disclaimer.
* "Contents": Add package opengl.David Starks-Browning2000-07-041-2/+2
|
* * dcrt0.cc (dll_crt0_1): Eliminate SetFileApisToOEM and CharToOem.Christopher Faylor2000-07-044-19/+30
| | | | | | | | | | * (dummy_autoload): Add functions used in fhandler_console. * fhandler_console.cc (fhandler_console::read): Use ENCHANCED_KEY flag to distinguish extended keys. Translate an input character from the OEM code page to the ANSI code page. * (fhandler_console::write_normal): Translate output characters from the ANSI code page to the OEM code page. * syscalls.cc (_link): Use MultiByteToWideChar instead of OemToCharW.
* Revert errnoneous commit.Christopher Faylor2000-07-034-30/+16
|
* * exceptions.cc (stack_info::walk): Use method to find offset.Christopher Faylor2000-07-036-37/+68
| | | | | | | | (handle_exceptions): Be more assertive in finding ebp for use under W2K. Create a dummy stack frame for cases where program is dying and a stack dump is being output. (sig_handle): Fill out a GetThreadContext for use with a user-generated "core dump".
* * include/cygwin/socket.h: Remove SOCK_PACKET define since it'sCorinna Vinschen2000-07-032-5/+5
| | | | not supported by Windows sockets.
* * dcrt0.cc (user32_init): Add primitive guard against concurrent attempts toChristopher Faylor2000-07-032-3/+32
| | | | | | call this function. Also add temporary debugging code to display a message if the function is called multiple times. (api32_init): Ditto.
* Replaced buggy ChangeLog entryCorinna Vinschen2000-07-021-4/+10
|
* * winsup.h: Define MAX_SID_LEN and new MAX_HOST_NAME.Corinna Vinschen2000-07-029-27/+33
| | | | | | | | | | | | | | * fork.cc (fork): Use above defines instead of numerical constants. * shared.cc (sec_user): Ditto. * shared.h (class pinfo): Ditto. * syscall.cc (seteuid): Ditto. * spawn.cc (_spawnve): Ditto. Eliminate conditional. (spawn_guts): Set child->uid = USHRT_MAX when user context will be changed in child process. * uinfo.cc (uinfo_init): Check for myself->uid instead of myself->psid to avoid reloading of /etc/passwd on process startup if ntsec is off. Use above defines instead of numerical constants. * security.cc: Move define for MAX_SID_LEN to winsup.h.
* Add some comments.Christopher Faylor2000-07-021-0/+2
|
* * uinfo.cc (uinfo_init): Eliminate calls to read_etc_group()Corinna Vinschen2000-07-022-27/+16
| | | | and read_etc_passwd().
* Changes by Kazuhiro Fujieda <fujieda@jaist.ac.jp>Corinna Vinschen2000-07-0113-21/+31
| | | | | | | | | | | | | | | | | * assert.cc (__assert): Reduce dependency on newlib. * exec.cc: Eliminate unnecessary inclusion of ctype.h. * glob.c: Ditto. * hinfo.cc: Ditto. * init.cc: Ditto. * strace.cc: Ditto. * tty.cc: Ditto. * grp.cc (parse_grp): Eliminate atoi. * passwd.cc (grab_int): Ditto. * grp.cc (getgroups): Eliminate str{n,}casecmp. * path.cc (get_raw_device_number): Ditto. * path.cc (sort_by_native_name): Ditto. * spawn.cc (iscmd): Ditto. * uinfo.cc (internal_getlogin): Ditto.
* * binmode.c (cygwin_premain0): Fix erroneous clearing of bit.Christopher Faylor2000-07-013-2/+7
| | | | * textmode.c (cygwin_premain0): Ditto.
* Remove asm labelling from _dll_crt0 since it seems to confuse different versionsChristopher Faylor2000-07-011-1/+1
| | | | of gcc differently.
* * dcrt0.cc (_dll_crt0): Renamed from dll_crt0 ().Christopher Faylor2000-07-015-7/+14
| | | | | | * winsup.h: Accomodate above change. * cygwin.din: Ditto. * lib/cygwin_crt0.c: Ditto.
* * Makefile.in: Find getopt.c in cygwin/lib subdirectory.Christopher Faylor2000-07-012-1/+5
|
* Forgot perthread.h.Christopher Faylor2000-07-012-0/+38
|