summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * syscalls.cc: Include environ.h.Christopher Faylor2004-05-083-11/+14
| | | | | (chroot): Set errno in case of path error. Call getwinenv. * environ.cc: Remove the NO_COPY attribute of conv_envvars.
* * fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): MoveCorinna Vinschen2004-05-072-19/+19
| | | | | initialization of "mem_size" from here... (fhandler_dev_mem::open): ...to here. Fix typo in FH_PORT case.
* * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Move delete ofCorinna Vinschen2004-05-072-10/+23
| | | | | | | 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.
* Revert code reversion from 2004-04-03. So, revert to async I/O again.Corinna Vinschen2004-05-075-143/+193
| | | | | | | | | | | | | | | | | | | * 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.
* fix entryChristopher Faylor2004-05-071-1/+6
|
* * thread.cc (pthread::create): Move postcreate call to avoid a potential race.Christopher Faylor2004-05-071-0/+7
| | | | (pthread::cancelable_wait): Don't allow signal interrupt unless main thread.
* Christopher Faylor <cgf@timesys.com>Christopher Faylor2004-05-073-16/+33
| | | | * path.cc (mount_info::conv_to_posix_path): Add return.
* * include/wingdi.h: Correct non-unicode typedefs ofDanny Smith2004-05-062-3/+8
| | | | ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV.
* 2004-05-07 Pascal Obry <obry@act-europe.fr>Danny Smith2004-05-063-2/+7
| | | | | * include/winsock.h (IN_CLASSA): Fix macro. * include/winsock2.h (IN_CLASSA): Fix macro.
* 2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-062-74/+52
| | | | | | | | | * 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.
* fix changelog datesChristopher Faylor2004-05-051-2/+2
|
* * path.cc (normalize_win32_path): Detect components with only dots. Remove aChristopher Faylor2004-05-042-36/+32
| | | | | | | 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.
* * path.cc (is_unc_share): Remove redundant tests.Christopher Faylor2004-05-043-11/+14
|
* * crt0.o (mainCRTStartup): 16 byte align stack for main function.Corinna Vinschen2004-05-042-0/+6
|
* * path.cc (check_sysfile): Don't scan string twice.Corinna Vinschen2004-05-042-2/+7
|
* * dir.cc (writable_directory): Remove.Corinna Vinschen2004-05-034-51/+8
| | | | | | | (mkdir): Remove call to writable_directory. * syscalls.cc (unlink): Ditto. (rename): Ditto. * winsup.h (writable_directory): Remove declaration.
* 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-05-012-0/+2
| | | | | | | * include/winbase.h (EXECUTION_STATE): Add typedef. (SetThreadExecutionState): Declare. * include/wingdi.h (_WINGDI_): Define. * include/objbase.h (_OBJBASE_H_): Define.
* * fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_pathCorinna Vinschen2004-04-304-20/+40
| | | | | | | 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-29 Bart Oldeman <bartoldeman@users.sourceforge.net>Luke Dunstan2004-04-305-328/+335
| | | | | | | * include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type. * include/aclui.h: Remove '\r', throughout. * include/msacm.h: Likewise. * lib/aclui.def: Likewise.
* * fhandler.cc (fhandler_base::open): Fix NT native path evaluationCorinna Vinschen2004-04-302-10/+20
| | | | to allow opening serial ports.
* * init.cc (threadfunc_fe): Hack to make thread stacks always 16Corinna Vinschen2004-04-302-0/+7
| | | | byte aligned.
* 2004-04-28 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-04-283-0/+19
| | | | | | | | | | | | * 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-24 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-04-233-2/+19
| | | | | | | | | | * 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-24 Justin Forest <vhex@users.sourceforge.net>Luke Dunstan2004-04-232-0/+26
| | | | | | | | | * 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-24 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-04-232-0/+9
| | | | | * include/windns.h (DNSREC_QUESTION, DNSREC_ANSWER, DNSREC_AUTHORITY, DNSREC_ADDITIONAL): Add defines.
* 2004-04-23 Robert Wruck <wruck@tweerlei.de>Luke Dunstan2004-04-232-0/+6
| | | | * include/commctrl.h (LPNMLVDISPINFO): Add defines.
* 2004-04-23 Robert Wruck <wruck@tweerlei.de>Luke Dunstan2004-04-234-0/+148
| | | | | | * include/aclui.h: New file. * lib/aclui.def: New file. * lib/test.c: Add aclui.h to includes.
* * strncasecmp.c: Reword copyright and disclaimer. Move ContributorsEarnie Boyd2004-04-222-18/+6
| | | | section to CONTRIBUTORS file. Remove RCS tags.
* CORRECTION:Earnie Boyd2004-04-222-3/+4
| | | | * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
* * DISCLAIMER: Add words about "free to use".Earnie Boyd2004-04-224-2/+26
| | | | | | | | | | * 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.
* * mingwex/math/lround.c: Rewrite.Danny Smith2004-04-227-116/+101
| | | | | | | | * 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.
* * syscalls.cc (lseek64): Fix debug_printf format string.Corinna Vinschen2004-04-213-2/+12
| | | | | | (truncate64): Ditto. * fhandler.cc (fhandler_base::lseek): Force res to -1 on error.
* * include/winuser.h (SPI_GETACTIVEWINDOWTRACKING,Danny Smith2004-04-212-5/+7
| | | | | SPI_GETACTIVEWNDTRKZORDER, SPI_SETACTIVEWINDOWTRACKING, SPI_SETACTIVEWNDTRKZORDER): Remove duplicate defines.
* * CONTRIBUTORS: New file.Earnie Boyd2004-04-2053-868/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* fix commentChristopher Faylor2004-04-201-1/+1
|
* * path.cc (is_unc_share): Rename from slash_unc_prefix_p throughout.Christopher Faylor2004-04-202-40/+37
| | | | | | | | * 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.
* * fhandler_disk_file.cc (fhandler_base::open_fs): ChangeCorinna Vinschen2004-04-205-46/+66
| | | | | | | | | | | | | | | | 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.
* * include/wingdi.h: Protect non-unicode case of below.Christopher Faylor2004-04-202-3/+9
|
* * include/wingdi.h: Protect use of ENUMLOGFONTEXDV, PENUMLOGFONTEXDV,Christopher Faylor2004-04-202-0/+7
| | | | LPENUMLOGFONTEXDV with appropriate version check.
* 2004-04-18 Hans Leidekker <hans@it.vu.nl>Luke Dunstan2004-04-202-0/+7
| | | | | * lib/directx/dxguid.c (CLSID_DirectSoundPrivate, DSPROPSETID_DirectSoundDevice): Add defines.
* * fhandler.cc (fhandler_base::open): Remove special DEV_FLOPPY_MAJORCorinna Vinschen2004-04-204-9/+13
| | | | | | | treatment. * fhandler_raw.cc (fhandler_dev_raw::open): Simplify write-only case. * fhandler_tape.cc (fhandler_dev_tape::raw_write): Add accidentally dropped condition.
* * fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES whenCorinna Vinschen2004-04-202-1/+6
| | | | only GENERIC_WRITE access is requested.
* 2004-04-20 Adrian Sandor <aditsu@users.sourceforge.net>Luke Dunstan2004-04-202-0/+190
| | | | * include/msacm.h: New file.
* * include/cygwin/mtio.h (GMT_ASYNC): New define.Corinna Vinschen2004-04-192-1/+7
| | | | (MT_ST_ASYNC_WRITES): Remove "Not supported" comment.
* * errno.cc (errmap): Handle ERROR_IO_PENDING.Corinna Vinschen2004-04-197-23/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * include/_mingw.h: Revert to primary release 3 and increment minorEarnie Boyd2004-04-192-1/+2
| | | | | release to 3. * Makefile.in (VERSION): Ditto.
* * include/_mingw.h: Revert to primary release 3 and increment minorEarnie Boyd2004-04-192-3/+8
| | | | release to 3.
* * fhandler_tape.cc (mtinfo_drive::_set_pos): Take additional dont_waitCorinna Vinschen2004-04-193-9/+17
| | | | | | | 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.
* Clean up ChangeLog punctuation and typeo.Danny Smith2004-04-181-22/+22
| | | | Thanks to Filip Navara <xnavara@volny.cz>.
* 2004-01-09 Stuart Cunningham <stuart_hc@users.sourceforge.net>Luke Dunstan2004-04-183-0/+25
| | | | | | | | * include/objbase.h (STGFMT): Declare enum. (STGOPTIONS): Declare structure. (StgCreateStorageEx, StgOpenStorageEx): Declare. (STGOPTIONS_VERSION): Define. * lib/ole32.def (StgCreateStorageEx, StgOpenStorageEx): Add stubs.