Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-04-10 * Use new unified status_flag accessor methods from classes fhandler_*,Corinna Vinschen
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.
2004-04-10* thread.h (pthread::init_mainthread): Remove parameter forked.Christopher Faylor
(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.
2004-04-10* path.cc (path_conv::check): Optimize symlink replacements.Christopher Faylor
* 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.
2004-04-10 * fhandler.h (class fhandler_dev_raw): Move status bits into protectedCorinna Vinschen
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.
2004-04-09 * path.cc (fsinfo): Global storage for file system information.Corinna Vinschen
(fs_info::update): Store file system information also in fsinfo and short circuit GetVolumeInformation by using alredy stored file system information.
2004-04-09 * fhandler.h (fhandler_base::status): Declare private.Corinna Vinschen
(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.
2004-04-09 * fhandler.cc (fhandler_base::write): Use bool parameter in calls toCorinna Vinschen
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.
2004-04-09 * security.cc (get_file_attribute): Fix conditional.Corinna Vinschen
2004-04-092004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode
PR bootstrap/14871 * Makefile.tpl: If we don't have built-in-tree target tools, use the ones found by configure rather than hacking around with program_transform_name. * configure.in: Give Makefile.tpl the information necessary to do that. * Makefile.in: Regenerate. * configure: Regenerate. 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org> PR bootstrap/14760 * configure.in: When computing baseargs, strip *all* copies of offending options. Also, don't match/substitute the trailing space, so that this actually works when two similar options are separated by only one space. * configure: Regenerate. 2004-04-06 David Edelsohn <edelsohn@gnu.org> * configure.in (powerpc-*-aix*): Remove target-libada from noconfigdirs. (rs6000-*-aix*): Same. * configure: Regenerate.
2004-04-092004-04-08 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston
* libc/stdio/fclose.c (_fclose_r): New function. * libc/stdio/freopen.c (_freopen_r): Call _fclose_r. * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent. * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r. * libc/include/stdio.h (_fclose_r): New prototype. * libc/stdio/fopen.c: Fix typo in comment. 2004-04-08 Jeff Johnston <jjohnstn@redhat.com> * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk to handle _r reentrant functions.
2004-04-082004-04-08 Eric Christopher <echristo@redhat.com>Jeff Johnston
* libc/include/machine/setjmp.h: Fix endif locations.
2004-04-08* child_info.h: Update CHILD_INFO_MAGIC after 2004-04-03 change.Christopher Faylor
2004-04-08fix email addressChristopher Faylor
2004-04-08 * path.cc (hash_path_name): Replace hash algorithm with SDBM.Corinna Vinschen
2004-04-08 * fhandler.cc (fhandler_base::open): Set query access mode accordingCorinna Vinschen
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.
2004-04-08* path.cc (path_prefix_p): Optimize test order.Christopher Faylor
2004-04-06 * Makefile.in (EXTRALIBS): Add libtextreadmode.a.Corinna Vinschen
(INSTOBJS): Add textreadmode.o. * textreadmode.c: New file.
2004-04-06 * fhandler_disk_file.cc (fhandler_base::fstat_helper): RequestCorinna Vinschen
compressed size only if the matching attributes are set. Use NtQueryInformationFile instead of GetCompressedFileSize. (fhandler_base::fstat_by_handle): Remove NT 3.5 cruft since local.dwVolumeSerialNumber isn't used subsequently. * ntdll.h: Add typedefs for FILE_COMPRESSION_INFORMATION and FILE_INFORMATION_CLASS.
2004-04-06 * fhandler_raw.cc (fhandler_dev_raw::open): Actually use "options".Corinna Vinschen
2004-04-052004-04-06 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan
* include/ocidl.h (QACONTAINERFLAGS): Correct typedef.
2004-04-05 * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Add implementationCorinna Vinschen
for ioctl codes SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
2004-04-05 * winsup.api/devdsp.c (ioctltest): Add 2 tests for ioctl codesCorinna Vinschen
SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
2004-04-04* child_info.h (child_info::cygheap_reserve_sz): Rename from cygheap_alloc_sz.Christopher Faylor
* cygheap.cc: Rename alloc_sz to reserve_sz throughout.
2004-04-03 * fhandler.h (class fhandler_socket): Remove has_been_closed member.Corinna Vinschen
* fhandler_socket.cc (fhandler_socket::recvfrom): Revert to overlapped I/O. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Ditto. (wsock_event::wait): Ditto. Evaluate overlapped result also after calling CancelIo (thanks to Patrick Samson <p_samson@yahoo.com>). (wsock_event::release): Remove. * wsock_event.h: Revert to overlapped I/O.
2004-04-032004-04-02 Chris Demetriou <cgd@broadcom.com>Jeff Johnston
* mips/regs.S (C0_COUNT): Fix comment that kept this from being defined. * mips/vr4300.S: Use C0_COUNT as appropriate instead of hardcoding $9. * mips/vr5xxx.S: Likewise.
2004-04-02 * net.cc (wsock_event::release): Use NULL handle in call toCorinna Vinschen
WSAEventSelect to resolve KB 168349.
2004-04-022004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston
* libc/time/strptime.c: Add standard includes to avoid warning messages at compilation time.
2004-04-022004-04-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking of file.
2004-04-01 * fhandler_socket.cc (fhandler_socket::recvfrom): Rearrange loopCorinna Vinschen
so that WSARecvFrom is always called before waiting. (fhandler_socket::recvmsg): Ditto.
2004-04-01 * net.cc (wsock_event::wait): Make wsa_err an int. Don't setCorinna Vinschen
ret to 0 if any error has happened.
2004-04-01 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll toDanny Smith
_fmode if not __MSVCRT__.
2004-04-01 * fhandler_socket.cc (fhandler_socket::sendto): Drop out of loop ifCorinna Vinschen
has_been_closed gets set. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::wait): Don't initialize evts. Don't try to evaluate network events if WSAEnumNetworkEvents fails. (wsock_event::release): Save last WSA error and set it again unless resetting to blocking socket fails. * wsock_event.h (class wsock_event): Remove destructor.
2004-03-31 * fhandler_tape.cc (mtinfo::initialize): Fix fatal error message.Corinna Vinschen
2004-03-31 * fhandler_socket.cc (fhandler_socket::recvfrom): Always initializeCorinna Vinschen
ret to 0 when using in Winsock call. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto.
2004-03-31 * fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition ifCorinna Vinschen
GetTapePosition returned a non-zero partition number. (mtinfo_drive::create_partitions): Reinitialize to partition 0. Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning. (mtinfo_drive::set_partition): Initialize new partition. (mtinfo_drive::status): Readd accidentally dropped setting of mt_resid. * net.cc (wsock_event::prepare): Always print debug output in case of error.
2004-03-31 * fhandler_socket.cc (fhandler_socket::sendmsg): Add SIGPIPE handling.Corinna Vinschen
2004-03-31 * fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res toCorinna Vinschen
SOCKET_ERROR. Use SOCKET_ERROR instead of -1 throughout. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Call WSASetLastError instead of SetLastError. (wsock_event::wait): Use SOCKET_ERROR instead of -1.
2004-03-312003-03-30 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/machine/h8300/Makefile.am: Reformat slightly. * libc/machine/h8300/Makefile.in: Regenerate.
2004-03-312004-03-30 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith
* include/io.h: (_findfirst): Correct prototype. 2004-03-30 Hans Leidekker <hans@it.vu.nl> * include/io.h: (_findnext, _findclose): Correct prototype.
2004-03-31* thread.h (pthread::init_mainthread): Add parameter forked. Set forkedChristopher Faylor
default to false.. * thread.cc (MTinterface::fixup_after_fork): Call pthread::init_mainthread with forked = true. (pthread::init_mainthread): Add parameter forked. Do not change thread self pointer when forked.
2004-03-312003-03-30 Thomas Pfaff <tpfaff@gmx.net>Jeff Johnston
* libc/stdio/findfp.c (__fp_lock_all): Add call to __sfp_lock_acquire. (__fp_unlock_all): Add call to __sfp_lock_release.
2004-03-31merge from gccDJ Delorie
2004-03-302004-03-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin
* ntsec.sgml: Replace chapter numbers with <link>s, replace release-numbers in <title>s with descriptions. 2004-03-30 Ronald Landheer-Cieslak <ronald@landheer.com> * ntsec.sgml: Fix typos, correct chapter numbers.
2004-03-30 * sysv_shm.cc (shmget): Allow to retrieve shared memory segmentsCorinna Vinschen
by shmid when IPC_KEY_IS_SHMID is set.
2004-03-30 * shm.cc (shmat): If shmid is unknown, call a special variationCorinna Vinschen
of shmget to retrieve the shared memory segment from Cygserver instead of failing immediately. * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): New internal flag for shmget when called from shmat.
2004-03-30Add (linker) support for CR16C processorNick Clifton
2004-03-30 * lib/Makefile,in; Add directx to .PHONY target.Danny Smith
* lib/directx/dxerr.c: Remove dependence on mingw runtime. Don't include stdio.h or tchar.h. Replace _T() macro with TEXT() macro, throughout. Replace, _stprintf with wsprintf, throughout.
2004-03-29 * fhandler.h (class fhandler_socket): Add has_been_closed member.Corinna Vinschen
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize has_been_closed to 0. (fhandler_socket::recvfrom): Use new asynchronous I/O driven wsock_event methods. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Reimplement using asynchronous I/O. (wsock_event::wait): Ditto. (wsock_event::release): New method. * wsock_event.h (class wsock_event): Remove ovr member. Accomodate new implementation of prepare and wait methods. Add release method.
2004-03-29* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork atChristopher Faylor
the end of atforkprepare.
2004-03-29 * net.cc (wsock_event::wait): Change scope of local "len" variable.Corinna Vinschen