summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * autoload.cc (LoadDLLinitfunc): Remove debugging statement.Christopher Faylor2001-01-1713-65/+109
| | | | | | | | | | | | | | | | | | * exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to earlier in interrupt. ((interrupt_setup): i.e., here. (sig_handle): Don't queue multiple SIGSTOPS. * fhandler.h (bg_check_types): Enumerate return value of bg_check for clarity. * signal.cc (kill_pgrp): Minor cleanup. * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type for function return. Don't raise signal if a signal is already queued. * fhandler_console.cc (fhandler_console::read): Use enumerated return type for bg_check. * select.cc: Ditto, throughout. * read.cc: Ditto, throughout. * termios.cc: Ditto, throughout. (_read): YA interrupt detect simplification. * wait.cc (wait4): Ditto.
* * cygheap.cc (cygheap_user::~cygheap_user): TemporarilyCorinna Vinschen2001-01-172-0/+7
| | | | disable free'ing memory.
* * include/sqlucode.h: Apply Danny Smith patch 102443Earnie Boyd2001-01-162-0/+144
| | | | | 2000-11-20 Danny Smith <danny_r_smith_2001@yahoo.co.nz> New file.
* * lib/odbccp32.def: Apply Danny Smith patch 102442Earnie Boyd2001-01-162-0/+60
| | | | | 2000-11-20 Danny Smith <danny_r_smith_2001@yahoo.co.nz> New file.
* * include/odbcinst.h: Apply Danny Smith patch 102441Earnie Boyd2001-01-162-0/+152
| | | | | 2000-11-20 Danny Smith <danny_r_smith_2001@yahoo.co.nz> New file.
* * mmap.cc (mmap): Initialize fh to avoid compiler warnings.Corinna Vinschen2001-01-162-1/+5
|
* * include/stdlib.h: Apply Danny Smith patch 102730Earnie Boyd2001-01-162-2/+8
| | | | | 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz> (_wgetenv) Correction to return type.
* * include/locale.h: Apply Danny Smith patch 101834Earnie Boyd2001-01-162-0/+18
| | | | | | | 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz> (LC_MIN) Add definition. (LC_MAX) ditto. (_wsetlocale) Add prototype.
* * wait.cc (wait4): Rename variable for consistency. Allow restartable signalChristopher Faylor2001-01-162-14/+22
| | | | behavior.
* * mmap.cc (mmap): Add more parameter checking. Change error outputCorinna Vinschen2001-01-152-27/+47
| | | | in case of EINVAL. Treat mmapping /dev/zero like MAP_ANONYMOUS.
* * mmap.cc: include <unistd.h>. Define some bit operations forCorinna Vinschen2001-01-152-33/+265
| | | | | | | | | | | | | | | | | the new page map. (mmap_record): Change type of base_address_ to caddr_t. Add map_map_ member. Add several methods to manipulate map_map_. (mmap_record::alloc_map): New method. (mmap_record::free_map): Ditto. (mmap_record::find_empty): Ditto. (mmap_record::map_map): Ditto. (mmap_record::unmap_map): Ditto. (list::add_record): Change return type to `mmap_record *'. Allocate page map. (list::match): New method. (mmap): Partly rewritten to take care for the new page map. Add some parameter checking. (munmap): Ditto.
* * heap.cc (heap_init): Fix extern declaration of getpagesize.Corinna Vinschen2001-01-153-4/+9
| | | | * syscalls.cc (getpagesize): Fix another typo.
* * syscalls.cc (getpagesize): Save pagesize in global variable toCorinna Vinschen2001-01-153-9/+18
| | | | | | avoid calling GetSystemInfo too often. * heap.cc (getpagesize): Eliminate. (heap_init): Use getpagesize function from syscalls.cc.
* * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZECorinna Vinschen2001-01-152-5/+6
| | | | request to avoid implementing the same twice.
* * syscalls.cc (_read): Use more lightweight method for determining if read hasChristopher Faylor2001-01-142-2/+6
| | | | been interrupted by a signal.
* * debug.h: Add regparm attributes to some functions.Christopher Faylor2001-01-128-8/+43
| | | | | | | | | | | | * signal.cc (sigaction): Don't treat SIGCONT specially. * exceptions.cc (interrupt_setup): Save sa_flags of interrupted signal for later use. (sig_handler): Default any stopping signal to SIGSTOP. (call_signal_handler): New function. (sigdelayed0): New function. * sigproc.cc (sigproc_init): Initialize SIGSTOP sigaction for special behavior. * sigproc.h: Define call_signal_handler. * syscalls.cc (_read): Allow restartable signal behavior.
* * fhandler.h (fhandler_base): New method `fixup_mmap_after_fork'.Corinna Vinschen2001-01-114-17/+109
| | | | | | | | | | | | | | | | | (fhandler_disk_file: Ditto. (fhandler_dev_mem): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Set OBJ_INHERIT attribute for device\physicalmemory handle. (fhandler_dev_mem::mmap): Ditto. * fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork): New method. * mmap.cc (mmap_record): Add private `fdesc_' member. Change constructor accordingly. (get_fd): New method. (mmap): Use new mmap_record constructor. (fhandler_base::fixup_mmap_after_fork): New method. (fhandler_disk_file::fixup_mmap_after_fork): Ditto. (fixup_mmaps_after_fork): Call `fixup_mmap_after_fork' of appropriate fhandler class.
* * regtool.cc (cmd_list): Add new registry display options.Christopher Faylor2001-01-103-69/+107
| | | | | | (cmd_list): Add code to implement -p, -k, and -l options. * regtool.cc (Fail): Add call to LocalFree to free memory allocated by FormatMessage.
* more formatting changes.Christopher Faylor2001-01-101-2/+4
|
* * regtool.cc (translate): Ensure that 'c' is initialized.Christopher Faylor2001-01-103-574/+595
| | | | (cmd_set): Ditto for rv.
* * sigproc.cc (wait_sig): Allow SIGCONT when stopped.Christopher Faylor2001-01-102-1/+5
|
* Patch suggested by Ren� M�ller Fonseca <fonseca@mip.sdu.dk>Corinna Vinschen2001-01-093-4/+10
| | | | | * include/sys/socket.h: Change prototype to have 2nd parameter `const'. * net.cc (cygwin_bind): Change 2nd parameter to `const'.
* * pinfo.cc (codepage_init): Move function.Christopher Faylor2001-01-0817-52/+60
| | | | | | | | | * environ.cc (codepage_init): To here. * exceptoins.cc (SIG_NONMASKABLE): Remove SIGCONT from consideration since it is supposed to be maskable. * signal.cc (sigaction): Ditto. * sigproc.cc (wait_sig): Ditto. * winsup.h: Eliminate global declaration of codepage_init.
* * resource.cc (getrlimit): Set errno on EFAULT instead of returning it.Corinna Vinschen2001-01-052-3/+33
| | | | | | | | (setrlimit): Ditto. Patch by David Sainty <David.Sainty@optimation.co.nz>: * resource.cc (setrlimit): Prevent failing with an error when the operation would not have changed anything.
* * thread.cc: Need LONG_MAX definition.Christopher Faylor2001-01-042-0/+5
|
* * thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.Christopher Faylor2001-01-032-1/+6
|
* * fhandler_console.cc (fhandler_console::read): Restore missing test for codeChristopher Faylor2001-01-032-1/+6
| | | | page before doing OemToCharBuff.
* Wed Jan 3 09:20:20 2001 Jason Tishler <jt@dothill.com>Christopher Faylor2001-01-033-4151/+4155
| | | | | * include/cygwin/version.h: Fix typo in CYGWIN_VERSION_DLL_COMBINED macro.
* * cygwin.din: Add symbols for `getrlimit' and `setrlimit'.Corinna Vinschen2000-12-276-1/+102
| | | | | | | | | | | | * exceptions.cc (stackdump): Avoid creating stackdump when `rlim_core' is 0. * resource.cc: New global variable `rlim_core'. (getrlimit): New function. (setrlimit): Ditto. include/cygwin/version.h: Bump minor API version to 32 due to adding `getrlimit' and `setrlimit'. include/sys/resource.h: Add defines, types and prototypes for `getrlimit' and `setrlimit'.
* * autoload.h: Make DLL initializers global to avoid inlining.Christopher Faylor2000-12-264-14/+30
| | | | | | | | * exceptions.cc (interrupt_setup): Reorganize arguments to allow use of regparm. (interrupt_now): Ditto. (interrupt_on_return): Ditto. (call_handler): Ditto.
* * include/cygwin/version.h: Bump DLL minor version number to 8.Christopher Faylor2000-12-252-1/+5
|
* missed a spot.Christopher Faylor2000-12-251-1/+0
|
* * lib/Makefile.in: Don't make "links" to include/w32api directory.Christopher Faylor2000-12-252-1/+4
|
* * cygwinenv.sgml: Fix typo in <filename>. Add missing </para>.Corinna Vinschen2000-12-222-3/+7
|
* 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.
* * include/winbase.h: Add prototype for SetSecurityDescriptorControl.Corinna Vinschen2000-12-202-0/+5
|
* * 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.
* * cygwinenv.sgml: Add text for `smbntsec' option.Corinna Vinschen2000-12-192-1/+15
|
* * 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.
* * cygcheck.cc (cygwin_info): Add some more bounds checking. From Matt HargetChristopher Faylor2000-12-162-49/+205
| | | | | | | | | | | | | | | | | | | <matt@use.net>: * utils/cygcheck.cc (keyeprint): Move declaration before other functions so it could be used by all functions to report error messages. Add comment. (add_path): Check for NULL return from malloc. (find_on_path): Check initial uses of pointers for NULL. (rva_to_offset): Ditto. (init_paths): Add checking for return values of Win32 calls. (get_dword): Ditto. (get_word): Ditto. (dll_info): Ditto, also add NULL pointer checks. (scan_registry): Ditto. (check_keys): Ditto. (dump_sysinfo): Ditto. Add default case to switch. Add error reporting if GetVolumeInformation fails, except when it returns ERROR_NOT_READY. (track_down): Add checking for NULL pointers and return values of Win32 calls. (cygwin_info): Ditto. Correct small memory leak.
* * 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>[.
* new entry, installing cygwin-inst snapshots with setupDavid Starks-Browning2000-12-131-0/+36
|
* update contentsDavid Starks-Browning2000-12-131-5/+6
|
* very minor wording changeDavid Starks-Browning2000-12-131-3/+3
|
* update globbing entryDavid Starks-Browning2000-12-131-10/+1
|