summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.Corinna Vinschen2001-08-148-28/+68
| | | | | | | | | | | | | | | | | | | * fhandler.h: Move definitions of O_NOSYMLINK, O_DIROPEN and OLD_O_NDELAY from winsup.h to here. Add O_NONBLOCK_MASK define. * fhandler_socket.cc (fhandler_socket::close): Add hack to allow a graceful shutdown even if shutdown() hasn't been called by the application. Add debug output. (fhandler_socket::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_socket::fcntl): Use new O_NONBLOCK_MASK define. Actually set `request' before using it. * fhandler_tty.cc: Use new O_NONBLOCK_MASK define throughout. (fhandler_tty_slave::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_pty_master::ioctl): Ditto. * net.cc (wsock_event::prepare): Compare WSACreateEvent return code with `WSA_INVALID_EVENT' according to MSDN. * syscalls.cc (_read): Use new O_NONBLOCK_MASK define.
* 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-132-0/+20
| | | | | | * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New macro constants for mallopt options. (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
* Oops. Forgot to check in include/wchar.h???Christopher Faylor2001-08-111-1/+2
|
* (lbasename): Change function declaration to return a const char pointer.Andrew Cagney2001-08-102-1/+6
|
* * opcode/mips.h (INSN_GP32): Remove.Richard Sandiford2001-08-102-11/+11
| | | | | (OPCODE_IS_MEMBER): Remove gp32 parameter. (M_MOVE): New macro identifier.
* * lib/kernels.c: New file.Earnie Boyd2001-08-101-0/+25
|
* * lib/test.c (Win32_Winsock): Replace with __USE_W32_SOCKETS.Earnie Boyd2001-08-104-16/+74
| | | | | | | | | | Add more includes of w32api headers. * include/winnt.h (GetCurrentFiber): Change __inline to __inline__. Swap asm code with that of GetFiberData. (GetFiberData): Ditto. * lib/kernels.c: New file, containing library versions of GetCurrentFiber and GetFiberData. * lib/makefile.in: Add kernel32.o as static object to libkernal32.a.
* Revert 2001-08-08 changes.Alan Modra2001-08-102-1/+4
|
* * include/wchar.h: Define __need_wint_t.Christopher Faylor2001-08-081-0/+4
|
* * include/winuser.h (GET_WHEEL_DELTA_WPARAM): Add macro.Earnie Boyd2001-08-083-16/+237
| | | | * lib/oleaut32.def: Regenerate.
* * ppc.h (struct powerpc_operand): New field `reloc'.Alan Modra2001-08-082-0/+6
| | | | | * ppc-opc.c: Include "bfd.h". (powerpc_operands): Add new field for reloc type.
* * security.cc (alloc_sd): Revert to setting inheritance attribute forCorinna Vinschen2001-08-082-17/+6
| | | | permissions given to directories. Never set inheritance on NULL ACE.
* * security.cc (alloc_sd): Don't set FILE_DELETE_CHILD for groupCorinna Vinschen2001-08-074-4/+13
| | | | | | | if S_ISVTX attribute is given. * dir.cc (mkdir): Allow immediate setting of S_ISUID, S_ISGID and S_ISVTX attribute. * syscalls.cc (_open): Ditto.
* * dir.cc (mkdir): Set security attributes correctly forCorinna Vinschen2001-08-076-15/+65
| | | | | | | | | | CreateDirectoryA () call if ntsec is on. Don't call set_file_attributes () then. * fhandler.cc (fhandler_base::open): Ditto for CreateFileA () call. * path.cc (symlink): Ditto. * security.cc (set_security_attribute): New function. * security.h: Add declaration for `allow_ntea' and `set_security_attribute'.
* * grp.cc (class grp_check): New class. Make `group_state'Corinna Vinschen2001-08-073-2/+111
| | | | | | | | a member of class grp_check. (read_etc_group): Free former allocated memory on reread. * passwd.cc (class pwd_check): New class Make `passwd_state' a member of class pwd_check. (read_etc_passwd): Free former allocated memory on reread.
* * fhandler_console.cc (get_tty_stuff): Don't initialize shared memory consoleChristopher Faylor2001-08-073-4/+15
| | | | | area if it is already initialized. * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Augment debugging info.
* * cygheap.cc (cygheap_root::set): Avoid treating '/' specially.Christopher Faylor2001-08-079-30/+57
| | | | | | | | | * fhandler.cc (fhandler_base::fcntl): Only set specific O_NDELAY style flag passed in from application. * fhandler_socket.cc (fhandler_socket::fcntl): Ditto. * fhandler.h: Set constant for future use. * winsup.h: Define OLD_O_NDELAY only for old programs. * include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK.
* * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.Earnie Boyd2001-08-054-11/+36
| | | | | | | | | | * include/stdio.h (_IORW): Change constant to 0x0080. (TMP_MAX): Add new define. (_P_tmpdir): Ditto. (_wP_tmpdir): Ditto. (L_tmpnam): Change constant to 16. * include/malloc.h: Fix non-ANSI comment after #endif. * profile/Makefile.in (mkinstalldirs): Correct relative path.
* * include/wtypes.h: (DECIMAL_SETZERO): Correct typo.Earnie Boyd2001-08-0511-40/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/oleidl.h (ISupportErrorInfo, ICreateInfo): Move from here * include/oaidl.h: ... to here. * include/oaidl.h ICreateErrorInfo): Add interface definition. (IErrorInfo::GetGUID): Change arg to GUID. (LPSUPPORTERRORINFO): Add typedef. (IID_ISupportErrorInfo): Change forward decl. of type to IID. * include/winsock2.h (WSAGET* and WSAMAKE*): Remove duplicate defines. * include/commctrl.h (TreeView_SetIndent): Correct typo. * include/commctrl.h (TBSTYPE_FLAT): Remove define. * include/commctrl.h (TBBUTTONINFO[AW]): Add struct definitions, and UNICODE mappings, if _WIN32_IE >= 0x400. (TBIF_* and TB_SETBUTTONINFO): Add defines, if _WIN32_IE >= 0x400. (CDIS_*,CDDS_*,CDRF_*) : Add defines. (tagNMCUSTOMDRAWINFO): Add struct definition and typedefs. (tagNMLVCUSTOMDRAW): Likewise. (tagNMTVCUSTOMDRAW): Likewise. (tagNMLVCACHEHINT): Likewise. * include/basetsd.h (#include <_mingw.h>): Remove. (__int64): Define. * include/wingdi.h (AC_SRC_OVER): Add define. (struct _BLENDFUNCTION): Add. * include/shlobj.h: Add BIF_* defines. * include/winerror.h (E_PENDING): Add error code define. * include/basetsd.h (#include <_mingw.h>): Add directive. * include/winbase.h(InterlockedCompareExchange): Change args and return value from PVOID to LONG. (InterlockedExchange): Change first arg to LPLONG. (InterlockedCompareExchangePointer): New macro. (InterlockedExchangePointer): New macro.
* Throughout, change check for running under Windows NT to 'iswinnt'.Christopher Faylor2001-08-0427-76/+105
| | | | | | | | | | | | | * dcrt0.cc (set_os_type): Set 'iswinnt' appropriately. * cygheap.cc (init_cheap): Revert to using VirtualAlloc for allocating cygheap. (cygheap_setup_for_child_cleanup): New function. Standard function to call after calling CreateProcess to cleanup cygheap info passed to child. (cygheap_fixup_in_child): Copy cygheap from shared memory into allocated space under Windows 9x or if can't relocate shared space under NT. * cygheap.h: Declare new function. * spawn.cc (spawn_guts): Use cygheap_fixup_in_child. * fork.cc (fork_parent): Ditto. * winsup.h: Declare iswinnt.
* * dtable.cc (dtable::release): Avoid messing with console whenEgor Duda2001-08-042-0/+7
| | | | closing socket.
* * net.cc (cygwin_accept): Allow NULL peer and len parameters.Corinna Vinschen2001-08-033-0/+20
| | | | * include/cygwin/socket.h: Define socklen_t as int.
* * path.cc (fchdir): Set the fhandler's path to absolute value toCorinna Vinschen2001-08-032-0/+25
| | | | | ensure changing to the correct directory even if the fhandler originally points to a relative path.
* merge from gccDJ Delorie2001-08-022-0/+10
|
* * bfdlink.h (struct bfd_link_info): add new booleanCharles Wilson2001-08-022-0/+9
| | | | field pei386_auto_import.
* 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-022-1/+11
| | | | | * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided, otherwise default.
* * security.cc (set_file_attribute): Clean up. Don't callCorinna Vinschen2001-08-022-10/+13
| | | | `set_nt_attribute' when ntsec isn't set.
* 2001-08-01 Aldy Hernandez <aldyh@redhat.com>Aldy Hernandez2001-08-012-1/+5
| | | | * include/opcode/mips.h (INSN_ISA_MASK): Nuke bits 12-15.
* * dcrt0.cc (alloc_stack_hard_way): Make half-hearted attempt to deal withChristopher Faylor2001-07-293-4/+20
| | | | | growing stack under Windows 95. * Makefile.in: Add install-lib and install-headers.
* * cygwin.din: Export sys_errlist, sys_nerr.Christopher Faylor2001-07-273-1/+9
| | | | * include/cygwin/version.h: Bump minor version number.
* * security.cc (get_user_primary_group): Fix compiler warning.Corinna Vinschen2001-07-272-2/+7
| | | | (alloc_sd): Add DELETE permission for user when S_IWUSR is given.
* * thread.cc (__pthread_equal): Invert return value so that true is returnedChristopher Faylor2001-07-262-223/+227
| | | | when threads are equal.
* Christopher Faylor <cgf@cygnus.com>Christopher Faylor2001-07-263-1/+9
| | | | | * cygwin.din: Export __signgam. * include/cygwin/version.h: Bump minor version number.
* Throughout, reorganize header file inclusion to put security.h prior toChristopher Faylor2001-07-2651-33/+75
| | | | | | | | fhandler.h. * fhandler.h (fhandler_base::get_inheritance): New method. * fhandler_socket.cc (fhandler_socket::create_secret_event): Use proper close-on-exec inheritance when creating. (fhandler_socket::check_peer_secret_event): Create handle as non-inheritable.
* * MAINTAINERS: Clarify libiberty merge rules and procedures.DJ Delorie2001-07-262-1/+9
|
* * syscalls.cc (setsid): Detach process from its console if the currentChristopher Faylor2001-07-265-10/+51
| | | | | | | | | | | | controlling tty is the console and already closed. * dtable.h (class dtable): Add members to count descriptors referring to the console. * dtable.cc (dtable::dec_console_fds): New function to detach process from its console. (dtable::release): Decrement the counter of console descriptors. (dtable::build_fhandler): Increment it. * exception.cc (ctrl_c_handler): Send SIGTERM to myself when catch CTRL_SHUTDOWN_EVENT.
* Tue 24 Jul 2001 02:28:00 PM Trevor Forbes <t4bs@hotmail.com>Robert Collins2001-07-252-1/+7
| | | | | | * thread.cc (verifyable_object_isvalid): Don't validate PTHREAD_MUTEX_INITIALIZER pointer as it will cause an exception in IsBadWritePtr() when running GDB.
* * localtime.c: Changed whole file to become C++ clean. Rename toCorinna Vinschen2001-07-252-140/+62
| | | | | localtime.cc. * localtime.cc (tzload): Preserve errno.
* * cygheap.cc (cygheap_fixup_in_child): Attempt Win95 workaround.Christopher Faylor2001-07-216-7/+25
| | | | | | | | * dtable.cc (dtable::dup_worker): Add debugging output. (dtable::vfork_child_dup): Correctly set close_on_exec. * fhandler.cc (fhandler_base::fork_fixup): Don't mess with handle if there is no need to get it from the parent. * fhandler_tty.cc (fhandler_tty_common::close): Add debugging output.
* Clone src/config.guess. Mention in MAINTAINERS.Andrew Cagney2001-07-201-1/+2
|
* * dir.cc (readdir): Protect FindNextFileA against INVALID_HANDLE_VALUE.Corinna Vinschen2001-07-202-0/+8
|
* fix typo.Christopher Faylor2001-07-191-1/+1
|
* merge from gccDJ Delorie2001-07-192-9/+12
|
* 2001-07-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-07-186-247/+1016
| | | | | | | | * hp74x/configure: Regenerated with current autoconf. * m32r/configure: Ditto. * m68k/configure: Ditto. * pa/configure: Ditto. * sparc/configure: Ditto.
* * cygheap.cc (_cmalloc): Use correct constants for size calculation.Christopher Faylor2001-07-185-7/+17
| | | | | | | * dcrt0.cc (dll_crt0_1): Move uid initialization earlier. * fork.cc (fork_parent): Move cygheap_setup_in_child to just prior to CreateProcess so that all contents of cygheap are copied. * spawn.cc (spawn_guts): Ditto.
* * security.cc (get_user_groups): Call Net function with NULL serverCorinna Vinschen2001-07-182-17/+47
| | | | | | | name under specific error conditions. (is_group_member): Ditto. (get_user_local_groups): Ditto. (get_user_primary_group): Ditto.
* * syscalls.cc (_unlink): Explicitely check for non-existant file.Corinna Vinschen2001-07-182-2/+13
|
* * no need to inform sid@sourceware about dejagnu patches.Frank Ch. Eigler2001-07-171-3/+2
|
* * delqueue.h: Remove obsolete file.Corinna Vinschen2001-07-172-30/+4
|
* * child_info.h: Bump magic number.Christopher Faylor2001-07-179-132/+180
| | | | | | | | | | | | | | | | (class child_info): Add an element. * cygheap.cc (init_cheap): Allocate cygwin heap in shared memory area. (cygheap_fixup_in_child): Map cygwin heap, passed from parent via shared memory into correct address. (cygheap_setup_for_child): New function. * cygheap.h: Declare new functions. * dcrt0.cc (dll_crt0_1): Accomodate new cygheap_fixup_in_child arguments. Avoid protecting subproc_ready unless it is spawn/nowait. * fork.cc (fork_parent): Use new cygheap_setup_for_child function to setup cygwin heap info. Close passed cygheap shared memory handle. * spawn.cc (spawn_guts): Ditto. Also, reorganize to avoid synchronization between parent and child in non-P_OVERLAY case. * sigproc.cc (wait_sig): Only signal subproc_ready when execing.