]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
19 years agomissing file from previous checkin.
Christopher Faylor [Wed, 16 Mar 2005 21:21:18 +0000 (21:21 +0000)]
missing file from previous checkin.

19 years ago* dir.cc: Rename opendir_* to dirent_* throughout.
Christopher Faylor [Wed, 16 Mar 2005 21:20:56 +0000 (21:20 +0000)]
* dir.cc: Rename opendir_* to dirent_* throughout.
(opendir_states): Move and rename.
* fhandler.h (dirent_states): to here.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Use raw readdir when
skipping through entries since it is keeping track of "." and "..".
(fhandler_cygdrive::seekdir): Use fhandler_disk_file::readdir to do everything.
* fhandler_virtual.cc (fhandler_virtual::opendir): Set flag indicating that we
provide .  and ..
(fhandler_virtual::seekdir): Ditto.
(fhandler_virtual::rewinddir): Ditto.
* fhandler_registry.cc (fhandler_registry::rewinddir): Ditto.

19 years ago* Makefile.tpl (check-[+module+]): Fix shell statement inside if ... fi.
DJ Delorie [Wed, 16 Mar 2005 17:46:21 +0000 (17:46 +0000)]
* Makefile.tpl (check-[+module+]): Fix shell statement inside if ... fi.
* Makefile.in: Regenerate.

19 years agomerge from gcc
DJ Delorie [Wed, 16 Mar 2005 17:44:39 +0000 (17:44 +0000)]
merge from gcc

19 years ago* cygtls.cc (free_local): New macro.
Christopher Faylor [Wed, 16 Mar 2005 17:07:32 +0000 (17:07 +0000)]
* cygtls.cc (free_local): New macro.
(_cygtls::remove): Use free_local to free known-malloced local variables.
* cygtls.h: Mark some variables as "malloced".
* net.cc (enum struct_type): Rename from is_* to t_* for clarity.
(dump_protoent): Delete.
(dup_ent): New macro.
(__dup_ent): Renamed from dup_ent.  Change arguments for convenience.  Replace
first argument with newly alloced value.  Allocate a rounded number of bytes in
an attempt to try to reuse space.  Subsume "dump_protent".
(cygwin_getprotobyname): Simplify using new dup_ent functionality.
(cygwin_getprotobynumber): Ditto.
(cygwin_getservbyname): Ditto.
(cygwin_getservbyport): Ditto.
(cygwin_gethostname): Ditto.
(cygwin_gethostbyname): Ditto.
* tlsoffsets.h: Regenerate.
* syslog.cc (openlog): Use NULL rather than 0, for consistency with the rest of
cygwin.
(pass_handler::initialize): Use unbuffered I/O in pass one.

19 years ago* errno.cc (errmap): Correct typo in previous change.
Christopher Faylor [Wed, 16 Mar 2005 01:00:05 +0000 (01:00 +0000)]
* errno.cc (errmap): Correct typo in previous change.

19 years ago * include/winnt.h (_LUID): Add structure. Correct LUID typedef.
Danny Smith [Wed, 16 Mar 2005 00:46:17 +0000 (00:46 +0000)]
* include/winnt.h (_LUID): Add structure. Correct LUID typedef.
Thanks to:
Paul-Christiaan Spruijtenburg <wakarimasu at users dot sf dot net>

19 years ago* cygtls.cc (_cygtls::remove): Free process_ident, if it exists.
Christopher Faylor [Tue, 15 Mar 2005 21:58:44 +0000 (21:58 +0000)]
* cygtls.cc (_cygtls::remove): Free process_ident, if it exists.
* errno.cc (errmap): ERROR_DISK_CORRUPT -> EIO.

19 years ago2005-03-15 Hans Leidekker <hans@it.vu.nl>
Danny Smith [Tue, 15 Mar 2005 03:10:01 +0000 (03:10 +0000)]
2005-03-15  Hans Leidekker  <hans@it.vu.nl>

* include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.

19 years agoinclude:
Zack Weinberg [Sat, 12 Mar 2005 18:14:05 +0000 (18:14 +0000)]
include:
* opcode/arm.h: Adjust comments for ARM_EXT_V4T and ARM_EXT_V5T.
Add ARM_EXT_V6T2, ARM_ARCH_V6T2, ARM_ARCH_V6KT2, ARM_ARCH_V6ZT2,
and ARM_ARCH_V6ZKT2.
opcodes:
* arm-dis.c (arm_opcodes): Document %E and %V.
Add entries for v6T2 ARM instructions:
bfc bfi mls strht ldrht ldrsht ldrsbt movw movt rbit ubfx sbfx.
(print_insn_arm): Add support for %E and %V.

