Christopher Faylor
982c8ecdb4
* cygheap.h (cwdstuff::set): Modify return value and arguments.
...
* path.cc (chdir): Specify PC_POSIX. Do not call SetCurrentDirectory. Set
posix_cwd in a way that does not break find.exe. Change call to cwd.set.
(cwdstuff::get_initial): Do not call GetCurrentDirectory here.
(cwdstuff::set): Call SetCurrentDirectory and GetCurrentDirectory as needed.
2004-05-15 15:55:43 +00:00
Danny Smith
99189153b3
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* include/ddk/kbdmou.h: New file.
* lib/ddk/videoprt.def (VideoPortMapBankedMemory,
VideoPortMapDmaMemory, VideoPortMapMemory): Correct suffix.
* lib/ddk/ntoskrnl.def (_snprintf, _snwprintf, _vsnprintf,
_vsnwprintf, sprintf, swprintf): Export.
2004-05-15 10:08:06 +00:00
Danny Smith
34f35cf5e0
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* include/ddk/ntddk.h: Don't set 4-byte alignment on included
headers.
2004-05-15 09:47:02 +00:00
Christopher Faylor
f30298c13b
remove keyword stuff
2004-05-12 16:21:18 +00:00
Corinna Vinschen
8d8bc1e139
* path.cc (path_conv::check): Don't bail out with error if path is "//".
2004-05-12 14:04:23 +00:00
Corinna Vinschen
191ea07aa5
* cygheap.h (struct init_cygheap): Add mt_h member.
...
* fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle.
(mtinfo_init): Use cygheap->mt_h handle. Protect it.
2004-05-12 12:28:59 +00:00
Pierre Humblet
8bdfa78a69
2004-05-12 Pierre Humblet <pierre.humblet@ieee.org>
...
* tty.h: Remove the %d or %x from all cygtty strings.
(tty::open_output_mutex): Only declare.
(tty::open_input_mutex): Ditto.
(tty::open_mutex): New definition.
* fhandlet_tty.cc (fhandler_tty_slave::open): Declare buf with
size CYG_MAX_PATH and replace __small_printf calls by shared_name.
* tty.cc (tty::create_inuse): Ditto.
(tty::get_event): Ditto.
(tty::common_init): Ditto.
(tty::open_output_mutex): New method definition.
(tty::open_input_mutex): Ditto.
(tty::open_mutex): New method.
2004-05-12 01:44:11 +00:00
Corinna Vinschen
0175b5311e
* fhandler.cc (fhandler_base::open): Set file attributes to correct
...
value when creating files.
* path.h (class path_conv): Add write accessor for file_attributes.
2004-05-11 15:39:50 +00:00
Corinna Vinschen
75b5f30fdd
* fhandler.h (class fhandler_socket): Add "owner" status flag.
...
* fhandler_socket.cc (wait): Take flag parameter to take FD_OOB into
account. Don't wait infinitely.
(fhandler_socket::recvfrom): Also wait for FD_OOB if socket owner.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::fcntl): Set owner status flag if F_SETOWN with own
pid is called.
2004-05-10 15:21:01 +00:00
Pierre Humblet
94f29ccdf6
2004-05-09 Pierre Humblet <pierre.humblet@ieee.org>
...
* environ.cc (build_env): Only try to construct required-but-missing
variables while issetuid.
2004-05-09 15:17:15 +00:00
Christopher Faylor
ac3003157b
* syscalls.cc: Include environ.h.
...
(chroot): Set errno in case of path error. Call getwinenv.
* environ.cc: Remove the NO_COPY attribute of conv_envvars.
2004-05-08 02:55:38 +00:00
Corinna Vinschen
f8aae275a4
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Move
...
initialization of "mem_size" from here...
(fhandler_dev_mem::open): ...to here. Fix typo in FH_PORT case.
2004-05-07 21:28:53 +00:00
Corinna Vinschen
367ff06ea4
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Move delete of
...
bigwavebuffer_ so that it is always cleaned, also in child processes.
(fhandler_dev_dsp::Audio_in::stop): Ditto.
(fhandler_dev_dsp::close): Stop audio play immediately in case of
abnormal exit.
2004-05-07 07:54:28 +00:00
Corinna Vinschen
3e101fb2cd
Revert code reversion from 2004-04-03. So, revert to async I/O again.
...
* fhandler.h (status): Add "closed" flag.
(prepare): New method declaration.
(wait): Ditto.
(release): Ditto.
* fhandler_socket.cc: Don't include wsock_event.h.
(fhandler_socket::prepare): New method, moved from wsock_event.
(fhandler_socket::wait): Ditto.
(fhandler_socket::release): New method.
(fhandler_socket::recvfrom): Simplify loop.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc: Don't include wsock_event.h.
(wsock_event::prepare): Remove.
(wsock_event::wait): Ditto.
* wsock_event.h: Remove.
2004-05-07 07:51:31 +00:00
Christopher Faylor
dab22ff6e6
fix entry
2004-05-07 03:51:22 +00:00
Christopher Faylor
9b0b76ba92
* thread.cc (pthread::create): Move postcreate call to avoid a potential race.
...
(pthread::cancelable_wait): Don't allow signal interrupt unless main thread.
2004-05-07 03:31:04 +00:00
Christopher Faylor
1940656ab9
Christopher Faylor <cgf@timesys.com>
...
* path.cc (mount_info::conv_to_posix_path): Add return.
2004-05-07 03:27:37 +00:00
Danny Smith
718123fada
* include/wingdi.h: Correct non-unicode typedefs of
...
ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV.
2004-05-06 21:04:26 +00:00
Danny Smith
bbf3df482a
2004-05-07 Pascal Obry <obry@act-europe.fr>
...
* include/winsock.h (IN_CLASSA): Fix macro.
* include/winsock2.h (IN_CLASSA): Fix macro.
2004-05-06 20:54:50 +00:00
Pierre Humblet
14017d5313
2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (path_conv::check): Strip trailing dots and spaces and
return error if the final component had only dots and spaces.
(normalize_posix_path): Revert 2004-04-30.
(chdir): Do not check for trailing spaces. Do not set native_dir
to c:\ for virtual devices. Pass only native_dir to cwd.set.
(cwdstuff::set): Assume posix_cwd is already normalized.
2004-05-06 16:26:10 +00:00
Christopher Faylor
6767691ff0
fix changelog dates
2004-05-05 03:55:48 +00:00
Christopher Faylor
5cc2189c09
* path.cc (normalize_win32_path): Detect components with only dots. Remove a
...
final . if it follows '\\'.
(mount_info::conv_to_win32_path): Only backslashify the path when no mount is
found.
(chdir): Do not look for components with only dots.
2004-05-04 15:14:48 +00:00
Christopher Faylor
3dcb399b58
* path.cc (is_unc_share): Remove redundant tests.
2004-05-04 15:09:58 +00:00
Corinna Vinschen
423ea473f4
* crt0.o (mainCRTStartup): 16 byte align stack for main function.
2004-05-04 14:46:25 +00:00
Corinna Vinschen
ad7ba32b2d
* path.cc (check_sysfile): Don't scan string twice.
2004-05-04 10:54:06 +00:00
Corinna Vinschen
1e98729b2a
* dir.cc (writable_directory): Remove.
...
(mkdir): Remove call to writable_directory.
* syscalls.cc (unlink): Ditto.
(rename): Ditto.
* winsup.h (writable_directory): Remove declaration.
2004-05-03 11:53:07 +00:00
Luke Dunstan
2d465f741f
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winbase.h (EXECUTION_STATE): Add typedef.
(SetThreadExecutionState): Declare.
* include/wingdi.h (_WINGDI_): Define.
* include/objbase.h (_OBJBASE_H_): Define.
2004-05-01 01:52:58 +00:00
Corinna Vinschen
43b2d5bace
* fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_path
...
for evaluating NT path.
* path.cc (normalize_posix_path): Remove trailing dots and spaces.
(path_conv::get_nt_native_path): New function.
* path.h (class path_conv): Declare get_nt_native_path method.
2004-04-30 17:36:36 +00:00
Luke Dunstan
ed8dd3c858
2004-04-29 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type.
* include/aclui.h: Remove '\r', throughout.
* include/msacm.h: Likewise.
* lib/aclui.def: Likewise.
2004-04-30 17:06:21 +00:00
Corinna Vinschen
e6b21dafc1
* fhandler.cc (fhandler_base::open): Fix NT native path evaluation
...
to allow opening serial ports.
2004-04-30 14:02:37 +00:00
Corinna Vinschen
72f3756e07
* init.cc (threadfunc_fe): Hack to make thread stacks always 16
...
byte aligned.
2004-04-30 13:27:27 +00:00
Luke Dunstan
4163fce83f
2004-04-28 Luke Dunstan <infidel@users.sourceforge.net>
...
* lib/comctl32.def (SetWindowSubclass): Add stub.
Thanks to Eugene <egladysh@users.sourceforge.net>.
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
* include/winbase.h (EXECUTION_STATE): Add typedef.
(SetThreadExecutionState): Declare.
* include/wingdi.h (_WINGDI_): Define.
* include/objbase.h (_OBJBASE_H_): Define.
2004-04-28 14:18:13 +00:00
Luke Dunstan
7ed02aabd1
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winuser.h (SM_IMMENABLED, SM_CXFOCUSBORDER,
SM_CYFOCUSBORDER, SM_TABLETPC, SM_MEDIACENTER): Add defines.
(SM_CMETRICS): Adjust value.
* include/winnt.h (PROCESSOR_ARCHITECTURE_MSIL): Correct define.
(PROCESSOR_ARCHITECTURE_AMD64, PROCESSOR_ARCHITECTURE_IA32_ON_WIN64):
Add defines.
Thanks to Benoit Blanchon <benoit.blanchon@free.fr>
2004-04-23 18:24:03 +00:00
Luke Dunstan
a0e6bb2a39
2004-04-24 Justin Forest <vhex@users.sourceforge.net>
...
* include/winsock2.h (LUP_DEEP, LUP_CONTAINERS,
LUP_NOCONTAINERS, LUP_NEAREST, LUP_RETURN_NAME,
LUP_RETURN_TYPE, LUP_RETURN_VERSION, LUP_RETURN_COMMENT,
LUP_RETURN_ADDR, LUP_RETURN_BLOB, LUP_RETURN_ALIASES,
LUP_RETURN_QUERY_STRING, LUP_RETURN_ALL, LUP_RES_SERVICE,
LUP_FLUSHCACHE, LUP_FLUSHPREVIOUS): Add defines.
2004-04-23 18:01:08 +00:00
Luke Dunstan
e1f9606d7b
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/windns.h (DNSREC_QUESTION, DNSREC_ANSWER, DNSREC_AUTHORITY,
DNSREC_ADDITIONAL): Add defines.
2004-04-23 17:31:32 +00:00
Luke Dunstan
f59f3bc1c0
2004-04-23 Robert Wruck <wruck@tweerlei.de>
...
* include/commctrl.h (LPNMLVDISPINFO): Add defines.
2004-04-23 17:17:14 +00:00
Luke Dunstan
3704b2de4d
2004-04-23 Robert Wruck <wruck@tweerlei.de>
...
* include/aclui.h: New file.
* lib/aclui.def: New file.
* lib/test.c: Add aclui.h to includes.
2004-04-23 16:03:43 +00:00
Earnie Boyd
b2e2d5d98c
* strncasecmp.c: Reword copyright and disclaimer. Move Contributors
...
section to CONTRIBUTORS file. Remove RCS tags.
2004-04-22 16:34:31 +00:00
Earnie Boyd
956235ae2b
CORRECTION:
...
* Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
2004-04-22 16:27:00 +00:00
Earnie Boyd
00a85098c4
* DISCLAIMER: Add words about "free to use".
...
* README: Modify "Win32 runtime" to "Microsoft C Runtime".
* Makefile.in (SRCDIST_FILES): Add DISCLAIMER and README.
(inst_docdir): New variable.
(INSTDOCS): Ditto.
(FLAGS_TO_PASS): Include inst_docdir.
(install-dirs): Add inst_docdir.
(install): Add loop for INSTDOCS.
2004-04-22 16:16:25 +00:00
Danny Smith
1a4b7623f4
* mingwex/math/lround.c: Rewrite.
...
* mingwex/math/lroundf.c: Rewrite.
* mingwex/math/lroundl.c: Rewrite.
* mingwex/math/llround.c: Rewrite.
* mingwex/math/llroundf.c: Rewrite.
* mingwex/math/llroundl.c: Rewrite.
2004-04-22 04:38:24 +00:00
Corinna Vinschen
b7ede86cfe
* syscalls.cc (lseek64): Fix debug_printf format string.
...
(truncate64): Ditto.
* fhandler.cc (fhandler_base::lseek): Force res to -1 on error.
2004-04-21 08:16:13 +00:00
Danny Smith
c55888059d
* include/winuser.h (SPI_GETACTIVEWINDOWTRACKING,
...
SPI_GETACTIVEWNDTRKZORDER, SPI_SETACTIVEWINDOWTRACKING,
SPI_SETACTIVEWNDTRKZORDER): Remove duplicate defines.
2004-04-21 07:14:57 +00:00
Earnie Boyd
4d6c899474
* CONTRIBUTORS: New file.
...
* DISCLAIMER: Ditto.
* CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
section CONTRIBUTORS file. Remove RCS tags.
* CRTFmode.c: Ditto.
* CRTglob.c: Ditto.
* CRTinit.c: Ditto.
* crt1.c: Ditto.
* crtdll.dev: Ditto.
* dllcrt1.c: Ditto.
* dllmain.c: Ditto.
* gccmain.c: Ditto.
* init.c: Ditto.
* isascii.c: Ditto.
* iscsym.c: Ditto.
* iscsymf.c: Ditto.
* jamfile: Ditto.
* main.c: Ditto.
* msvcrt.def.in: Ditto.
* strcasecmp.c: Ditto.
* toascii.c: Ditto.
* wcscmpi.c: Ditto.
* include/assert.h: Ditto.
* include/conio.h: Ditto.
* include/ctype.h: Ditto.
* include/direct.h: Ditto.
* include/dirent.h: Ditto.
* include/dos.h: Ditto.
* include/errno.h: Ditto.
* include/excpt.h: Ditto.
* include/fcntl.h: Ditto.
* include/float.h: Ditto.
* include/io.h: Ditto.
* include/locale.h: Ditto.
* include/malloc.h: Ditto.
* include/math.h: Ditto.
* include/process.h: Ditto.
* include/setjmp.h: Ditto.
* include/share.h: Ditto.
* include/signal.h: Ditto.
* include/stdio.h: Ditto.
* include/stdlib.h: Ditto.
* include/string.h: Ditto.
* include/tchar.h: Ditto.
* include/time.h: Ditto.
* include/wchar.h: Ditto.
* include/sys/locking.h: Ditto.
* include/sys/param.h: Ditto.
* include/sys/stat.h: Ditto.
* include/sys/timeb.h: Ditto.
* include/sys/types.h: Ditto.
* include/sys/utime.h: Ditto.
* mingwex/dirent.c: Ditto.
2004-04-20 22:49:32 +00:00
Christopher Faylor
f4a395ef78
fix comment
2004-04-20 18:46:15 +00:00
Christopher Faylor
9f9231b314
* path.cc (is_unc_share): Rename from slash_unc_prefix_p throughout.
...
* path.cc (normalize_posix_path): Process all Posix paths and map three or more
initial slashes to a single one. Simplify processing following two initial
slashes.
(normalize_win32_path): Make last argument non-optional and do not check for
NULL value.
2004-04-20 18:45:16 +00:00
Corinna Vinschen
c8daf9983b
* fhandler_disk_file.cc (fhandler_base::open_fs): Change
...
set_file_attribute call to indicate that NT security isn't used.
(fhandler_disk_file::fchmod): Rearrange to isolate 9x related
statements.
Do not set FILE_ATTRIBUTE_SYSTEM.
(fhandler_disk_file::fchown): Check noop case first.
* fhandler.cc (fhandler_base::open9x): Remove ntsec related statements.
(fhandler_base::set_name): Do not set namehash.
* fhandler.h (fhandler_base::get_namehash): Compute and set namehash if
needed.
* syscalls.cc (access): Verify that fh is not NULL. Do not set PC_FULL.
(chmod): Ditto.
(chown_worker): Ditto.
(stat_worker): Ditto. Verify if the path exists.
2004-04-20 15:51:24 +00:00
Christopher Faylor
4cc12c5630
* include/wingdi.h: Protect non-unicode case of below.
2004-04-20 15:17:36 +00:00
Christopher Faylor
43fb8fbb0a
* include/wingdi.h: Protect use of ENUMLOGFONTEXDV, PENUMLOGFONTEXDV,
...
LPENUMLOGFONTEXDV with appropriate version check.
2004-04-20 15:10:26 +00:00
Luke Dunstan
8d6679f27e
2004-04-18 Hans Leidekker <hans@it.vu.nl>
...
* lib/directx/dxguid.c (CLSID_DirectSoundPrivate,
DSPROPSETID_DirectSoundDevice): Add defines.
2004-04-20 12:08:47 +00:00