]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years agoFix spacing, copyrights.
Christopher Faylor [Sun, 18 Mar 2001 21:11:25 +0000 (21:11 +0000)]
Fix spacing, copyrights.

23 years agofix spacing.
Christopher Faylor [Sun, 18 Mar 2001 20:58:18 +0000 (20:58 +0000)]
fix spacing.

23 years ago* fhandler.h (fhandler_tty_slave): Declare new methods.
Egor Duda [Sun, 18 Mar 2001 18:05:01 +0000 (18:05 +0000)]
* fhandler.h (fhandler_tty_slave): Declare new methods.
* select.cc (fhandler_tty_slave::select_read): New method.
* select.cc (fhandler_tty_slave::ready_for_read): Ditto.
* select.cc (verify_tty_slave): New function.
* fhandler_termios.cc (fhandler_termios::line_edit): Empty input
buffer on signal.
* fhandler_tty.cc (fhandler_tty_slave::read): Check for input data
after reading from pipe. Reset event if input pipe is empty.
* tty.h (class tty): Allow creating events with manual reset.
* tty.cc (tty::get_event): Use manual_reset flag.
* tty.cc (tty::common_init): Create input_available_event with
manual reset.

23 years agoUpdate copyrights.
Christopher Faylor [Sun, 18 Mar 2001 03:34:05 +0000 (03:34 +0000)]
Update copyrights.

23 years agoUpdate copyright.
Christopher Faylor [Sun, 18 Mar 2001 03:25:30 +0000 (03:25 +0000)]
Update copyright.

23 years agoFix a typo.
H.J. Lu [Sun, 18 Mar 2001 02:56:20 +0000 (02:56 +0000)]
Fix a typo.

23 years ago* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid when
Christopher Faylor [Sun, 18 Mar 2001 02:49:29 +0000 (02:49 +0000)]
* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid when
passed in pid.  Don't prematurely break when searching for a pid.
* thread.h (_winsup_t): Eliminate unneeded field.

23 years ago* kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin
Christopher Faylor [Sun, 18 Mar 2001 02:47:39 +0000 (02:47 +0000)]
* kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin
pid.

23 years ago * net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.
Corinna Vinschen [Sat, 17 Mar 2001 19:53:52 +0000 (19:53 +0000)]
    * net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.
        * syscalls.cc (_unlink): Ditto.
        (_rename): Ditto.

23 years agoBritish -> US spelling.
David Starks-Browning [Sat, 17 Mar 2001 18:50:22 +0000 (18:50 +0000)]
British -> US spelling.
Add .inputrc tip to entry "How can I copy and paste into Cygwin console windows?"

23 years ago* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input is
Christopher Faylor [Sat, 17 Mar 2001 17:44:53 +0000 (17:44 +0000)]
* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input is
"foo".

23 years ago * net.cc (cygwin_socket): Set protocol to 0 when address family is
Corinna Vinschen [Sat, 17 Mar 2001 17:13:52 +0000 (17:13 +0000)]
    * net.cc (cygwin_socket): Set protocol to 0 when address family is
AF_UNIX to avoid WSAEPROTONOSUPPORT error.

23 years ago * net.cc (cygwin_socket): Pass protocol parameter to socket call.
Corinna Vinschen [Sat, 17 Mar 2001 17:04:45 +0000 (17:04 +0000)]
* net.cc (cygwin_socket): Pass protocol parameter to socket call.

23 years agoRemove "not yet updated" caveat from entry:
David Starks-Browning [Sat, 17 Mar 2001 16:18:01 +0000 (16:18 +0000)]
Remove "not yet updated" caveat from entry:
"How is the DOS/Unix CR/LF thing handled?"

23 years ago* dir.cc (readdir): Use strcasematch for consistency.
Christopher Faylor [Sat, 17 Mar 2001 07:09:41 +0000 (07:09 +0000)]
* dir.cc (readdir): Use strcasematch for consistency.
* path.cc (symlink_info): Eliminate known_suffix.
(path_conv::check): Always copy ext_here to end of buffer, if found.
(suffix_scan): Eliminate ext_here, add suffixes_start.
(suffix_scan::has): Eliminate an argument.  Reorganize.  Always return pointer
to end of input path.
(suffix_scan::next): Take a second pass through the suffix list looking for
.lnk.
(symlink_info::check): Eliminate known_suffix usage.

23 years agoFix typo.
Christopher Faylor [Sat, 17 Mar 2001 05:14:16 +0000 (05:14 +0000)]
Fix typo.

23 years agoAccomodate all devices.
Christopher Faylor [Sat, 17 Mar 2001 05:11:20 +0000 (05:11 +0000)]
Accomodate all devices.

23 years ago* syscalls.cc (stat_dev): Give devices full read/write.
Christopher Faylor [Sat, 17 Mar 2001 05:06:14 +0000 (05:06 +0000)]
* syscalls.cc (stat_dev): Give devices full read/write.

23 years ago* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
Christopher Faylor [Sat, 17 Mar 2001 04:49:13 +0000 (04:49 +0000)]
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.

23 years ago* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when a
Christopher Faylor [Sat, 17 Mar 2001 02:15:33 +0000 (02:15 +0000)]
* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when a
signal is sent or we'll end up in an EOF/signal race.

23 years agofix spelling error.
Christopher Faylor [Sat, 17 Mar 2001 01:45:40 +0000 (01:45 +0000)]
fix spelling error.

