summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * include/winbase.h (GetProcessId): Remove duplicate declaration.Danny Smith2005-10-122-4/+6
| | | | Use _WIN32_WINNT >= 0x0501 guard.
* * include/stddef.h: Remove.Danny Smith2005-10-123-14/+5
| | | | * include/stdarg.h: Remove.
* * mingwex/complex/csqrt.c (csqrt): The sign of real partDanny Smith2005-10-124-8/+16
| | | | | | of result is positive when real part of arg == 0; * mingwex/complex/csqrtf.c (csqrtf): Ditto. * mingwex/complex/csqrtl.c (csqrtl): Ditto.
* * include/time.h (_time64): Correct prototype.Danny Smith2005-10-122-1/+5
|
* Add ChangeLog: * include/winbase.h (GetProcessId): Declare.Christopher Faylor2005-10-113-1/+7
| | | | Revert erroneous include/winsock.h checkin.
* revert erroneous checkinChristopher Faylor2005-10-112-6/+2
|
* * Makefile.in: Make sure that directories are created prior to copying to them.Christopher Faylor2005-10-112-0/+9
|
* * Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.Christopher Faylor2005-10-116-4/+13
|
* * net.cc (cygwin_gethostbyname): Remove debugging.Christopher Faylor2005-10-112-3/+4
|
* * syslog.cc (try_connect_syslogd): Add priority parameter. Use writevCorinna Vinschen2005-10-112-15/+37
| | | | | | | to add the priority to the message in a syslog conformant way. (vsyslog): If facility isn't set in the priority, use default facility as given in call to openlog. Fix agressive use of spaces in syslog output. Call try_connect_syslogd with priority parameter.
* * (symlink_info::set_error): Change to return bool if input error should beChristopher Faylor2005-10-112-7/+25
| | | | | ignored. (symlink_info::check): Treat path as a normal file if set_error returns false.
* * mingwex/fegetenv.c (fegetenv): Restore exception masks.Danny Smith2005-10-083-7/+13
| | | | | * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions to non-stop. Use "fnclex" to clear exception flags.
* * cygheap.h (class process_lock): New class.Christopher Faylor2005-10-038-23/+49
| | | | | | | | | | | | | | | * dtable.h (class dtable): Add class process_lock as a friend. * dcrt0.cc (get_exit_lock): Delete. (do_exit): Use process_lock class instead of get_exit_lock. * exceptions.cc (signal_exit): Ditto. * pinfo.cc (pinfo::exit): Ditto. (_pinfo::commune_process): Set process lock around this whole function. (_pinfo::commune_request): Use process_lock rather than myself.lock. * pinfo.h (pinfo::_lock): Delete. (pinfo::initialize_lock): Delete. (pinfo::lock): Delete. (pinfo::unlock): Delete. * winsup.h (get_exit_lock): Delete declaration.
* add other optionsChristopher Faylor2005-10-031-0/+7
|
* * uname.cc (uname): Disable use of GetNativeSystemInfo.Corinna Vinschen2005-10-032-0/+10
|
* 2005-10-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2005-10-023-16/+35
| | | | | * faq-what.xml: Add 2003 and WOW64 to "supported" FAQ. * faq-programming.xml: Fix cygexec FAQ, building link.
* * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock.Christopher Faylor2005-10-027-30/+56
| | | | | | | | | | * exceptions.cc (exit_lock): Delete. (events_init): Don't init exit_lock. * (_pinfo::commune_process): Add per-PICOM debugging. * sigproc.cc (talktome): Add some temporary debugging statements. * fhandler_proc.cc (format_proc_cpuinfo): Cosmetic change. (format_proc_partitions): Ditto. * syscalls.cc (locked_append): Ditto.
* * dcrt0.cc (do_exit): Don't set ES_SET_MUTO here. Call get_exit_lock()Christopher Faylor2005-09-305-12/+38
| | | | | | | | | | | | instead. (get_exit_lock): New function. Grabs the lock and sets initial exit_state. * exceptions.cc (try_to_debug): Use low_priority_sleep. (sigpacket::process): Avoid handler if this is an exec stub. (signal_exit): Use get_exit_lock rather than manipulating the exit_lock critical section directly. * pinfo.cc (pinfo::exit): Ditto. * winsup.h (get_exit_lock): Declare. (exit_lock): Delete declaration.
* Fix typo.Corinna Vinschen2005-09-301-1/+1
|
* * fhandler_disk_file.cc: Change calls to pc.set_attributes intoCorinna Vinschen2005-09-303-4/+9
| | | | | calls to pc.file_attributes throughout. * path.h (class path_conv): Remove superfluous set_attributes method.
* * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): UseCorinna Vinschen2005-09-302-2/+9
| | | | | fhandler method to access majoer device number. Add comment to explain floppy weirdness.
* * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also useCorinna Vinschen2005-09-302-0/+7
| | | | | attributes stored in this->pc if call to GetFileInformationByHandle failed.
* * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only writeCorinna Vinschen2005-09-302-2/+7
| | | | attributes if call to GetFileInformationByHandle was successful.
* * fork.cc (frok::parent): Simplify error messages. Don't issue an error whenChristopher Faylor2005-09-302-11/+24
| | | | | child.remember fails. (fork): When appropriate, build up an error message from grouped.error.
* * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Don't callCorinna Vinschen2005-09-292-1/+13
| | | | EX ioctls on floppy drives.
* * dir.cc (mkdir): Check for trailing /. or /.. component.Corinna Vinschen2005-09-293-0/+39
| | | | | | (rmdir): Ditto. * path.cc (has_dot_last_component): New function. * path.h (has_dot_last_component): Add declaration.
* * crt0.cc: Remove PPC considerations.Corinna Vinschen2005-09-292-9/+9
| | | | (WinMainCRTStartup): Add symbol as alias to mainCRTStartup.
* Fix typo.Christopher Faylor2005-09-281-2/+2
|
* Change name from commune_recv to commune_process throughout. Change name fromChristopher Faylor2005-09-286-249/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commune_send to commune_request throughout. * pinfo.h (PICOM_EXTRASTR): New flag. (PICOM_FIFO): Define with new flag. (_pinfo::hello_pid): Delete. (_pinfo::tothem): Delete. (_pinfo::fromthem): Delete. (_pinfo::commune_process): Rename from commune_recv. Add a siginfo_t argument to declaration. (_pinfo::commune_request): Rename from commune_send. Change DWORD to __uint32_t in declaration. * pinfo.cc (_pinfo::commune_process): Rename from commune_recv. Add siginfo_t argument. Use information from argument rather than reading from another pipe. Synchronize with other process's commune event. (_pinfo::commune_request): Rename from commune_send. Change DWORD to __uint32 in argument. Fill out information in new siginfo_t element and rely on extended operation of sig_send rather than trying to deal with synchronization issues here. Use process handle and read pipe information filled out by sig_send to gather information from the other process. * sigproc.cc (sig_send): Take special action if "communing" to ensure synchronization with the other process and to return information about the other process to the caller. (talktome): Accept a siginfo_t and handle arguments. Read additional information from the signal pipe when _si_commune._si_code has the PICOM_EXTRASTR flag set. (wait_sig): Pass the transmitted siginfo_t struct and the pipe handle to talktome. Close pipe read handle as soon as possible after we detect that we're exiting.
* * hookapi.cc (hook_or_detect_cygwin): Correct inverted test for whether toChristopher Faylor2005-09-282-1/+6
| | | | allocate a buffer by always allocating a buffer.
* * fhandler.h (class fhandler_dev_raw): Delete current_position andCorinna Vinschen2005-09-286-343/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eof_detected status flag. Delete is_eom and is_eof methods. Move drive_size, bytes_per_sector, eom_detected status flag, as well as the methods read_file, write_file, raw_read and raw_write to ... (class fhandler_dev_floppy): ... here. Remove is_eom and is_eof methods. Add dup method. * fhandler_floppy.cc (IS_EOM): New macro. (fhandler_dev_floppy::is_eom): Remove. (fhandler_dev_floppy::is_eof): Remove. (fhandler_dev_floppy::fhandler_dev_floppy): Initialize status flags. (fhandler_dev_floppy::get_drive_info): Only call EX functions on systems supporting them and stop suffering strange delays. (fhandler_dev_floppy::read_file): Move here, drop setting current_position. (fhandler_dev_floppy::write_file): Move here, drop setting current_position. (fhandler_dev_floppy::open): Rearrange comment. (fhandler_dev_floppy::dup): New method. (fhandler_dev_floppy::get_current_position): New inline method. Use instead of former current_position were appropriate. (fhandler_dev_floppy::raw_read): Move here. Drop EOF handling. (fhandler_dev_floppy::raw_write): Move here. Drop EOF handling. (fhandler_dev_floppy::lseek): Remove useless conditions. Convert sector_aligned_offset to LARGE_INTEGER to improve SetFilePointer call. (fhandler_dev_floppy::ioctl): Move blocksize check in RDSETBLK case to here. * fhandler_raw.cc (fhandler_dev_raw::is_eom): Remove. (fhandler_dev_raw::is_eof): Remove. (fhandler_dev_raw::write_file): Remove. (fhandler_dev_raw::read_file): Remove. (fhandler_dev_raw::raw_read): Remove. (fhandler_dev_raw::raw_write): Remove. (fhandler_dev_raw::dup): Drop copying removed members. (fhandler_dev_raw::ioctl): Drop blocksize testing. * wincap.h: Implement has_disk_ex_ioctls throughout. * wincap.cc: Ditto. (wincap_vista): Preliminary wincaps for Windows Vista/Longhorn. (wincapc::init): Add Vista/Longhorn handling.
* Revert erroneous checkin.Corinna Vinschen2005-09-2826-501/+173
|
* * fhandler.h (class fhandler_dev_raw): Delete current_position andCorinna Vinschen2005-09-2826-173/+501
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eof_detected status flag. Delete is_eom and is_eof methods. Move drive_size, bytes_per_sector, eom_detected status flag, as well as the methods read_file, write_file, raw_read and raw_write to ... (class fhandler_dev_floppy): ... here. Remove is_eom and is_eof methods. Add dup method. * fhandler_floppy.cc (IS_EOM): New macro. (fhandler_dev_floppy::is_eom): Remove. (fhandler_dev_floppy::is_eof): Remove. (fhandler_dev_floppy::fhandler_dev_floppy): Initialize status flags. (fhandler_dev_floppy::get_drive_info): Only call EX functions on systems supporting them and stop suffering strange delays. (fhandler_dev_floppy::read_file): Move here, drop setting current_position. (fhandler_dev_floppy::write_file): Move here, drop setting current_position. (fhandler_dev_floppy::open): Rearrange comment. (fhandler_dev_floppy::dup): New method. (fhandler_dev_floppy::get_current_position): New inline method. Use instead of former current_position were appropriate. (fhandler_dev_floppy::raw_read): Move here. Drop EOF handling. (fhandler_dev_floppy::raw_write): Move here. Drop EOF handling. (fhandler_dev_floppy::lseek): Remove useless conditions. Convert sector_aligned_offset to LARGE_INTEGER to improve SetFilePointer call. (fhandler_dev_floppy::ioctl): Move blocksize check in RDSETBLK case to here. * fhandler_raw.cc (fhandler_dev_raw::is_eom): Remove. (fhandler_dev_raw::is_eof): Remove. (fhandler_dev_raw::write_file): Remove. (fhandler_dev_raw::read_file): Remove. (fhandler_dev_raw::raw_read): Remove. (fhandler_dev_raw::raw_write): Remove. (fhandler_dev_raw::dup): Drop copying removed members. (fhandler_dev_raw::ioctl): Drop blocksize testing. * wincap.h: Implement has_disk_ex_ioctls throughout. * wincap.cc: Ditto. (wincap_vista): Preliminary wincaps for Windows Vista/Longhorn. (wincapc::init): Add Vista/Longhorn handling.
* * dcrt0.cc (getstack): New function.Christopher Faylor2005-09-284-64/+131
| | | | | | | | | | | | | | | | (alloc_stack): Use tls stuff for stack info rather than calling VirtualQuery. (dll_crt0_0): Initialize _impure_ptr stuff much earlier. Move init_console_handler here. * fork.cc (class frok): New class renamed from local fork() struct. (stack_base): Change argument type. Use tls stuff to determine stack info rather than calling VirtualQuery. (frok::child): Rename from fork_child. Eliminate now unneeded arguments. (frok::parent): Rename from fork_parent and ditto. Set error and errno as appropriate. Fixup impersonation in cleanup, if needed. Try harder to set errno appropriately. (fork): Define "grouped" as a frok type. Deal with errors from fork_parent here. * init.cc (dll_entry): Remove init_console_handler call.
* * pinfo.cc (_pinfo::dup_proc_pipe): Ignore error if the child process has justChristopher Faylor2005-09-282-1/+7
| | | | gone away.
* * init.cc (prime_threads): Make this static, as it should be.Christopher Faylor2005-09-282-3/+10
| | | | (dll_entry): Apply cosmetic changes to define closer to the way MSDN suggests.
* * pthread.cc (mangle_sem_name): Use cygheap->shared_prefix insteadCorinna Vinschen2005-09-272-5/+13
| | | | of fiddling with wincap.has_terminal_services manually.
* * cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitelyCorinna Vinschen2005-09-273-8/+14
| | | | | | since hProcImpToken isn't initialized here. * shared.cc (open_shared): Always print mapname instead of name in debug output.
* * strace.cc (strace::vsprntf): Avoid printing a zero pid.Christopher Faylor2005-09-272-1/+5
|
* * init.cc (dll_entry): Call IsWow64Process with GetCurrentProcessCorinna Vinschen2005-09-272-1/+6
| | | | as process handle since hMainProc isn't initialized here.
* * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): AlwaysCorinna Vinschen2005-09-272-27/+69
| | | | | | | try IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and IOCTL_DISK_GET_PARTITION_INFO_EX ioctls first, to allow access to GPT partitioned disks. Fall back to old non-EX ioctls otherwise. Add comment to explain NT4 weirdness.
* * errno.cc (errmap): Map ERROR_SEEK and ERROR_SECTOR_NOT_FOUND.Corinna Vinschen2005-09-262-0/+6
|
* * exceptions.cc (_cygtls::call_signal_handler): Minor cleanup.Christopher Faylor2005-09-262-3/+9
|
* * fhandler.h (class fhandler_dev_raw): Add drive information membersCorinna Vinschen2005-09-264-148/+124
| | | | | | | | | | | | | | | | | | | drive_size, current_position and bytes_per_sector. (fhandler_dev_floppy::get_drive_info): Declare. * fhandler_floppy.cc (fhandler_dev_floppy::is_eom): Define ERROR_SEEK and ERROR_SECTOR_NOT_FOUND as end-of-medium conditions. (fhandler_dev_floppy::get_drive_info): New method to have one function retrieving drive info. (fhandler_dev_floppy::open): Call get_drive_info to get drive information right from the start. (fhandler_dev_floppy::lseek): Use and set drive information members. Especially keep track of current_position. (fhandler_dev_floppy::ioctl): Ditto. * fhandler_raw.cc (fhandler_dev_raw::write_file): Keep track of current_position. (fhandler_dev_raw::read_file): Ditto. (fhandler_dev_raw::raw_read): Never try to read beyond end-of-medium. (fhandler_dev_raw::dup): Handle new drive information members.
* * exceptions.cc (handle_exceptions): Just si_code to SI_KERNEL first and let itChristopher Faylor2005-09-264-7/+35
| | | | | | | | | | be overridden. * exceptions.cc (_cygtls::call_signal_handler): Call signal handler with extra siginfo_t * and void * parameters when SA_SIGINFO flag is set. * signal.cc (signal): Clear SA_SIGINFO flag. (sigqueue): Fix incorrect setting of si_code. * sigproc.cc (signal_fixup_after_exec): Clear SA_SIGINFO flag when setting handler to SIG_DFL.
* * pinfo.cc (proc_waiter): Properly fill out si_code as according to SUSv3.Christopher Faylor2005-09-262-6/+11
| | | | | * exceptions.cc (handle_exceptions): Properly fill out si_code as according to SUSv3.
* * exceptions.cc (handle_exceptions): Properly fill out si_code.Christopher Faylor2005-09-262-13/+18
|
* * sigproc.cc (wait_sig): Cosmetic change.Christopher Faylor2005-09-263-2/+7
| | | | | * pinfo.cc (pinfo::exit): Don't explicitly remove myself since some other thread may still be using it.
* 2005-09-25 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2005-09-265-772/+23
| | | | | | | * faq.xml: Remove copyright section, link to license.html * faq-sections.xml: Remove copyright section, link to license.html * faq-programming.xml: Remove confusing reference to Red Hat. * faq-what.xml: Reword "supported" FAQ.
* * sigproc.cc (sigproc_terminate): More reversion of always-exit-from-sigthreadChristopher Faylor2005-09-242-4/+6
| | | | change.