19 years ago* path.h (pathconv_arg): Define PC_NO_ACCESS_CHECK.
Christopher Faylor [Sat, 12 Mar 2005 02:33:00 +0000 (02:33 +0000)]
* path.h (pathconv_arg): Define PC_NO_ACCESS_CHECK.
(path_types): Define PATH_NO_ACCESS_CHECK == PC_NO_ACCESS_CHECK.
* path.cc (symlink_info::check_sysfile): Move to symlink_info class and
eliminate arguments that are part of class.  Use set_error.
(symlink_info::check_shortcut): Ditto.
(symlink_info::set_error): New function.
(path_conv::check): Pass PC_NO_ACCESS_CHECK to symlink_info::check.
(symlink_info::check): Preserve PC_NO_ACCESS_CHECK in pflags.  Use set_error.

19 years ago * path.cc (is_floppy): New function.
Corinna Vinschen [Thu, 10 Mar 2005 17:02:52 +0000 (17:02 +0000)]
* path.cc (is_floppy): New function.
(setmntent): Drop floppy drives on A: and B: from logical drive DWORD.
* syscalls.cc (sync): Don't sync floppies on A: and B:.

19 years ago* autoload.cc (LoadDLLprime): Use nocopy segment or forked processes will not
Christopher Faylor [Thu, 10 Mar 2005 16:59:55 +0000 (16:59 +0000)]
* autoload.cc (LoadDLLprime): Use nocopy segment or forked processes will not
initialize properly.
* autoload.cc (LoadDLLprime): Scrap use of .linkonce and just use an

19 years ago* autoload.cc (LoadDllprime): Scrap use of .linkonce and just use an ifdef
Christopher Faylor [Thu, 10 Mar 2005 14:41:50 +0000 (14:41 +0000)]
* autoload.cc (LoadDllprime): Scrap use of .linkonce and just use an ifdef
guard to load .foo_init into data segment.
* dcrt0.cc (initial_env): Allow colon or space as CYGWIN_DEBUG separator for
consistency.

19 years ago* pinfo.h (pinfo::pinfo): Clear more elements in the constructor.
Christopher Faylor [Thu, 10 Mar 2005 01:50:09 +0000 (01:50 +0000)]
* pinfo.h (pinfo::pinfo): Clear more elements in the constructor.

19 years agomerge from gcc
DJ Delorie [Thu, 10 Mar 2005 01:05:51 +0000 (01:05 +0000)]
merge from gcc

19 years ago* net.cc (dup_ent): Revert older stupid test for null. Don't copy name if it
Christopher Faylor [Wed, 9 Mar 2005 23:46:51 +0000 (23:46 +0000)]
* net.cc (dup_ent): Revert older stupid test for null.  Don't copy name if it
is NULL.

19 years ago * fhandler_socket.cc (fhandler_socket::eid_pipe_name): Fix format
Corinna Vinschen [Wed, 9 Mar 2005 23:00:20 +0000 (23:00 +0000)]
* fhandler_socket.cc (fhandler_socket::eid_pipe_name): Fix format
string.
(fhandler_socket::connect): Set sun_path before running eid credential
transaction.  Run transaction only if OS connect was successful.
(fhandler_socket::accept): Run transaction only if OS accept was
successful.

19 years ago* net.cc (dup_ent): Revert previous stupid change.
Christopher Faylor [Wed, 9 Mar 2005 22:38:09 +0000 (22:38 +0000)]
* net.cc (dup_ent): Revert previous stupid change.

19 years ago * signal.cc (sigprocmask): Rename first parameter to "how".
Corinna Vinschen [Wed, 9 Mar 2005 21:07:56 +0000 (21:07 +0000)]
* signal.cc (sigprocmask): Rename first parameter to "how".
(handle_sigprocmask): Ditto.  Check "how" for being a valid "how" value.
Fix call order in case of wrong "how" value.

19 years ago* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.
Christopher Faylor [Wed, 9 Mar 2005 20:56:44 +0000 (20:56 +0000)]
* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.

