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
Corinna Vinschen
1b557b4333
* fhandler.cc (fhandler_base::open): Remove special DEV_FLOPPY_MAJOR
...
treatment.
* fhandler_raw.cc (fhandler_dev_raw::open): Simplify write-only case.
* fhandler_tape.cc (fhandler_dev_tape::raw_write): Add accidentally
dropped condition.
2004-04-20 11:01:22 +00:00
Corinna Vinschen
fc0ac9dfe6
* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES when
...
only GENERIC_WRITE access is requested.
2004-04-20 10:24:37 +00:00
Luke Dunstan
b6fc88d639
2004-04-20 Adrian Sandor <aditsu@users.sourceforge.net>
...
* include/msacm.h: New file.
2004-04-20 09:48:52 +00:00
Corinna Vinschen
f9e8db240f
* include/cygwin/mtio.h (GMT_ASYNC): New define.
...
(MT_ST_ASYNC_WRITES): Remove "Not supported" comment.
2004-04-19 19:41:13 +00:00
Corinna Vinschen
0c8731b8f4
* errno.cc (errmap): Handle ERROR_IO_PENDING.
...
* fhandler.cc (fhandler_base::open): Make tape I/O asynchronous.
* fhandler.h (class fhandler_dev_tape): Add mt_evt member.
* fhandler_tape.cc (mtinfo_drive::initialize): Initialize async_writes.
(mtinfo_drive::close): Handle async writes.
(mtinfo_drive::read): Add mt_evt parameter. Use overlapped I/O.
(mtinfo_drive::async_wait): New function.
(mtinfo_drive::write): Add mt_evt parameter. Use overlapped I/O.
Handle async writes.
(mtinfo_drive::_set_pos): Handle async writes.
(mtinfo_drive::set_partition): Ditto.
(mtinfo_drive::prepare): Ditto.
(mtinfo_drive::get_status): Drop useless "else". Handle async_writes
flag.
(mtinfo_drive::set_options): Handle async_writes flags.
(fhandler_dev_tape::close): Close mt_evt handle.
(fhandler_dev_tape::raw_read): Create mt_evt handle and use in call
to mtinfo_drive::read.
(fhandler_dev_tape::raw_write): Create mt_evt handle and use in call
to mtinfo_drive::write.
* mtinfo.h (MTINFO_VERSION): Bump.
(enum dirty_state): Add async_write_pending state.
(class mtinfo_drive): Add OVERLAPPED struct "ov". Add async_writes
flag.
(mtinfo_drive::async_wait): Add declaration.
(mtinfo_drive::read): Add mt_evt parameter.
(mtinfo_drive::write): Ditto.
* registry.cc (load_registry_hive): Call enable_restore_privilege
instead of set_process_privilege.
2004-04-19 19:29:10 +00:00
Earnie Boyd
da3c66eb9a
* include/_mingw.h: Revert to primary release 3 and increment minor
...
release to 3.
* Makefile.in (VERSION): Ditto.
2004-04-19 17:01:27 +00:00
Earnie Boyd
81e7a69f5a
* include/_mingw.h: Revert to primary release 3 and increment minor
...
release to 3.
2004-04-19 16:58:40 +00:00
Corinna Vinschen
1facc71a35
* fhandler_tape.cc (mtinfo_drive::_set_pos): Take additional dont_wait
...
parameter. Use in call to SetTapePosition.
(mtinfo_drive::set_pos): Accomodate _set_pos calls to above change.
(mtinfo_drive::set_partition): Ditto.
* mtinfo.h (mtinfo_drive::_set_pos): Change declaration accordingly.
2004-04-19 13:07:55 +00:00
Danny Smith
6f3375a5bf
Clean up ChangeLog punctuation and typeo.
...
Thanks to Filip Navara <xnavara@volny.cz>.
2004-04-18 20:48:29 +00:00