23 years ago* path.cc: Translate scan states from defines to enums.
Christopher Faylor [Sat, 17 Mar 2001 01:29:14 +0000 (01:29 +0000)]
* path.cc: Translate scan states from defines to enums.
(suffix_scan): Rename state to nextstate for clarity.
(lnk_match): Change to allow multiple states to indicate that a .lnk has been
matched.
(suffix_scan::has): Eliminate a goto.  Handle .lnk as a special case, since a
.lnk may also need to be tacked on the end of a .lnk.
(suffix_scan::next): Don't increment next state.  Set it specifically.
Recognize new .lnk states.

23 years ago* cygwin.din: Export the new functions.
Christopher Faylor [Sat, 17 Mar 2001 01:14:58 +0000 (01:14 +0000)]
* cygwin.din: Export the new functions.
* pthread.cc (pthread_cond_*): Add wrapper functions that call __pthread_cond*
functions.
* thread.cc (__pthread_cond_*): Implement the pthread_cond* functions.
* thread.h: Add new class entries and prototypes for __pthread_cond* functions.
* include/pthread.h: user land header prototypes for pthread_cond* functions
and related defines.

23 years agomerge from gcc
DJ Delorie [Wed, 14 Mar 2001 21:30:22 +0000 (21:30 +0000)]
merge from gcc

23 years agoFix minor formatting bugs.
DJ Delorie [Wed, 14 Mar 2001 20:17:36 +0000 (20:17 +0000)]
Fix minor formatting bugs.

23 years agoSynchronise with copyright dates on FSF GCC versions of these files
Nick Clifton [Wed, 14 Mar 2001 19:45:29 +0000 (19:45 +0000)]
Synchronise with copyright dates on FSF GCC versions of these files

23 years ago * environ.cc (parse_options): Use strtok_r instead of strtok.
Corinna Vinschen [Wed, 14 Mar 2001 15:32:49 +0000 (15:32 +0000)]
    * environ.cc (parse_options): Use strtok_r instead of strtok.
        * security.cc (convert_string_sid_to_sid): Ditto.
        (aclfromtext): Ditto. Fix buffer usage.

