c7dd4f9511* libc/include/sys/unistd.h: Add prototypes for endusershell(), getusershell(), iruserok(), revoke(), ruserok() and setusershell() when __CYGWIN__ is defined. * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and logwtmp().
Corinna Vinschen
2001-11-05 18:06:24 +0000
9c510edc61Eliminate excess whitespace.
Christopher Faylor
2001-11-05 06:09:15 +0000
a9ae96dde4Add strace debugging section.
Christopher Faylor
2001-11-05 03:16:58 +0000
5088b184312001-11-04 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou
2001-11-05 03:07:26 +0000
58eac090a3* dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV due to incorrect parameter placement.
Christopher Faylor
2001-11-05 02:45:42 +0000
6e8b4dcdf1* pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe" test.
Christopher Faylor
2001-11-05 01:44:02 +0000
915d1824f7* select.cc: Add more comments throughout. Use bool 'true' where appropriate throughout. (fhandler_socket::select_read): Remove duplicate setting for *_ready which inadvertently overrode previous, correct setting. (fhandler_socket::select_write): Ditto.
Christopher Faylor
2001-11-05 00:29:27 +0000
79ec82139e* lib/Makefile.in: Add .NOTPARALLEL target since dlltool cannot run in parallel invocations. * lib/scrnsave.c (WinMain): Trivial change to avoid a compiler warning.
Christopher Faylor
2001-11-04 20:38:00 +0000
56c29a3c87* getfacl.c (username): New function. (groupname): Ditto. (usage): Ditto. Add more user friendly help text. (main): Add -n and --help option. Print names instead of IDs unless -n option is given. * setfacl.c (getperm): Tolerate whitespace and comment chars in input. (getaclentry): Fix several input string misdetections. (getaclentries): Allow - as input file name to read from stdin. Tolerate whitespace and comment chars in input. (usage): Add more user friendly help text. (main): Add --help option.
Corinna Vinschen
2001-11-04 17:24:24 +0000
86fbc3d90b* strace.cc (main): New option '-w'. Start traced process in separate window. New option '-S x'. Flush buffered output every x seconds. (create_child): Start child process in new window, when requested. When requested, periodically flush debugging output.
Egor Duda
2001-11-04 12:57:55 +0000
7cf5e175fe* Makefile.in: Force configure in testsuite directory if config.status does not exist.
Christopher Faylor
2001-11-04 05:15:16 +0000
35a0c9377f* Makefile.in: Add check target.
Christopher Faylor
2001-11-04 05:06:23 +0000
e8f1743129* configure.in: Disable subauth directory test. * configure: Regenerate. * Makefile.in: Use MAKE variable in directory builds.
Christopher Faylor
2001-11-04 03:48:36 +0000
15d0cbd6df* Makefile.in: Add directory dependencies to ensure ordering when using 'make -jN'.
Christopher Faylor
2001-11-04 03:42:19 +0000
763f09b97d* select.cc (verify_console): New function. (verify_windows): Ditto. (fhandler_console::select_read): Really do need to verify that there is something to read. (fhandler_console::select_windows): Ditto.
Christopher Faylor
2001-11-04 03:29:15 +0000
476dfb657b* fhandler.h (fhandler_base::ready_for_read): Remove unused argument. (fhandler_tty_slave::ready_for_read): Ditto. (select_record): Remove poll, initialize peek. * select.cc: Remove all poll functions, throughout. Change second argument of peek_* functions to 'bool' throughout. Specifically initialize *_ready variables throughout. (select_stuff::poll): Subsume previous poll functionality. (peek_pipe): Don't grab guard mutex when in select loop. select()/read() is racy by design so there is no need to worry about a race in select(). (fhandler_base::ready_for_read): Remove unused argument. (fhandler_tty_slave::ready_for_read): Ditto. * syscalls.cc (_read): Eliminate third argument in ready_for_read call.
Christopher Faylor
2001-11-04 02:31:58 +0000
f41d24a14d* security.cc (get_supplementary_group_sidlist): New function. (get_group_sidlist): Call get_supplementary_group_sidlist() to retrieve list of supplementary groups SIDs from /etc/group and add them to the user's group list.
Corinna Vinschen
2001-11-03 21:19:50 +0000
ed14f73cc2* Makefile.common: Remove preferred-stack-boundary setting since gcc 2.95.3 doesn't work well with it.
Christopher Faylor
2001-11-03 19:56:52 +0000
c41570695a* fhandler.cc (fhandler_base::read): Return just read ahead characters if slow device. * fhandler.h (fhandler_base::set_eof): New virtual method. (fhandler_pipe::set_eof): New method. * pipe.cc (fhandler_pipe::fhandler_pipe): Clear saweof flag. (fhandler_pipe::read): Return immediately if hit eof. (fhandler_pipe::hit_eof): Return true if saweof flag is set. * select.cc (peek_pipe): Don't call PeekNamedPipe if we couldn't grab the guard mutex.
Christopher Faylor
2001-11-03 05:42:21 +0000
243a041bd0* dll_init.h (class dll_list): Reorder functions to avoid compiler "can't inline" warnings. * security.h (class cygsid): Ditto. * sigproc.cc (get_proc_lock): Ditto. * sigproc.h (class sigframe): Ditto. * sync.h (class muto): Ditto. * fhandler.h (fhandler_base::get_guard): Actually MAKE virtual as previously indicated. * pipe.cc (make_pipe): Remove extraneous set_errno. * syscalls.cc (_open): Ditto. * select.cc (peek_pipe): Need to check that there is still something to read from the pipe after acquiring the mutex since another process/thread could have eaten the input before we got to acquiring the lock. (Thanks to Nick Duffek for this inspiration.)
Christopher Faylor
2001-11-03 03:32:27 +0000
01432054cb* libltp/lib/forker.c: Include proper header to avoid compiler warning.
Egor Duda
2001-11-02 20:45:00 +0000
d58f43a1bc* Makefile.common: Add some stuff to common CFLAGS.
Christopher Faylor
2001-11-02 04:44:42 +0000
0378d00f52* fhandler.h: Change Windows 'BOOL's to c++ 'bool's for all variables. * select.cc (fhandler_base::ready_for_read): Set read_ready to zero prior to testing it or it will be uninitialized. * Makefile.in (CFLAGS): Move setting to Makefile.common.
Christopher Faylor
2001-11-02 04:44:06 +0000
53f0029081* cygheap.h (cygheap_fdmanip::isopen): Set appropriate errno if fd not open. * select.cc (fhandler_base::ready_for_read): Release an open guard mutex when exiting with an error condition. * syscalls.cc (_read): Check frequently for closed fd as a kludge until something better is invented.
Christopher Faylor
2001-11-01 23:48:34 +0000
1229d4f4ee* dtable.cc (dtable::build_fhandler): Issue internal error on unknown device. * fhandler.cc (fhandler_base::close): Show both name and handle in debugging output. * fhandler.h (fhandler_base::get_guard): New virtual method. (fhandler_pipe::get_guard): New method. (fhandler_socket::ready_for_read): Delete declaration. (fhandler_pipe::ready_for_read): Ditto. (fhandler_serial::ready_for_read): Ditto. (fhandler_console::ready_for_read): Ditto. (fhandler_tty_common::ready_for_read): Ditto. (fhandler_windows::ready_for_read): Ditto. (struct select_record::peek): Declare new method. * select.cc (MAKEready): Delete. (peek_pipe): Use get_guard method to retrieve potential guard mutex handle. (fhandler_base::ready_for_read): Rewrite as generic ready-for-read handler. Should only be called for "slow" devices. (fhandler_socket::ready_for_read): Delete definition. (fhandler_pipe::ready_for_read): Ditto. (fhandler_serial::ready_for_read): Ditto. (fhandler_console::ready_for_read): Ditto. (fhandler_tty_common::ready_for_read): Ditto. (fhandler_windows::ready_for_read): Ditto. (fhandler_pipe::select_read): Fill in new peek record in select_record structure. (fhandler_console::select_read): Ditto. (fhandler_tty_common::select_read): Ditto. (fhandler_serial::select_read): Ditto. (fhandler_socket::select_read): Ditto. (fhandler_socket::select_read): Ditto. (fhandler_tty_slave::ready_for_read): Check for tty not open. Set errnos appropriately. * syscalls.cc (_read): Allow ready_for_read to set errno. * pinfo.cc (pinfo::init): Return spawn/NO_WAIT process as valid if it is initializing. * sigproc.cc (getsem): Adjust wait for process to initialize downward to avoid huge waits.
Christopher Faylor
2001-11-01 21:15:53 +0000
5cf6708ef42001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
Earnie Boyd
2001-11-01 19:51:50 +0000
a6a6f9fece2001-11-01 Arati Dikey <aratidikey@hotmail.com>
Jeff Johnston
2001-11-01 19:47:32 +0000
44506780d92001-11-01 Danny Smith <dannysmith@users.sourceforge.net>
Earnie Boyd
2001-11-01 19:42:57 +0000
775f23011b2001-10-31 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-10-31 19:26:13 +0000
75241b15db2001-10-31 David Howells <dhowells@redhat.com>
Jeff Johnston
2001-10-31 19:19:08 +0000
747e577331* environ.cc: Set reset_com to false to mimic linux behavior more closely.
Christopher Faylor
2001-10-31 16:30:46 +0000
34397675deremove garbage ChangeLog entry.
Christopher Faylor
2001-10-31 05:35:28 +0000
774cd790fc* sigproc.cc (sigproc_terminate): Don't signal main thread when exiting. * sigproc.h (sigframe): Decorate some methods with `inline'. (new_muto): Coerce pointer to new to void *.
Christopher Faylor
2001-10-31 02:58:38 +0000
0fc07e4d69* fhandler.cc (fhandler_base::fork_fixup): Pass old handle to setclexec_pid.
Christopher Faylor
2001-10-31 02:03:00 +0000
6ea0c04e7c* cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh. (cygheap_fdmanip::isopen): New method. * syscalls.cc (_read): Avoid accessing closed fd. * path.h (fe_types): New enum. (path_conv::set_path): New method. (find_exec): Change null_if_not_found argument to something more generic. * spawn.cc (find_exec): Default to returning the POSIX path rather than the windows path, unless instructed otherwise. (spawn_guts): Force call to find_exec to use native paths. * dlfcn.cc (check_path_access): Accommodate new find_exec arguments. * environ.h (win_env::get_posix): New method.
Christopher Faylor
2001-10-31 00:55:32 +0000
39374014e7Add MMIX support
Nick Clifton
2001-10-30 15:20:10 +0000
19ba6f2195* dtable.cc (dtable::dup2): Add some debugging. Use methods from passed in class rather than cygheap->fdtab. * fhandler_socket.cc (fhandler_socket::fixup_before_fork_exec): Add more debugging output. (fhandler_socket::dup): Allocate new space for prot_info_ptr for duplicated entry. * syscalls.cc (stat_worker): Always delete fh if it has been created.
Christopher Faylor
2001-10-30 07:43:46 +0000
3d4b75dec2* security.cc (is_group_member): Call NetLocalGroupGetMembers() for local machine only. (get_user_local_groups): Ditto for NetLocalGroupEnum().
Corinna Vinschen
2001-10-30 00:02:36 +0000
7a47ed496c* Makefile.in: Propagate 'clean' to subdirs properly.
Christopher Faylor
2001-10-29 20:32:27 +0000
8dd6060b98* fhandler.cc (fhandler_base::set_name): Set namehash here to catch name changes. (fhandler_base::open): Remove namehash setting. (fhandler_base::fstat): Subtract 1 from arbitrary time setting to avoid strange ls -l granularity problem. * shared_info.h (MOUNT_VE
Christopher Faylor
2001-10-29 20:30:47 +0000
ac19c8dcf6* uinfo.cc (internal_getlogin): Set environment variable $HOME from either /etc/passwd or $HOMEDRIVE/$HOMEPATH if necessary.
Corinna Vinschen
2001-10-29 11:53:52 +0000
711ded6d28* fhandler.h (fhandler_serial::fhandler_serial): Change to only accept unit argument. * fhandler_serial.cc (fhandler_serial::fhandler_serial): Ditto. (fhandler_serial::open): Avoid else when previous clause is a return(). * path.cc (get_devn): Alias /dev/ttyS0 -> /dev/com1, etc. (get_device_number): Reallow standalone "com1" as a valid name for /dev/com1.
Christopher Faylor
2001-10-29 05:28:24 +0000
aa9d50a1c1fix spelling errors
Christopher Faylor
2001-10-28 23:05:49 +0000
451386f769fix consistent spelling errors.
Christopher Faylor
2001-10-28 18:10:44 +0000
93b4d0cfe1Fix usage of H_GET_32/16. Likewise with H_PUT_32/16.
Nick Clifton
2001-10-26 10:57:04 +0000
fe00cca93e* select.cc (MAKEready): Check for read_ready in loop since select_read could set it. (peek_socket): Check ready/write/except specifically since they could have been set even prior to peek_socket call.
Christopher Faylor
2001-10-26 04:06:27 +0000
53c79b98c9Clarify checkin comment slightly.
Christopher Faylor
2001-10-24 23:56:45 +0000
7ee2c95756* shared_info.h (MOUNT_VERSION): Change to a smaller, still arbitrary number. * shared.cc (open_shared): Accept a number to denote the shared memory region. (memory_init): Use shared memory version as part of the object name of the shared region. Ditto for the mount table. * path.cc (CYGWIN_REGNAME): New define used in place of CYGWIN_INFO_CYGWIN_REGISTRY_NAME throughout. * external.cc (cygwin_internal): Implement CW_[GS]ET_CYGWIN_REGISTRY_NAME. * cygheap.h (init_cygheap::cygwin_regname): New element.
Christopher Faylor
2001-10-24 22:10:06 +0000
ae21eea62e* Makefile.in: Remove EXEEXT consideration. We always need EXEEXT.
Christopher Faylor
2001-10-24 22:09:37 +0000
a9f20457f3* Makefile.in: Only build testsuite directory on first 'make check'. * configure.in: Remove testsuite from SUBDIRS. * configure: Regenerate.
Christopher Faylor
2001-10-24 21:56:54 +0000
1dd695651fmerge from gcc
DJ Delorie
2001-10-24 20:32:09 +0000
30772778742001-10-24 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb
2001-10-24 20:02:25 +0000
d0504c353f2001-10-24 Christopher Faylor <cgf@redhat.com>
Jeff Johnston
2001-10-24 18:10:30 +0000
a830378213Remove merge conflict indicator.
Christopher Faylor
2001-10-24 15:40:24 +0000
a0626ebe27Ensure that all fhandler_*::read definitions are __stdcall throughout. * fhandler.cc (fhandler_base::set_inheritance): Be more defensive in debugging code. * fhandler.h: Adjust regparms throughout to reflect passing 'this' parameter. * fhandler_console.cc (fhandler_console::read): Remove unneeded test. Only honor "key down" events. * miscfuncs.cc (strcasestr): Reorganize for efficient code use. (check_null_empty_str_errno): Ditto. (__check_null_invalid_struct_errno): Ditto. (__check_invalid_read_ptr_errno): Ditto. * syscalls.cc (_read): Return 0 when length == 0, as per Single UNIX Specification.
Christopher Faylor
2001-10-24 04:16:45 +0000
0280c8c0f3* libc/include/math.h: The C++ standard adds the single-precision versions of the elementary functions.
Geoffrey Keating
2001-10-23 17:43:16 +0000
d3cf36f88dmerge from gcc
DJ Delorie
2001-10-23 15:31:55 +0000
7309890a90* internal.h: White space changes to keep lines under 80 chars.
Alan Modra
2001-10-23 04:42:12 +0000
a05d38a8b4* debug.cc (set_errno): Return value of errno that was set, just like the macro. (setclexec_pid): Replace old handle with new handle. * debug.h: Reflect change in arguments for setclexec_pid. * fhandler.cc (fhandler_base::set_inheritance): Ditto. (fhandler_base::fork_fixup): Ditto. * cygerrno.h: Reflect return value change for set_errno.
Christopher Faylor
2001-10-22 21:09:41 +0000
65d1068cb8Patch suggested by Ian Ray <ian.ray@nokia.com>: * syscalls.cc (seteuid): Unset environment variables HOMEDRIVE and HOMEPATH before calling internal_getlogin(). * uinfo.cc (internal_getlogin): Use default HOMEPATH and HOMEDRIVE from environment if both are present, else query NetUserGetInfo().
Corinna Vinschen
2001-10-22 18:31:00 +0000
333d609843* libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout. * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
Christopher Faylor
2001-10-22 16:40:26 +0000
c270dc2555* net.cc (get_2k_ifconf): Change multiple IP address naming scheme to Linux style.
Corinna Vinschen
2001-10-22 12:23:33 +0000
d055070040* resource.cc (fill_rusage): Perform paranoid zero structure passed to GetProcessMemoryInfo.
Christopher Faylor
2001-10-22 00:10:46 +0000
1f0191e542* autoload.cc: Autoload GetProcessMemoryInfo. * resource.cc (fill_rusage): Calculate ru_maxrss and ru_majflt entries. (Bug report on this from Guido Serassio in the squid project). This requires including psapi.h.
Christopher Faylor
2001-10-21 23:44:43 +0000
c43c5c1643* dll_init.cc (dll_list::alloc): Increase retry count to 1000.
Christopher Faylor
2001-10-21 03:38:41 +0000
3ddb57fb3ffix typo.
Christopher Faylor
2001-10-20 17:35:27 +0000
011ec894d2* mkgroup.c: Avoid compiler warnings. (print_special): New function. (main): Print special accounts by calling print_special(). * mkpasswd.c: Avoid compiler warnings. (enum_users): Print additional U-domain\username info in gecos field when SIDs are printed. (print_special): New function. (main): Print special accounts by calling print_special().
Corinna Vinschen
2001-10-20 13:56:09 +0000
6fdd213161* miscfuncs.cc (+__check_invalid_read_ptr_errno): New function. * syscalls.c (_write): Validate that write buffer is accessible for reading, not writing. * winsup.h: Declare new function, increase regparmization of check_* functions.
Christopher Faylor
2001-10-20 05:08:21 +0000
5318c49833* path.cc (getcwd): Allow len == 0 when buf == NULL.
Corinna Vinschen
2001-10-19 19:17:04 +0000
5e709b88c52001-10-18 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou
2001-10-18 22:41:35 +0000
b5b5b0d4deAdd ddb-kseg0.ld and switch to kseg1 if sizing memory from kseg0
Michael Meissner
2001-10-18 02:24:30 +0000
bd71a776e82001-10-17 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou
2001-10-18 01:50:26 +0000
90cb41d9e7[gas/testsuite/ChangeLog] 2001-10-17 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou
2001-10-18 01:42:16 +0000
b4e98df6bcAdd __rtems__ as system defining fchdir().
Corinna Vinschen
2001-10-17 19:28:35 +0000
e34027611aPatch from Frederic Devernay <Frederic.Devernay@sophia.inria.fr>: * poll.cc (poll): Call cygwin_select() if any fd is valid.
Corinna Vinschen
2001-10-17 18:52:06 +0000
c711831918* libc/include/sys/unistd.h: Add prototype for fchdir() when __CYGWIN__ is defined.
Corinna Vinschen
2001-10-17 18:16:43 +0000
406234a70e[gas/ChangeLog] * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400, -m7410, -m7450 and -m7455 options.
Matthew Green
2001-10-17 13:13:15 +0000
c4d5c46a4d2001-10-16 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb
2001-10-17 01:44:50 +0000
081be67e75* fhandler_raw.cc (fhandler_dev_raw::open): Eliminate compatibility code since no Win32 device names are used anymore. * fhandler_tape.cc (fhandler_dev_tape::tape_set_blocksize): Allow 0 as blocksize to indicate variable blocksize. * path.cc (win32_device_name): Generate NT internal device names using upper/lower case names for readability. Generate \DosDevices\<letter>: device name for mount table compatibility devices.
Corinna Vinschen
2001-10-16 20:17:23 +0000