19 years ago* path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when
Christopher Faylor [Wed, 9 Mar 2005 20:33:21 +0000 (20:33 +0000)]
* path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when
determining if there was a problem with a symlink.

19 years agoRemove \n from debug_printf
Christopher Faylor [Wed, 9 Mar 2005 20:08:29 +0000 (20:08 +0000)]
Remove \n from debug_printf

19 years ago * fhandler_socket.cc (fhandler_socket::listen): Don't limit the number
Corinna Vinschen [Tue, 8 Mar 2005 16:33:17 +0000 (16:33 +0000)]
* fhandler_socket.cc (fhandler_socket::listen): Don't limit the number
of pipe instances.

19 years agorevert errnoneous checkin
Christopher Faylor [Tue, 8 Mar 2005 14:32:07 +0000 (14:32 +0000)]
revert errnoneous checkin

19 years ago* pinfo.cc (pinfo::exit): Right shift exit value by eight when not started in a
Christopher Faylor [Tue, 8 Mar 2005 14:31:21 +0000 (14:31 +0000)]
* pinfo.cc (pinfo::exit): Right shift exit value by eight when not started in a
cygwin environment.

19 years ago * mmap.cc (mmap64): Handle MAP_AUTOGROW flag.
Corinna Vinschen [Tue, 8 Mar 2005 09:18:47 +0000 (09:18 +0000)]
* mmap.cc (mmap64): Handle MAP_AUTOGROW flag.
(fhandler_disk_file::mmap): Ditto. Clean conditional for readability.
* include/sys/mman.h: Add MAP_AUTOGROW flag.
* include/cygwin/version.h: Bump API minor version.

19 years ago* dcrt0.cc (dll_crt0_0): Eliminate muto::init call.
Christopher Faylor [Tue, 8 Mar 2005 05:05:02 +0000 (05:05 +0000)]
* dcrt0.cc (dll_crt0_0): Eliminate muto::init call.
* sync.h (locker): New, currently unused class.
(muto::init): Eliminate.
* sync.cc (muto::init): Ditto.
(muto::init): Eliminate critical section lock and instead use name as a guard
to prevent against multiple attempts to initialize the same muto.
* pinfo.cc (pinfo::init): Set myself procinfo when not execing and pid matches
windows pid or cygwin pid.

19 years ago* kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't pad
Christopher Faylor [Tue, 8 Mar 2005 04:06:26 +0000 (04:06 +0000)]
* kill.cc (getsig): Rectify bug introduced by 2005-02-26 change.  Don't pad
signal name with spaces.

19 years ago * strace.cc (handle_output_debug_string): Fix compiler warning.
Corinna Vinschen [Mon, 7 Mar 2005 10:24:23 +0000 (10:24 +0000)]
* strace.cc (handle_output_debug_string): Fix compiler warning.

19 years ago * include/ws2tcpip.h (getaddrinfo, freeaddrinfo, getnameinfo):
Danny Smith [Mon, 7 Mar 2005 08:32:24 +0000 (08:32 +0000)]
* include/ws2tcpip.h (getaddrinfo, freeaddrinfo, getnameinfo):
Guard with _WIN32_WINNT >= 0x0501. Add FIXME comment.
* gai_strerror[AW]: Put into #if 0 block.

19 years ago * include/basetyps.h (__int16): Correct define.
Danny Smith [Mon, 7 Mar 2005 04:58:30 +0000 (04:58 +0000)]
* include/basetyps.h (__int16): Correct define.

19 years ago* path.cc (mount_info::read_cygdrive_info_from_registry): Use the user prefix
Christopher Faylor [Sun, 6 Mar 2005 21:28:28 +0000 (21:28 +0000)]
* path.cc (mount_info::read_cygdrive_info_from_registry): Use the user prefix
if it exists.
* sync.h (sync::init_lock): Declare new static member.
(sync::init()): Declare new static function.
* sync.cc (sync::init): Define.
(sync::init): Lock attempt to initialize a muto to stop multiple threads from
colliding.
* dcrt0.cc (dll_crt0_0): Initialize muto environment.

19 years ago2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Sun, 6 Mar 2005 20:51:38 +0000 (20:51 +0000)]
2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libc/sys/rtems/include/inttypes.h: New file.
        * libc/sys/rtems/include/stdint.h: Ditto.

19 years ago2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Sun, 6 Mar 2005 20:40:05 +0000 (20:40 +0000)]
2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libc/string/memcmp.c: Fix to avoid pointer signedness warning.

