summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * cygheap.cc (cygheap_init): Eliminate debugging #if.Christopher Faylor2005-09-055-15/+26
| | | | | | | | | | * fork.cc (fork_parent): Don't issue errors if "somebody" has set the PID_EXITED flag on a child. Don't close process handle if it has potentially already been closed. * pinfo.cc (winpids::add): Eliminate PID_ALLPIDS handling which was obsoleted by previous changes. * spawn.cc (av::fixup): Do win16 detection for .com files. Make sure that buffer has been unmapped in all cases.
* * thread.h (pthread_mutex::get_pthread_self): Remove.Corinna Vinschen2005-09-052-10/+12
| | | | | | | (pthread_mutex::lock): Use ::pthread_self as self parameter. (pthread_mutex::trylock): Ditto. (pthread_mutex::unlock): Ditto. (pthread_mutex::destroy): Ditto.
* Grr. REVERT erroneous checkin. AGAIN.Christopher Faylor2005-09-029-34/+20
|
* * Makefile.in (CXXFLAGS): Use 'override' to correctly set flags to generateChristopher Faylor2005-09-0211-21/+40
| | | | dependencies when invoked from top-level make.
* revert inexplicable previous checkinChristopher Faylor2005-09-029-34/+20
|
* bad_addressesChristopher Faylor2005-09-029-20/+34
|
* * exceptions.cc (set_process_mask_delta): Conditionalize debugging output.Christopher Faylor2005-08-293-1/+9
| | | | * sigproc.cc (proc_subproc): Make strace output a little more verbose.
* typoChristopher Faylor2005-08-281-1/+1
|
* * cygtls.h (__ljfault): Declare.Christopher Faylor2005-08-284-4/+82
| | | | | | | | (_cygtls::return_from_fault): Use __ljfault. * exceptions.cc (set_signal_mask): Revert previous checkin. * gendef (__sjfault): Split out into a separate function which doesn't bother with any special signal locking. routines. (_ljfault): Return from a __sjfault without bothering with signals.
* Add missing ChangeLog for previous checkin.Christopher Faylor2005-08-282-2/+11
| | | | Revert erroneous include/cygwin/version.h checkin.
* * cygwin.din: Correct readdir_r typo.Christopher Faylor2005-08-287-83/+99
|
* Fix typo.Christopher Faylor2005-08-281-1/+1
|
* Fix improper formatting.Christopher Faylor2005-08-281-2/+1
|
* *dir.cc (readdir_r): Invert sense on error-test.Christopher Faylor2005-08-282-1/+6
|
* 2005-08-26 Brian Dessent <brian@dessent.net>Joshua Daniel Franklin2005-08-272-3/+9
| | | | * faq-using.xml: Add 'net use' hint to network shares FAQ.
* 2005-08-26 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2005-08-276-111/+28
| | | | | | | | * Makefile.in: Remove extra anchor to make NN4 happy. * faq.xml: Link to cygwin.com/license.html * faq-resources.xml: Link instead of duplicating info. * faq-using.xml: Split out services and network shares FAQ. * faq-what.xml: Link to cygwin.com/license.html
* * path.cc (normalize_posix_path): Keep two leading slashesCorinna Vinschen2005-08-263-8/+36
| | | | | | | | intact throughout. (normalize_win32_path): Revert to only checking for slash. (realpath): Convert drive letters to cygdrive paths before doing anything else. * shared_info.h (mount_info::cygdrive_posix_path): Make public.
* * path.cc (realpath): Drop call to mount_info::conv_to_posix_pathCorinna Vinschen2005-08-252-11/+37
| | | | | | in favor of calling path_conv with PC_POSIX flag. Align error handling closer to POSIX. As on Linux, return user space allocated memory if second parameter is NULL.
* * path.cc (normalize_win32_path): Honor network paths. Fold moreCorinna Vinschen2005-08-252-8/+25
| | | | | than two leading dir separators into one. Check for dir separator instead of just slashes to handle incoming Win32 paths correctly.
* * errno.cc (errmap): Translate ERROR_NO_MORE_ITEMS to ENMFILE.Christopher Faylor2005-08-252-0/+5
|
* * mingwex/fe*.c: Revert previous changes.Danny Smith2005-08-259-14/+42
| | | | | | * include/fenv.h: Revert previous changes. Add Changelog entry for the reverted change.
* * exceptions.cc (handle_sigsuspend): Just sleep forever if called from non-mainChristopher Faylor2005-08-253-19/+35
| | | | | | | | thread. (sigpacket:process): Simplify logic which determines when and how a signal is masked. Don't trigger sigwait if there is a signal handler. * sigproc.cc (wait_sig): Update comment. Try to process a signal which is in the queue if it isn't queued for the target thread (this is still not right).
* * mingwex/feclearexcept.c (feclearexcept): Change declaration.Danny Smith2005-08-258-21/+14
| | | | | | | | | | | | | Do not return a value. * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise. * mingwex/feraiseexcept.c (feraiseexcept): Likewise. * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise. * mingwex/fegetenv.c (fegetenv): Likewise. * mingwex/fesetenv.c (fesetenv): Likewise. * mingwex/feupdateenv.c (feupdateenv): Likewise. * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept, fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct prototypes.
* * mingwex/stdio/fseeko64.c (fseeko64): Flush stream beforeDanny Smith2005-08-252-2/+10
| | | | getting filelength for SEEK_END.
* * spawn.cc (perhaps_suffix): Record errno-type error value in third argument.Christopher Faylor2005-08-242-8/+28
| | | | | (find_exec): On error, set errno returned from perhaps_suffix. (spawn_guts): Ditto.
* * fhandler_virtual.cc (fhandler_virtual::close): Don't free filebuf if it'sChristopher Faylor2005-08-243-4/+14
| | | | | | NULL. * pinfo.cc (_pinfo::commune_send): Fix test for incorrect number of bytes read from pipe.
* * syscalls.cc (endusershell): Reset shell_fp to NULL to allowCorinna Vinschen2005-08-242-1/+9
| | | | subsequent getusershell calls.
* * path.cc (path_conv::check): Fill in fileattr for /dev, defaulting toChristopher Faylor2005-08-242-3/+14
| | | | | | directory if /dev doesn't actually exist. (win32_device_name): Don't consider FH_DEV to be a device since it's really a directory which should go through mount processing.
* * cygheap.h (cygheap_types): Add HEAP_COMMUNE.Christopher Faylor2005-08-2411-891/+954
| | | | | | | | | | | | | | | | | | | | | * fhandler_proc.cc: Use cygheap rather than user heap for allocation of filebuf throughout. * fhandler_registry.cc: Ditto. * fhandler_virtual.cc: Ditto. * fhandler_process.cc: Ditto. (get_mem_values): Use malloc/realloc/free rather than new. * pinfo.cc (_pinfo::commune_send): Allocate on cygwin heap rather than user heap. Avoid calling ReadFile when correct number of characters have been read or suffer buffer corruption. (_pinfo::fd): Allocate on cygwin heap rather than user heap. (_pinfo::fds): Ditto. (_pinfo::root): Ditto. (_pinfo::cwd): Ditto. (_pinfo::cmdline): Ditto. * devices.h (FH_DEV): New define. * devices.in: Detect lone /dev. * devices.cc: Regenerate. * path.cc (path_conv::check): Treat FH_DEV as a special case.
* * sigproc.h (set_signal_mask): Remove default on second parameter and make passChristopher Faylor2005-08-236-19/+40
| | | | | | | | | | | | | | | | by reference. * signal.cc (abort): Accommodate change to set_signal_mask. * select.cc (pselect): Ditto. * exceptions.cc (handle_sigsuspend): Ditto. (ctrl_c_handler): Ditto. (sighold): Ditto. (sigrelse): Ditto. (set_process_mask_delta): Ditto. (_cygtls::call_signal_handler): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Return ENMFILE if __handle is not set. Set __handle to NULL when out of files. (fhandler_disk_file::rewinddir): Don't close handle if it's NULL. (fhandler_disk_file::closedir): Ditto.
* * dir.cc (readdir_worker): Make static. Only add '.' and '..' when readdirChristopher Faylor2005-08-233-4/+14
| | | | | | fails due to ENMFILE. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Only close handle on error != ENMFILE.
* * mtinfo.h (mtinfo_drive::error): Fix argument bug in debug_printf call.Corinna Vinschen2005-08-222-1/+5
|
* add missing entryChristopher Faylor2005-08-201-0/+1
|
* * cygerrno.h (geterrno_from_win_error): Change declaration to default to usingChristopher Faylor2005-08-2013-120/+173
| | | | | | | | | | | | | | | | | | | | | | | | | GetLastError and EACCESS. * cygwin.din: Export readdir_r. * include/cygwin/version.h: Bump API version number to 138. * syscalls.cc (readdir_worker): New function, renamed from old readdir() function. (readdir): Use readdir_worker. (readdir_r): New function. * fhandler.h (fhandler_base::readdir): Accommodate second argument indicating dirent buffer. (fhandler_disk_file::readdir): Ditto. (fhandler_cygdrive::readdir): Ditto. (fhandler_proc::readdir): Ditto. (fhandler_netdrive::readdir): Ditto. (fhandler_registry::readdir): Ditto. (fhandler_process::readdir): Ditto. * fhandler.cc (fhandler_base::readdir): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Ditto. * fhandler_cygdrive.cc (fhandler_cygdrive::readdir): Ditto. * fhandler_proc.cc (fhandler_proc::readdir): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::readdir): Ditto. * fhandler_registry.cc (fhandler_registry::readdir): Ditto. * fhandler_process.cc (fhandler_process::readdir): Ditto.
* * fhandler.h (dirent_states): Add dirent_saw_proc.Christopher Faylor2005-08-193-4/+16
| | | | | * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fill in "proc" if it is the root dir and it is missing.
* * fhandler.h (dirent_states): Add dirent_isroot, dirent_saw_cygdrive,Christopher Faylor2005-08-196-21/+77
| | | | | | | | | | | | | | dirent_saw_dev. * dir.cc (opendir): Don't zero __flags here. Push that responsibility to opendir methods. (seekdir): Preserve dirent_isrrot in __flags. (rewinddir): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Set dirent_isroot appropriately. (fhandler_disk_file::readdir): Fill in "cygdrive" and "dev" if it is the root dir and they are missing. * fhandler_process.cc (fhandler_process::opendir): Set __flags here. * fhandler_virtual.cc (fhandler_virtual::opendir): Set __flags here.
* * winsup.h (create_pipe): Declare new function.Christopher Faylor2005-08-193-0/+24
| | | | | (CreatePipe): New define. * miscfuncs.cc (create_pipe): Define new function.
* * passwd.c (longopts): Add --logonserver option.Corinna Vinschen2005-08-182-21/+65
| | | | | | | | | | | | (opts): Add -d option. (GetPW): Add server parameter which is given to Net functions. (ChangePW): Ditto. (PrintPW): Ditto. (SetModals): Ditto. (usage): Add description for -d/--logonserver option. (main): Add option handling for -d/--logonserver. Use LOGONSERVER environment variable content for server to contact, unless -d/--logonserver option is given. If both is missing, use NULL.
* * fhandler.h (fhandler_tty_common::lseek): Declare new method.Christopher Faylor2005-08-183-2/+15
| | | | | | (fhandler_tty_slave::lseek): Delete old method. (fhandler_tty_master::lseek): Delete old method. * fhandler_tty.cc (fhandler_tty_common::lseek): Define new method.
* * fhandler_socket.cc (fhandler_socket::recvfrom): Always initializeCorinna Vinschen2005-08-182-4/+10
| | | | | ret to 0. (fhandler_socket::recvmsg): Ditto.
* * errno.cc (strerror): Check errnum for underflow.Corinna Vinschen2005-08-182-1/+5
|
* * textbinary.sgml: Correct incorrect information about ability to specify textChristopher Faylor2005-08-172-2/+7
| | | | mode in fopen().
* * dcrt0.cc (dll_crt0_1): Tweak debugging stuff.Christopher Faylor2005-08-173-8/+24
| | | | | | | * fhandler_tty.cc (fhandler_tty_common::close): Rearrange the code so that the master end of the input and output pipes is closed before signalling an EOF event to the slave. (fhandler_pty_master::close): Likewise.
* 2005-08-17 Michael Jung <mjung@iss.tu-darmstadt.de>Danny Smith2005-08-172-1/+14
| | | | | | * lib/shell32.c (CLSID_RecycleBin, CLSID_ControlPanel, CLSID_MyComputer,CLSID_Internet, CLSID_NetworkPlaces, CLSID_MyDocuments, CLSID_FolderShortcut): Add GUIDs.
* 2005-08-17 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith2005-08-174-0/+48
| | | | | | | | | | | * include/shlobj.h (IContextMenu3): Define. * include/shlguid.h (IID_IContextMenu3): Declare. * lib/shell32.c (IID_IContextMenu3): Define. 2005-08-17 Martin Fuchs <martin-fuchs@gmx.net> * include/shlobj.h (SHFormatDrive): Declaration of function and associated constants.
* * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.Brian Dessent2005-08-172-31/+48
| | | | Avoid extraneous cygrunsrv invocation if 'verbose' is true.
* * init.cc (respawn_wow64_process): Make inline function. RemoveCorinna Vinschen2005-08-142-20/+60
| | | | | | | "noreturn" attribute. Add additional check if parent process is actually a 64 bit process. (dll_entry): Only test WOW64 processes with a stack in the usual "dangerous" process space area.
* * Include/_mingw.h: Increment version to 3.8.Chris Sutcliffe2005-08-133-3/+8
| | | | * Makefile.in: Ditto.
* * include/ddk/hidsdi.h: New file.Danny Smith2005-08-123-1/+81
| | | | | | * lib/ddk/hid.def: Uncomment symbols and add stdcall suffix for functions declared in hidsdi.h. Thanks to: Alex J Lennon <ajlennon at organixconsulting dot com>
* * lib/imm32.def (ImmDisableIME): Add stub.Danny Smith2005-08-122-0/+6
| | | | Thanks to: "kidmin" <kidmin at users dot sourceforge dot net>