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
Rainer Orth
b9618d1eee
* configure.in (mips*-*-irix5*): Enable ld.
...
* configure: Regenerate.
2004-04-19 15:38:50 +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
Luke Dunstan
a05a34ef1e
2004-01-09 Stuart Cunningham <stuart_hc@users.sourceforge.net>
...
* include/objbase.h (STGFMT): Declare enum.
(STGOPTIONS): Declare structure.
(StgCreateStorageEx, StgOpenStorageEx): Declare.
(STGOPTIONS_VERSION): Define.
* lib/ole32.def (StgCreateStorageEx, StgOpenStorageEx): Add stubs.
2004-04-18 07:29:39 +00:00
Luke Dunstan
08ed58a023
Merge numerous changes from ReactOS. Submitted by Filip Navara.
2004-04-18 07:07:57 +00:00
Luke Dunstan
4d60e6d231
2004-04-18 Allan Bazinet <bazineta@users.sourceforge.net>
...
* include/winuser.h (MONITORINFOEX[AW]): Change to be derived from
MONITORINFO when compiling as C++.
2004-04-18 04:32:13 +00:00
Christopher Faylor
ebd2f65c4e
fix comments
2004-04-17 17:53:29 +00:00
Luke Dunstan
de6871ee10
2004-04-17 Luke Dunstan <infidel@users.sourceforge.net>
...
* README.w32api: List separate copyright conditions for some headers.
* include/(winsock2.h, wsipx.h): Minor change to copyright header.
2004-04-17 13:44:05 +00:00
Corinna Vinschen
e859706578
* autoload.cc (NtCreateFile): Add.
...
* dir.cc (mkdir): Change set_file_attribute call to indicate that
NT security isn't used.
* fhandler.cc (fhandler_base::open_9x): New method, created from
fhandler_base::open.
(fhandler_base::open): Rearrange to use NtCreateFile instead of
CreateFile.
* fhandler.h (enum query_state): Redefine query_null_access to
query_stat_control. query_null_access isn't allowed in NtCreateFile.
(fhandler_base::open_9x): Declare.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Use
query_stat_control first, query_read_control if that fails.
(fhandler_disk_file::fchmod): Call enable_restore_privilege before
trying to open for query_write_control. Don't fall back to
opening for query_read_control.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Only request restore privilege and query
access necessary for given cmd.
* fhandler_raw.cc (fhandler_dev_raw::open): Call fhandler_base::open
instead of opening device here.
* ntdll.h (NtCreateFile): Declare.
* path.cc (symlink_worker): Change set_file_attribute call to indicate
that NT security isn't used.
* sec_acl.cc (getacl): Fix bracketing.
* sec_helper.cc (enable_restore_privilege): New function.
* security.cc (str2buf2uni_cat): New function.
(write_sd): Don't request restore permission here.
* security.h (set_process_privileges): Drop stale declaration.
(str2buf2uni): Declare.
(str2buf2uni_cat): Declare.
(enable_restore_privilege): Declare.
* syscalls.cc (fchown32): Return immediate success on 9x.
2004-04-16 21:22:13 +00:00
Jim Wilson
e2c248c18b
Fix LDFLAGS related configure errors.
...
* Makefile.tpl (configure-[+module+], configure-gcc,
configure-stage1-gcc, configure-stage2-gcc, configure-stage3-gcc):
Set and export LDFLAGS.
* Makefile.in: Regenerate.
2004-04-16 07:17:44 +00:00
Christopher Faylor
4be0ce3219
.
2004-04-16 01:48:37 +00:00
Christopher Faylor
45f41f1720
Check in missed file.
2004-04-15 17:38:23 +00:00
Christopher Faylor
ee0afa428a
* autoload.cc (dll_chain1): Rename to dll_chain. Remove old dll_chain code.
...
(wsock_init): Avoid unneeded winsock_active tests.
* winsup.h (winsock_active): Delete.
2004-04-15 17:38:02 +00:00
Corinna Vinschen
703b16e3ab
* fhandler_disk_file.cc (fhandler_disk_file::fchmo): Try opening
...
in query_read mode if query_write fails.
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto.
2004-04-15 15:56:52 +00:00
Luke Dunstan
7af28dc49a
2004-04-15 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/wingdi.h (RGB): Correct macro.
2004-04-15 11:51:00 +00:00
Corinna Vinschen
ca1b76b8c2
Fix case.
2004-04-14 21:16:31 +00:00
Corinna Vinschen
e84c7766c3
* ntdll.h: Fix copyright date.
...
* sec_acl.cc (acl_worker): delete allocated fhandler.
* syscalls.cc (chown_worker): Ditto.
(chmod): Ditto.
(stat_worker): Use get_namehash instead of hash_path_name.
2004-04-14 21:11:45 +00:00
Corinna Vinschen
a653f600f5
* sec_acl.cc (getacl): Avoid compiler warning.
...
* security.cc (write_sd): Ditto. Fix error handling.
2004-04-14 20:16:29 +00:00
Corinna Vinschen
0c5f00f98a
* syscalls.cc (fstat64): Use get_namehash instead of hash_path_name.
2004-04-14 16:51:28 +00:00
Corinna Vinschen
e3d1d51579
* fhandler.cc (fhandler_base::open): Simplify access evaluation
...
expression.
(fhandler_base::facl): New method.
* fhandler.h: Declare facl method in fhandler_base,
fhandler_disk_file and fhandler_virtual.
* fhandler_disk_file.cc (fhandler_disk_file::facl): New method.
* fhandler_virtual.cc (fhandler_virtual::facl): New method.
* sec_acl.cc: Remove forward declaration for aclsort32 and acl32.
(setacl): Remove static. Add and use handle parameter.
(getacl): Ditto.
(acl_worker): Reorganize to call fhandler's facl method eventually.
(facl32): Ditto.
* security.cc (get_nt_object_security): Remove static.
* security.h: Add extern declarations for get_nt_object_security,
aclsort32, acl32, getacl and setacl.
Apply missing syscalls.cc patch and ChangeLog of previous check in.
* syscalls.cc (chown_worker): Reorganize to call fhandler's fchown
method eventually.
(fchown): Ditto.
2004-04-14 16:36:26 +00:00
Corinna Vinschen
ddf9c4a744
* fhandler.cc (fhandler_base::open): Accomodate query_write_control
...
query_state.
(fhandler_base::fchown): New method.
* fhandler.h: Declare fchown method in fhandler_base,
fhandler_disk_file and fhandler_virtual.
(enum query_state): Add query_write_control.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Set query_state
to query_write_control. Only remove FILE_ATTRIBUTE_READONLY if not
setting security descriptor.
(fhandler_disk_file::fchown): New method.
* fhandler_virtual.cc (fhandler_virtual::fchown): New method.
* sec_acl.cc (setacl): Call write_sd with additional handle attribute.
* security.cc (write_sd): Take handle argument. Only request owner
if getting SE_RESTORE_NAME privilege failed. Only open file if
NtSetSecurityObject failed or handle is NULL.
(set_nt_attribute): Call write_sd with additional handle attribute.
* security.h (write_sd): Declare with additional handle argument.
2004-04-14 13:40:07 +00:00
Danny Smith
ba1a97a18b
2004-04-14 Robert Wruck <rwruck@users.sourceforge.net>
...
* include/ddk/winddk.h (RtlEqualLuid): Correct macro.
2004-04-14 10:53:17 +00:00
Corinna Vinschen
f4ae6dc62c
* autoload.cc (NtSetSecurityObject): Add.
...
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only request
READ_CONTROL rights when opening the file.
* ntdll.h (NtSetSecurityObject): Add declaration.
* security.cc (write_sd): Call NtSetSecurityObject instead of
BackupWrite.
(get_nt_object_security): Don't free security descriptor here.
* syscalls.cc (ttyname): Use buffer of length TTY_NAME_MAX + 1.
* sysconf.cc (sysconf): Handle _SC_TTY_NAME_MAX request.
* include/limits.h: Define TTY_NAME_MAX and _POSIX_TTY_NAME_MAX.
2004-04-14 10:20:26 +00:00
Corinna Vinschen
93d66ddc20
* cygwin.din: Export rand_r and ttyname_r.
...
* syscalls.cc (ttyname_r): New function.
(ttyname): Move functionality to ttyname_r. Call it from here.
* include/cygwin/version.h: Bump API minor number.
2004-04-14 09:12:04 +00:00
Pierre Humblet
b923181eca
2004-04-14 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.h (path_conv::set_symlink): Add argument.
(path_conv::get_symlink_length): New method.
(path_conv::symlink_length): New member.
* path.cc (path_conv::check): Pass symlen to set_symlink.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): For symlinks
set st_size from get_symlink_length.
2004-04-14 03:08:00 +00:00
Ben Elliston
3614afe6a0
Typo fix: s/otheriwse/otherwise/
2004-04-14 01:26:14 +00:00
Corinna Vinschen
29b6b8ca64
* security.cc (set_nt_attribute): Only call get_nt_object_security
...
if handle is NULL.
2004-04-13 20:45:14 +00:00
Corinna Vinschen
854c870051
* dir.cc (mkdir): Call set_file_attribute with additional handle
...
argument.
* fhandler.cc (fhandler_base::fchmod): New method.
* fhandler.h: Declare fchmod method in fhandler_base,
fhandler_disk_file and fhandler_virtual.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): New method.
(fhandler_base::open_fs): Call set_file_attribute with additional
handle argument.
* fhandler_virtual.cc (fhandler_virtual::fchmod): New method.
* path.cc (symlink_worker): Call set_file_attribute with additional
handle argument.
* security.cc (get_nt_object_security): New function.
(get_nt_object_attribute): Call get_nt_object_security.
(set_nt_attribute): Add handle argument. Call get_nt_object_security
first, read_sd only if that fails.
(set_file_attribute): Add handle argument.
* security.h (set_file_attribute): Declare with additional handle
argument.
* syscalls.cc (stat_suffixes): Move to beginning of file.
(chown_worker): Call set_file_attribute with additional handle argument.
(chmod): Reorganize to call fhandler's fchmod method eventually.
(fchmod): Ditto.
2004-04-13 20:36:58 +00:00
DJ Delorie
8107364bdb
merge from gcc
2004-04-13 15:23:09 +00:00
Corinna Vinschen
71ffba498c
* autoload.cc (NtQuerySecurityObject): Add.
...
* ntdll.h (STATUS_BUFFER_TOO_SMALL): Add definition.
(NtQuerySecurityObject): Add declaration.
* security.cc (get_nt_object_attribute): Always use
NtQuerySecurityObject to retrieve security descriptor.
2004-04-13 12:14:59 +00:00
Corinna Vinschen
7e044afdaf
* winsup.api/devdsp.c (forkrectest): Move synchronization with child
...
so that test passes also under high CPU load.
(forkplaytest): Ditto.
(abortplaytest): New function to test ioctl code SNDCTL_DSP_RESET.
2004-04-13 09:40:03 +00:00
Corinna Vinschen
37194b25f6
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Add optional
...
boolean argument so that playing can be stopped without playing
pending buffers.
(fhandler_dev_dsp::ioctl): Stop playback immediately for
SNDCTL_DSP_RESET. Do not reset audio parameters in this case.
Add support for ioctl SNDCTL_DSP_GETISPACE.
(fhandler_dev_dsp::Audio_out::emptyblocks): Now returns the number of
completely empty blocks.
(fhandler_dev_dsp::Audio_out::buf_info): p->fragments is now the number
of completely empty blocks. This conforms with the OSS specification.
(fhandler_dev_dsp::Audio_out::parsewav): Ignore wave headers that are
not aligned on four byte boundary.
(fhandler_dev_dsp::Audio_in::buf_info): New, needed for
SNDCTL_DSP_GETISPACE.
2004-04-13 09:38:32 +00:00
Corinna Vinschen
825b388289
* winsup.h (IMPLEMENT_STATUS_FLAG): New macro to define status flag
...
accessor methods unambiguously.
* fhandler.h: Use IMPLEMENT_STATUS_FLAG throughout where possible.
* fhandler_termios.cc (fhandler_termios::tcinit): Call corrected
accessor for initialized status flag.
* mtinfo.h (class mtinfo_drive): Use IMPLEMENT_STATUS_FLAG throughout.
* path.cc (fs_info::update): Remove duplicate call to flags().
* path.h (struct fs_info): Use IMPLEMENT_STATUS_FLAG where possible.
(path_conv::is_auto_device): Fix spacing.
* tty.h (class tty_min): Use IMPLEMENT_STATUS_FLAG throughout.
2004-04-13 09:04:22 +00:00
Ben Elliston
f006625d04
Update libtool entry.
2004-04-13 03:49:20 +00:00
Christopher Faylor
d84a4e2e71
* thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel
...
behavior.
2004-04-13 03:25:50 +00:00
Christopher Faylor
3e78b5d75c
* thread.cc (pthread::create): Use thread mutex to control synchronization
...
rather than creating a suspended thread. Wait for "cancellation event" to
indicate that started thread has been properly initialized.
(pthread::thread_init_wrapper): Use set_tls_self_pointer() to set tid and
cygtls. Signal with cancel_event when done.
2004-04-13 02:59:19 +00:00
Pierre Humblet
b96dbd203d
2004-04-12 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (path_conv::check): Fix "tail filling" logic.
2004-04-12 23:59:23 +00:00
Christopher Faylor
1ed8d18733
* cygheap.h: Replace inexplicably removed closing brace.
2004-04-11 17:36:05 +00:00
Christopher Faylor
0cb38eb551
* cygheap.h (CYGHEAP_SLOP): Reduce drastically to avoid collisions.
2004-04-11 04:07:18 +00:00
Christopher Faylor
3301015bdb
* dtable.cc (dtable::extend): Change order of memcpy and cfree.
2004-04-11 04:00:01 +00:00
Corinna Vinschen
66d9ac398a
* syscalls.cc (sync): Define void according to SUSv3.
2004-04-10 20:40:41 +00:00
Corinna Vinschen
54c7940fe5
* libc/include/sys/unistd.h (sync): Define void on Cygwin according
...
to SUSv3.
2004-04-10 20:39:47 +00:00
Corinna Vinschen
bb0906507b
* sec_acl.cc (setacl): Use correct offset when trying to combine
...
standard and default entry of same type.
2004-04-10 20:18:11 +00:00
Corinna Vinschen
7224437c62
* fhandler.cc (rootdir): Add and use second argument.
...
* winsup.h (rootdir): Add second argument in declaration.
* path.cc (fs_info::update): Modify call to rootdir.
* syscalls.cc (check_posix_perm): Ditto.
(statfs): Ditto. Move syscall_printf near top.
2004-04-10 19:24:55 +00:00