19 years ago2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Sun, 6 Mar 2005 20:32:16 +0000 (20:32 +0000)]
2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libc/include/machine/_types.h: New file.
        * libc/include/sys/types.h: Do not check for __rtems__
        when including <machine/_types.h>.  Remove some redundant
        declarations now that <machine/_types.h> is included.
        * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
        shared header file.

19 years ago* sync.h (sync::init_lock): Declare new static member.
Christopher Faylor [Sun, 6 Mar 2005 20:21:30 +0000 (20:21 +0000)]
* sync.h (sync::init_lock): Declare new static member.
(sync::init()): Declare new static function.
* sync.cc (sync::init): Define.
(sync::init): Lock attempt to initialize a muto to stop multiple threads from
colliding.
* dcrt0.cc (dll_crt0_0): Initialize muto environment.

19 years ago* path.cc (special_name): Reorganize to always detect the use of special names
Christopher Faylor [Sun, 6 Mar 2005 20:15:07 +0000 (20:15 +0000)]
* path.cc (special_name): Reorganize to always detect the use of special names
first, before detecting special characters.

19 years ago* cygpath.cc (usage): Pass in one more copy of program_name to printf to avoid
Christopher Faylor [Sun, 6 Mar 2005 18:00:03 +0000 (18:00 +0000)]
* cygpath.cc (usage): Pass in one more copy of program_name to printf to avoid
a SEGV.

19 years ago* pathnames.sgml: Clarify binmode/textmode behavior slightly.
Christopher Faylor [Sun, 6 Mar 2005 02:46:54 +0000 (02:46 +0000)]
* pathnames.sgml: Clarify binmode/textmode behavior slightly.
* textbinary.sgml: Ditto.

19 years ago* fhandler_clipboard.cc: Use int for cygnativeformat rather than UINT as that
Christopher Faylor [Fri, 4 Mar 2005 18:04:11 +0000 (18:04 +0000)]
* fhandler_clipboard.cc: Use int for cygnativeformat rather than UINT as that
is what is returned by GetPriorityClipboardFormat.
(fhandler_dev_clipboard::read): Ditto for the format variable.

19 years ago * fhandler.cc (fhandler_base::open_9x): Satisfy query_open values.
Corinna Vinschen [Fri, 4 Mar 2005 13:54:59 +0000 (13:54 +0000)]
* fhandler.cc (fhandler_base::open_9x): Satisfy query_open values.

19 years ago * fhandler_socket.cc (fhandler_socket::ioctl): Only cancel
Corinna Vinschen [Fri, 4 Mar 2005 08:36:43 +0000 (08:36 +0000)]
* fhandler_socket.cc (fhandler_socket::ioctl): Only cancel
WSAAsyncSelect when async mode is on.

19 years ago * cygwin.din (utmpxname): Export.
Corinna Vinschen [Thu, 3 Mar 2005 22:08:12 +0000 (22:08 +0000)]
* cygwin.din (utmpxname): Export.
* syscalls.cc (utmpxname): Create export alias to utmpname.
* include/utmpx.h: Define ut_name and ut_xtime if not already defined.
(utmpxname): Add prototype.
* include/sys/utmp.h: Only define ut_name if not already defined.
* include/cygwin/version.h: Bump API minor version.

19 years ago* cygthread.cc (cygthread::detach): Use a slightly higher priority when waiting
Christopher Faylor [Thu, 3 Mar 2005 16:53:52 +0000 (16:53 +0000)]
* cygthread.cc (cygthread::detach): Use a slightly higher priority when waiting
for thread signalling.

19 years agoAdd Pierre's security text.
Joshua Daniel Franklin [Thu, 3 Mar 2005 16:36:08 +0000 (16:36 +0000)]
Add Pierre's security text.

19 years agorestore comment
Christopher Faylor [Thu, 3 Mar 2005 15:12:50 +0000 (15:12 +0000)]
restore comment

19 years agoupdate copyright dates
Alan Modra [Thu, 3 Mar 2005 11:58:10 +0000 (11:58 +0000)]
update copyright dates

19 years agofix changelog garbling
Christopher Faylor [Thu, 3 Mar 2005 01:06:30 +0000 (01:06 +0000)]
fix changelog garbling

