summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Corinna Vinschen2012-10-161-0/+3
|
* *** empty log message ***Corinna Vinschen2012-10-161-0/+7
|
* * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Remove lloffset.Corinna Vinschen2012-10-163-38/+34
| | | | | | Use offset directly. Add shortcut for lseek(fd, 0, SEEK_CUR) case. (fhandler_dev_floppy::ioctl): Drop wrong RDSETBLK case. * fhandler_raw.cc (fhandler_dev_raw::ioctl): Revamp RDSETBLK code.
* * fhandler_tty.cc (fhandler_pty_slave::write): Fix potential exit from loopChristopher Faylor2012-10-153-1/+11
| | | | | with write mutex held. Delete redundant mutex release. Clear tty error once we've grabbed it.
* * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Drop gratuitousCorinna Vinschen2012-10-152-6/+5
| | | | initializing from previous patch.
* * fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment.Corinna Vinschen2012-10-152-3/+7
|
* * fhandler_tty.cc (fhandler_pty_slave::write): DWORD -> BOOL.Christopher Faylor2012-10-152-1/+5
|
* * fhandler.h (class fhandler_dev_raw): Add members devbufalloc andCorinna Vinschen2012-10-136-80/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | devbufalign. (class fhandler_dev_floppy): Remove member bytes_per_sector; * fhandler_floppy.cc (bytes_per_sector): Define as devbufalign. (fhandler_dev_floppy::open): Set devbufalign to a multiple of the sector size and handle devbuf allocation and alignment in !O_DIRECT case here. Change comment accordingly. Call FSCTL_ALLOW_EXTENDED_DASD_IO for partitions as well. (fhandler_dev_floppy::raw_write): Fix comment. Rewrite and fix writing behaviour when application uses read and lseek. (fhandler_dev_floppy::lseek): Use rounddown macro. Call SetFilePointerEx rather than the old SetFilePointer. (fhandler_dev_floppy::ioctl): Reformat switch. Call IOCTL_DISK_UPDATE_PROPERTIES rather than IOCTL_DISK_UPDATE_DRIVE_SIZE in BLKRRPART case. Support BLKIOMIN, BLKIOOPT, BLKPBSZGET and BLKALIGNOFF. * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Initialize all devbuf-related members. (fhandler_dev_raw::~fhandler_dev_raw): Delete devbufalloc rather than devbuf. (fhandler_dev_raw::open): Drop allocating devbuf. (fhandler_dev_raw::dup): Allocate devbufalloc and set devbuf to support new sector-aligned devbuf handling. (fhandler_dev_raw::fixup_after_exec): Ditto. * fhandler_tape.cc (fhandler_dev_tape::open): Ditto, set devbufalign to 1. * include/cygwin/fs.h (BLKIOMIN): Define. (BLKIOOPT): Define. (BLKALIGNOFF): Define. (BLKPBSZGET): Define.
* * fhandler_raw.cc (fhandler_dev_raw::open): Allow O_EXCL flag, as onCorinna Vinschen2012-10-122-3/+8
| | | | Linux.
* * fhandler_termios.cc (fhandler_termios::line_edit): Don't manipulateChristopher Faylor2012-10-124-16/+24
| | | | | | | | | output_mutex on CTRL-S/CTRL-Q to avoid a deadlock. * fhandler_tty.cc (fhandler_pty_slave::write): Loop when output_stopped is detected before acquiring output_mutex. Acquire output_mutex in the loop for each write. * tty.h: Remove some obsolete defines. (tty_min::output_stopped): Make 'bool'.
* * include/cygwin/in.h (struct in_addr): Guard with s_addr to avoidCorinna Vinschen2012-10-102-0/+9
| | | | potential collision with Win32 headers.
* * child_info.h (child_info_spawn::has_execed): Remove unneeded synchronization.Christopher Faylor2012-10-092-2/+5
|
* * pinfo.cc: Remove unneeded assert.h.Christopher Faylor2012-10-092-1/+4
|
* * cygcheck.cc (dump_sysinfo): Convert "if/else if" chain to a switchCorinna Vinschen2012-10-092-9/+21
| | | | | statement. Drop "not yet supported" and "Server" from Windows 2012 output string.
* * pinfo.cc (pinfo::init): Detect potential race where short block has beenChristopher Faylor2012-09-172-0/+14
| | | | retrieved but PID_EXECED flag is not set.
* * cygthread.cc (cygthread::stub): Remove old, unnecessary, FIXMEd code.Christopher Faylor2012-09-144-7/+12
| | | | * spawn.cc (child_info_spawn::worker): Avoid calling close_all_files() twice.
* * faq-what.xml: Fix typos, clarify responsibility slightly.Christopher Faylor2012-09-041-2/+2
|
* * pseudo-reloc.cc (auto_protect_for): New function.Corinna Vinschen2012-09-022-18/+57
| | | | | (__write_memory): Call auto_protect_for to handle page protection. (do_pseudo_reloc): Call auto_protect_for to restore old page protection.
* * cygcheck.cc (dump_sysinfo): Drop "not yet supported" text fromCorinna Vinschen2012-09-022-25/+59
| | | | Windows 8. Update products array.
* * pinfo.cc (pinfo::init): Remove assertion.Christopher Faylor2012-08-262-1/+4
|
* * pinfo.cc (_pinfo::exists): Don't consider a process with no state to exist.Christopher Faylor2012-08-232-1/+6
|
* * net.cc (get_adapters_addresses): Drop FIXME part of comment.Christopher Faylor2012-08-212-3/+5
|
* * DevNotes: Add entry cgf-000016.Christopher Faylor2012-08-176-38/+66
| | | | | | | | | | | | | | | | | | * cygtls.h (_cygtls::push): Inline. (_cygtls::interrupt_now): Change signal number argument to siginfo_t argument. (_cygtls::interrupt_setup): Ditto. (_cygtls::set_siginfo): Delete declaration. (_cygtls::reset_signal_arrived): Don't reset signal_arrived signal. Just reset flag. * exceptions.cc (_cygtls::interrupt_now): Reflect argument changes. Pass si to interrupt_setup. (_cygtls::interrupt_setup): Reflect argument changes. Fill out tls infodata here using passed-in si. Use si.si_signo instead of sig. (sigpacket::setup_handler): Move this function into sigpacket class. Use si field from the class as appropriate. (sigpacket::process): Don't call tls->set_siginfo here since setup_handler could fail. Eliminate now-unneeded sig argument. * sigproc.h (sigpacket::setup_handler): Move setup_handler to this class.
* * exceptions.cc (sig_handle_tty_stop): Clear tls sig field.Christopher Faylor2012-08-172-1/+11
| | | | | (sigpacket::process): When continuing, set tls->sig before arming signal_arrived.
* * fhandler_clipboard.cc (fhandler_dev_clipboard::read): UseCorinna Vinschen2012-08-173-7/+55
| | | | | | read-ahead buffer for reading Windows clipboard if caller's buffer is too small for complete characters. * include/limits.h: Remove outdated TODO comment.
* whitespace cleanupChristopher Faylor2012-08-1622-71/+71
|
* * cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.Christopher Faylor2012-08-162-1/+5
|
* * cygheap.cc (init_cygheap::find_tls): Don't consider unitialized threads.Christopher Faylor2012-08-164-24/+39
| | | | | | * cygtls.cc (_cygtls::operator HANDLE): Return NULL when tid is not set. * exceptions.cc (setup_handler): Don't try to suspend a thread if it has no handle.
* fix typoChristopher Faylor2012-08-151-1/+1
|
* Rename cancelable_wait -> cygwait throughout.Christopher Faylor2012-08-1513-25/+36
| | | | | * DevNotes: Add entry cgf-000015. * cygwait.h (cygwait): Don't allow an optional PLARGE_INTERGER argument.
* * cygtls.h (_cygtls::create_signal_arrived): New function.Christopher Faylor2012-08-154-7/+36
| | | | | | | | (_cygtls::set_signal_arrived): Lock creation of signal_arrived. * cygwait.cc (cancelable_wait): Ignore signal_arrived event if _my_tls 'sig' element does not exist. * exceptions.cc (_cygtls::interrupt_setup): Create signal_arrived if recipient thread has not created it.
* * gendef: Tighten up whitespace detection.Christopher Faylor2012-08-152-4/+8
|
* * gendef: Delete unneeded read from <IN> which ate an arbitrary line fromChristopher Faylor2012-08-152-2/+6
| | | | cygwin.din.
* * exceptions.cc (sigdelayed): Move declaration to sigproc.h.Christopher Faylor2012-08-155-5/+18
| | | | | | | * sigproc.h (sigdelayed): Make symbol globally available. * gendef (sigdelayed): Specifically zero incyg and stacklock. * signal.cc (sigwaitinfo): Lock _my_tls and try harder to clean up signal information.
* * pinfo.cc (_pinfo::exists): Don't consider an execed process to exist.Christopher Faylor2012-08-152-1/+5
|
* * gmon.c (_mcleanup): Fix scope bug when using gmon_out array.Corinna Vinschen2012-08-142-4/+8
|
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output inCorinna Vinschen2012-08-142-1/+6
| | | | api_fatal call.
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * mount.cc (fs_names): Add missing ReFS entry. Change comment.Corinna Vinschen2012-08-143-1/+10
| | | | * mount.h (enum fs_info_type): Add comment.
* * errno.cc (errmap): Map ERROR_SXS_CANT_GEN_ACTCTX to ELIBBAD.Christopher Faylor2012-08-132-0/+5
|
* Even though MSDN documents these as __cdecl the kernel32.dll libraryEarnie Boyd2012-08-103-6/+22
| | | | | | | | | | | | exports them as __stdcall. Confirmed with gendef program. * lib/kernel32.def (InterlockedDecrement): Revert the 2012-08-08 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto. * include/winbase.h (InterlockedDecrement): Revert the 2012-08-01 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* * DevNotes: Add entry cgf-000014.Christopher Faylor2012-08-099-67/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc (tls_sentry): Move here, rename from 'sentry' in cygtls.cc (tls_sentry::lock): Ditto. (nthreads): Move from cygtls.cc (THREADLIST_CHUNK): Ditto. (cygheap_init): Call init_tls_list(). (init_cygheap::init_tls_list): Define new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. Semi-resurrect from _cygtls::find_tls. * cygheap.h (init_cygheap::init_tls_list): Declare new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. * cygtls.cc (sentry): Delete. (sentry::lock): Ditto. (nthreads): Ditto. (THREADLIST_CHUNK): Ditto. (_cygtls::init): Delete definition. (_cygtls::init_thread): Call cygheap->add_tls() to add thread to global list. (_cygtls::remove): cygheap->remove_tls() to remove thread from global list. * cygtls.h (_cygtls::init): Delete declaration. * dcrt0.cc (dll_crt0_0): Delete call to _cygtls::init(). * exceptions.cc (sigpacket::process): When no thread is specified, try to find one via cygheap->find_tls.
* * lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count sinceEarnie Boyd2012-08-082-3/+10
| | | | | | we now declare it as __cdecl. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* 2012-08-08 Kai Tietz <ktietz@redhat.com>Earnie Boyd2012-08-082-4/+8
| | | | * mingwex/gdtoa/gd_qnan.h: Make Nan constants positive valued.
* * include/sys/wait.h (_wait): Define when building newlib.Corinna Vinschen2012-08-082-1/+9
|
* * signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.Christopher Faylor2012-08-072-2/+5
|
* * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier()Earnie Boyd2012-08-062-2/+7
| | | | | | | | which is in libmingwex.a. MODIFIED FROM: Use __sync_synchronize instead of creating a function due to multiple definition. NOTE: Not using __sync_synchronize to allow applications to mix-n-match C libraries from different vendors.
* * mingwex/membarrier.c: New file.Earnie Boyd2012-08-063-2/+27
| | | | | * mingwex/Makefile.in (DISTFILES): Add membarrier.c. (REPLACE_OBJS): Add membarrier.o.
* * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead ofEarnie Boyd2012-08-062-5/+6
| | | | creating a function due to multiple definition.