23 years ago * path.cc (lnk_suffixes): Remove.
Corinna Vinschen [Wed, 14 Mar 2001 11:13:46 +0000 (11:13 +0000)]
    * path.cc (lnk_suffixes): Remove.
        (class suffix_scan): Add `lnk_state' flag.
        (suffix_scan::lnk_match): Return state of `lnk_state' now.
        (suffix_scan::has): Changed behaviour if file has `.lnk' suffix.
        (suffix_scan::next): Set `lnk_state' where appropriate.
        (symlink_info::check): Fix a wrong `break'.
        * syscalls.cc (chown_worker): Change debug statement to reflect
        lchown fix.
        (lchown): Call chown_worker with `PC_SYM_NOFOLLOW' instead of
        `PC_SYM_IGNORE'.

23 years ago * libc/sys/cygwin/crt0.c: Add copyright hint.
Corinna Vinschen [Wed, 14 Mar 2001 08:36:33 +0000 (08:36 +0000)]
    * libc/sys/cygwin/crt0.c: Add copyright hint.
        * libc/sys/cygwin/sys/dirent.h: Ditto.
        * libc/sys/cygwin/sys/param.h: Ditto.
        * libc/sys/cygwin/sys/utime.h: Ditto.
        * libc/sys/cygwin/sys/utmp.h: Ditto.

23 years agoformatting fix
Nick Clifton [Wed, 14 Mar 2001 02:33:30 +0000 (02:33 +0000)]
formatting fix

23 years agoFix typos in ChangeLogs; add coff/external.h; fix copyright dates
Nick Clifton [Wed, 14 Mar 2001 02:27:44 +0000 (02:27 +0000)]
Fix typos in ChangeLogs; add coff/external.h; fix copyright dates

23 years ago * fhandler.cc (fhandler_disk_file::fstat): Add correct modes to
Corinna Vinschen [Tue, 13 Mar 2001 13:07:15 +0000 (13:07 +0000)]
    * fhandler.cc (fhandler_disk_file::fstat): Add correct modes to
        symlinks when stat'ing on FAT or FAT32 file systems.

23 years ago * include/wingdi.h: (DOCINFO) Ansi version defined incorrectly.
Earnie Boyd [Tue, 13 Mar 2001 12:04:57 +0000 (12:04 +0000)]
* include/wingdi.h: (DOCINFO) Ansi version defined incorrectly.
Thanks to: Mattia Barbon <mbarbon@dsi.unive.it>

23 years ago* libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
Alexandre Oliva [Tue, 13 Mar 2001 09:42:52 +0000 (09:42 +0000)]
* libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
equivalent to LONGINT.

23 years agoFix typo
Egor Duda [Tue, 13 Mar 2001 07:58:29 +0000 (07:58 +0000)]
Fix typo

23 years ago* fhandler.h (fhandler_termios::fixup_after_exec): New function.
Egor Duda [Mon, 12 Mar 2001 21:27:42 +0000 (21:27 +0000)]
* fhandler.h (fhandler_termios::fixup_after_exec): New function.
* fhandler.cc (fhandler_termios::fixup_after_fork): New function.
Fixup output handle.
* fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Output
handle is now fixed up in fhandler_termios::fixup_after_fork().

23 years ago* fhandler.h (fhandler_termios::fhandler_termios): Enable fixup
Egor Duda [Mon, 12 Mar 2001 20:39:40 +0000 (20:39 +0000)]
* fhandler.h (fhandler_termios::fhandler_termios): Enable fixup
after fork.
* fhandler_console.cc (fhandler_console::fhandler_console): Fixup
after fork is now enabled in the base class constructor.

23 years ago * include/commctrl.h (TBSTYLE_FLAT): New definition.
Earnie Boyd [Mon, 12 Mar 2001 19:26:16 +0000 (19:26 +0000)]
* include/commctrl.h (TBSTYLE_FLAT): New definition.
(TB_GETBUTTONSIZE): Ditto.
(TCS_HOTTRACK): Ditto.
Thanks to: Chris Hansen <popeofpop@softhome.net>

23 years ago* mkvers.sh: Include config.h so that DEBUGGING is correctly defined.
Christopher Faylor [Mon, 12 Mar 2001 16:20:30 +0000 (16:20 +0000)]
* mkvers.sh: Include config.h so that DEBUGGING is correctly defined.

23 years ago* spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not a
Christopher Faylor [Mon, 12 Mar 2001 14:49:29 +0000 (14:49 +0000)]
* spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not a
cygwin process (suggested by Jason Gouger <cygwin@jason-gouger.com>).

23 years ago* child_info.h: Bump magic number for fork/exec/spawn.
Christopher Faylor [Sun, 11 Mar 2001 21:05:49 +0000 (21:05 +0000)]
* child_info.h: Bump magic number for fork/exec/spawn.

23 years agoRemove obvious brain freeze problem.
Christopher Faylor [Sun, 11 Mar 2001 16:46:28 +0000 (16:46 +0000)]
Remove obvious brain freeze problem.

23 years ago* autoload.cc (noload): Use proper method for multiline strings or newer gcc's
Christopher Faylor [Sun, 11 Mar 2001 01:58:23 +0000 (01:58 +0000)]
* autoload.cc (noload): Use proper method for multiline strings or newer gcc's
complain.
* exceptions.cc (unused_sig_wrapper): Ditto.
* fhandler.h (fhandler_base): Make get_io_handle and friends return self.
* fhandler_tty.cc (fhandler_pty_common::close_on_exec): Accomodate DEBUGGING
flag to avoid spurious warnings when inheritance is set.

23 years ago* shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning.
Christopher Faylor [Sat, 10 Mar 2001 23:37:50 +0000 (23:37 +0000)]
* shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning.
* exceptions.cc (setup_handler): Clarify debugging message.
* sigproc.cc (proc_subproc): Remove PROC_CHILDSTOPPED test.  It is handled by
normal PROC_CLEARWAIT case.
(wait_sig): Eliminate "dispatched" tracking.  Remove __SIGCHILDSTOPPED test.
Decrement counter again before jumping out of InterlockedDecrement loop so that
subsequent InterlockedIncrement will keep the counter at the correctly
decremented value and also detect when there are pending signals.
* sigproc.h: Remove __SIGCHILDSTOPPED element.
(procstuff): Remove PROC_CHILDSTOPPED element.

23 years agomerge from gcc
DJ Delorie [Sat, 10 Mar 2001 22:23:16 +0000 (22:23 +0000)]
merge from gcc

23 years ago* syscalls.cc (_rename): Set errno to ENOENT when an old path doesn't exist
Christopher Faylor [Sat, 10 Mar 2001 20:25:19 +0000 (20:25 +0000)]
* syscalls.cc (_rename): Set errno to ENOENT when an old path doesn't exist
(from Kazuhiro Fujieda <fujieda@jaist.ac.jp>).  Also set EACCES when directory
is not writable.

23 years ago* winsup.api/ltp/access01.c: Avoid compilation error if X_OK
Egor Duda [Sat, 10 Mar 2001 16:45:28 +0000 (16:45 +0000)]
* winsup.api/ltp/access01.c: Avoid compilation error if X_OK
isn't declared as a constant.

23 years ago* config/default.exp: Remove unneeded debugging output.
Egor Duda [Fri, 9 Mar 2001 15:39:28 +0000 (15:39 +0000)]
* config/default.exp: Remove unneeded debugging output.
* Makefile.in: Use correct path to find dejagnu in local tree.

23 years ago * rs6000/simulator.S (dup): New syscall.
Geoffrey Keating [Fri, 9 Mar 2001 07:31:34 +0000 (07:31 +0000)]
* rs6000/simulator.S (dup): New syscall.

23 years ago2001-03-07 Richard Sandiford <rsandifo@redhat.com>
Jeff Johnston [Thu, 8 Mar 2001 21:39:32 +0000 (21:39 +0000)]
2001-03-07  Richard Sandiford  <rsandifo@redhat.com>

        * (libc/include/machine/setjmp.h): Use 23 DI-mode ints for a
        jmpbuf on MIPS64 targets.
        * (libc/machine/mips/setjmp.S): Add MIPS64 version.

23 years ago* Makefile.in (ALL_GCC, ALL_GCC_C, ALL_GCC_CXX): Set before use.
Alexandre Oliva [Thu, 8 Mar 2001 05:50:03 +0000 (05:50 +0000)]
* Makefile.in (ALL_GCC, ALL_GCC_C, ALL_GCC_CXX): Set before use.

23 years ago* libc/include/sys/config.h: Use ssize_t for read/write declarations.
Christopher Faylor [Wed, 7 Mar 2001 21:03:43 +0000 (21:03 +0000)]
* libc/include/sys/config.h: Use ssize_t for read/write declarations.

23 years ago* syscalls.cc (_read): Change definition to return ssize_t to be consistent
Christopher Faylor [Wed, 7 Mar 2001 20:52:33 +0000 (20:52 +0000)]
* syscalls.cc (_read): Change definition to return ssize_t to be consistent
with read.
(_write): Change definition to return ssize_t to be consistent with write.

23 years agoUpdate copyright.
Christopher Faylor [Wed, 7 Mar 2001 17:45:03 +0000 (17:45 +0000)]
Update copyright.

23 years ago* sigproc.h (sigthread): Declare new methods. Create new winapi_lock field.
Christopher Faylor [Wed, 7 Mar 2001 06:19:34 +0000 (06:19 +0000)]
* sigproc.h (sigthread): Declare new methods.  Create new winapi_lock field.
(sigframe:;set): Call get_winapi_lock after frame is set so that signal handler
thread knows not to call SuspendThread.
(sigframe::~sigframe): Release winapi_lock.
* exceptions.cc (sigthread::get_winapi_lock): New method.
(sigthread::release_winapi_lock): New method.
(setup_handler): Use get_winapi_lock to ensure that signalled thread is not
blocked in a Windows API.
* path.h (path_types): Avoid broken GCC warning.

23 years agomerge from gcc
DJ Delorie [Tue, 6 Mar 2001 18:26:32 +0000 (18:26 +0000)]
merge from gcc

23 years ago * path.cc (suffix_scan::has): Change order of conditionals
Corinna Vinschen [Tue, 6 Mar 2001 13:05:56 +0000 (13:05 +0000)]
    * path.cc (suffix_scan::has): Change order of conditionals
        to allow checking for .lnk suffixes even if in_suffixes is empty.

23 years ago * autoload.c (cygwin_premain0): Add missing parameter.
Corinna Vinschen [Tue, 6 Mar 2001 12:05:45 +0000 (12:05 +0000)]
    * autoload.c (cygwin_premain0): Add missing parameter.
        * binmode.c (cygwin_premain0): Ditto.
        * textmode.c (cygwin_premain0): Ditto.

Patch contributed by Jason Tiller <jtiller@sjm.com> :
        * auto_load.cc: Add "GetKeyboardLayout" entry in the list of
        Win32 User32.DLL exports to provide.
        * fhandler.h (class fhandler_console): Add meta_mask private
        member to remember which keystroke modifiers should generate
        META.
        * fhandler_console.cc (fhandler_console::read): Modify code that
        tests a keystroke for a META-escaped key to use the 'meta_mask'
        variable.
        (fhandler_console::fhandler_console): Add definition for
        variable "meta_mask" used to determine if a keystroke should be
        preceded by META in the client console stream.  Set meta_mask
        based on whether or not user's keyboard language is English -
        non-English keyboards pass AltGr (right <ALT>) unmolested,
        whereas English keyboards now interpret left- and right-<ALT>
        as META.

23 years agoMon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
Jeff Johnston [Tue, 6 Mar 2001 01:04:43 +0000 (01:04 +0000)]
Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>

        * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
        For RTEMS, define to be ssize_t.  Default to int if not defined.
        * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
        * libc/stdio/stdio.c (__sread, __swrite): Likewise.
        * libc/stdio/local.h (__sread, __swrite): Likewise.
        * libc/include/sys/reent.h (_read, _write): Likewise.
        * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
        * libc/syscalls/sysread.c (read): Likewise.
        * libc/syscalls/syswrite.c (write): Likewise.

23 years ago * include/a.out.h: Add copyright hint.
Corinna Vinschen [Mon, 5 Mar 2001 21:29:24 +0000 (21:29 +0000)]
    * include/a.out.h: Add copyright hint.
        * include/fcntl.h: Ditto.
        * include/lastlog.h: Ditto.
        * include/memory.h: Ditto.
        * include/mntent.h: Ditto.
        * include/paths.h: Ditto.
        * include/poll.h: Ditto.
        * include/syslog.h: Ditto.
        * include/termio.h: Ditto.
        * include/tzfile.h: Ditto.
        * include/arpa/inet.h: Ditto.
        * include/asm/byteorder.h: Ditto.
        * include/asm/socket.h: Ditto.
        * include/asm/types.h: Ditto.
        * include/cygwin/if.h: Ditto.
        * include/cygwin/mtio.h: Ditto.
        * include/cygwin/rdevio.h: Ditto.
        * include/cygwin/socket.h: Ditto.
        * include/net/if.h: Ditto.
        * include/netinet/in.h: Ditto.
        * include/netinet/in_systm.h: Ditto.
        * include/netinet/ip.h: Ditto.
        * include/netinet/ip_icmp.h: Ditto.
        * include/netinet/tcp.h: Ditto.
        * include/sys/cdefs.h: Ditto.
        * include/sys/cygwin.h: Ditto.
        * include/sys/ioctl.h: Ditto.
        * include/sys/mman.h: Ditto.
        * include/sys/mount.h: Ditto.
        * include/sys/mtio.h: Ditto.
        * include/sys/procfs.h: Ditto.
        * include/sys/resource.h: Ditto.
        * include/sys/smallprint.h: Ditto.
        * include/sys/socket.h: Ditto.
        * include/sys/strace.h: Ditto.
        * include/sys/syslog.h: Ditto.
        * include/sys/sysmacros.h: Ditto.
        * include/sys/termio.h: Ditto.
        * include/sys/termios.h: Ditto.
        * include/sys/uio.h: Ditto.
        * include/sys/un.h: Ditto.
        * include/sys/utsname.h: Ditto.
        * include/sys/vfs.h: Ditto.
        * include/sys/wait.h: Ditto.
        * regexp/regerror.c: Ditto.
        * regexp/regexp.h: Ditto.
        * regexp/regmagic.h: Ditto.

23 years ago2001-03-05 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 5 Mar 2001 21:07:20 +0000 (21:07 +0000)]
2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.

23 years ago * getfacl.c: Add copyright hint.
Corinna Vinschen [Mon, 5 Mar 2001 17:55:23 +0000 (17:55 +0000)]
    * getfacl.c: Add copyright hint.
        * setfacl.c: Ditto.
        * strace.cc: Ditto.

23 years ago* dlopen.c (dlopen): Return NULL when name is NULL (suggested by
Christopher Faylor [Mon, 5 Mar 2001 06:28:25 +0000 (06:28 +0000)]
* dlopen.c (dlopen): Return NULL when name is NULL (suggested by
chrisiasci@aol.com).
* cygwin.din: Add a new, internally used export - _check_for_executable.
* dcrt0.cc (dll_crt0_1): Set _check_for_executable for older binaries.  Pass
user_data to premain functions.
* fhandler.cc (fhandler_disk_file::open): Only check for executable if the
linked program is intereested in the executable bit.
(fhandler_disk_file::check_execable_p): Delete.
* fhandler.h (executable_states): New enumeration of various states of
executable bit caring.
(fhandler_base::set_execable_p): New method.
* fhandler_termios.cc (fhandler_termios::line_edit): Flag when a signal has
been sent to the tty.  Return -1 when this is so.
* fhandler_console.cc (fhandler_console::read): Return -1 when signal sending
character encountered.
* path.cc (path_conv::check): Record when path refers to a disk device.  Move
executable extension check here.
(check_sysfile): Accomodate new EXEC path states.
(has_suffix): Remove.
(next_suffix): Remove.
(class suffix_scan): New clas.
(suffix_scan::has): New method.
(suffix_scan:next): New method.
(symlink_info::check): Use suffix_scan method to control for scanning for
suffixes.
* path.h (path_conv::exec_state): New method.
* perprocess.h: Make "C" friendly.
* include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_S_IEXEC.  Bump
CYGWIN_VERSION_API_MINOR.
* include/sys/cygwin.h: Change premain declarations.
* winsup.h: Move __cplusplus test to after builtin defines.

23 years ago* libc/include/sys/stat.h: Use special defines for executable stat bits when
Christopher Faylor [Mon, 5 Mar 2001 05:13:06 +0000 (05:13 +0000)]
* libc/include/sys/stat.h: Use special defines for executable stat bits when
compiling for Cygwin.
* libc/include/sys/unistd.h: Use special define for X_OK when compiling for
Cygwin.

23 years ago* fhandler.h (class fhandler_tty_common): New mutex and event to
Egor Duda [Sun, 4 Mar 2001 15:34:25 +0000 (15:34 +0000)]
* fhandler.h (class fhandler_tty_common): New mutex and event to
syncronize input on master tty with slave tty.
* fhandler_tty.cc (fhandler_pty_master::accept_input): Use them to
syncronize with slave.
* fhandler_tty.cc (fhandler_tty_slave::read): Use input mutex and
event to syncronize with master. Do not limit amount of data read
from master to vmin value. Interrupt on signal and return already
read data, if any.
* fhandler_tty.cc (fhandler_tty_slave::open): Handle input mutex and
event.
* fhandler_tty.cc (fhandler_tty_common::close): Ditto.
* fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Ditto.
* fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Ditto.
* fhandler_tty.cc (fhandler_tty_common::dup): Ditto.
* tty.h (tty::open_input_mutex): New function.
* tty.cc (tty::common_init): Create input mutex and event.

23 years ago*** empty log message ***
Christopher Faylor [Sat, 3 Mar 2001 03:56:34 +0000 (03:56 +0000)]
*** empty log message ***

23 years ago2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 2 Mar 2001 23:16:33 +0000 (23:16 +0000)]
2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
        of strtok_r is always defined.

23 years ago2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 2 Mar 2001 23:13:04 +0000 (23:13 +0000)]
2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/machine/ansi.h: New dummy header file.

23 years ago * dir.cc (readdir): Fix creating path in symlink check.
Corinna Vinschen [Fri, 2 Mar 2001 12:33:50 +0000 (12:33 +0000)]
    * dir.cc (readdir): Fix creating path in symlink check.

23 years ago * cygwinenv.sgml: Add text for `winsymlinks' option.
Corinna Vinschen [Fri, 2 Mar 2001 12:05:31 +0000 (12:05 +0000)]
    * cygwinenv.sgml: Add text for `winsymlinks' option.
        * how-api.texinfo: Add text to explain new symlinks==shortcuts
        and the CYGWIN setting `(no)winsymlinks'.
        * how-using.texinfo: Add text that Cygwin now treats shortcuts
        as symlinks.