19 years ago* autoload.cc (std_dll_init): Save and restore fpu control register around
Christopher Faylor [Thu, 3 Mar 2005 00:49:53 +0000 (00:49 +0000)]
* autoload.cc (std_dll_init): Save and restore fpu control register around
LoadAddress to prevent loaded dlls (like msvcrt.dll) from setting unwanted
stuff.

19 years ago* cygtls.cc (_cygtls::remove): Don't attempt any removal activities if exitsock
Christopher Faylor [Thu, 3 Mar 2005 00:36:49 +0000 (00:36 +0000)]
* cygtls.cc (_cygtls::remove): Don't attempt any removal activities if exitsock
is zero.

19 years ago* cygtls.cc (_cygtls::init_thread): Move exitsock setting later. It should
Christopher Faylor [Thu, 3 Mar 2005 00:32:57 +0000 (00:32 +0000)]
* cygtls.cc (_cygtls::init_thread): Move exitsock setting later.  It should
always be set.
(_cygtls::remove): Detect zero exitsock.  Not quite sure why this is needed.

19 years ago * mips.h: Define MIPS TLS relocations.
Daniel Jacobowitz [Wed, 2 Mar 2005 21:21:50 +0000 (21:21 +0000)]
* mips.h: Define MIPS TLS relocations.

19 years ago* autoload.cc (LoadDLLprime): Mask error code to low-order 16 bits.
Christopher Faylor [Wed, 2 Mar 2005 16:13:24 +0000 (16:13 +0000)]
* autoload.cc (LoadDLLprime): Mask error code to low-order 16 bits.
(noload): Preserve sign when returning error code.

