summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * include/cygwin/version.h: Bump DLL minor version number to 8.Christopher Faylor2000-12-252-1/+5
|
* Fix syntax.Corinna Vinschen2000-12-201-1/+1
|
* * autoload.cc: Add load statemant for SetSecurityDescriptorControl.Corinna Vinschen2000-12-203-0/+22
| | | | | * security.cc (alloc_sd): Always set SE_DACL_PROTECTED flag on Win2K and higher.
* * exceptions.cc (reset_signal_arrived): Make global to avoid inlining.Christopher Faylor2000-12-202-2/+5
|
* * fhandler_serial.cc (fhandler_serial::raw_read): Always find number of bytesChristopher Faylor2000-12-203-10/+16
| | | | ready to be read whether overlapped_armed or not.
* * syscalls.cc (remove): New function, overriding the newlibCorinna Vinschen2000-12-192-0/+24
| | | | implementation.
* * environ.cc (struct parse_thing): Add entry for new CYGWIN optionCorinna Vinschen2000-12-197-4/+25
| | | | | | | | | | | `smbntsec'. * path.cc (path_conv::check): Check path for being a remote path. If so and `allow_smbntsec' is set to FALSE, set has_acls to FALSE. * security.cc: Add global definition for `allow_smbntsec'. * security.h: Add extern declaration for `allow_smbntsec'. * fhandler.cc (fhandler_disk_file::open): Eliminate extern declaration of `allow_ntsec'. * syscalls.cc: Ditto.
* * fhandler_console.cc (read): Add support for xterm-style mouse eventChristopher Faylor2000-12-163-38/+159
| | | | | | | | reporting. (fhandler_console::char_command): Honor mouse events. (fhandler_console::open): Enable mouse input events. (fhandler_console::input_tcsetattr): Ditto. * select.cc (peek_console): Add check for mouse events.
* * path.cc (normalize_posix_path): Calculate path name length overruns moreChristopher Faylor2000-12-153-10/+20
| | | | | | dynamically. (normalize_win32_path): Ditto. * Makefile.in: Avoid scanning the directory twice for *.d files.
* * fhandler.h (fhandler_console): Add additional argument to char_commandChristopher Faylor2000-12-153-127/+51
| | | | | | | | method. * fhandler_console.cc (fhandler_console::read): Revert previously misapplied patch. (fhandler_console::char_command): Add a second argument. (fhandler_console::write): Recognize when a '?' is found after a <esc>[.
* * net.cc (cygwin_rexec): Eliminate superfluous call toCorinna Vinschen2000-12-113-4/+13
| | | | | `set_socket_inheritance'. * include/sys/socket.h: Add SUS defines for option values to `shutdown'.
* * include/sysexits: New file.Christopher Faylor2000-12-102-0/+122
|
* * autoload.cc: Autoload CharToOemA.Christopher Faylor2000-12-109-48/+100
| | | | | | | | | | | | | | | | | * dcrt0.cc (dll_crt0_1): Translate command line to OEM if current codepage is OEM. * environ.cc: Add new option 'codepage' to CYGWIN environment variable. * fhandler_clipboard.cc (fhandler_clipboard::read): Read clipboard in OEM mode if current codepage is OEM. * fhandler_console.cc (fhandler_console::read): Only translate console input if current codepage is ANSI. * fhandler_console.cc (fhandler_console::write_normal): Translate output data if current codepage is ANSI. * pinfo.cc (codepage_init): New function. Setup current codepage from CYGWIN environment variable and set codepage for file APIs. * security.cc (read_sd): Translate file name to it if current codepage is OEM. * winsup.h: (sys_wcstombs,sys_mbstowcs): Use current codepage for translations between multibyte and widechar string and vice versa.
* * path.cc (normalize_win32_path): Check for explicit use of two slashes at theChristopher Faylor2000-12-093-39/+135
| | | | | | beginning of a path. These should be treated specially regardless of whether they are UNC paths or old-style //a paths. Avoid adding cwd to a path if the path already begins with '/'.
* * path.cc (normalize_win32_path): Reorganize logic to accomodate chroot.Christopher Faylor2000-12-093-27/+35
| | | | | | Always check for MAX_PATH overrun. Avoid adding one too many backslashes when src path begins with a slash. From Corinna Vinschen. * winsup.h: Force demangling for dll_crt0 for newer compilers.
* * cygwin.din: Declare strtok_r for the import lib. Already in the DLL.Corinna Vinschen2000-12-072-1/+7
|
* * winsup/cygwin/include/sys/uio.h: readv: Correct prototypeCorinna Vinschen2000-12-062-2/+7
| | | | writev: ditto.
* * include/sys/uio.h: Include <sys/cdefs.h>. Use __BEGIN_DECL andCorinna Vinschen2000-12-052-7/+15
| | | | | __END_DECL. Add declarations for `readv' and `writev'.
* * Makefile.in: Change `-nostartfiles' to `-nostdlib' to avoidCorinna Vinschen2000-12-042-2/+8
| | | | | automatic linking with default libraries when linking new-cygwin1.dll. Link with libgcc.a and libstdc++.a explicitly.
* * path.cc (normalize_win32_path): Handle UNC paths better.Christopher Faylor2000-12-032-3/+16
| | | | (slash_unc_prefix_p): Allow backslash UNC paths.
* * Makefile.in: Remove some extra cruft.Christopher Faylor2000-12-032-5/+6
|
* * Makefile.in: Use CXX to build the DLL.Christopher Faylor2000-12-035-61/+183
| | | | | | | | * configure.in: Find correct c++ compiler. * configure: Regenerate. * path.cc (normalize_posix_path): Put correct drive at beginning of \foo style paths. (chdir): Don't send non-posix path to cygcwd.set.
* * net.cc (get_inet_addr ): Close AF_UNIX socket file after reading.Corinna Vinschen2000-12-022-14/+22
|
* * cygheap.cc (chgheap_root::operator =): Check root dir properly.Corinna Vinschen2000-11-292-1/+5
|
* * net.cc (cygwin_inet_aton): Return nonzero if the addressCorinna Vinschen2000-11-292-2/+7
| | | | is valid, zero if not according to Linux man page.
* * mmap.cc (munmap): Check that mmap and munmap length match.Christopher Faylor2000-11-282-3/+6
|
* * fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFileCorinna Vinschen2000-11-284-3/+37
| | | | | | | | | condition. * path.cc (path_conv::check): Get file system type in call to GetVolumeInformation to check for file systems with buggy CreateFile. * path.h (enum path_types): Add PATH_HASBUGGYOPEN. (class path_conv): Add methods `has_buggy_open' and `set_has_buggy_open'.
* * fhandler.cc (is_at_eof): New function.Christopher Faylor2000-11-262-0/+30
| | | | | | (fhandler_base::raw_read): Detect special case where last error == ERROR_NOACCESS but the file is at EOF. Most UNIXes do not consider this to be an error.
* * include/cygwin/version.h: Bump DLL minor version number to 7.Christopher Faylor2000-11-262-1/+5
|
* * include/cygwin/version.h: Bump minor API version due to addingCorinna Vinschen2000-11-252-1/+7
| | | | inet_aton.
* * net.cc (cygwin_inet_aton): New function.Corinna Vinschen2000-11-253-2/+22
| | | | * cygwin.din: Export cygwin_inet_aton as inet_aton.
* * path.cc (mount_info::read_cygdrive_info_from_registry): Read system cygdriveChristopher Faylor2000-11-242-14/+20
| | | | | prefix with KEY_READ. (mount_info::get_cygdrive_info): Ditto.
* * Makefile.in: new-temp.a -> new-templib.aChristopher Faylor2000-11-222-1/+5
|
* * spawn.cc (spawn_guts): Quoting was still wrong. Keep trying to fix it.Christopher Faylor2000-11-202-6/+25
|
* * spawn.cc (spawn_guts): YA tweak for dealing with arcane rules of quoting inChristopher Faylor2000-11-204-9/+22
| | | | | | "normal" Microsoft programs. * child_info.h: Bump fork magic number. * include/sys/mount.h: Add an entry for mixed mode.
* *** empty log message ***Christopher Faylor2000-11-191-1/+3
|
* * path.cc (normalize_posix_path): Special care for root directoryCorinna Vinschen2000-11-172-1/+10
| | | | in case of files beginning with a dot.
* * syslog.cc (syslog): Add users SID to NT syslog entry.Corinna Vinschen2000-11-172-1/+6
|
* Fix typo.Christopher Faylor2000-11-171-1/+1
|
* * fhandler_console.cc: New member variable `dwBufferSize' for `info'.Christopher Faylor2000-11-172-2/+11
| | | | | | (fillin_info): Set `dwBufferSize' to the size of the console buffer. (clear_screen): Use width of console buffer to calculate how many spaces to clear.
* * Makefile.in: Make import library creation 'make -j2' friendly.Christopher Faylor2000-11-162-7/+13
|
* * uinfo.cc (uinfo_init): Call `cygwin_set_impersonation_token' toCorinna Vinschen2000-11-162-1/+7
| | | | reset `cygheap->user.token' to INVALID_HANDLE_VALUE.
* Update ChangeLog.Christopher Faylor2000-11-162-6/+3
|
* * sigproc.cc (wait_sig): Remove unneeded for loop iteration.Christopher Faylor2000-11-165-35/+35
| | | | | | | | | | | * exceptions.cc (interrupt_setup): Don't set signal mask here or races occur with main thread. Set it in sigdelayed instead. (sigreturn): Reflect change in stack order of ebp and flags. (sigdelayed): Set stack frame correctly. Call set_process_mask here with flags for last trapped signal. (signal_dispatch): Add newmask. * sigproc.cc (wait_sig): Eliminate ill-considered attempt to halt looping signal processors.
* * uinfo.cc (internal_getlogin): Change parameter list to reflectCorinna Vinschen2000-11-153-11/+18
| | | | | | that `token' is member of cygheap_user now. (uinfo_init): Use modified internal_getlogin. * syscalls.cc (seteuid): Ditto.
* * cygheap.h: Move `token' and `impersonated' from class _pinfoCorinna Vinschen2000-11-159-41/+55
| | | | | | | | | | | | | to class cygheap_user. * pinfo.h: Ditto. * fork.cc (fork_child): Change usage of `token' and `impersonated' accordingly. (fork_parent): Ditto. * security.cc (cygwin_set_impersonation_token): Ditto. * sigproc.cc (proc_subproc): Ditto. * spawn.cc (spawn_guts): Ditto. * syscalls.cc (seteuid): Ditto. * uinfo.cc (uinfo_init): Ditto.
* * spawn.cc (spawn_guts): Revert patch to ignore chroot settingsCorinna Vinschen2000-11-152-6/+6
| | | | on creating native Win32 environment.
* * fork.cc (slow_pid_reuse): Off-by-one.Christopher Faylor2000-11-152-4/+10
|
* Throughout use myself->ppid_handle rather than parent_alive.Christopher Faylor2000-11-1513-119/+144
| | | | | | | | | | | | | | | | * child_info.h (child_info): Eliminate parent_alive. * dcrt0.cc (dll_crt0_1): Call fork_init for debugging pid creation. * fork.cc (fork_child): Reflect change to fixup_mmaps_after_fork arguments. (slow_pid_reuse): New function to grab last 'n' pids to prevent pid reuse. (fork_parent): Move last_fork_proc into slow_pid_reuse. Handle fork_pids debugging. Eliminate unnecessary call to set_child_mmap_ptr. (fork_init): New debugging function. * mmap.cc (fixup_mmaps_after_fork): Renamed from recreate_mmaps_after_fork. Rely on copied data after a fork. (set_child_mmap_ptr): Eliminate. * pinfo.h (_pinfo): Eliminate parent_alive, mmap_ptr and reflect above changes. * spawn.cc (spawn_guts): Eliminate vestiges of "old way" of sending new hProc to parent process.
* Fix formatting.Corinna Vinschen2000-11-151-1/+1
|