23 years ago * dir.cc (readdir): Fix shortcut==symlink condition.
Corinna Vinschen [Fri, 2 Mar 2001 11:41:09 +0000 (11:41 +0000)]
    * dir.cc (readdir): Fix shortcut==symlink condition.
        * environ.cc: Add extern decl for `allow_winsymlinks'.
        (struct parse_thing): Add entry for `[no]winsymlinks'.
        * path.cc (symlink): Change to be able to create both,
        symlink==shortcut and symlink==systemfile, dependent of
        the setting of `allow_winsymlinks'.
        * security.cc (cygwin_logon_user): Add debug output.
        * shortcut.c: Add defines from path.h.
        (has_exec_chars): Copy from path.h.
        (check_shortcut): Check for executable file condition if not a
        shortcut.

23 years agomerge from gcc
DJ Delorie [Fri, 2 Mar 2001 02:12:03 +0000 (02:12 +0000)]
merge from gcc

23 years ago* exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if
Christopher Faylor [Fri, 2 Mar 2001 02:09:40 +0000 (02:09 +0000)]
* exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if
started by non-cygwin parent.

23 years ago* select.cc (peek_console): Don't report read_ready on mouse events unless we
Christopher Faylor [Fri, 2 Mar 2001 01:55:21 +0000 (01:55 +0000)]
* select.cc (peek_console): Don't report read_ready on mouse events unless we
are looking for mouse events.
* fhandler.h (fhandler_console::mouse_aware): New method.

23 years ago2001-03-01 Earnie Boyd <earnie@users.sourceforge.net
Earnie Boyd [Thu, 1 Mar 2001 20:32:34 +0000 (20:32 +0000)]
2001-03-01  Earnie Boyd  <earnie@users.sourceforge.net

* Makefile.in: (snapshot): Add target.
* lib/Makefile.in: (install-headers): Use installdir variable.
(installdir): Set value based on target-alias.

23 years agonew defines for Coldfire V4.
Nick Clifton [Wed, 28 Feb 2001 23:47:10 +0000 (23:47 +0000)]
new defines for Coldfire V4.

23 years ago2001-02-28 Will Cohen <wcohen@redhat.com>
Jeff Johnston [Wed, 28 Feb 2001 18:41:57 +0000 (18:41 +0000)]
2001-02-28  Will Cohen  <wcohen@redhat.com>

        * src/libgloss/m68k/Makefile.in: Updated copyright and
         added rules to build simulator related libraries.
        (SIM_SCRIPTS): New variable.
        (SIM_LDFLAGS): New variable.
        (SIM_BSP): New variable.
        (SIM_CRT0): New variable.
        (SIM_OBJS): New variable.
        (SIM_TEST): New variable.
        (SIM_INSTALL): new variable.
        * src/libgloss/m68k/sim-abort.c: New file.
        * src/libgloss/m68k/sim-crt0.S: New file.
        * src/libgloss/m68k/sim-errno.c: New file.
        * src/libgloss/m68k/sim-funcs.c: New file.
        * src/libgloss/m68k/sim-inbyte.c: New file.
        * src/libgloss/m68k/sim-print.c: New file.
        * src/libgloss/m68k/sim-sbrk.c: New file.
        * src/libgloss/m68k/sim.ld: New file.
        * src/libgloss/m68k/simulator.S: New file.

23 years ago * uinfo.cc: Eliminate `#include <wchar.h>'.
Corinna Vinschen [Wed, 28 Feb 2001 14:14:03 +0000 (14:14 +0000)]
    * uinfo.cc: Eliminate `#include <wchar.h>'.

23 years ago2001-02-27 Philip Blundell <pb@futuretv.com>
Phil Blundell [Wed, 28 Feb 2001 10:11:36 +0000 (10:11 +0000)]
2001-02-27  Philip Blundell  <pb@futuretv.com>

* arm.h: Add new definitions from ARM document SWS ESPC 0003 B-01.
(EF_PIC, et al.): Rename to EF_ARM_xx.

23 years ago* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Determine
Egor Duda [Wed, 28 Feb 2001 09:59:54 +0000 (09:59 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Determine
drive geometry or partition size to allow seeking from the end of
raw floppy device. Don't allow positioning past the end of media or
to offsets bigger then max off_t.

23 years ago* fhandler.h (class fhandler_console): Make all variables that
Egor Duda [Tue, 27 Feb 2001 09:14:35 +0000 (09:14 +0000)]
* fhandler.h (class fhandler_console): Make all variables that
describe "state" of console to be members of fhandler_console.
default_color is now the color which is set when console recieves
reset command.
* fhandler_console.cc (fhandler_console::fhandler_console): Turn
mouse handling and raw keyboard mode off by default. Initialize
state information.
* fhandler.cc (fhandler_console::set_raw_win32_keyboard_mode): New
function.
* fhandler_console.cc (fhandler_console::set_default_attr): New
function. Reset console attributes to default values.
* fhandler_console.cc (fhandler_console::open): Reset attributes.
* fhandler_console.cc (fhandler_console::get_win32_attr): New function.
Calculate win32-style console attribute based on terminal attributes.
* fhandler_console.cc (fhandler_console::set_cursor_maybe): Use
member variable.
* fhandler_console.cc (fhandler_console::read): If in raw-win32
keyboard mode, encode win32 keyboard events in \033{x;y;z;t;u;wK
sequences.
* fhandler_console.cc (fhandler_console::dup): Copy all state
information to the dup()ed handle.
* fhandler_console.cc (fhandler_console::scroll_screen): Use current
fill-in attribute.
* fhandler_console.cc (fhandler_console::clear_screen): Ditto.
* fhandler_console.cc (fhandler_console::char_command): Check if we
saw '?' symbol by member variable. Set terminal attributes on \033[Xm
commands. \033[24m - turn off underline mode, \033[27m - turn off
reverse mode, \033[39m - restore default foreground color.
\033[49m - restore default background color. \033[2000h - turn on raw
keyboard mode, \033[2000l - turn off raw keyboard mode.
* fhandler_console.cc (fhandler_console::write): Set attribues to
default values on reset command.

23 years ago* times.cc (settimeofday): Replace function stub with working code.
Christopher Faylor [Mon, 26 Feb 2001 22:36:09 +0000 (22:36 +0000)]
* times.cc (settimeofday): Replace function stub with working code.

23 years ago * strace.cc (strace::vprntf): Move prntf functionality to this function
Corinna Vinschen [Mon, 26 Feb 2001 09:50:24 +0000 (09:50 +0000)]
    * strace.cc (strace::vprntf): Move prntf functionality to this function
        adding an va_list interface to strace.
        (strace::printf): Calls strace::vprntf now.
        (strace_printf): New function providing an extern "C" interface to
        trace output.
        * include/sys/strace.h: Make plain C clean.
        (class strace): Add `vprntf' method.