19 years ago* spawn.cc (do_cleanup): Properly restore SIGINT/SIGQUIT even if they had
Christopher Faylor [Wed, 2 Mar 2005 15:32:34 +0000 (15:32 +0000)]
* spawn.cc (do_cleanup): Properly restore SIGINT/SIGQUIT even if they had
previously been SIG_DFL.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
Corinna Vinschen [Wed, 2 Mar 2005 08:28:54 +0000 (08:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
GetSystemTime/SystemTimeToFileTime with GetSystemTimeAsFileTime.
* times.cc (time_as_timestruc_t): Ditto.
(time): Ditto.

19 years agoPR libgcj/20160
Alexandre Oliva [Tue, 1 Mar 2005 22:33:54 +0000 (22:33 +0000)]
PR libgcj/20160
* ltmain.sh: Avoid creating archives with components that have
duplicate basenames.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 14.
Christopher Faylor [Tue, 1 Mar 2005 20:20:45 +0000 (20:20 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 14.

19 years agomerge from gcc
DJ Delorie [Tue, 1 Mar 2005 14:32:34 +0000 (14:32 +0000)]
merge from gcc

19 years ago * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
Corinna Vinschen [Tue, 1 Mar 2005 11:51:29 +0000 (11:51 +0000)]
* fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
errno to 0.
(fhandler_dev_clipboard::read): Ditto.
* fhandler_windows.cc (fhandler_windows::read): Ditto.
* scandir.cc (scandir): Ditto.
* syscalls.cc (_fstat64_r): Ditto.
(_fstat_r): Ditto.
(_stat64_r): Ditto.
(_stat_r): Ditto.

* mmap.cc (mmap64): Fix /dev/zero mapping.

19 years ago2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
Paolo Bonzini [Mon, 28 Feb 2005 15:13:42 +0000 (15:13 +0000)]
2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

19 years ago2005-02-28 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 28 Feb 2005 14:07:03 +0000 (14:07 +0000)]
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc.

2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR).  Create a symlink for host_subdir.

* Makefile.in: Regenerate.
* configure: Regenerate.

Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

config:
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.

19 years ago * fhandler.h (class fhandler_socket): Declare new method
Corinna Vinschen [Mon, 28 Feb 2005 13:11:50 +0000 (13:11 +0000)]
* fhandler.h (class fhandler_socket): Declare new method
set_socketpair_eids.
* fhandler_socket.cc (fhandler_socket::set_socketpair_eids): New method.
(fhandler_socket::dup): Duplicate sec_pipe if necessary.
(fhandler_socket::listen): Only create sec_pipe if named pipes are
available. Initialized sec_peer_pid to 0 as on Linux.
(fhandler_socket::connect): Only run eid credential transaction if
named pipes are available.  Fake otherwise. Initialized sec_peer_pid
to 0 as on Linux.
(fhandler_socket::accept): Ditto.
(fhandler_socket::close): Move closing sec_pipe handle from here...
(fhandler_socket::~fhandler_socket): ... to here.
* net.cc (socketpair): Set eid credentials by calling
fhandler_socket::set_socketpair_eids() on both socket ends.
* wincap.h (wincaps::has_named_pipes): New element.
* wincap.cc: Implement above element throughout.

19 years agoremove unneeded blank line
Christopher Faylor [Mon, 28 Feb 2005 01:55:45 +0000 (01:55 +0000)]
remove unneeded blank line

19 years ago* regtool.cc (opts): The argument to 'K' is not optional.
Christopher Faylor [Sun, 27 Feb 2005 17:55:54 +0000 (17:55 +0000)]
* regtool.cc (opts): The argument to 'K' is not optional.
(main): Revert previous change.  Just let getopt deal with missing argument.

19 years ago* regtool.cc (main): Avoid a SEGV when nothing follows -K.
Christopher Faylor [Sun, 27 Feb 2005 06:10:58 +0000 (06:10 +0000)]
* regtool.cc (main): Avoid a SEGV when nothing follows -K.

19 years ago* sigproc.cc (_pinfo::set_ctty): Move function
Christopher Faylor [Sun, 27 Feb 2005 04:30:08 +0000 (04:30 +0000)]
* sigproc.cc (_pinfo::set_ctty): Move function
* pinfo.cc (_pinfo::set_ctty): to here.
* fhandler_mem.cc (fhandler_dev_mem::fstat): Don't fill out structure if this
is an on-disk device rather than an "auto" device.
* fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
* path.cc (normalize_posix_path): Don't treat a standalone '//' as introducing
a UNC path.
(normalize_win32_path): Ditto.

19 years ago* kill (getsig): Avoid buffer overflow when generating a signal name.
Christopher Faylor [Sun, 27 Feb 2005 03:03:19 +0000 (03:03 +0000)]
* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.

19 years ago* debug.cc (delete_handle): Report on handle value in debugging output.
Christopher Faylor [Sat, 26 Feb 2005 20:50:25 +0000 (20:50 +0000)]
* debug.cc (delete_handle): Report on handle value in debugging output.
* pinfo.h (_pinfo::exists): Declare "new" function.
(_pinfo::kill): Ditto.
* fhandler_termios.cc (tty_min::kill_pgrp): Use _pinfo::exists rather than
proc_exists.
* pinfo.cc (pinfo::init): Ditto.  Don't do a low_priority_sleep(0) when looping
to find exec'ed procinfo.
(pinfo::release): Be more careful about unmapping and closing.
* signal.cc (_pinfo::kill): Rename from kill_worker.  Accommodate entry into
_pinfo class.
(kill0): Use _pinfo::kill rather than kill_worker.
(kill_pgrp): Ditto.  Use _pinfo::exists rather than proc_exists.
* sigproc.cc (_pinfo::exists): Rename from proc_exists.
(pid_exists): Use _pinfo::exists rather than proc_exists.
(remove_proc): Ditto.
* sigproc.h (proc_exists): Delete declaration.

19 years ago2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Fri, 25 Feb 2005 22:38:46 +0000 (22:38 +0000)]
2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
        L qualifier for these long constants.

19 years ago2005-02-25 Eric Blake <ebb9@byu.net>
Jeff Johnston [Fri, 25 Feb 2005 22:31:21 +0000 (22:31 +0000)]
2005-02-25  Eric Blake  <ebb9@byu.net>

        * libc/include/time.h (__tzrule_struct): Make offset long, since
        a 16-bit int overflows on a 12-hour offset.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/gettzinfo.c: Ditto.
        * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
        years.  Fix '%z' to use long, not int.

19 years ago * fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
Corinna Vinschen [Fri, 25 Feb 2005 21:23:15 +0000 (21:23 +0000)]
* fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
with additional flags parameter.  Change offset parameter to _off64_t.
(class fhandler_disk_file): Ditto.
(class fhandler_dev_mem): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork):
Accomodate new parameters.
* mmap.cc: Include ntdll.h.
(class mmap_record): Add flags member.
(mmap_record::mmap_record): Add flags parameter.
(mmap_record::get_flags): New method.
(class map): Add next_anon_addr member to store next anonymous mapping
address suggestion.
(map::get_next_anon_addr): New method.
(map::set_next_anon_addr): New method.
(mmap64): Don't align offset and length to granularity in case of
MAP_ANONYMOUS on NT.  Check for already existing mapping only on 9x.
Call mmap_record::mmap_record with additional flags argument.
(fhandler_base::fixup_mmap_after_fork): Accomodate new parameters.
(fhandler_disk_file::mmap): Use NtMapViewOfSection with
AT_ROUND_TO_PAGE flag for anonymous mappings on NT.  If addr is NULL,
try to map adjacent to previous mapping.
(fhandler_disk_file::fixup_mmap_after_fork): Add flags argument.
Change offset parameter to _off64_t.  Use NtMapViewOfSection to
re-create anonymous mappings on NT.
(fixup_mmaps_after_fork): Accomodate new parameters when calling
fhandler's fixup_mmaps_after_fork function.
* ntdll.h (AT_ROUND_TO_PAGE): New define.

