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
path: root/winsup
AgeCommit message (Collapse)Author
2005-02-25 * include/wctype.h (wctrans) Remove _CRTIMP.Danny Smith
(towctrans): Likewise. (wctype): Likewise,
2005-02-25 * include/wctype.h: Add comment on wctrans, towctrans, wctype.Danny Smith
2005-02-25 * mingwex/wctype.c: New file.Danny Smith
* mingwex/wctrans.c: New file. * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c. * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2005-02-24*README: New file.Joshua Daniel Franklin
2005-02-24* cygpath.cc (usage): Clarify help output to indicate acceptanceJoshua Daniel Franklin
of multiple file names as arguments.
2005-02-24 * localtime.cc: Implement setting __tzrule's offset member usingCorinna Vinschen
newlib's __gettzinfo () interface. (__tzrule): Remove. (timezone): Define as long according to POSIX.
2005-02-24 * devices.cc: Regenerate.Corinna Vinschen
2005-02-23 * devices.in (parsedisk): Fix typo.Corinna Vinschen
2005-02-23 * cygwin.din (getpeereid): Export.Corinna Vinschen
* fhandler.h (class fhandler_socket): Add pipe and id members to exchange eid credentials for AF_LOCAL sockets. (eid_pipe_name): Declare new method. (getpeereid): Ditto. * fhandler_socket.cc (fhandler_socket::eid_pipe_name): New method. (fhandler_socket::fhandler_socket): Initialize sec_pipe. (fhandler_socket::connect): Exchange eid credentials with accepting socket process. (fhandler_socket::listen): Prepare eid credential transaction. (fhandler_socket::accept): Exchange eid credentials with connecting socket process. (fhandler_socket::close): Close eid credentials pipe if open. (fhandler_socket::getpeereid): New method. * net.cc (cygwin_getsockopt): Add SO_PEERCRED handling. (getpeereid): New function. * include/asm/socket.h (SO_PEERCRED): Define. * include/cygwin/socket.h (struct ucred): Define new type. * include/cygwin/version.h: Bump API minor version.
2005-02-23 * include/sys/statvfs.h (ST_RDONLY): Define.Corinna Vinschen
(ST_NOSUID): Define.
2005-02-23 * cygwin.din (fstatvfs): Export.Corinna Vinschen
(statvfs): Export. * syscalls.cc: Include sys/statvfs.h. (statvfs): New function. Move statfs functionality here. (fstatvfs): New function. (statfs): Just call statvfs and copy structure. Check validity of incoming struct statfs pointer. * include/cygwin/types.h (fsblkcnt_t): Define. (fsfilcnt_t): Define. * include/cygwin/version.h: Bump API minor version. * include/sys/statvfs.h: New file.
2005-02-23 * devices.h: Switch FH_ZERO and FH_PORT as on Linux. Add FH_FULL.Corinna Vinschen
* devices.in: Add /dev/full. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Add FH_FULL. * fhandler.cc (fhandler_base::fstat): Set FH_FULL permission bits correctly. * fhandler_zero.cc (fhandler_dev_zero::write): Set errno to ENOSPC and return -1 if device is FH_FULL.
2005-02-23* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closingChristopher Faylor
cygdrive_root.
2005-02-22 * cygwin.din (basename): Export.Corinna Vinschen
(dirname): Export. * path.cc (basename): New function. (dirname): New function. * include/libgen.h: New file. * include/cygwin/version.h: Bump API minor version.
2005-02-22 * select.cc (peek_pipe): Disable new pipe code until there'sCorinna Vinschen
a working substitute.
2005-02-22 * include/cygwin/version.h: Fix comment.Corinna Vinschen
2005-02-22 * cygwin.din (fdatasync): Export.Corinna Vinschen
* fhandler.cc (fhandler_base::fsync): Return with EINVAL if no handle is available. * syscalls.cc (fdatasync): Create export alias to fsync. * include/cygwin/version.h: Bump API minor version.
2005-02-20 * fhandler.h (fhandler_base::fstat_helper): Declare with additionalCorinna Vinschen
dwVolumeSerialNumber argument. Drop default values for last three arguments. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Pass dwVolumeSerialNumber from GetFileInformationByHandle to fstat_helper. (fhandler_base::fstat_by_name): Pass pc.volser () to fstat_helper. Accomodate dropping default values for last three arguments of fstat_helper. (fhandler_base::fstat_helper): Add dwVolumeSerialNumber argument. Use for st_dev member unless 0 in which case pc.volser () is used.
2005-02-20 * autoload.cc (FindFirstVolumeA): Add.Corinna Vinschen
(FindNextVolumeA): Add. (FindVolumeClose): Add. (GetVolumePathNamesForVolumeNameA): Add. * fhandler.h (class fhandler_base): Declare new method fsync. * fhandler.cc (fhandler_base::fsync): New method. * syscalls.cc (fsync): Move functionality into fhandler method fsync. Just call this method from here. (sync_worker): New static function. (sync): Fill with life for NT systems. * wincap.h (wincaps::has_guid_volumes): New element. * wincap.cc: Implement above element throughout.
2005-02-20 * fhandler.h (enum query_state): Add query_write_attributes state.Corinna Vinschen
(fhandler_base::status.query_open): Add a bit to make room for more states. (class fhandler_base): Declare new method utimes. (class fhandler_socket): Ditto. (class fhandler_disk_file): Ditto. (fhandler_disk_file::fhandler_disk_file): Add constructor with path_conv parameter. * fhandler.cc (fhandler_base::open): Add query_write_attributes handling. (fhandler_base::utimes): New method. * fhandler_disk_file.cc (fhandler_disk_file::link): Simplify. Open file with query_write_attributes instead of query_write_control. (fhandler_disk_file::utimes): New method. (fhandler_disk_file::fhandler_disk_file): Add constructor with path_conv parameter setting pc member immediately. * fhandler_socket.cc (fhandler_socket::fchmod): Use new fhandler_disk_file constructor. (fhandler_socket::fchown): Ditto. (fhandler_socket::facl): Ditto. (fhandler_socket::link): Ditto. (fhandler_socket::utimes): New method. * times.cc: Include dtable.h. (timeval_to_filetime): Make non-static. (utimes): Move functionality into fhandler method utimes. Just call this method from here. * winsup.h: Simplify declarations of time helper functions. (timeval_to_filetime): Add extern declaration.
2005-02-20copyrightChristopher Faylor
2005-02-20 * fhandler.h (class fhandler_base): Declare new method link.Corinna Vinschen
(class fhandler_socket): Ditto. (class fhandler_disk_file): Ditto. * fhandler.cc (fhandler_base::open): Add FILE_WRITE_ATTRIBUTES to query_write_control access flags. (fhandler_base::link): New method. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't try to open with O_WRONLY since query_write_control includes FILE_WRITE_ATTRIBUTES. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto. (fhandler_disk_file::link): New method. Touch st_ctime on successful link. * fhandler_socket.cc (fhandler_socket::link): New method. * syscalls.cc (link): Move functionality into fhandler method link. Just call this method from here.
2005-02-19 * fhandler.h (class fhandler_socket): Declare new methods fchown,Corinna Vinschen
fchmod and facl. * fhandler_socket.cc (fhandler_socket::fstat): Handle AF_LOCAL sockets. (fhandler_socket::fchmod): New method. (fhandler_socket::fchown): New method. (fhandler_socket::facl): New method.
2005-02-19 * localtime.cc: Temporary implementation of setting __tzrule's offsetCorinna Vinschen
member to be used by strftime. (__tzrule): New global variable. (tzparse): Set __tzrule's offset member appropriately.
2005-02-17* path.cc (path_conv::check): Set fs flag when a unix-domain socket isChristopher Faylor
detected.
2005-02-17 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Set st_ctime ifCorinna Vinschen
has_changed flag is set. (fhandler_disk_file::touch_ctime): Reset has_changed flag on success.
2005-02-17 * times.cc (utimes): Open files with FILE_WRITE_ATTRIBUTES first,Corinna Vinschen
if that fails, try opeing with GENERIC_WRITE. Fix comments.
2005-02-16* path.h (path_conv::issocket): Return true if device == FH_UNIX rather thanChristopher Faylor
expecting path_conv to set a flag.
2005-02-13white spaceChristopher Faylor
2005-02-12fix typoChristopher Faylor
2005-02-11 * fhandler.cc (fhandler_base::raw_write): Mark as changed onCorinna Vinschen
successful write. * fhandler.h (fhandler_base::status_flags): Add 'has_changed' flag. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call fhandler_disk_file's own open and close instead of open_fs and close_fs. Mark as changed on success. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto. (fhandler_disk_file::ftruncate): Ditto. (fhandler_base::open_fs): Mark as changed when O_TRUNC flag on existing file is set. (fhandler_disk_file::close): Set st_ctime if has_changed flag is set.
2005-02-11* cygthread.cc (cygthread::release): Reset ev here if it exists.Christopher Faylor
(cygthread::terminate_thread): Eliminat racy code which reset ev and thread_sync. Remove a few nonsensical inuse checks. Exit at the bottom. (cygthread::detach): Rewrite to again try to ensure that we don't say we're signalled when we are not signalled. * fhandler.cc (fhandler_base::raw_read): Revert to signalling read success quickly. * pipe.cc (fhandler_pipe::close): Use base method to close handle. * sigproc.h (WAIT_SIG_PRIORITY): Just trundle along at normal priority to allow the pipe thread to do its thing if possible. * pinfo.h (pinfo::zap_cwd): Declare new function. (pinfo::zap_cwd): Move 'cd out of the way code' here. (pinfo::exit): Use it here. * spawn.cc (spawn_guts): And here.
2005-02-11 * times.cc (utimes): Open files with GENERIC_WRITE on file systemsCorinna Vinschen
not supporting ACLs.
2005-02-11 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.Danny Smith
2005-02-11 * include/assert.h; Remove header guard. undef assert macro.Danny Smith
(_assert): Use __MINGW_ATTRIB_NORETURN define.
2005-02-11Add Changelog entry from last commit.Danny Smith
2005-02-112005-02-11 Gregory W. Chicares <chicares at cox dot net>Danny Smith
Danny Smith <dannysmith@users at sourceforge dot net> * include/math.h (expm1, expm1f, expmll): Add prototypes. * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c, expm1f.c, expm1l.c. (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o. * mingwex/math/expm1.c: New file. * mingwex/math/expm1f.c: New file. * mingwex/math/expm1l.c: New file.
2005-02-10add missing ChangeLog entryChristopher Faylor
2005-02-10* winsup.api/known_bugs.tcl: Remove dup05, fcntl07B, lseek04, select03,Christopher Faylor
unlink06.
2005-02-102005-02-10 Jiri Malak <Jiri.Malak@iol.cz>Danny Smith
Danny Smith <dannysmith@users.sourceforge.net> * lib/directx/dinput_private.h (ATTRIBUTE_TEXT_SECTION): New define for Open Watcom portability. * lib/directx/(dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c, dinput_mouse2.c): Use new macro in definition of local c_rgodfDI* objects. Replace .rdata section attribute with 'const' keyword in definition of global c_dfDI* objects.
2005-02-09 * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Fix checkingCorinna Vinschen
lseek return code.
2005-02-08 * times.cc (timeval_to_filetime): Define first parameter const.Corinna Vinschen
(utimes): Define second parameter to const according to SUSv3. (utime): Ditto. * include/sys/utime.h (utime) : Change declaration accordingly.
2005-02-08 * cygthread.cc (cygthread::detach): Just test thread handle afterCorinna Vinschen
signal arrived, don't wait infinitely for it.
2005-02-08* pipe.cc (fhandler_pipe::read): Remove hold over from old read_stateChristopher Faylor
implementation.
2005-02-072005-02-07 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith
* include/winioctl.h (IOCTL_VOLUME_BASE, IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, IOCTL_VOLUME_IS_CLUSTERED): Copy defines from include/ddk/ntdddvol.h. Bug reported to Debian by Anand Kumria <wildfire at progsoc dot org>
2005-02-072005-02-07 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith
* include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES. * include/wchar.h (struct stat): Likwwise. Bug reported to Debian by Anand Kumria <wildfire@progsoc.org> * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2005-02-07* net.cc (cygwin_gethostbyname): Be more picky about what's a numeric addressChristopher Faylor
string, and use tls in that case too.
2005-02-07* exceptions.cc: Make windows_system_directory non-static.Christopher Faylor
* pinfo.cc (pinfo::exit): Change innocuous cd'ed location to one that is more likely to exist.
2005-02-06 * path.cc (path_conv::check): Leave symlink expansion loop in caseCorinna Vinschen
a not-ENOENT error happens. * cygheap.h (cygheap_fdmanip::fhandler_pipe *): New cast operator. * pinfo.cc (_pinfo::commune_recv): Add PICOM_PIPE_FHANDLER handling. (_pinfo::commune_send): Ditto. (_pinfo::pipe_fhandler): New method. * pinfo.h (enum picom): Add PICOM_PIPE_FHANDLER. (_pinfo::pipe_fhandler): Declare. * pipe.cc (fhandler_pipe::open): Rewrite. Allow to open foreign pipe handles.
2005-02-06* cygthread.h (cygthread::terminate_thread): Reflect return value.Christopher Faylor
* cygthread.cc (cygthread::detach): Be more careful about ensuring that sigwait is properly waited for to avoid later missynchronization. (cygthread::terminate_thread): Return true if thread was actually terminated and all handles were closed. * fhandler_base.cc (fhandler_base::raw_read): Use signal_read_state rather than raw calls to win32 api. (fhandler_base::read): Ditto. * fhandler.h (fhandler_pipe::fixup_after_exec): Use method to create read_state signalling. (fhandler_pipe::create): Ditto. * Makefile.in: Make some more files -fomit-frame-pointer.