summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o.Corinna Vinschen2005-05-1012-803/+1179
| | | | | | | | | | | | | | | | | | | | | | | | * devices.h (FH_KMSG): Define new device. * devices.in: Add "/dev/kmsg" entry. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Handle case FH_KMSG. * fhandler.h (class fhandler_mailslot): New class. (class select_stuff): Add device_specific_mailslot pointer. * fhandler_mailslot.cc: New file. * select.cc (peek_mailslot): New function. (verify_mailslot): Ditto. (struct mailslotinf): New stuct to handle select on mailslots. (thread_mailslot): New function. (start_thread_mailslot): Ditto. (mailslot_cleanup): Ditto. (fhandler_mailslot::select_read): New method. * syslog.cc (klog_guard): New muto. (dev_kmsg): Local mailslot for kernel message device. (vklog): New function. (klog): Ditto. * winsup.h (vklog): Declare. (klog): Ditto. * include/sys/syslog.h: Define _PATH_KLOG.
* * dcrt0.cc (dll_crt0_1): Call cygwin_exit to ensure that destructors areChristopher Faylor2005-05-102-1/+8
| | | | handled correctly.
* * path.cc (path_conv::check): Set correct file attributes for socketCorinna Vinschen2005-05-102-1/+6
| | | | files.
* * mingwex/math/nexttoward.c: New file.Danny Smith2005-05-106-3/+103
| | | | | | | | | | * mingwex/math/nexttowardf.c: New file. * mingwex/math/nextafterl.c: Add nexttowardl aliaa. * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c, mexttowardf.c, (MATH_OBJS): Add nexttoward.o, mexttowardf.o, * include/math.h (nexttoward, nextowardf, nexttowardl): Add prototypes.
* * mingwex/math/nextafterf.c (nextafterf): CorrectDanny Smith2005-05-095-13/+80
| | | | | | | | handling of -0.0. * mingwex/math/nextafterl.c: New file. * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c. (MATH_OBJS): Add nextafterl.o. * include/math.h (nextafterl): Uncomment prototype.
* 2005-05-09 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2005-05-095-2/+117
| | | | | | | | | | | | | * fhandler.h (class fhandler_netdrive): New class. * fhandler_netdrive.cc (fhandler_netdrive::fhandler_netdrive): New constructor. (fhandler_netdrive::exists): New method. (fhandler_netdrive::fstat): Ditto. (fhandler_netdrive::readdir): Ditto. (fhandler_netdrive::open): Ditto. * dtable.cc (build_fh_pc): Handle case FH_NETDRIVE. * path.cc (isvirtual_dev): Add FH_NETDRIVE. (mount_info::conv_to_win32_path): Detect netdrive device and bypass mount search for network paths.
* * cygcheck.cc (nuke): New function.Christopher Faylor2005-05-092-0/+47
| | | | | | (load_cygwin): New function. (main): Use load_cygwin to load argv/envp from cygwin environment, if appropriate.
* * strace.cc (attach_process): Don't call load_cygwin(). Assume that it'sChristopher Faylor2005-05-092-3/+16
| | | | | | already happened. (dotoggle): Ditto. (main): Set argv from cygwin environment, if it exists.
* * dcrt0.cc (get_cygwin_startup_info): New function pulled from dll_crt0_0.Christopher Faylor2005-05-094-43/+72
| | | | | | | (dll_crt0_0): Use get_cygwin_startup_info to retrieve cygwin-specific startup pointer. * external.cc (cygwin_internal): Implement CW_ARGV and CW_ENVP. * include/sys/cygwin.h: Implement CW_ARGV and CW_ENVP.
* * how-programming.texinfo: Replace MAKE_MODE entry with FAQ about execvp ↵Joshua Daniel Franklin2005-05-083-24/+31
| | | | errors and cygexec.
* * mingwex/math/erfl.c: New file.Danny Smith2005-05-084-6/+308
| | | | | | * mingwex/Makefile.i (MATH_DISTFILES): Add erfl.c. (MATH_OBJS): Add erfl.o. * include/math.h (erfl, erfcl): Uncomment prototypes.
* * path.cc (normalize_posix_path): Don't treat '//' specially since newerChristopher Faylor2005-05-073-1/+7
| | | | versions of bash now get this right.
* * devices.cc: Regenerate with correct name for dev_netdrive_storage.Christopher Faylor2005-05-072-1/+5
|
* move commentChristopher Faylor2005-05-061-2/+2
|
* fix breakpoint exampleChristopher Faylor2005-05-061-2/+2
|
* * Makefile.in (DLL_O_FILES): Add fhandler_netdrive.o.Christopher Faylor2005-05-066-1/+31
| | | | | | | | * fhandler_netdrive.cc: Placeholder file for future development. * devices.h (FH_NETDRIVE): Define new virtual device type. (netdrive_dev): Define. * devices.in (dev_netdrive_storage): Define. * devices.cc: Regenerate.
* * cygerrno.h (__set_errno): Remove useless parentheses.Corinna Vinschen2005-05-042-1/+5
|
* * cygerrno.h (__set_errno): Define as inline function here.Corinna Vinschen2005-05-043-13/+13
| | | | | (set_errno): Always define as call to __set_errno. * debug.cc (__set_errno): Move to cygerrno.h.
* * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessorDanny Smith2005-05-043-3/+10
| | | | | | #if (WCHAR_MAX <= WCHAR_MIN) is false. * include/stdint.h (WCHAR_MAX): Likwise. (WINT_MAX): Likewise.
* * shared.cc (user_shared_initialize): Rework locking so that nothing is checkedChristopher Faylor2005-05-041-11/+8
| | | | until cb is non-zero.
* * shared.cc (user_shared_initialize): Rework locking so that nothing is checkedChristopher Faylor2005-05-041-0/+5
| | | | until cb is non-zero.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't treatCorinna Vinschen2005-05-032-2/+13
| | | | | inability to open file as failure if only SetFileAttributes is going to be called. Only call set_file_attribute if really necessary.
* * fhandler_socket.cc (get_inet_addr): Add missing __seterrno call.Corinna Vinschen2005-05-032-0/+6
|
* * mingwex/math/signbit.c (__signbit): Make return valueDanny Smith2005-05-035-6/+15
| | | | | | | | consistent with GCC's __builtin_signbit. * mingwex/math/signbitf.c (__signbitf): Likewise. * mingwex/math/signbitf.c (__signbitl): Likewise. * include/math.h (__signbit, __signbitf, __signbitl): Likewise for inlines.
* * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define asDanny Smith2005-05-023-15/+14
| | | | | | variadic macro. * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL. Remove unused MBTOWC_FLAGS define.
* white space and minor comment cleanup.Christopher Faylor2005-05-0240-265/+265
|
* * fhandler_tty.cc (fhandler_tty_slave::read): Actually read input when vmin ==Christopher Faylor2005-05-022-1/+6
| | | | vtime == 0.
* * mount.cc (usage): Clarify action of -m option.Christopher Faylor2005-05-013-2/+6
|
* * environ.cc (spenv::force_into_environment): Rename from add_always.Christopher Faylor2005-04-303-8/+22
| | | | | | | (spenv::add_if_exists): Rename from force. (build_env): Accommodate name changes. Make sure that stuff that is always supposed to be in the environment is actually added to the environment. * shared.cc (open_shared): Restore VirtualFree eliminated by 2005-04-28 change.
* * errno.cc (errmap): Sort table.Christopher Faylor2005-04-302-79/+83
|
* * errno.cc (errmap): Map ERROR_NETNAME_DELETED to ENOSHARE.Christopher Faylor2005-04-302-0/+5
|
* * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags toDave Korn2005-04-292-1/+10
| | | | mnt_opts string if present in mount flags.
* * shared_info.h (cygwin_shared_address): Bump to a higher value to avoidChristopher Faylor2005-04-288-69/+99
| | | | | | | | | | | | | | | collision with large data areas. * fhandler_console.cc (fhandler_console::get_tty_stuff): Accommodate changes to open_shared arguments. * fhandler_tape.cc (mtinfo_init): Ditto. * pinfo.cc (pinfo::init): Use open_shared rather than win32 mmap calls. * shared.cc (user_shared_initialize): Ditto. (memory_init): Ditto. (open_shared): Change to allow use a smore general mmap handler. * shared_info.h (shared_locations): Add SH_JUSTCREATE, SH_JUSTOPEN. (open_shared): Change declaration to match new usage. * autoload.cc (LoadDLLfuncEx2): Define in terms of LoadDLLfuncEx3. (LoadDLLfuncEx3): New macro.
* (check in files that should have been checked in previously)Christopher Faylor2005-04-282-3/+7
| | | | | | * fhandler.cc (fhandler_base::open_9x): Remove (broken) check for O_CREAT|O_EXCL. * syscalls.cc (open): Do O_CREAT|O_EXCL check here first.
* * fhandler.cc (fhandler_base::open_9x): Remove (broken) check forChristopher Faylor2005-04-281-0/+6
| | | | | O_CREAT|O_EXCL. * syscalls.cc (open): Do O_CREAT|O_EXCL check here first.
* * environ.cc (build_env): Ensure that win32 array is properly filled in when aChristopher Faylor2005-04-272-1/+6
| | | | missing value has to be generated.
* * include/cygwin/version.h: Bump DLL minor number to 17.Christopher Faylor2005-04-262-1/+5
|
* * include/wininet.h (FtpGetFileSize): Add prototype.Danny Smith2005-04-262-2/+9
| | | | | (FtpCommand[AW]): Correct prototypes. Reported by <siger at users dot sf dot net>
* * mount.cc (mount_commands): Display "-X" option when appropriate.Christopher Faylor2005-04-251-0/+4
|
* * include/vfw.h (capCreateCaptureWindow[AW]): Add prototypes.Danny Smith2005-04-252-2/+21
| | | | | | (capGetDriverDescription[AW]): Likewise. ChangeLog: Typo fixes.
* * how-to-debug-cygwin.txt: Fix typo.Joshua Daniel Franklin2005-04-252-2/+6
|
* * mingwex/mbrtowc.c: New file.Danny Smith2005-04-248-26/+364
| | | | | | | | | | | | | * mingwex/wcrtomb.c: New file. * mingwex/btowc.c: New file. * mingwex/wctob.c: New file. * mingwex/mb_wc_common.h: New file. * mingwex/Makefile.in (DISTFILES): Add new files. (Q8_OBJS): Add new objects. * include/wchar.h: Adjust comment about mbrtowc() and related funcions. Add __restrict__ to pointer params in prototypes. (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove arg names from protototypes.
* 2005-04-23 Wu Yongwei <adah@sh163.net>Danny Smith2005-04-242-7/+18
| | | | | | | mingwex/dirent.c: Formatting changes. mingwex/dirent.c (_topendir): Make the end-of-path slash check MBCS-safe.
* * shared.cc (user_shared_initialize): Implement locking similar to shared_infoChristopher Faylor2005-04-232-1/+10
| | | | when initializing shared region.
* * fhandler.h (dev_console::set_color): Define new function.Christopher Faylor2005-04-223-63/+84
| | | | | | | | | | | | | | | | (dev_console::set_default_attr): Ditto, moved from fhandler_console. (dev_console::fillin_info): Ditto. Accommodate this change throughout this file. (fhandler_console::get_win32_attr): Eliminate. * fhandler_console.cc (fhandler_console::get_tty_stuff): Properly set default attributes on initialization. (fhandler_console::open): Set current attributes rather than default color on open. (fhandler_console::get_win32_attr): Eliminate. (dev_console::set_color): New function. Move get_win32_attr stuff here. (dev_console::set_default_attr): New function, moved from fhandler_console. (dev_console::fillin_info): Ditto. (fhandler_console::char_command): Call set_color to set screen characteristics.
* * fhandler.cc (fhandler_base::read): Remove unused signal state tweaks.Christopher Faylor2005-04-227-80/+77
| | | | | | | | | | | | * fhandler.h (fhandler_pipe::create_selectable): Declare. (fhandler_fifo::close_one_end): Declare. * fhandler_fifo.cc (fhandler_fifo::close_one_end): Define. (fhandler_fifo::open_not_mine): Use close_one_end to close appropriate end of pipe. * pinfo.cc (_pinfo::commune_recv): Ditto. * pipe.cc (fhandler_pipe::create_selectable): Rename from create_selectable_pipe. Reorganize. (fhandler_pipe::create): Use create_selectable.
* * shared.cc (shared_info::initialize): Test previous version of shared memoryChristopher Faylor2005-04-212-9/+13
| | | | | magic rather than current version when determining if there has been a shared memory mismatch.
* revert erroneous checkinChristopher Faylor2005-04-201-13/+0
|
* * sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero value.Christopher Faylor2005-04-203-1/+21
| | | | * strace.cc (strace::hello): Report parent pid of executing process.
* * path.cc (path_conv::check): Fix problem reading symlinks introduced in belowChristopher Faylor2005-04-202-11/+29
| | | | | change by reverting the change and adding an additional test for nonexistent files in /proc.