19 years ago * Fix ChangeLog entries.
Corinna Vinschen [Fri, 25 Feb 2005 11:48:02 +0000 (11:48 +0000)]
* Fix ChangeLog entries.

19 years ago * mmap.cc (mmap64): Handle MAP_FIXED request on non-granulation
Corinna Vinschen [Fri, 25 Feb 2005 11:47:17 +0000 (11:47 +0000)]
* mmap.cc (mmap64): Handle MAP_FIXED request on non-granulation
boundary.

19 years ago * mmap.cc (class mmap_record): Declare new map_pages method with
Corinna Vinschen [Fri, 25 Feb 2005 11:15:22 +0000 (11:15 +0000)]
* mmap.cc (class mmap_record): Declare new map_pages method with
address parameter.
(mmap_record::map_pages): New method with address parameter.
(mmap64): Evaluate access mode before checking if already existing
mapping can be used.
Only use existing mapping if requested access mode matches the one
in the existing mapping.
Add check for existing mapping for MAP_FIXED case.

19 years ago * include/wctype.h (wctrans) Remove _CRTIMP.
Danny Smith [Fri, 25 Feb 2005 08:15:46 +0000 (08:15 +0000)]
* include/wctype.h  (wctrans) Remove _CRTIMP.
(towctrans): Likewise.
(wctype): Likewise,

19 years ago * include/wctype.h: Add comment on wctrans, towctrans, wctype.
Danny Smith [Fri, 25 Feb 2005 01:48:38 +0000 (01:48 +0000)]
* include/wctype.h:  Add comment on wctrans, towctrans, wctype.

19 years ago * mingwex/wctype.c: New file.
Danny Smith [Fri, 25 Feb 2005 01:43:43 +0000 (01:43 +0000)]
* mingwex/wctype.c: New file.
* mingwex/wctrans.c: New file.
* mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
* mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.

19 years agoAdd (int) cast.
Jeff Johnston [Thu, 24 Feb 2005 19:02:35 +0000 (19:02 +0000)]
Add (int) cast.

19 years ago2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 24 Feb 2005 18:50:06 +0000 (18:50 +0000)]
2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
        manipulate float values in integer form.
        * libm/common/sf_round.c: Ditto.

19 years ago2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 24 Feb 2005 18:29:31 +0000 (18:29 +0000)]
2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libc/include/sys/types.h [__rtems__]: Include new
        header file machine/_types.h.
        * libc/include/machine/types.h: Ditto.
        * libc/sys/rtems/machine/_types.h: New file.

19 years agoFix minor typo
Joshua Daniel Franklin [Thu, 24 Feb 2005 06:14:44 +0000 (06:14 +0000)]
Fix minor typo

19 years ago*README: New file.
Joshua Daniel Franklin [Thu, 24 Feb 2005 05:26:33 +0000 (05:26 +0000)]
*README: New file.

19 years ago* cygpath.cc (usage): Clarify help output to indicate acceptance
Joshua Daniel Franklin [Thu, 24 Feb 2005 04:32:45 +0000 (04:32 +0000)]
* cygpath.cc (usage): Clarify help output to indicate acceptance
of multiple file names as arguments.

19 years ago * libc/include/time.h (_timezone): Change to long also for Cygwin.
Corinna Vinschen [Wed, 23 Feb 2005 22:20:55 +0000 (22:20 +0000)]
* libc/include/time.h (_timezone): Change to long also for Cygwin.
(timezone): Drop cast from definition.