23 years ago * shortcut.c: Remove #include <sys/strace.h>.
Corinna Vinschen [Sun, 25 Feb 2001 23:14:52 +0000 (23:14 +0000)]
    * shortcut.c: Remove #include <sys/strace.h>.

23 years ago * path.cc (symlink): Add a ".lnk" suffix regardless. Add a comment.
Corinna Vinschen [Sun, 25 Feb 2001 09:34:00 +0000 (09:34 +0000)]
    * path.cc (symlink): Add a ".lnk" suffix regardless. Add a comment.

23 years ago * shortcut.c: Change symlink condition.
Corinna Vinschen [Sun, 25 Feb 2001 09:19:35 +0000 (09:19 +0000)]
    * shortcut.c: Change symlink condition.

23 years agoCYGWIN32 -> CYGWIN.
Christopher Faylor [Sat, 24 Feb 2001 23:25:30 +0000 (23:25 +0000)]
CYGWIN32 -> CYGWIN.

23 years ago * mmap.cc (fhandler_disk_file::mmap): Use `addr' correctly.
Corinna Vinschen [Fri, 23 Feb 2001 09:49:19 +0000 (09:49 +0000)]
    * mmap.cc (fhandler_disk_file::mmap): Use `addr' correctly.
* fhandler_mem.cc (fhandler_dev_mem::mmap): Ditto.

