summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
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.
* 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.
* * 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.
* * 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.
* * 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
|
* 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.
* * 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
|
* * 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
|
* * how-to-debug-cygwin.txt: Fix typo.Joshua Daniel Franklin2005-04-252-2/+6
|
* * 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.
* * path.cc (path_conv::check): Punt when attempting to access a nonexistentChristopher Faylor2005-04-202-1/+7
| | | | directory or file in /proc.
* * security.cc (alloc_sd): Remove DELETE bit from user's ACE ifCorinna Vinschen2005-04-192-0/+13
| | | | allow_traverse is set.
* * cygwin.din (pselect): Export.Corinna Vinschen2005-04-195-1/+44
| | | | | | * select.cc (pselect): New function. * include/cygwin/version.h: Bump API minor number. * include/sys/select.h: Include signal.h. Declare pselect.
* * fhandler.h (enum conn_state): Add connect_failed state.Corinna Vinschen2005-04-185-17/+50
| | | | | | | | | | | | | | | | | * fhandler_socket.cc (fhandler_socket::connect): Set connect_state to connect_failed when connect failed. * poll.cc (poll): Change errno to EINVAL if allocating memory fails, according to SUSv3. Add socket descriptors always to except_fds. Test for failed connect and set revents flags appropriately. * select.cc (set_bits): Set connect_state to connect_failed when select indicates failed nonblocking connect. (fhandler_dev_null::select_except): Set except_ready to false so that /dev/null is not always in except state. (peek_socket): Fix bogus conditional. (fhandler_socket::select_write): Treat all connect_states except unconnected equivalent to return consistent results. (fhandler_windows::select_except): Set except_ready to false so that /dev/windows is not always in except state.
* * include/cygwin/version.h: Bump DLL minor number to 16.Christopher Faylor2005-04-182-1/+5
|
* * grp.cc (initgroups32): Return the correct value.Corinna Vinschen2005-04-182-1/+5
|
* Actually check in files.Christopher Faylor2005-04-174-10/+10
|
* * fhandler_disk_file.cc (fhandler_base::utimes_fs): IgnoreCorinna Vinschen2005-04-163-2/+18
| | | | | | ERROR_NOT_SUPPORTED to workaround Win9x weirdness. * path.cc (symlink_info::check): Remap ERROR_INVALID_FUNTION to ERROR_FILE_NOT_FOUND for the same reason.
* * security.h (cygsidlist::addfromgr): Allow duplicate entries.Corinna Vinschen2005-04-164-67/+132
| | | | | | | | | | | | (get_server_groups): Declare new function. * security.cc (is_group_member): Simplify. (get_server_groups): New function. (get_initgroups_sidlist): Call get_server_groups. (verify_token): Allow token when supplementary sids are not in /etc/group but are in the token. Streamline the code. * grp.cc (initgroups32): New implementation. (getgroups32): Handle case where the supplementary groups are set.
* * environ.cc (environ_init): Don't set traverse checking as default.Corinna Vinschen2005-04-162-5/+6
|
* * fhandler_disk_file.cc (fhandler_base::utimes_fs): Drop touchingCorinna Vinschen2005-04-162-4/+7
| | | | ChangeTime.
* * fhandler.cc (fhandler::dup): Duplicate flags, too.Christopher Faylor2005-04-165-8/+32
| | | | | | | | | | | | | | | | | * fhandler.h (fhandler_fifo::owner): Eliminate. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Handle on-disk devices better. (fhandler_base::fstat_helper): Ditto. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Don't initialize obsolete "owner". (fhandler_fifo::open_not_mine): Add some debugging. Duplicate correct handle when we own it. (fhandler_fifo::open): Set flags from input, not from first pipe. Flag that fork fixup is needed. (fhandler_fifo::dup): Set errno correctly when DuplicateHandle fails. * pinfo.cc (commune_send): Add debugging for fifo. * cygwin/version.h: Bump API minor version to 127 to reflect exporting of sigrelese.
* * syscalls.cc (setuid32): Correct debugging output.Corinna Vinschen2005-04-152-1/+6
|
* * dcrt0.cc (do_global_dtors): Run DLL dtors.Christopher Faylor2005-04-1410-18/+62
| | | | | | | | | | | | | | | | | (__main): Don't rely on atexit to run dtors. (do_exit): Specifically call do_global_dtors here. (cygwin_exit): Ditto. * dll_init.cc (dll_global_dtors): Make global. Only run dtors once. (dll_list::init): Just set flag that dtors should be run. Don't rely on atexit. * dll_init.h (dll_global_dtors): Declare. * exceptions.cc (sigrelse): Define. * path.h (is_fs_device): New method. (is_lnk_special): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::link): Use "is_lnk_special" rather than "is_lnk_symlink". * syscalls.cc (rename): Ditto. * hookapi.cc (ld_preload): Use colon as a separator rather than space.
* .Christopher Faylor2005-04-141-3/+1
|
* * fhandler.h (class fhandler_socket): Remove utimes.Corinna Vinschen2005-04-133-12/+5
| | | | * fhandler_socket.cc (fhandler_socket::utimes): Remove.