19 years ago * localtime.cc: Implement setting __tzrule's offset member using
Corinna Vinschen [Wed, 23 Feb 2005 22:17:28 +0000 (22:17 +0000)]
* localtime.cc: Implement setting __tzrule's offset member using
newlib's __gettzinfo () interface.
(__tzrule): Remove.
(timezone): Define as long according to POSIX.

19 years ago * devices.cc: Regenerate.
Corinna Vinschen [Wed, 23 Feb 2005 22:14:40 +0000 (22:14 +0000)]
* devices.cc: Regenerate.

19 years ago2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 23 Feb 2005 19:08:58 +0000 (19:08 +0000)]
2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/time.h [!CYGWIN](_timezone): Change to long.
        (__tzrule_type, __tzinfo_type): New types.
        (__gettzinfo): New function.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/Makefile.am: Add gettzinfo.c.
        * libc/time/Makefile.in: Regenerated.
        * libc/time/local.h: Moved __tzrule_type to time.h.
        * libc/time/mktime.c: Call __gettzinfo to reference
        __tznorth, __tzyear, and __tzrule array.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/strftime.c: Ditto.
        * libc/time/tzset_r.c: Ditto.  Also remove definition
        of __tzrule which is now in gettzinfo.c.  Change _timezone
        references to not cast to time_t.
        * libc/time/gettzinfo.c: New file.

19 years ago * devices.in (parsedisk): Fix typo.
Corinna Vinschen [Wed, 23 Feb 2005 17:59:04 +0000 (17:59 +0000)]
* devices.in (parsedisk): Fix typo.

19 years ago * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
Corinna Vinschen [Wed, 23 Feb 2005 17:42:07 +0000 (17:42 +0000)]
* libc/include/sys/unistd.h: Define getpeereid for Cygwin.

19 years ago * cygwin.din (getpeereid): Export.
Corinna Vinschen [Wed, 23 Feb 2005 17:39:46 +0000 (17:39 +0000)]
* cygwin.din (getpeereid): Export.
* 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.

19 years ago * include/sys/statvfs.h (ST_RDONLY): Define.
Corinna Vinschen [Wed, 23 Feb 2005 16:27:54 +0000 (16:27 +0000)]
* include/sys/statvfs.h (ST_RDONLY): Define.
(ST_NOSUID): Define.

19 years ago * cygwin.din (fstatvfs): Export.
Corinna Vinschen [Wed, 23 Feb 2005 13:12:43 +0000 (13:12 +0000)]
* cygwin.din (fstatvfs): Export.
(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.

19 years ago * devices.h: Switch FH_ZERO and FH_PORT as on Linux. Add FH_FULL.
Corinna Vinschen [Wed, 23 Feb 2005 12:30:31 +0000 (12:30 +0000)]
* devices.h: Switch FH_ZERO and FH_PORT as on Linux.  Add FH_FULL.
* 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.

19 years agoconfigure: Regenerate.
Nick Clifton [Wed, 23 Feb 2005 10:07:06 +0000 (10:07 +0000)]
configure: Regenerate.

19 years ago* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing
Christopher Faylor [Wed, 23 Feb 2005 02:00:48 +0000 (02:00 +0000)]
* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing
cygdrive_root.

19 years ago * cygwin.din (basename): Export.
Corinna Vinschen [Tue, 22 Feb 2005 19:45:41 +0000 (19:45 +0000)]
* cygwin.din (basename): Export.
(dirname): Export.
* path.cc (basename): New function.
(dirname): New function.
* include/libgen.h: New file.
* include/cygwin/version.h: Bump API minor version.

19 years ago * select.cc (peek_pipe): Disable new pipe code until there's
Corinna Vinschen [Tue, 22 Feb 2005 15:39:45 +0000 (15:39 +0000)]
* select.cc (peek_pipe): Disable new pipe code until there's
a working substitute.

19 years ago * include/cygwin/version.h: Fix comment.
Corinna Vinschen [Tue, 22 Feb 2005 15:35:10 +0000 (15:35 +0000)]
* include/cygwin/version.h: Fix comment.

19 years ago * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
Corinna Vinschen [Tue, 22 Feb 2005 15:31:51 +0000 (15:31 +0000)]
* libc/include/sys/unistd.h: Define fdatasync also for Cygwin.

This page took 0.17041 seconds and 5 git commands to generate.