23 years ago2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 22 Feb 2001 22:26:34 +0000 (22:26 +0000)]
2001-02-22  Jeff Johnston <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Remove DJ Delorie's address because it is no
        longer valid.

23 years ago2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 22 Feb 2001 22:23:23 +0000 (22:23 +0000)]
2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>

        * mn10200/access.c: With DJ Delorie's permission, this code is
        now freely modifiable with no reference to "copying.dj".
        * mn10300/access.c: Ditto.

23 years ago2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 22 Feb 2001 22:12:43 +0000 (22:12 +0000)]
2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
        changed the copyright information to allow free modification of the
        file with no reference to "copying.dj".
        * libc/include/sys/stat-dj.h: Ditto.
        * libc/machine/i386/setjmp.S: Ditto.
        * libc/sys/h8300hms/sys/file.h: Ditto.
        * libc/sys/sysmec/access.c: Ditto.
        * libc/sys/sysnecv850/access.c: Ditto.
        * libc/stdio/mktemp.c: Fixed typo for the word copyright.
        * libc/stdlib/getenv_r.c: Ditto.
        * libc/stdlib/putenv_r.c: Ditto.
        * libc/stdlib/setenv_r.c: Ditto.
        * libc/stdlib/getenv.c: Removed DJ reference since any possible
        modifications will now be in the _r version of this file.
        * libc/stdlib/putenv.c: Ditto.
        * libc/stdlib/setenv.c: Ditto.
        * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
        valid.  Added a reference to DJ's web page that contains his address.
        * libc/sys/go32/*.s: Removed references to DJ's old address.
        * libc/sys/go32/*.c: Ditto.
        * libc/sys/go32/*.h: Ditto.
        * libc/sys/go32/*.S: Ditto.
        * libc/sys/go32/sys/*.h: Ditto.

23 years ago * path.cc (symlink): Keep relative paths relative in the DOS
Corinna Vinschen [Thu, 22 Feb 2001 16:26:13 +0000 (16:26 +0000)]
    * path.cc (symlink): Keep relative paths relative in the DOS
        path inside of a shortcut. If that's impossible or the target
        path is already absolute save an absolute path.

23 years ago * path.cc (symlink): Keep relative paths relative in the DOS
Corinna Vinschen [Thu, 22 Feb 2001 16:14:59 +0000 (16:14 +0000)]
    * path.cc (symlink): Keep relative paths relative in the DOS
        path inside of a shortcut. If that's impossible for some
        reason, save an absolute path.

23 years ago * cygerrno.h: Revert previous patch.
Corinna Vinschen [Thu, 22 Feb 2001 14:51:16 +0000 (14:51 +0000)]
    * cygerrno.h: Revert previous patch.
        * errno.cc: Ditto.
        * dir.cc: Eliminate `dir_suffixes'.
        (opendir): Remove usage of `dir_suffixes'.
        (rmdir): Ditto.
        * fhandler.cc (fhandler_disk_file::open): Remove usage of
        `inner_suffixes'.
        * path.cc: Rename `inner_suffixes' to `lnk_suffixes'.
        (path_conv::check): Remove usage of `inner_suffixes'.
        (symlink): Ditto.
        (symlink_info::check): Handle checking for `.lnk' in path_conv
        exclusively here.
        (chdir): Remove usage of `dir_suffixes'.
        * shortcut.c: Eliminate debug_printf lines.
        (check_shortcut): Don't set error except on failing ReadFile.
        * spawn.cc: Remove ".lnk" from `std_suffixes'.
        * syscalls.cc (_unlink): Remove usage of `inner_suffixes'.
        Remove ".lnk" from `stat_suffixes'.
        (_rename): Add check for renaming a symlink to keep the ".lnk"
        suffix after renaming.

23 years ago * shortcut.c: New file. Provides a C interface to reading of
Corinna Vinschen [Thu, 22 Feb 2001 12:56:36 +0000 (12:56 +0000)]
    * shortcut.c: New file. Provides a C interface to reading of
        Windows shortcuts to avoid compiler flag `-fvtable-thunks'.
        * shortcut.h: Ditto.
        * Makefile.in: Add shortcut.o to DLL_OFILES.
        * cygerrno.h: Provide a C interface to `geterrno_from_win_error' for
        using in shortcut.c.
        * errno.cc (geterrno_from_win_error): Define as extern "C".
        * path.cc (struct symlink_info): Remove methods `check_shortcut' and
        `check_sysfile'.
        (shortcut_header): Move to shortcut.c.
        (shortcut_initalized): Ditto.
        (create_shortcut_header): Ditto.
        (cmp_shortcut_header): Ditto.
        (symlink_info::check_shortcut): Ditto. Reorganize as a plain C function.
        (symlink_info::check_sysfile): Redefine as a global function using the
        same parameter list as `check_shortcut' for clearness.
        (symlink_info::check): Change parameter list for calls to
        `check_shortcut' and `check_sysfile'.

23 years ago * Makefile.common: Revert previous change.
Corinna Vinschen [Thu, 22 Feb 2001 12:37:32 +0000 (12:37 +0000)]
    * Makefile.common: Revert previous change.

23 years ago * fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when
Corinna Vinschen [Thu, 22 Feb 2001 11:06:25 +0000 (11:06 +0000)]
    * fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when
        resolving real_path.
        * path.cc (symlink): Ditto for win32_topath.

23 years ago2001-02-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 21 Feb 2001 23:11:06 +0000 (23:11 +0000)]
2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
        HAVE_FCNTL flag check.
        * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
        powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.

23 years agoAdd copyright year 2001
Corinna Vinschen [Wed, 21 Feb 2001 22:59:11 +0000 (22:59 +0000)]
Add copyright year 2001

23 years ago * Makefile.in: Add `-lshell32 -luuid' to link pass for new-cygwin1.dll.
Corinna Vinschen [Wed, 21 Feb 2001 21:49:37 +0000 (21:49 +0000)]
    * Makefile.in: Add `-lshell32 -luuid' to link pass for new-cygwin1.dll.
        * autoload.cc: Add LoadDLLinitfunc for ole32.dll.
        Add LoadDLLfuncEx statements for CoInitialize@4, CoUninitialize@0
        and CoCreateInstance@20.
        * dir.cc (dir_suffixes): New datastructure.
        (readdir): Check for R/O *.lnk files to hide the suffix.
        (opendir): Use `dir_suffixes' in path conversion.
        (rmdir): Ditto.
        * fhandler.cc (fhandler_disk_file::fstat): Add S_IFLNK flag
        before calling `get_file_attribute'. Take FILE_ATTRIBUTE_READONLY
        into account only if the file is no symlink.
        * path.cc (inner_suffixes): New datastructure.
        (SYMLINKATTR): Eliminated.
        (path_conv::check): Use `inner_suffixes' on inner path components.
        (shortcut_header): New global static variable.
        (shortcut_initalized): Ditto.
        (create_shortcut_header): New function.
        (cmp_shortcut_header): Ditto.
        (symlink): Create symlinks by creating windows shortcuts. Preserve
        the old code.
        (symlink_info::check_shortcut): New method.
        (symlink_info::check_sysfile): Ditto.
        (symlink_info::check): Check for shortcuts. Move code reading
        old system attribute symlinks into symlink_info::check_sysfile().
        (chdir): Use `dir_suffixes' in path conversion.
        * security.cc (get_file_attribute): Check for S_IFLNK flag.
        Force 0777 permissions then.
        * spawn.cc (std_suffixes): Add ".lnk" suffix.
        * syscalls.cc (_unlink): Use `inner_suffixes' in path conversion.
        Check for shortcut symlinks to eliminate R/O attribute before
        calling DeleteFile().
        (stat_suffixes): Add ".lnk" suffix.
        (stat_worker): Force 0777 permissions if file is a symlink.

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