summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * sysv_shm.cc (shmget): Allow to retrieve shared memory segmentsCorinna Vinschen2004-03-302-0/+11
| | | | by shmid when IPC_KEY_IS_SHMID is set.
* * shm.cc (shmat): If shmid is unknown, call a special variationCorinna Vinschen2004-03-303-3/+31
| | | | | | | of shmget to retrieve the shared memory segment from Cygserver instead of failing immediately. * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): New internal flag for shmget when called from shmat.
* * lib/Makefile,in; Add directx to .PHONY target.Danny Smith2004-03-293-15/+21
| | | | | | | * lib/directx/dxerr.c: Remove dependence on mingw runtime. Don't include stdio.h or tchar.h. Replace _T() macro with TEXT() macro, throughout. Replace, _stprintf with wsprintf, throughout.
* * fhandler.h (class fhandler_socket): Add has_been_closed member.Corinna Vinschen2004-03-295-65/+141
| | | | | | | | | | | | | | | * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize has_been_closed to 0. (fhandler_socket::recvfrom): Use new asynchronous I/O driven wsock_event methods. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Reimplement using asynchronous I/O. (wsock_event::wait): Ditto. (wsock_event::release): New method. * wsock_event.h (class wsock_event): Remove ovr member. Accomodate new implementation of prepare and wait methods. Add release method.
* * thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork atChristopher Faylor2004-03-292-2/+7
| | | | the end of atforkprepare.
* * net.cc (wsock_event::wait): Change scope of local "len" variable.Corinna Vinschen2004-03-292-1/+5
|
* 2004-03-28 Hans Leidekker <hans@it.vu.nl>Luke Dunstan2004-03-292-0/+15
| | | | * include/math.h (FP_*): Add defines.
* * mingwex/math/round.c: Rewrite.Danny Smith2004-03-294-79/+21
| | | | | * mingwex/math/roundf.c: Rewrite. * mingwex/math/roundl.c: Rewrite.
* * pathnames.sgml: Fix /dev/srX description.Corinna Vinschen2004-03-292-1/+8
|
* 2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-292-11/+19
| | | | * how-programming.texinfo: Make list in .lib FAQ enumerative.
* 2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-293-24/+37
| | | | | * how-programming.texinfo: Add note about gcc .lib linking. * pathnames.sgml: Mention create_devices.sh for /dev/ creation.
* * shm.cc (shmat): Return (void *) -1 on error instead of NULL.Corinna Vinschen2004-03-282-6/+10
|
* 2004-03-27 Hosaka Yuji <hos@tamanegi.org>Luke Dunstan2004-03-284-0/+52
| | | | | | | | * include/dbt.h (DBT_DEVTYP_DEVICEINTERFACE, DBT_DEVTYP_HANDLE): Add define. (DEV_BROADCAST_DEVICEINTERFACE, DEV_BROADCAST_HANDLE): Add struct. * include/winuser.h (UnregisterDeviceNotification): Add prototype. * lib/user32.def (UnregisterDeviceNotification): Add export stub.
* * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has alreadyChristopher Faylor2004-03-272-1/+7
| | | | been set if pc.error is nonzero.
* * Fix ChangeLog formatting.Corinna Vinschen2004-03-271-0/+4
|
* * cygserver.sgml: New file.Corinna Vinschen2004-03-273-0/+280
| | | | * using.sgml: Include Cygserver docs.
* 2004-03-26 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-273-16/+36
| | | | | * cygwinenv.sgml: Add example for CYGWIN=error_start. * pathnames.sgml: Update list of /dev/ devices.
* 2004-03-27 Filip Navara <xnavara@volny.cz>Luke Dunstan2004-03-2751-3008/+7390
| | | | | | | | | | | | | | | | | * include/directx: New subdir. * lib/directx: Ditto. * include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h, dxerr9.h): New files. * lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def, d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def, dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c, dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def, dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def, dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c, dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def, strmiids.c, test.c): Ditto. * lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c, dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
* * cygheap.cc (cygheap_fixup_in_child): Improve strace output.Christopher Faylor2004-03-262-1/+6
|
* * errno.cc (errmap): Map ERROR_SHARING_VIOLATION to EBUSY,Corinna Vinschen2004-03-2610-558/+1388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ERROR_EOM_OVERFLOW and ERROR_NO_DATA_DETECTED to EIO. Add mappings for ERROR_NO_MEDIA_IN_DRIVE, ERROR_DEVICE_REQUIRES_CLEANING and ERROR_DEVICE_DOOR_OPEN. * fhandler.h (class fhandler_dev_raw): Drop varblkop member. (fhandler_dev_raw::is_eom): De-virtualize. (fhandler_dev_raw::is_eof): Ditto. (class fhandler_dev_tape): Drop lasterr and dp member. Add mt_mtx member. Drop all private methods formerly used by ioctl. (fhandler_dev_tape::is_rewind_device): Use get_minor for clarity. (fhandler_dev_tape::driveno): New method. (fhandler_dev_tape::drive_init): New method. (fhandler_dev_tape::clear): Remove method. (fhandler_dev_tape::is_eom): Ditto. (fhandler_dev_tape::is_eof): Ditto. (fhandler_dev_tape::write_file): Ditto. (fhandler_dev_tape::read_file): Ditto. (fhandler_dev_tape::_lock): New method. (fhandler_dev_tape::unlock): New method. (fhandler_dev_tape::raw_read): New method. (fhandler_dev_tape::raw_write): New method. * fhandler_raw.cc (fhandler_dev_raw::is_eom): New method. (fhandler_dev_raw::is_eof): New method. (fhandler_dev_raw::open): Allow setting write through option by using the O_TEXT flag as ... flag. (fhandler_dev_raw::writebuf): Remove usage of varblkop and other tape specific code. (fhandler_dev_raw::raw_read): Ditto. (fhandler_dev_raw::dup): Ditto. * fhandler_tape.cc: Rewrite tape operations entirely. Implement new tape driver classes mtinfo, mtinfo_drive and mtinfo_part. Reduce fhandler_dev_tape methods to mostly just calling appropriate mtinfo_drive methods. (mtinfo_init): New function adding the mtinfo shared memory area. * mtinfo.h: New file, containing the definition of the new tape driver classes. * shared.cc: Include mtinfo.h. (offsets): Add entry for mtinfo shared memory area. (memory_init): Call mtinfo_init. * shared_info.h (shared_locations): Add SH_MTINFO shared location. * include/cygwin/mtio.h: Change and add various comments. Add GMT_xxx macros for new generic flags. Add MT_ST_xxx bitfield definitions for MTSETDRVBUFFER ioctl. * include/cygwin/version.h: Bump API minor version number.
* add missing filesChristopher Faylor2004-03-263-0/+81
|
* * path.cc (path_conv::check): Use 'strchr' rather than 'strrchr' to find end ofChristopher Faylor2004-03-263-1/+69
| | | | | | | | | | | | | | | | | string, for efficiency. * include/cygwin/_types.h: New file. * include/sys/lock.h: Ditto. * include/sys/stdio.h: Ditto. * thread.cc: Include sys/lock.h (__cygwin_lock_init): New function. (__cygwin_lock_init_recursive): Ditto. (__cygwin_lock_fini): Ditto. (__cygwin_lock_lock): Ditto. (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. (pthread::atforkprepare): Lock file pointer before fork. (pthread::atforkparent): Unlock file pointer after fork. (pthread::atforkchild): Ditto.
* * sem.cc (semget): Fix debug string.Corinna Vinschen2004-03-263-7/+16
| | | | | | | | (semop): Ditto. * shm.cc (fixup_shms_after_fork): Ditto. (shmat): Ditto. (shmdt): Ditto. (shmget): Ditto.
* * sigproc.cc (wait_sig): Make sure that SIGCHLD is handled regardless ofChristopher Faylor2004-03-262-7/+15
| | | | whether a signal is queued.
* Add prototypes for new msvcrt.dll versionsDanny Smith2004-03-2612-50/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600. * include/time.h (__time64_t): Add typedef. (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_ctime64): Likewise. (_wctime64): Likewise. (_gmtime64): Likewise. (_localtime64): Likewise. (wcsftime): Move into _WTIME_DEFINED block. Regroup non-ANSI prototypes. * include/io.h: Include <stdint.h>. (__finddata64_t): Add struct definition. (__wfinddata64_t): Likewise. (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_findnext64): Likewise. (_wfindfirst64): Likewise. (_wfindnext64): Likewise. * include/sys/timeb.h (__timeb64): Add struct definition. (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. * include/sys/utime.h (__utimbuf64): Add struct definition. (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_futime64): Likewise. (_wutime64): Likewise. * include/sys/stat.h (__stat64): Add struct definition. (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_stat64): Likewise. (_wstat64): Likwise. * include/sys/types.h (__time64_t): Add typedef. * include/wchar.h (__wfinddata64_t): Add structure definition. (__stat64): Likewise. (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_wfindfirst64): Likewise. (_wfindnext64): Likewise. (_wutime64): Likewise. (_wstat64): Likwise. * include/malloc.h (_aligned_free): Add prototype for __MSVCRT_VERSION__ >= 0x0700. (_aligned_malloc): Likewise. (_aligned_offset_malloc): Likewise. (_aligned_offset_realloc): Likewise. (_aligned_realloc): Likewise. * include/string.h (_wcserror): Add prototype for __MSVCRT_VERSION__ >= 0x0700. (__wcserror): Likewise. * include/math.h (_set_SSE2_enable): Add prototype for __MSVCRT_VERSION__ >= 0x0701.
* * sigproc.cc (wait_sig): Report if not trying to send signal due to queuedChristopher Faylor2004-03-262-1/+8
| | | | signal.
* * include/stdio.h (_fsopen): Add prototype.Danny Smith2004-03-253-0/+9
| | | | | * include/tchar.h (_tfsopen): Add defines. Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
* * path.cc (normalize_posix_path): Reorganize to short circuit to DOS pathChristopher Faylor2004-03-255-53/+63
| | | | | | | | | | handling whenever a '\' is detected. * signal.cc (sigaction): Make strace output more informative. * sigproc.cc (pending_signals::add): Just index directly into signal array rather than treating the array as a heap. (pending_signals::del): Ditto. (wait_sig): Don't send signal if we already have a similar signal queued. * sigproc.h (call_signal_handler_now): Remove obsolete declaration.
* 2004-03-25 Dimitri Papadopoulos <papadopo@users.sourceforge.net>Dimitri Papadopoulos2004-03-252-2/+18
| | | | | | * include/GL/glu.h (GLU_AUTO_LOAD_MATRIX, GLU_CULLING, GLU_SAMPLING_TOLERANCE, GLU_DISPLAY_MODE, GLU_PARAMETRIC_TOLERANCE, GLU_SAMPLING_METHOD, GLU_U_STEP, GLU_V_STEP): Define.
* Typo.Dimitri Papadopoulos2004-03-251-1/+1
|
* update copyright. Minor reformatting.Christopher Faylor2004-03-241-4/+6
|
* 2004-03-24 Filip Navara <xnavara@volny.cz>Danny Smith2004-03-242-0/+13
| | | | | * include/commctrl.h (TB_GETSTRING[AW]): Add defines. (RBBS_HIDETITLE, RBBS_TOPALIGN): Ditto.
* 2004-03-24 Filip Navara <xnavara@volny.cz>Danny Smith2004-03-242-3/+8
| | | | | | * include/ddk/srb.h (_PORT_CONFIGURATION_INFORMATION): Rename TaggedQueueing to TaggedQueuing. (_HW_INITIALIZATION_DATA): Likewise.
* * winsup.api/devdsp.c: New file, testing fhandler_dev_dsp code.Corinna Vinschen2004-03-243-0/+1154
| | | | * winsup.api/devdsp_okay.h: Ditto.
* * fhandler_dsp.cc (fhandler_dev_dsp::write): Remove typeCorinna Vinschen2004-03-242-3/+12
| | | | | cast from argument to audio_out_->parsewav() to make reference work properly. Now .wav file headers are properly discarded.
* white space fixupChristopher Faylor2004-03-231-3/+3
|
* * fhandler_disk_file.cc (fhandler_base::fstat_fs): Use createdCorinna Vinschen2004-03-232-3/+16
| | | | handle regardless of nohandle state. Clean up afterwards.
* * autoload.cc: Load eight more functions for waveIn support.Corinna Vinschen2004-03-234-344/+1190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.h (class fhandler_dev_dsp): Add class Audio, class Audio_in and class Audio_out members and audio_in_, audio_out_ pointers so that future changes are restricted to file fhandler_dsp.cc. * fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add this class to treat things common to audio recording and playback. Add more format conversions. (fhandler_dev_dsp::Audio::queue): New queues for buffer management to fix incomplete cleanup of buffers passed to the wave device. (fhandler_dev_dsp::Audio_in): New, added class to implement audio recording. (fhandler_dev_dsp::Audio_out): Rework to use functionality provided by fhandler_dev_dsp::Audio. Allocate memory audio buffers late, just before write. (fhandler_dev_dsp::Audio_out::start): Size of wave buffer allocated here depends on audio rate/bits/channels. (fhandler_dev_dsp::Audio_in::start): Ditto. (fhandler_dev_dsp::setupwav): Replaced by following function. (fhandler_dev_dsp::Audio_out::parsewav): Does not setup wave device any more. Discard wave header properly. (fhandler_dev_dsp::open): Add O_RDONLY and_RDWR as legal modes. Protect against re-open. Activate fork_fixup. (fhandler_dev_dsp::ioctl): Protect against actions when audio is active. SNDCTL_DSP_GETFMTS only returns formats supported by mmsystem wave API, not all supported formats. SNDCTL_DSP_GETBLKSIZE result now depends on current audio format. (fhandler_dev_dsp::fixup_after_fork): Call fork_fixup for the Audio classes to let them duplicate the CRITICAL_SECTION.
* Christopher Faylor <cgf@redhat.com>Christopher Faylor2004-03-222-18/+22
| | | | | * init.cc (munge_threadfunc): Handle all instances of search_for. (prime_threads): Test threadfunc_ix[0].
* * cygheap.cc (init_cheap): Set initial_sz to something or suffer spuriousChristopher Faylor2004-03-212-4/+12
| | | | | | | output. (cygheap_fixup_in_child): Set alloc_sz to passed in size to ensure that children will have the right size heap. (_csbrk): Make output conditional on DEBUGGING.
* * cygheap.cc (init_cheap): Conditionalize debugging code.Christopher Faylor2004-03-212-0/+6
|
* * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.Christopher Faylor2004-03-212-1/+5
|
* * cygheap.cc (init_cheap): Add ability to specify minimal cygwin heap size whenChristopher Faylor2004-03-217-54/+75
| | | | | | | | | | | | | | | debugging. (_csbrk): Report error in allocation to stderr. (ccalloc): Ditto. * dtable.cc (dtable::find_fifo): Remove use of atoms. * dtable.h (dtable::find_fifo): Ditto. * fhandler.h (fhandler_fifo): Ditto. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Ditto. (fhandler_fifo::set_use): Ditto. (fhandler_fifo::open_not_mine): Ditto. (fhandler_fifo::open): Ditto. * pinfo.cc (_pinfo::commune_recv): Ditto. (_pinfo::commune_send): Ditto.
* 2004-03-19 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-03-202-36/+44
| | | | * dir.cc (rmdir): Reorganize error handling to reduce indentation.
* * include/cygwin/version.h: Bump DLL minor number to 10.Christopher Faylor2004-03-192-1/+5
|
* * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),Danny Smith2004-03-193-6/+99
| | | | | | msvcr70.dll, and msvcr71.dll. * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant using basename of output def file.
* * child_info.h (CURR_CHILD_INFO_MAGIC): Reset to new value.Christopher Faylor2004-03-184-9/+33
| | | | | | | | | | | (child_info::cygheap_alloc_sz): New field. * cygheap.cc (init_cheap): Reduce size of cygwin stack until minimal hit when attempting initial allocation. (cygheap_setup_for_child): Use alloc_sz to create secondary memory mapped entry. Store alloc_sz in cygheap_alloc_sz. (cygheap_fixup_in_child): Use cygheap_alloc_sz to map parent's cygheap. * cygheap.h (_CYGHEAPSIZE_SLOP): New define. (CYGHEAPSIZE): Use _CYGHEAPSIZE_SLOP.
* * fhandler_proc.cc (format_proc_meminfo): On NT, try to figure outCorinna Vinschen2004-03-183-2/+54
| | | | | | | real swap file usage by requesting SystemPagefileInformation. Use GlobalMemoryStatus as fallback. * ntdll.h (_SYSTEM_INFORMATION_CLASS): Add SystemPagefileInformation. (struct _SYSTEM_PAGEFILE_INFORMATION): Define.
* Add FAQ about old packages. Remove B20 references.Joshua Daniel Franklin2004-03-171-33/+37
|
* add missing changelog entryChristopher Faylor2004-03-171-0/+4
|