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.
Earnie Boyd
2004-04-22 16:16:25 +0000
fe97afbbb3Add support for ColdFire MAC instructions and tidy up support for other m68k variants.
Nick Clifton
2004-04-22 10:33:16 +0000
f4a395ef78fix comment
Christopher Faylor
2004-04-20 18:46:15 +0000
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.
Christopher Faylor
2004-04-20 18:45:16 +0000
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.
Corinna Vinschen
2004-04-20 15:51:24 +0000
4cc12c5630* include/wingdi.h: Protect non-unicode case of below.
Christopher Faylor
2004-04-20 15:17:36 +0000
43fb8fbb0a* include/wingdi.h: Protect use of ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV with appropriate version check.
Christopher Faylor
2004-04-20 15:10:26 +0000
5a238b6d94Add support for a .secrel32 x86 reloc to allow DWARF" debug information to used with COFF based x86 ports.
Nick Clifton
2004-04-20 12:17:16 +0000
8d6679f27e2004-04-18 Hans Leidekker <hans@it.vu.nl>
Luke Dunstan
2004-04-20 12:08:47 +0000
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.
Corinna Vinschen
2004-04-19 13:07:55 +0000
6f3375a5bfClean up ChangeLog punctuation and typeo. Thanks to Filip Navara <xnavara@volny.cz>.
Danny Smith
2004-04-18 20:48:29 +0000
a05a34ef1e2004-01-09 Stuart Cunningham <stuart_hc@users.sourceforge.net>
Luke Dunstan
2004-04-18 07:29:39 +0000
08ed58a023Merge numerous changes from ReactOS. Submitted by Filip Navara.
Luke Dunstan
2004-04-18 07:07:57 +0000
4d60e6d2312004-04-18 Allan Bazinet <bazineta@users.sourceforge.net>
Luke Dunstan
2004-04-18 04:32:13 +0000
ebd2f65c4efix comments
Christopher Faylor
2004-04-17 17:53:29 +0000
de6871ee102004-04-17 Luke Dunstan <infidel@users.sourceforge.net>
Luke Dunstan
2004-04-17 13:44:05 +0000
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.
Corinna Vinschen
2004-04-16 21:22:13 +0000
e2c248c18bFix 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.
Jim Wilson
2004-04-16 07:17:44 +0000
4be0ce3219.
Christopher Faylor
2004-04-16 01:48:37 +0000
45f41f1720Check in missed file.
Christopher Faylor
2004-04-15 17:38:23 +0000
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.
Christopher Faylor
2004-04-15 17:38:02 +0000
0c5f00f98a* syscalls.cc (fstat64): Use get_namehash instead of hash_path_name.
Corinna Vinschen
2004-04-14 16:51:28 +0000
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.
Corinna Vinschen
2004-04-14 16:36:26 +0000
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.
Corinna Vinschen
2004-04-14 13:40:07 +0000
ba1a97a18b2004-04-14 Robert Wruck <rwruck@users.sourceforge.net>
Danny Smith
2004-04-14 10:53:17 +0000
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.
Corinna Vinschen
2004-04-14 10:20:26 +0000
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.
Corinna Vinschen
2004-04-14 09:12:04 +0000
b923181eca2004-04-14 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet
2004-04-14 03:08:00 +0000
3614afe6a0Typo fix: s/otheriwse/otherwise/
Ben Elliston
2004-04-14 01:26:14 +0000
29b6b8ca64* security.cc (set_nt_attribute): Only call get_nt_object_security if handle is NULL.
Corinna Vinschen
2004-04-13 20:45:14 +0000
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.
Corinna Vinschen
2004-04-13 20:36:58 +0000
8107364bdbmerge from gcc
DJ Delorie
2004-04-13 15:23:09 +0000
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.
Corinna Vinschen
2004-04-13 09:40:03 +0000
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.
Corinna Vinschen
2004-04-13 09:38:32 +0000
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.
Corinna Vinschen
2004-04-13 09:04:22 +0000
f006625d04Update libtool entry.
Ben Elliston
2004-04-13 03:49:20 +0000
d84a4e2e71* thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel behavior.
Christopher Faylor
2004-04-13 03:25:50 +0000
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.
Christopher Faylor
2004-04-13 02:59:19 +0000
b96dbd203d2004-04-12 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet
2004-04-12 23:59:23 +0000
0cb38eb551* cygheap.h (CYGHEAP_SLOP): Reduce drastically to avoid collisions.
Christopher Faylor
2004-04-11 04:07:18 +0000
3301015bdb* dtable.cc (dtable::extend): Change order of memcpy and cfree.
Christopher Faylor
2004-04-11 04:00:01 +0000
66d9ac398a* syscalls.cc (sync): Define void according to SUSv3.
Corinna Vinschen
2004-04-10 20:40:41 +0000
54c7940fe5* libc/include/sys/unistd.h (sync): Define void on Cygwin according to SUSv3.
Corinna Vinschen
2004-04-10 20:39:47 +0000
bb0906507b* sec_acl.cc (setacl): Use correct offset when trying to combine standard and default entry of same type.
Corinna Vinschen
2004-04-10 20:18:11 +0000
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.
Corinna Vinschen
2004-04-10 19:24:55 +0000
56551a9bfb* Use new unified status_flag accessor methods from classes fhandler_*, tty_min, mtinfo and fs_info thoroughout. * fhandler.h: Redefine all set_close_on_exec methods to take a bool argument. (enum conn_state): Rename from connect_state. (class fhandler_base): Rename some status flags to align with accessor method names. Drop encoded flag entirely. Unify status accessor methods. Const'ify all read accessor methods. (class fhandler_socket): Ditto. (class fhandler_dev_raw): Ditto. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Use fs.fs_is_fat() instead of evaluating FATness of file system here. (fhandler_disk_file::opendir): Drop call to set_encoded(). (fhandler_disk_file::readdir): Use pc.isencoded() directly. * mtinfo.h (class mtinfo_drive): Const'ify all read accessor methods. * path.cc (fsinfo_cnt): Add. (fs_info::update): Accomodate class changes. Evaluate file system name specific flags right here. Add thread safety for reading and writing global fsinfo array. * path.h (enum path_types): Drop values for flags kept in fs already. (struct fs_info): Move status informatin into private struct type status_flags. Add accessor methods. Remove path and file system name string arrays in favor of status bits. (class path_conv): Use new fs_info status information where appropriate. (path_conf::fs_has_ea): Rename from fs_fast_ea. (path_conf::fs_has_acls): New method. (path_conf::root_dir): Remove. (path_conf::volname): Remove. * syscalls (statfs): Evaluate root dir locally. * tty.h (class tty_min): Unify status accessor methods. Const'ify all read accessor methods.
Corinna Vinschen
2004-04-10 13:45:10 +0000
56a188d1f3* thread.h (pthread::init_mainthread): Remove parameter forked. (pthread::set_tls_self_pointer): New static function. * thread.cc (MTinterface::fixup_after_fork): Change call to pthread::init_mainthread. (pthread::init_mainthread): Remove parameter forked. Simplify thread self pointer handling. (pthread::self): Set thread self pointer to null_pthread if thread has not been initialized. (pthread::set_tls_self_pointer): New static function.
Christopher Faylor
2004-04-10 00:53:25 +0000
60210cc795* path.cc (path_conv::check): Optimize symlink replacements. * path.cc (normalize_posix_path): Add "tail" argument and set it. Always have a final slash for directories. Pass 3rd argument to normalize_win32_path. (path_conv::check): Pass tail to normalize_posix_path. Set need_directory and remove final slash after that call. Remove last argument to mount_table->conv_to_win32_path(). Remove noop dostail check. Remove fs.update() from inner loop. Improve tail finding search. (normalize_win32_path): Add and set tail argument. (mount_item::build_win32): Avoid calling strcpy. (mount_info::conv_to_win32_path): Remove third argument and simplify because the source is normalized. Keep /proc path in Posix form. Call win32_device_name() only once. (mount_info::conv_to_posix_path): Add and use 3rd argument to normalize_win32_path to avoid calling strlen. (cwdstuff::set): Add 3rd argument to normalize_posix_path and remove final slash if any. * shared_info.h (mount_info::conv_to_win32_path): Remove last argument in declaration.
Christopher Faylor
2004-04-10 00:50:16 +0000
ff0843433a* fhandler.h (class fhandler_dev_raw): Move status bits into protected bitfield struct type status_flags. Drop unused has_written bit. Add accessor methods. (fhandler_dev_raw::clear): Remove. (fhandler_dev_raw::reset_devbuf): Remove. * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Use accessor method for is_writing. * fhandler_raw.cc: Use status accessor methods throughout. (fhandler_dev_raw::clear): Remove. (fhandler_dev_raw::fhandler_dev_raw): Drop clear call. (fhandler_dev_raw::~fhandler_dev_raw): Ditto. * fhandler_tape.cc: Use mtinfo::status accessor methods throughout. (mtinfo_drive::close): Fix conditional to enable BSD semantics correctly. (mtinfo_drive::get_status): Rename from mtinfo_drive::status. * mtinfo.h (class mtinfo_drive): Move status bits into private bitfield struct type status_flags. Add accessor methods. Rename status method to get_status.
Corinna Vinschen
2004-04-09 20:39:19 +0000
535309a6e3* path.cc (fsinfo): Global storage for file system information. (fs_info::update): Store file system information also in fsinfo and short circuit GetVolumeInformation by using alredy stored file system information.
Corinna Vinschen
2004-04-09 19:33:07 +0000
7aa88267c1* fhandler.h (fhandler_base::status): Declare private. (fhandler_base::open_status): Ditto. (class fhandler_socket): Move status bits into private bitfield struct type status_flags. Change accessor methods appropriately. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Accomodate above status bit changes. * tty.h: Remove status bit enumerator. (TTYISSETF): Remove. (TTYSETF): Remove. (TTYCLEARF): Remove. (TTYCONDSETF): Remove. (tty_min::status): Define as private bitfield struct type status_flags. Add appropriate accessor methods. * fhandler_console.cc: Use tty_min::status accessor methods throughout. * fhandler_termios.cc: Ditto. * winsup.h (__ISSETF): Remove. (__SETF): Remove. (__CLEARF): Remove. (__CONDSETF): Remove.
Corinna Vinschen
2004-04-09 12:09:45 +0000
b79f85c28b* fhandler.cc (fhandler_base::write): Use bool parameter in calls to set_did_lseek. (fhandler_base::fhandler_base): Accomodate new status and open_status constructor. * fhandler.h: Remove status bit enumerator. (FHDEVN): Remove. (FHISSETF): Remove. (FHSETF): Remove. (FHCLEARF): Remove. (FHCONDSETF): Remove. (FHSTATOFF): Remove. (UNCONNECTED, CONNECT_PENDING, CONNECTED): Substitute by enum connect_state. (fhandler_base::status): Define as bitfield struct type status_flags. Remove unused flags entirely. Accomodate all status access methods. (open_status): Define as bitfield struct type status_flags. (fhandler_socket): Move socket related status bits to here. Redefine had_connect_or_listen to be part of these status bits. Accomodate related access methods. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Use pc.issymlink instead of dropped method get_symlink_p. (fhandler_base::open_fs): Remove setting dropped status flags. * fhandler_socket.cc: Use values from enum connect_state throughout. (fhandler_socket::fhandler_socket): Initialize status bits. * fhandler_virtual.cc (fhandler_virtual::open): Remove setting dropped status flags. * net.cc: Use values from enum connect_state throughout. * select.cc: Ditto. * shared_info.h: Protect struct console_state using _FHANDLER_H_ instead of FHDEVN.
Corinna Vinschen
2004-04-09 08:43:29 +0000
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.
Corinna Vinschen
2004-04-08 07:57:28 +0000
284a55c33e* path.cc (path_prefix_p): Optimize test order.
Christopher Faylor
2004-04-08 01:33:00 +0000