aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2001-11-08 * select.cc: Set errno using set_sig_errno() throughout.Corinna Vinschen4-10/+18
* signal.cc (signal): Always set SA_RESTART flag. * syscalls.cc (_read): Revert previous patch.
2001-11-08 * select.cc (fhandler_tty_slave::ready_for_read): Return 0 on EBADF.Corinna Vinschen3-1/+8
* syscalls.cc (_read): If ready_for_read() failed, save errno from being overwritten by signal handler call.
2001-11-072001-11-08 Robert Collins <rbtcollins@hotmail.com>Robert Collins2-7/+15
* include/winnt.h: Define *_SID_AUTHORITY appropriately. (nested structures.) GetCurrentFiber: Create a prototype before the implementation; GetFiberData: Ditto.
2001-11-072001-11-08 Robert Collins <rbtcollins@hotmail.com>Robert Collins2-1/+5
* include/errno.h: Fix "errno is not a prototype" warning.
2001-11-07 * lib/getopt.c (getopt_internal): Reset optind to 1 only if optresetCorinna Vinschen2-1/+6
is not set.
2001-11-06* select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_openChristopher Faylor2-1/+6
test.
2001-11-05* include/cygwin/version.h: Bump version to 1.3.5.Christopher Faylor2-2/+6
2001-11-05 * mmap.cc (mmap_record::find_empty): Add input parameter check.Corinna Vinschen2-0/+6
2001-11-05* Makefile.in: Delete unused executable after creating base-files.Egor Duda2-3/+10
2001-11-05Eliminate excess whitespace.Christopher Faylor38-184/+183
2001-11-05Add strace debugging section.Christopher Faylor1-6/+29
2001-11-05* dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV due toChristopher Faylor2-1/+6
incorrect parameter placement.
2001-11-05* fhandler.h (fhandler_pipe::broken_pipe): Renamed from saweof.Christopher Faylor3-5/+13
(fhandler_pipe::set_eof): Reflect above change. * pipe.cc (fhandler_pipe::fhandler_pipe): Ditto. (fhandler_pipe::read): Ditto. (fhandler_pipe::hiteof): Ditto.
2001-11-05* pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe"Christopher Faylor2-1/+6
test.
2001-11-05* select.cc: Add more comments throughout. Use bool 'true' where appropriateChristopher Faylor2-17/+34
throughout. (fhandler_socket::select_read): Remove duplicate setting for *_ready which inadvertently overrode previous, correct setting. (fhandler_socket::select_write): Ditto.
2001-11-04* lib/Makefile.in: Add .NOTPARALLEL target since dlltool cannot run in parallelChristopher Faylor3-0/+12
invocations. * lib/scrnsave.c (WinMain): Trivial change to avoid a compiler warning.
2001-11-04 * getfacl.c (username): New function.Corinna Vinschen3-51/+255
(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.
2001-11-04* strace.cc (main): New option '-w'. Start traced process in separateEgor Duda2-3/+31
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.
2001-11-04* Makefile.in: Force configure in testsuite directory if config.status does notChristopher Faylor2-3/+8
exist.
2001-11-04* Makefile.in: Oops. Revert previous change. Add Makefile/Makefile.inChristopher Faylor2-1/+8
dependency.
2001-11-04* Makefile.in: Add check target.Christopher Faylor2-1/+5
2001-11-04* configure.in: Disable subauth directory test.Christopher Faylor4-4/+10
* configure: Regenerate. * Makefile.in: Use MAKE variable in directory builds.
2001-11-04* Makefile.in: Add directory dependencies to ensure ordering when using 'makeChristopher Faylor2-0/+21
-jN'.
2001-11-04* select.cc (verify_console): New function.Christopher Faylor2-2/+25
(verify_windows): Ditto. (fhandler_console::select_read): Really do need to verify that there is something to read. (fhandler_console::select_windows): Ditto.
2001-11-04* fhandler.h (fhandler_base::ready_for_read): Remove unused argument.Christopher Faylor4-162/+128
(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.
2001-11-03 * security.cc (get_supplementary_group_sidlist): New function.Corinna Vinschen2-0/+38
(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.
2001-11-03* Makefile.common: Remove preferred-stack-boundary setting since gcc 2.95.3Christopher Faylor2-1/+6
doesn't work well with it.
2001-11-03* fhandler.cc (fhandler_base::read): Return just read ahead characters if slowChristopher Faylor5-46/+36
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.
2001-11-03* dll_init.h (class dll_list): Reorder functions to avoid compiler "can'tChristopher Faylor10-58/+87
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.)
2001-11-02* libltp/lib/forker.c: Include proper header to avoid compilerEgor Duda2-0/+6
warning.
2001-11-02* Makefile.common: Add some stuff to common CFLAGS.Christopher Faylor2-1/+5
2001-11-02* fhandler.h: Change Windows 'BOOL's to c++ 'bool's for all variables.Christopher Faylor4-12/+21
* 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.
2001-11-01* cygheap.h (cygheap_fdmanip::isopen): Set appropriate errno if fd not open.Christopher Faylor4-2/+29
* 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.
2001-11-01* dtable.cc (dtable::build_fhandler): Issue internal error on unknown device.Christopher Faylor9-119/+146
* 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.
2001-11-012001-10-30 Danny Smith <dannysmith@users.sourceforge.net>Earnie Boyd4-14/+34
* include/io.h (_commit): Add declaration. Thanks to: "stefan" <stefan@lkcc.org> 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net> * include/sys/stat.h: Make S_IS* macros safer. 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (EXIT_FAILURE): Change value to 1. 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (__p__environ, __p__wenviron): Use __STDC__ prototypes.
2001-11-012001-11-01 Danny Smith <dannysmith@users.sourceforge.net>Earnie Boyd12-19/+197
* include/basetyps.h (DECLARE_INTERFACE): Don't add __attribute__((com_interface)) for __GNUC__ >= 3. 2001-11-01 Danny Smith <dannysmith@users.sourceforge.net> * include/commdlg.h (PRINTPAGERANGE): Add structure definition. (PRINTDLGEX[AW]): Likewise. (PrintDlgEx[AW]): Add function declaration. * lib/comdlg32.def (PrintDlgEx[AW]): Add function stubs. * ChangeLog: Fix typo in last entry. 2001-11-01 TAMURA Kent <tkent@users.sourceforge.net> * include/objbase.h (CoGetClassObject): Change third parameter to COSERVERINFO*. 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net> * include/winuser.h (MOUSEEVENTF_WHEEL): Define. Thanks to: Kim Saunders. * include/oleauto.h: Define VARIANT* flags for VariantChangeType. Thanks to: Pat Thoyts. * include/winnt.h: Change C++ style comment to C style. * include/shlobj.h: Ditto. * include/objbase.h (enum tagCOINIT): Remove comma at end of list. * include/oledlg.h (enum tagOLEUIPASTEFLAG): Ditto. * include/oleidl.h (enum tagDROPEFFECT): Mark as __extension__ (enum not limited to range of int). * include/oaidl.h (struct tagVARIANT): Mark as __extension__ (struct with no named members), ifndef NONAMELESSUNION. 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net> * include/winuser.h (CREATESTRUCT): UNICODE it. (CBT_CREATEWND): Likewise. 2001-10-20 Corinna Vinschen <corinna@vinschen.de> * include/winnetwk.h (WNetGetResourceInformationA): Add declaration. (WNetGetResourceInformationW): Ditto. (WNetGetResourceInformation): Add define. 2001-10-12 Pedro A Aranda <paaguti@hotmail.com> * include/winuser.h (POINTSTOPOINT): Use explicit casts before extracting words.
2001-10-31* environ.cc: Set reset_com to false to mimic linux behavior more closely.Christopher Faylor3-1/+7
2001-10-31 * dtable.cc (dtable::vfork_child_dup): Revert impersonationCorinna Vinschen2-0/+13
before duplicating fhandler.
2001-10-31remove garbage ChangeLog entry.Christopher Faylor1-4/+5
2001-10-31* sigproc.cc (sigproc_terminate): Don't signal main thread when exiting.Christopher Faylor4-5/+11
* sigproc.h (sigframe): Decorate some methods with `inline'. (new_muto): Coerce pointer to new to void *.
2001-10-31* fhandler.cc (fhandler_base::fork_fixup): Pass old handle to setclexec_pid.Christopher Faylor2-1/+6
2001-10-31* cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh.Christopher Faylor7-15/+78
(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.
2001-10-30 * fhandler_socket.cc (fhandler_socket::close): Add error handling.Corinna Vinschen2-2/+13
Fixed ChangeLog entries.
2001-10-30 * (fhandler_socket::dup): Revert previous change.Corinna Vinschen2-2/+4
2001-10-30* dtable.cc (dtable::dup2): Add some debugging. Use methods from passed inChristopher Faylor4-13/+27
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.
2001-10-30 * security.cc (is_group_member): Call NetLocalGroupGetMembers() forCorinna Vinschen2-8/+8
local machine only. (get_user_local_groups): Ditto for NetLocalGroupEnum().
2001-10-29* Makefile.in: Propagate 'clean' to subdirs properly.Christopher Faylor2-1/+5
2001-10-29* fhandler.cc (fhandler_base::set_name): Set namehash here to catch nameChristopher Faylor2-2/+14
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
2001-10-29* winsup.api/ltp/stat03.c: Supress compiler warning.Egor Duda2-4/+8
2001-10-29* winsup.api/signal-into-win32-api.c: Supress compiler warning.Egor Duda2-1/+5