summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* Regularize most strace_prints throughout so that %E is always preceded by aChristopher Faylor2004-09-0318-78/+70
| | | | comma and elminate most uses of "foo = %s" to "foo %s".
* Christopher Faylor <cgf@timesys.com>Christopher Faylor2004-09-035-21/+250
| | | | | | | | | | | | | | | | | | | | * autoload.cc (NtQueryInformationFile): Return nonzero on error. * ntdll.h (FILE_PIPE_LOCAL_INFORMATION): Add. (NtQueryInformationFile): Fix types for last two arguments. * pipe.cc: Include stdlib.h, limits.h, and ntdll.h. (create_selectable_pipe): New function to create a pipe that can be used with NtQueryInformationFile for select. (fhandler_pipe::create): Call create_selectable_pipe instead of CreatePipe. (pipe): Use DEFAULT_PIPEBUFSIZE as argument to create_pipe. * select.cc: Include limits.h and ntdll.h. (peek_pipe): Add select_printf output. Call NtQueryInformationFile to implement select for write on pipes. (fhandler_pipe::select_read): Reorder field assignments to be consistent with fhandler_pipe::select_write. (fhandler_pipe::select_write): Initialize startup, verify, cleanup, and write_ready fields for select_record. (fhandler_pipe::select_except): Tweak indentation to be consistent with fhandler_pipe::select_write.
* * textbinary.sgml: Change default mode for non-mounted paths to binary.Corinna Vinschen2004-09-022-1/+5
|
* * sysv_shm.cc (kern_shmat): Add debug_printf's.Corinna Vinschen2004-08-312-0/+6
|
* * fork.cc (fork_parent): Return the cygpid directly derived from the winpid.Christopher Faylor2004-08-312-6/+10
|
* * fork.cc (fork_parent): Record child's pid when we're sure that it has beenChristopher Faylor2004-08-303-3/+8
| | | | | filled out by the child. * pinfo.cc (pinfo::init): Trivial change.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to reportCorinna Vinschen2004-08-292-1/+6
| | | | success on systems with ntsec and ntea set.
* * fhandler.cc (fhandler_base::write): In the lseek_bug case, set EOFCorinna Vinschen2004-08-282-16/+26
| | | | before zero filling. Combine similar error handling statements.
* 2004-08-28 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-08-282-2/+10
| | | | | * syscalls.cc (ftruncate64): On 9x, call write with a zero length to zero fill when the file is extended.
* 2004-08-25 Lars Rune N�stdal <daysleper@users.sourceforge.net>Danny Smith2004-08-252-4/+19
| | | | | | | * include/wincon.h (CONSOLE_FULLSCREEN_MODE, CONSOLE_WINDOWED_MODE): Add defines. (PCOORD): Add typedef. (GetConsoleDisplayMode, SetConsoleDisplayMode): Add prototypes.
* * include/winldap.h: Don't check value of UNICODE.Danny Smith2004-08-252-1/+6
| | | | Thanks to: "Jean-Do" <spab@users.sourceforge.net>
* * include/winbase.h (WINBASEAPI): Guard with __INSIDE_CYGWIN__.Danny Smith2004-08-242-0/+9
|
* * syscalls.cc (link): Avoid compiler warning.Corinna Vinschen2004-08-242-0/+5
|
* * bsd_mutex.cc (_msleep): Release process object while waiting.Corinna Vinschen2004-08-242-0/+6
|
* * winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.Corinna Vinschen2004-08-242-1/+8
|
* * winsup.api/ltp/symlink01.c (do_link): Print inode numbers using %lluCorinna Vinschen2004-08-242-2/+7
| | | | format specifier.
* * include/malloc.h (__mingw_aligned_offset_malloc,Danny Smith2004-08-243-7/+26
| | | | | | | | | __mingw_aligned_offset_realloc, __mingw_aligned_malloc, __mingw_aligned_realloc, __mingw_aligned_free): Add prototypes. * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c, tst-aligned-malloc.c. (REPLACE_OBJS): Add mingw-aligned-malloc.o.
* 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>Danny Smith2004-08-243-0/+215
| | | | | * mingwex/mingw-aligned-malloc.c: New file. * mingwex/tst-aligned-malloc.c: New file.
* * crt1.c: (__mingw_CRTStartup): Change return to void. AddDanny Smith2004-08-242-18/+22
| | | | | | | noreturn attribute. Align stack to 16 bytes before passing args to main. (mainCRTStartup): Change return to void. (WinMainCRTStartup): Likewise.
* 2004-08-24 Sam Robb <samrobb@users.sourceforge.net>Danny Smith2004-08-232-0/+7
| | | | | * include/winbase.h (GetFileSizeEx): Add _WIN32_WINNT >= 0x0500 guard.
* * include/winbase.h: Add WINBASEAPI token to prototypes, throughout.Danny Smith2004-08-232-750/+754
|
* * environ.cc (set_ntea): New function.Corinna Vinschen2004-08-212-3/+29
| | | | | | | (set_ntsec): Ditto. (set_smbntsec): Ditto. (parse_thing): Change ntea, ntsec and smbntsec settings to call appropriate functions.
* * fhandler_tape.cc (fhandler_dev_tape::raw_read): Use ?: instead ofCorinna Vinschen2004-08-202-5/+8
| | | | | if/else. (fhandler_dev_tape::raw_write): Return -1 in case of error.
* * errno.cc (_sys_errlist): Change various text to their english LinuxCorinna Vinschen2004-08-192-506/+144
| | | | | counterparts. Unify layout. (strerror): Remove switch statement.
* * fhandler.cc (fhandler_base::open): Set shared flags to 0 whenCorinna Vinschen2004-08-192-1/+6
| | | | opening a tape device.
* * ChangeLog: Fix typo.Corinna Vinschen2004-08-191-1/+1
|
* * fhandler_socket.cc (fhandler_socket::dup): Decrement dtable'sCorinna Vinschen2004-08-193-2/+12
| | | | | need_fixup_before counter on successful dup. * net.cc (cygwin_getpeername): Add file descriptor to debug output.
* * fhandler.h (fhandler_dev_dsp:~fhandler_dev_dsp): Delete.Corinna Vinschen2004-08-173-540/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (fhandler_dev_dsp::open_count): Delete. (fhandler_dev_dsp::close_audio_in): New method declaration. (fhandler_dev_dsp::close_audio_in): Ditto. * fhandler_dsp.cc: Add and edit debug_printf throughout. (fhandler_dev_dsp::Audio::denyAccess): Delete. (fhandler_dev_dsp::Audio::fork_fixup): Ditto. (fhandler_dev_dsp::Audio::getOwner): Ditto. (fhandler_dev_dsp::Audio::clearOwner): Ditto. (fhandler_dev_dsp::Audio::owner_): Ditto. (fhandler_dev_dsp::Audio::setformat): Ditto, rename to setconvert. (fhandler_dev_dsp::Audio::lock): Ditto, move to queue. (fhandler_dev_dsp::Audio::unlock): Ditto. (fhandler_dev_dsp::Audio::lock_): Ditto. (fhandler_dev_dsp::Audio::bufferIndex_): New member, from Audio_out and Audio_in. (fhandler_dev_dsp::Audio::pHdr_): Ditto. (fhandler_dev_dsp::Audio::wavehdr_): Ditto. (fhandler_dev_dsp::Audio::bigwavebuffer_): ditto. (fhandler_dev_dsp::Audio::Qisr2app_): Ditto. (fhandler_dev_dsp::Audio::setconvert): New method, from old setformat. (fhandler_dev_dsp::Audio::queue::lock): New method. (fhandler_dev_dsp::Audio::queue::unlock): Ditto. (fhandler_dev_dsp::Audio::queue::dellock): Ditto. (fhandler_dev_dsp::Audio::queue::isvalid): Ditto. (fhandler_dev_dsp::Audio::queue::lock_): New member. (fhandler_dev_dsp::Audio::queue::depth1_): Delete. (fhandler_dev_dsp::Audio_out::fork_fixup): New method. (fhandler_dev_dsp::Audio_out::isvalid): New method. (fhandler_dev_dsp::Audio_out::start): Remove arguments. (fhandler_dev_dsp::Audio_out::parsewav): Change arguments and set internal state. (fhandler_dev_dsp::Audio_out::emptyblocks): Delete. (fhandler_dev_dsp::Audio_out::Qapp2app_): Ditto. (fhandler_dev_dsp::Audio_out::Qisr2app_): Ditto, move to Audio. (fhandler_dev_dsp::Audio_out::bufferIndex_): Ditto. (fhandler_dev_dsp::Audio_out::pHdr_): Ditto. (fhandler_dev_dsp::Audio_out::wavehdr_): Ditto. (fhandler_dev_dsp::Audio_out::bigwavefuffer_): Ditto. (fhandler_dev_dsp::Audio_out::freq_): New member. (fhandler_dev_dsp::Audio_out::bits_): New member. (fhandler_dev_dsp::Audio_out::channels_): New member. (fhandler_dev_dsp::Audio_in::fork_fixup): New method. (fhandler_dev_dsp::Audio_in::isvalid): New method. (fhandler_dev_dsp::Audio_in::Qapp2app_): Delete. (fhandler_dev_dsp::Audio_in::Qisr2app_): Ditto, move to Audio. (fhandler_dev_dsp::Audio_in::bufferIndex_): Ditto. (fhandler_dev_dsp::Audio_in::pHdr_): Ditto. (fhandler_dev_dsp::Audio_in::wavehdr_): Ditto. (fhandler_dev_dsp::Audio_in::bigwavefuffer_): Ditto. (fhandler_dev_dsp::Audio::queue::queue): Simplify. (fhandler_dev_dsp::Audio::queue::send): Use lock. (fhandler_dev_dsp::Audio::queue::query): Do not use depth1_. (fhandler_dev_dsp::Audio::queue::recv): Ditto. (fhandler_dev_dsp::Audio::Audio): Adapt to new class members. (fhandler_dev_dsp::Audio::~Audio): Ditto (fhandler_dev_dsp::Audio_out::start): Reorganize. (fhandler_dev_dsp::Audio_out::stop): Simplify. (fhandler_dev_dsp::Audio_out::init): Reset the queue and clear flag. (fhandler_dev_dsp::Audio_out::write): Reorganize to allocate audio_out. (fhandler_dev_dsp::Audio_out::buf_info): Use appropriate block size. (fhandler_dev_dsp::Audio_out::callback_sampledone): Do not use lock. (fhandler_dev_dsp::Audio_out::waitforspace): Simplify. (fhandler_dev_dsp::Audio_out::waitforallsent):Ditto. (fhandler_dev_dsp::Audio_out::sendcurrent): Reorganize. Clear flag before requeuing. (fhandler_dev_dsp::Audio_out::parsewav): (fhandler_dev_dsp::Audio_in::start): Reorganize. (fhandler_dev_dsp::Audio_in::stop): Simplify. (fhandler_dev_dsp::Audio_in::queueblock): Ditto. Requeue header in case of error. (fhandler_dev_dsp::Audio_in::init): Reset the queue and clear flag. (fhandler_dev_dsp::Audio_in::waitfordata): Simplify. Do not UnprepareHeader if the flag is zero. (fhandler_dev_dsp::Audio_in::buf_info): Ditto. (fhandler_dev_dsp::Audio_in::callback_blockfull): Do not use lock. (fhandler_dev_dsp::open_count): Delete. (fhandler_dev_dsp::open): Only check existence, do not allocate anything. Set flags appropriately. Create archetype. (fhandler_dev_dsp::write): Call archetype as needed. Create audio_out. (fhandler_dev_dsp::read): Call archetype as needed. Create audio_in. (fhandler_dev_dsp::close): Call archetype as needed. Call close_audio_in and close_audio_out. (fhandler_dev_dsp::close_audio_in): New function. (fhandler_dev_dsp::close_audio_out): New function. (fhandler_dev_dsp::dup): Use archetypes. (fhandler_dev_dsp::ioctl): Call archetype as needed. Reorganize for new structures. (fhandler_dev_dsp::fixup_after_fork): Call archetype as needed. (fhandler_dev_dsp::fixup_after_exec): Call archetype as needed. Clear audio_in and audio_out.
* * devdsp.c: Outputs the names of the main test functions.Corinna Vinschen2004-08-172-14/+139
| | | | | | | | | (forkrectest): Expect child success. (forkplaytest): Ditto. (syncwithchild): Output the child status and the desired value. (sinegenw): Reduce volume of the beep. (sinegenb): Ditto. (dup_test): New test.
* * profile/COPYING: New file.Danny Smith2004-08-154-1/+385
| | | | | * profile/CYGWIN_LICENSE: New file. * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
* * mingwex/fopen64.c: Move.Danny Smith2004-08-155-9/+20
| | | | | | | | | | | | * mingwex/fseeko64.c: Move. * mingwex/ftello64.c: Move. * mingwex/lseek64.c: Move. * mingwex/stdio/fopen64.c: To here. * mingwex/stdio/fseeko64.c: To here. * mingwex/stdio/ftello64.c: To here. * mingwex/stdio/lseek64.c: To here. White space cleanup in ChangeLog
* * profile/gmon.c [__MINGW32__]: Include string.h forDanny Smith2004-08-152-1/+7
| | | | memset prototype.
* 2004-08-15 Ken Fitlike <kenfitlike@users.sourceforge.net>Danny Smith2004-08-152-1/+5
| | | | * include/commctrl.h (WC_TREEVIEWA): Remove parenthenses.
* 2004-08-14 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-08-142-3/+13
| | | | | * fhandler.cc (fhandler_base::open_9x): Set file attributes for new files.
* * net.cc (cygwin_gethostbyname): Show failing host name on error.Christopher Faylor2004-08-112-0/+5
|
* 2004-08-10 Sebastian Nowak <snowak1@users.sourceforge.net>Danny Smith2004-08-112-1/+5
| | | | * include/ws2spi.h (LPWSPSELECT): Correct typedef.
* * include/wincrypt.h: Correct _WIN32_WINNT typo.Danny Smith2004-08-112-4/+8
|
* 2004-08-10 Ed Schaller <schallee@darkmist.net>Danny Smith2004-08-112-2/+46
| | | | | | | | | | | * include/wincrypt.h (MS_ENH_RSA_AES_PROV_A, MS_ENH_RSA_AES_PROV_W) (ALG_SID_AES_128, ALG_SID_AES_192, ALG_SID_AES_256, ALG_SID_AES 17) (CALG_AES_128, CALG_AES_192, CALG_AES_256, CALG_AES,PROV_RSA_AES): Add defines. (CALG_SHA1): Add define. (HP_HMAC_INFO): Add define. (HMAC_INFO): Add struct. (BLOBHEADER): Add typedef.
* white spaceChristopher Faylor2004-08-101-1/+1
|
* * select.cc (select_stuff::wait): Correctly check for w4 array bounds.Christopher Faylor2004-08-102-1/+5
|
* * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.Christopher Faylor2004-08-092-0/+5
|
* * include/complex.h: Remove __attribute__ ((const)) fromDanny Smith2004-08-072-26/+32
| | | | | transcendantal and trig functions. Replace __attribute__ ((const)) with __MINGW_ATTRIB_CONST on other declarations.
* * include/wchar.h: Reorganize, avoid including other headers.Danny Smith2004-08-072-145/+268
|
* * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)Danny Smith2004-08-062-11/+17
| | | | | (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure attribute.
* * errno.cc (errmap): Add ERROR_TOO_MANY_LINKS -> EMLINK mapping.Corinna Vinschen2004-08-033-3/+44
| | | | * syscalls.cc (link): Only copy files if FS doesn't support hard links.
* * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.Corinna Vinschen2004-08-033-0/+9
| | | | * transport.h (transport_layer_base::~transport_layer_base): Ditto.
* * bsd_mutex.cc (_msleep): Reset event object and close it beforeCorinna Vinschen2004-07-302-2/+9
| | | | entering mutex. Turn order of conditional for better readability.
* * include/dirent.h (struct _wdirent): Remove obsolete comment.Danny Smith2004-07-302-1/+4
|
* * include/string.h: Revert 2004-07-26 additions ofDanny Smith2004-07-302-28/+33
| | | | __ATTRIBUTE_PURE.
* * mingwex/math/powl.c (powl): Revert change of 2004-02-01.Danny Smith2004-07-282-14/+42
| | | | | | (__convert_inf_to_maxnum): New.static inline. (reducl): Use it to protect against Inf - Inf. (__fast_ldexpl): New function. Use in lieu of ldexpl.