Christopher Faylor
1b957b1c9f
fix email address
2004-04-08 13:34:37 +00:00
Corinna Vinschen
6eee18ea6e
* path.cc (hash_path_name): Replace hash algorithm with SDBM.
2004-04-08 12:21:15 +00:00
Corinna Vinschen
a9a5b2eab0
* fhandler.cc (fhandler_base::open): Set query access mode according
...
to query_open setting.
(fhandler_base::fhandler_base): Initialize query_open.
* fhandler.h (FH_QUERYOPEN): Drop.
(enum query_state): Add.
(class fhandler_base): Add query_open member.
(fhandler_base::get_query_open): Redefine to use query_open.
(fhandler_base::set_query_open): Ditto.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Remove O_DIROPEN
from open_flags since it's added in open_fs anyway. Remove
query_open_already. Use new query_open settings. Rearrange slightly.
(fhandler_base::fstat_helper): Add get_io_handle as parameter to
get_file_attribute.
* security.cc (get_nt_object_attribute): Make returning an int.
Return -1 on error, 0 otherwise.
(get_file_attribute): Take an object handle as argument. Move down
to allow calling get_nt_object_attribute in case a non-NULL handle
is given.
* security.h (get_file_attribute): Add handle to argument list.
* syscalls.cc (chown_worker): Accomodate new definition of
get_file_attribute.
2004-04-08 07:57:28 +00:00
Christopher Faylor
284a55c33e
* path.cc (path_prefix_p): Optimize test order.
2004-04-08 01:33:00 +00:00
Corinna Vinschen
49294f009e
* Makefile.in (EXTRALIBS): Add libtextreadmode.a.
...
(INSTOBJS): Add textreadmode.o.
* textreadmode.c: New file.
2004-04-06 14:22:43 +00:00
Corinna Vinschen
b8eac1dee4
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Request
...
compressed size only if the matching attributes are set. Use
NtQueryInformationFile instead of GetCompressedFileSize.
(fhandler_base::fstat_by_handle): Remove NT 3.5 cruft since
local.dwVolumeSerialNumber isn't used subsequently.
* ntdll.h: Add typedefs for FILE_COMPRESSION_INFORMATION and
FILE_INFORMATION_CLASS.
2004-04-06 10:19:31 +00:00
Corinna Vinschen
cffd8968e3
* fhandler_raw.cc (fhandler_dev_raw::open): Actually use "options".
2004-04-06 07:57:59 +00:00
Luke Dunstan
7a1d1d90cd
2004-04-06 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/ocidl.h (QACONTAINERFLAGS): Correct typedef.
2004-04-05 16:25:07 +00:00
Corinna Vinschen
7e57d6d268
* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Add implementation
...
for ioctl codes SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
2004-04-05 08:30:41 +00:00
Corinna Vinschen
63481100b1
* winsup.api/devdsp.c (ioctltest): Add 2 tests for ioctl codes
...
SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
2004-04-05 08:30:13 +00:00
Christopher Faylor
129c8a0e81
* child_info.h (child_info::cygheap_reserve_sz): Rename from cygheap_alloc_sz.
...
* cygheap.cc: Rename alloc_sz to reserve_sz throughout.
2004-04-04 04:14:11 +00:00
Corinna Vinschen
321ddf2422
* fhandler.h (class fhandler_socket): Remove has_been_closed member.
...
* fhandler_socket.cc (fhandler_socket::recvfrom): Revert to
overlapped I/O.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc (wsock_event::prepare): Ditto.
(wsock_event::wait): Ditto. Evaluate overlapped result also after
calling CancelIo (thanks to Patrick Samson <p_samson@yahoo.com>).
(wsock_event::release): Remove.
* wsock_event.h: Revert to overlapped I/O.
2004-04-03 19:07:59 +00:00
Jeff Johnston
81961a5001
2004-04-02 Chris Demetriou <cgd@broadcom.com>
...
* mips/regs.S (C0_COUNT): Fix comment that kept this from being
defined.
* mips/vr4300.S: Use C0_COUNT as appropriate instead of hardcoding $9.
* mips/vr5xxx.S: Likewise.
2004-04-03 01:02:51 +00:00
Corinna Vinschen
f5da8224f6
* net.cc (wsock_event::release): Use NULL handle in call to
...
WSAEventSelect to resolve KB 168349.
2004-04-02 10:29:53 +00:00
Jeff Johnston
59c9f5f586
2004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* libc/time/strptime.c: Add standard includes to avoid
warning messages at compilation time.
2004-04-02 01:05:43 +00:00
Jeff Johnston
38f4f02370
2004-04-01 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
of file.
2004-04-02 00:59:17 +00:00
Corinna Vinschen
b6edea61f2
* fhandler_socket.cc (fhandler_socket::recvfrom): Rearrange loop
...
so that WSARecvFrom is always called before waiting.
(fhandler_socket::recvmsg): Ditto.
2004-04-01 17:00:21 +00:00
Corinna Vinschen
4cfacffa79
* net.cc (wsock_event::wait): Make wsa_err an int. Don't set
...
ret to 0 if any error has happened.
2004-04-01 10:36:40 +00:00
Danny Smith
4fc406c935
* crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
...
_fmode if not __MSVCRT__.
2004-04-01 10:04:04 +00:00
Corinna Vinschen
54aefcc6bc
* fhandler_socket.cc (fhandler_socket::sendto): Drop out of loop if
...
has_been_closed gets set.
(fhandler_socket::sendmsg): Ditto.
* net.cc (wsock_event::wait): Don't initialize evts. Don't try to
evaluate network events if WSAEnumNetworkEvents fails.
(wsock_event::release): Save last WSA error and set it again unless
resetting to blocking socket fails.
* wsock_event.h (class wsock_event): Remove destructor.
2004-04-01 09:48:15 +00:00
Corinna Vinschen
fbba4780af
* fhandler_tape.cc (mtinfo::initialize): Fix fatal error message.
2004-03-31 19:34:27 +00:00
Corinna Vinschen
455bbeae38
* fhandler_socket.cc (fhandler_socket::recvfrom): Always initialize
...
ret to 0 when using in Winsock call.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
2004-03-31 15:33:33 +00:00
Corinna Vinschen
decd3e5d72
* fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition if
...
GetTapePosition returned a non-zero partition number.
(mtinfo_drive::create_partitions): Reinitialize to partition 0.
Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning.
(mtinfo_drive::set_partition): Initialize new partition.
(mtinfo_drive::status): Readd accidentally dropped setting of mt_resid.
* net.cc (wsock_event::prepare): Always print debug output in case
of error.
2004-03-31 12:04:07 +00:00
Corinna Vinschen
93ba120429
* fhandler_socket.cc (fhandler_socket::sendmsg): Add SIGPIPE handling.
2004-03-31 10:10:59 +00:00
Corinna Vinschen
4450172a6c
* fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res to
...
SOCKET_ERROR. Use SOCKET_ERROR instead of -1 throughout.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc (wsock_event::prepare): Call WSASetLastError instead of
SetLastError.
(wsock_event::wait): Use SOCKET_ERROR instead of -1.
2004-03-31 09:13:54 +00:00
Jeff Johnston
ed4c5eceb0
2003-03-30 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/h8300/Makefile.am: Reformat slightly.
* libc/machine/h8300/Makefile.in: Regenerate.
2004-03-31 01:27:53 +00:00
Danny Smith
4289ebdbfb
2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/io.h: (_findfirst): Correct prototype.
2004-03-30 Hans Leidekker <hans@it.vu.nl>
* include/io.h: (_findnext, _findclose): Correct prototype.
2004-03-30 21:49:12 +00:00
Christopher Faylor
c83bdbf65e
* thread.h (pthread::init_mainthread): Add parameter forked. Set forked
...
default to false..
* thread.cc (MTinterface::fixup_after_fork): Call pthread::init_mainthread with
forked = true.
(pthread::init_mainthread): Add parameter forked. Do not change thread self
pointer when forked.
2004-03-30 21:27:50 +00:00
Jeff Johnston
cacc0d4421
2003-03-30 Thomas Pfaff <tpfaff@gmx.net>
...
* libc/stdio/findfp.c (__fp_lock_all): Add call to
__sfp_lock_acquire.
(__fp_unlock_all): Add call to __sfp_lock_release.
2004-03-30 21:11:53 +00:00
DJ Delorie
e9db932542
merge from gcc
2004-03-30 20:03:09 +00:00
Joshua Daniel Franklin
7c1bb55ec0
2004-03-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* ntsec.sgml: Replace chapter numbers with <link>s,
replace release-numbers in <title>s with descriptions.
2004-03-30 Ronald Landheer-Cieslak <ronald@landheer.com>
* ntsec.sgml: Fix typos, correct chapter numbers.
2004-03-30 19:20:42 +00:00
Corinna Vinschen
d2714c5eda
* sysv_shm.cc (shmget): Allow to retrieve shared memory segments
...
by shmid when IPC_KEY_IS_SHMID is set.
2004-03-30 15:21:18 +00:00
Corinna Vinschen
5c7b73ed97
* shm.cc (shmat): If shmid is unknown, call a special variation
...
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.
2004-03-30 15:20:08 +00:00
Nick Clifton
66c8e18830
Add (linker) support for CR16C processor
2004-03-30 14:04:32 +00:00
Danny Smith
7308c39e33
* lib/Makefile,in; Add directx to .PHONY target.
...
* 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.
2004-03-29 22:39:46 +00:00
Corinna Vinschen
81f5200ba3
* fhandler.h (class fhandler_socket): Add has_been_closed member.
...
* 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.
2004-03-29 19:41:17 +00:00
Christopher Faylor
c7f060d0da
* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork at
...
the end of atforkprepare.
2004-03-29 15:14:07 +00:00
Corinna Vinschen
2b2cc75f6b
* net.cc (wsock_event::wait): Change scope of local "len" variable.
2004-03-29 14:08:44 +00:00
Luke Dunstan
da2cf24aba
2004-03-28 Hans Leidekker <hans@it.vu.nl>
...
* include/math.h (FP_*): Add defines.
2004-03-29 13:57:04 +00:00
Danny Smith
521a0aa9a8
* mingwex/math/round.c: Rewrite.
...
* mingwex/math/roundf.c: Rewrite.
* mingwex/math/roundl.c: Rewrite.
2004-03-29 08:22:20 +00:00
Corinna Vinschen
20e0dcfb3e
* pathnames.sgml: Fix /dev/srX description.
2004-03-29 08:07:39 +00:00
Joshua Daniel Franklin
680dacb164
2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* how-programming.texinfo: Make list in .lib FAQ enumerative.
2004-03-29 06:37:40 +00:00
Joshua Daniel Franklin
4341a703f6
2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* how-programming.texinfo: Add note about gcc .lib linking.
* pathnames.sgml: Mention create_devices.sh for /dev/ creation.
2004-03-29 05:56:46 +00:00
Corinna Vinschen
83216c72ec
* shm.cc (shmat): Return (void *) -1 on error instead of NULL.
2004-03-28 21:01:33 +00:00
Luke Dunstan
f241377ee1
2004-03-27 Hosaka Yuji <hos@tamanegi.org>
...
* 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.
2004-03-28 11:22:10 +00:00
Christopher Faylor
f19da5f77d
* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already
...
been set if pc.error is nonzero.
2004-03-27 18:01:04 +00:00
Corinna Vinschen
82b78005eb
* Fix ChangeLog formatting.
2004-03-27 16:02:04 +00:00
Corinna Vinschen
999ecb4cad
* cygserver.sgml: New file.
...
* using.sgml: Include Cygserver docs.
2004-03-27 15:59:44 +00:00
Joshua Daniel Franklin
989ea48440
2004-03-26 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* cygwinenv.sgml: Add example for CYGWIN=error_start.
* pathnames.sgml: Update list of /dev/ devices.
2004-03-27 06:48:11 +00:00
Luke Dunstan
fec932591d
2004-03-27 Filip Navara <xnavara@volny.cz>
...
* 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.
2004-03-27 02:25:37 +00:00