summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * times.cc (hires_ms::usecs): Don't overreact.Corinna Vinschen2004-06-302-1/+5
|
* * times.cc (hires_ms::usecs): Reinit timer when system time overflows.Corinna Vinschen2004-06-302-0/+10
|
* * thread.cc (__cygwin_lock_lock): Don't bother locking when there is only oneChristopher Faylor2004-06-272-2/+20
| | | | | known thread. (__cygwin_lock_unlock): Ditto for unlocking.
* * fhandler_proc.cc (format_proc_cpuinfo): Test CPU vendor and printCorinna Vinschen2004-06-232-0/+33
| | | | AMD specific 3dnow capabilities.
* * fhandler_socket.cc (fhandler_socket::release): CallCorinna Vinschen2004-06-232-2/+7
| | | | WSASetLastError last.
* * autoload.cc (wsock_init): Keep lock while modifying return address.Christopher Faylor2004-06-222-2/+6
|
* * fhandler.cc (fhandler_base::open): Remove 9x specific code.Corinna Vinschen2004-06-172-9/+4
|
* 2004-06-17 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-06-177-43/+55
| | | | | | | | | | | | | | | * fhandler.cc (fhandler_base::open_9x): Do not check for null name. Move debug_printf to common code line. (fhandler_base::open): Ditto. Initialize upath. Remove second argument of pc.get_nt_native_path. * path.h (path_conv::get_nt_native_path): Remove second argument. * path.cc (path_conv::get_nt_native_path): Ditto. Call str2uni_cat. * security.h (str2buf2uni_cat): Delete declaration. (str2uni_cat): New declaration. * security.cc (str2buf2uni): Get length from sys_mbstowcs call. (str2buf2uni_cat): Delete function. (str2uni_cat): New function. * miscfuncs.cc (sys_mbstowcs): Add debug_printf.
* * fhandler.cc (fhandler_base::open): Substitute FILE_SUPERSEDE withCorinna Vinschen2004-06-172-1/+6
| | | | FILE_OVERWRITE_IF.
* * include/cygwin/version.h: REALLY bump dll minor version to 11.Christopher Faylor2004-06-092-1/+5
|
* * include/cygwin/ipc.h: Make IPC_INFO visible only for ipc systemCorinna Vinschen2004-06-082-0/+7
| | | | utilities, to make it consistent with declaration of struct seminfo.
* * path.cc (fchdir): Pass the Posix path to chdir.Corinna Vinschen2004-06-082-1/+5
|
* * dtable.cc (dtable::find_fifo): Release lock after fifo found (still racy).Christopher Faylor2004-06-076-70/+118
| | | | | | | | | | | | | | | * fhandler.h (fhandler_fifo::get_io_handle): New fifo-specific method. * fhandler_fifo.cc (fhandler_fifo::close): Close output_handle only if it is open. (fhandler_fifo::open_not_mine): Reorganize slightly. Don't call _pinfo methods when the fifo is owned by me or suffer dtable lock_cs deadlock. (fhandler_fifo::open): Call open_not_mine first, otherwise open myself (racy). * pinfo.cc (_pinfo::commune_recv): Duplicate fifo handles here in requesting processes arena to avoid one potential race (of many). (_pinfo::commune_send): Move all PICOM_FIFO code under one case statement. * thread.cc (pthread::init_mainthread) Use existing hMainProc handle rather than calling GetCurrentProcess.
* * winbase.h (ilockincr): Add more neverending changes from the inexplicableChristopher Faylor2004-06-042-2/+9
| | | | | world of gcc asm constraint magic. Should stop random crashes. (ilockdecr): Ditto.
* * autoload.cc (IsDosDeviceName_U): Define.Christopher Faylor2004-06-032-4/+15
| | | | | | * ntdll.h (IsDosDeviceName_U): Declare. * fhandler.cc (fhandler_base::open): Check to see if win32_name is a dos device and just call the 9x open if so.
* revert accidental checkinChristopher Faylor2004-06-031-4/+5
|
* * winbase.h (ilockincr): More changes from the inexplicable world of gcc asmChristopher Faylor2004-06-035-7/+22
| | | | | magic. (ilockdecr): Ditto.
* * winbase.h (ilockincr): YA correction to ensure correct operation with noChristopher Faylor2004-06-032-4/+10
| | | | | optimization. (ilockdecr): Ditto.
* * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump.Corinna Vinschen2004-06-032-1/+5
|
* * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): Redefine to a more sensibleCorinna Vinschen2004-06-032-3/+8
| | | | value.
* remove erroneous ChangeLog entryChristopher Faylor2004-06-031-4/+0
|
* * winbase.h: Fix all ilock defs as per cygwin 1.5.10 release.Christopher Faylor2004-06-031-0/+4
|
* add missing changelog entryChristopher Faylor2004-06-021-0/+4
|
* * spawn.cc (find_exec): Use has_slash to determine if path has a slash ratherChristopher Faylor2004-06-024-13/+21
| | | | than calculating this twice.
* 2004-05-30 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-312-24/+31
| | | | | | * path.cc (mount_info::add_item): Make sure native path has drive or UNC form. Call normalize_xxx_path instead of [back]slashify. Remove test for double slashes. Reorganize to always debug_print.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the fileChristopher Faylor2004-05-292-1/+6
| | | | if it uses an acl.
* * path.cc (chdir): Always use the normalized_path as posix_cwd, except if itChristopher Faylor2004-05-2844-282/+287
| | | | | | starts with a drive. Also perform whitespace cleanup.
* * winbase.h: Semi-revert previous patch as it caused strange behavior. UseChristopher Faylor2004-05-253-5/+10
| | | | syntax similar to that recommended in mingw-dvlpr.
* * include/cygwin/version.h: Bump DLL minor number to 11.Christopher Faylor2004-05-252-1/+5
|
* * winbase.h: Add proper attributions for memory operands throughout.Christopher Faylor2004-05-252-6/+10
|
* * include/cygwin/version.h: Bump api minor version number.Christopher Faylor2004-05-254-3/+13
| | | | * cygwin.din: Export atoll.
* * tty.cc (tty_list::allocate_tty): Leave tty_mutex armed on successful returnChristopher Faylor2004-05-203-3/+17
| | | | | | from !with_console * fhandler_tty.cc (fhandler_pty_master::open): Release tty_mutex here after all initialization is done.
* * grp.cc (getgrgid_r): Replace struct group by struct __group32 inCorinna Vinschen2004-05-172-4/+10
| | | | | argument definition. (getgrnam_r): Ditto.
* * cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile,Corinna Vinschen2004-05-1711-3/+170
| | | | | | | | | | | | | | | | | | getgrgid_r, getgrnam_r and getlogin_r. * grp.cc (getgrgid_r): New function. (getgrnam_r): Ditto. * syscalls.cc (flockfile): Ditto. (ftrylockfile): Ditto. (funlockfile): Ditto. * sysconf.cc (sysconf): Return LOGIN_NAME_MAX in case of _SC_LOGIN_NAME_MAX. * thread.cc (__cygwin_lock_trylock): Define int. Return value from call to pthread_mutex_trylock. * uinfo.cc (getlogin_r): New function. * include/limits.h: Define LOGIN_NAME_MAX. * include/cygwin/version.h: Bump API minor number. * include/sys/lock.h: Add declarations for __cygwin_lock_xxx functions. * include/sys/stdio.h: Add define for _ftrylockfile.
* * tty.cc (tty_list::init): Move hmaster initialization earlier to preventChristopher Faylor2004-05-172-1/+6
| | | | compilation error.
* Change the name "title_mutex" to "tty_mutex" throughout.Christopher Faylor2004-05-177-42/+50
| | | | | | * tty.h (tty_list::allocate_tty): Turn argument into a boolean. * tty.cc (tty_list::init): Protect entire allocation operation with tty_mutex (formerly title_mutex) to protect against allocation races.
* add missing fileChristopher Faylor2004-05-161-0/+32
|
* * fhandler_socket.cc (fhandler_socket::recvfrom): Use original flagsCorinna Vinschen2004-05-162-12/+15
| | | | | value in each WSARecvFrom call. (fhandler_socket::recvmsg): Ditto. Reformat slightly.
* * cygthread.cc (cygthread::is): Eliminate.Christopher Faylor2004-05-169-105/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygthread.h (cygthread::is): Eliminate declaratin. * fhandler_console.cc (fhandler_console::read): Only wait for signal_arrived in the main thread. * fhandler_socket.cc: Include new "wininfo.h". (fhandler_socket::ioctl): Use 'winmsg' rather than 'gethwnd()'. * sync.cc (muto::grab): Define new function. (muto::acquire): Use tls pointer rather than tid. (muto::acquired): Ditto. (muto::reset): Delete. (muto::release): Ditto. Also implement "close on last release". * sync.h (muto::tid): Delete. (muto::tls): New field. (muto::ismine): Delete. (muto::owner): Delete. (muto::unstable): Delete. (muto::reset): Delete. (muto::upforgrabs): New method. (muto::grab): Ditto. (new_muto_name): New define. * wininfo.h: New file. (wininfo): New class. * window.cc: Rework throughout to use winfo class for controlling invisible window operation. (gethwnd): Delete definition. * winsup.h (gethwnd): Delete declaration.
* revert previous not-ready-for-primetime checkin.Christopher Faylor2004-05-156-93/+55
|
* * cygheap.h: Remove some parameter names from declarations throughout.Christopher Faylor2004-05-158-61/+105
| | | | | (cygheap::set): Reflect changes in declaration for arguments and return value from previous checkin.
* * cygheap.h (cwdstuff::set): Modify return value and arguments.Christopher Faylor2004-05-152-36/+68
| | | | | | | * path.cc (chdir): Specify PC_POSIX. Do not call SetCurrentDirectory. Set posix_cwd in a way that does not break find.exe. Change call to cwd.set. (cwdstuff::get_initial): Do not call GetCurrentDirectory here. (cwdstuff::set): Call SetCurrentDirectory and GetCurrentDirectory as needed.
* remove keyword stuffChristopher Faylor2004-05-121-292/+2
|
* * path.cc (path_conv::check): Don't bail out with error if path is "//".Corinna Vinschen2004-05-122-1/+5
|
* * cygheap.h (struct init_cygheap): Add mt_h member.Corinna Vinschen2004-05-123-3/+10
| | | | | * fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle. (mtinfo_init): Use cygheap->mt_h handle. Protect it.
* 2004-05-12 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-124-36/+61
| | | | | | | | | | | | | | | * tty.h: Remove the %d or %x from all cygtty strings. (tty::open_output_mutex): Only declare. (tty::open_input_mutex): Ditto. (tty::open_mutex): New definition. * fhandlet_tty.cc (fhandler_tty_slave::open): Declare buf with size CYG_MAX_PATH and replace __small_printf calls by shared_name. * tty.cc (tty::create_inuse): Ditto. (tty::get_event): Ditto. (tty::common_init): Ditto. (tty::open_output_mutex): New method definition. (tty::open_input_mutex): Ditto. (tty::open_mutex): New method.
* * fhandler.cc (fhandler_base::open): Set file attributes to correctCorinna Vinschen2004-05-113-0/+9
| | | | | value when creating files. * path.h (class path_conv): Add write accessor for file_attributes.
* * fhandler.h (class fhandler_socket): Add "owner" status flag.Corinna Vinschen2004-05-103-12/+50
| | | | | | | | | | | * fhandler_socket.cc (wait): Take flag parameter to take FD_OOB into account. Don't wait infinitely. (fhandler_socket::recvfrom): Also wait for FD_OOB if socket owner. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::fcntl): Set owner status flag if F_SETOWN with own pid is called.
* 2004-05-09 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-092-11/+17
| | | | | * environ.cc (build_env): Only try to construct required-but-missing variables while issetuid.
* * syscalls.cc: Include environ.h.Christopher Faylor2004-05-083-11/+14
| | | | | (chroot): Set errno in case of path error. Call getwinenv. * environ.cc: Remove the NO_COPY attribute of conv_envvars.