]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years agohinfo -> dtable
Christopher Faylor [Fri, 18 Aug 2000 19:51:02 +0000 (19:51 +0000)]
hinfo -> dtable

23 years ago* dtable.cc (dtable::dup2): Extend fdtab if newfd is out of current
Corinna Vinschen [Fri, 18 Aug 2000 18:14:08 +0000 (18:14 +0000)]
* dtable.cc (dtable::dup2): Extend fdtab if newfd is out of current
allocated bounds.

23 years ago* config-ml.in (CC, CXX): Don't introduce a leading space.
Alexandre Oliva [Thu, 17 Aug 2000 15:18:39 +0000 (15:18 +0000)]
* config-ml.in (CC, CXX): Don't introduce a leading space.

23 years agoFix 3 DV bugs, and a few minor cleanups.
Jim Wilson [Wed, 16 Aug 2000 23:20:14 +0000 (23:20 +0000)]
Fix 3 DV bugs, and a few minor cleanups.
gas/
* config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
postincrement modified registers.  Handle IA64_OPND_R3_2 addl
source registers.
(note_register_values): Handle IA64_OPND_R3_2 operands.
gas/testsuite/
* gas/ia64/dv-raw-err.s: Add new tests for addl and postinc.
* gas/ia64/dv-raw-err.l: Likewise.
* gas/ia64/dv-waw-err.l: Update sed pattern.
* gas/ia64/opc-f.pl: Delete fpsub, and fpadd comment.
* gas/ia64/opc-f.s, gas/ia64/opc-f.d: Regenerate.
include/opcode/
* ia64.h (IA64_OPCODE_POSTINC): New.
opcodes/
* ia64-ic.tbl (pr-readers-nobr-nomovpr): Add addl, adds.  Delete
break, mov-immediate, nop.
* ia64-opc-f.c: Delete fpsub instructions.
* ia64-opc-m.c: Add POSTINC to all instructions with postincrement
address operand.  Rewrite using macros to avoid long lines.
* ia64-opc.h (POSTINC): Define.
* ia64-asmtab.c: Regenerate.

23 years ago* configure.in (libstdcxx_flags): Use
Alexandre Oliva [Wed, 16 Aug 2000 18:37:42 +0000 (18:37 +0000)]
* configure.in (libstdcxx_flags): Use
libstdc++-v3/src/libstdc++.INC.

23 years ago2000-08-16 Eric Fifer <efifer@sanwaint.com>
Jeff Johnston [Wed, 16 Aug 2000 18:30:40 +0000 (18:30 +0000)]
2000-08-16  Eric Fifer  <efifer@sanwaint.com>

        * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1

23 years ago2000-08-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 16 Aug 2000 17:29:23 +0000 (17:29 +0000)]
2000-08-15  H.J. Lu  <hjl@gnu.org>

* i386.h: Swap the Intel syntax "movsx"/"movzx" due to the
IgnoreSize change.

23 years ago* configure.in (libstdcxx_flags): Use libstdc++-v3/src/INCLUDES.
Alexandre Oliva [Tue, 15 Aug 2000 08:01:29 +0000 (08:01 +0000)]
* configure.in (libstdcxx_flags): Use libstdc++-v3/src/INCLUDES.

23 years agoAdd support for IA-64 specific elf header flags.
Jim Wilson [Mon, 14 Aug 2000 20:13:39 +0000 (20:13 +0000)]
Add support for IA-64 specific elf header flags.
bfd/
2000-08-14  Jim Wilson  <wilson@cygnus.com>
* elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
(elf64_ia64_print_private_bfd_data): Likewise.  Also handle
EF_IA_64_ABSOLUTE.
gas/
2000-08-14  Jim Wilson  <wilson@cygnus.com>
* config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
(md_parse_option):  Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
(md_begin): Change assignment to md.flag to OR in the new bit.
include/elf/
2000-08-14  Jim Wilson  <wilson@cygnus.com>
* elf/ia64.h (EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP,
EF_IA_64_NOFUNCDESC_CONS_GP, EF_IA_64_ABSOLUTE): Define.

23 years ago* mkvers.sh: Properly trap exit removal of temp file. Remove debugging
Christopher Faylor [Sat, 12 Aug 2000 05:48:51 +0000 (05:48 +0000)]
* mkvers.sh: Properly trap exit removal of temp file.  Remove debugging
statement.

23 years agoCorrect order in include files.
Christopher Faylor [Sat, 12 Aug 2000 05:47:12 +0000 (05:47 +0000)]
Correct order in include files.

23 years ago* poll.cc: Make winsup.h the first include file, re 2000-08-02 change.
Christopher Faylor [Sat, 12 Aug 2000 05:39:41 +0000 (05:39 +0000)]
* poll.cc: Make winsup.h the first include file, re 2000-08-02 change.

23 years ago* winsup.h: Split out dtable definitions into separate header file.
Christopher Faylor [Sat, 12 Aug 2000 05:35:42 +0000 (05:35 +0000)]
* winsup.h: Split out dtable definitions into separate header file.
* dtable.h: New file.
* sigproc.h: Eliminate pinfo.h usage here.  Use it in source files that need
it.

23 years ago* Makefile.in: Use dtable.o rather than hinfo.o.
Christopher Faylor [Sat, 12 Aug 2000 05:09:27 +0000 (05:09 +0000)]
* Makefile.in: Use dtable.o rather than hinfo.o.

23 years agoRename hinfo -> dtable. Name the former dtable array 'fdtab'.
Christopher Faylor [Sat, 12 Aug 2000 04:48:44 +0000 (04:48 +0000)]
Rename hinfo -> dtable.  Name the former dtable array 'fdtab'.

23 years ago * configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET,
Jason Merrill [Sat, 12 Aug 2000 00:49:39 +0000 (00:49 +0000)]
    * configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET,
        CXX_FOR_TARGET): Add -B$$r/gcc/ here.
        (FLAGS_FOR_TARGET): Not here.
        (CHILL_FOR_TARGET, CXX_FOR_TARGET): Don't check the list of languages.

23 years ago * poll.cc: Allow any descriptor and any number of descriptors.
Corinna Vinschen [Fri, 11 Aug 2000 20:34:24 +0000 (20:34 +0000)]
    * poll.cc: Allow any descriptor and any number of descriptors.
        Allocate fd_set struct sdynamically.

23 years agoFix premature use of fdtab.
Christopher Faylor [Fri, 11 Aug 2000 13:49:42 +0000 (13:49 +0000)]
Fix premature use of fdtab.

23 years ago * poll.cc: Add bounds checking for file descriptors. Return POLLNVAL
Corinna Vinschen [Fri, 11 Aug 2000 12:51:47 +0000 (12:51 +0000)]
    * poll.cc: Add bounds checking for file descriptors. Return POLLNVAL
        if fd is invalid. Return POLLERR for each valid fd if cygwin_select
        returned with error.
        include/sys/poll.h: Change POLLERR comment according to above change.

23 years ago* syslog.cc (syslog): Use a less malloc-intensive method for allocating the
Christopher Faylor [Fri, 11 Aug 2000 01:56:05 +0000 (01:56 +0000)]
* syslog.cc (syslog): Use a less malloc-intensive method for allocating the
buffer.  Also fix a buffer overrun.

23 years agoDJ is sole setup maintainer now.
Christopher Faylor [Thu, 10 Aug 2000 23:51:25 +0000 (23:51 +0000)]
DJ is sole setup maintainer now.

23 years agoChange comment.
Christopher Faylor [Thu, 10 Aug 2000 22:24:58 +0000 (22:24 +0000)]
Change comment.

23 years agocomment changes.
Christopher Faylor [Thu, 10 Aug 2000 22:22:09 +0000 (22:22 +0000)]
comment changes.

23 years agoMinor change.
Christopher Faylor [Thu, 10 Aug 2000 22:04:38 +0000 (22:04 +0000)]
Minor change.

23 years agoMinor change.
Christopher Faylor [Thu, 10 Aug 2000 22:02:41 +0000 (22:02 +0000)]
Minor change.

23 years agoMinor change.
Christopher Faylor [Thu, 10 Aug 2000 21:54:44 +0000 (21:54 +0000)]
Minor change.

23 years ago* winsup.h: Change strchr inline for strange gcc problem.
Christopher Faylor [Thu, 10 Aug 2000 19:33:54 +0000 (19:33 +0000)]
* winsup.h: Change strchr inline for strange gcc problem.
* select.cc (select_stuff::wait): Bounds check w4 array.

23 years ago* dir.cc (readdir): Ensure that errno is *only* set when we've run out of
Christopher Faylor [Thu, 10 Aug 2000 19:20:11 +0000 (19:20 +0000)]
* dir.cc (readdir): Ensure that errno is *only* set when we've run out of
filenames.
* fhandler.cc (fhandler_disk_file::fstat): Use modern method for saving errno,
making it effective for the whole function.

23 years agoRecode to clean up function prologues and epilogue and to allow the functions
Nick Clifton [Wed, 9 Aug 2000 21:55:54 +0000 (21:55 +0000)]
Recode to clean up function prologues and epilogue and to allow the functions
 to be used in a Thumb based toolchain.

23 years agogas:
Jason Eckhardt [Wed, 9 Aug 2000 03:33:41 +0000 (03:33 +0000)]
gas:
2000-08-08  Jason Eckhardt  <jle@cygnus.com>

* config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
(i860_fix_info): New enum.
(MD_APPLY_FIX3): Define.
(WORKING_DOT_WORD): Define.
(TC_HANDLES_FX_DONE): Define.
(DIFF_EXPR_OK): Define.
(LISTING_HEADER): Define.
(TARGET_FORMAT): Select target format based on endian flag.
(TARGET_BYTES_BIG_ENDIAN): Default to little endian.
(target_big_endian): Add external declaration.

* config/tc-i860.c: All existing code reworked completely. Other
new code shown below.
(SYNTAX_SVR4): Define.
(target_warn_expand): New variable.
(md_shortopts): Declare and define (-Qy, -Qn, and -V options).
(md_longopts): Declare and define with new options (-EL, -EB,
and -mwarn-expand).
(md_show_usage): New function.
(md_operand): New function.
(obtain_reloc_for_imm16): New function.
(md_apply_fix3): New function.
(tc_gen_reloc): New function.

include:
2000-08-08  Jason Eckhardt  <jle@cygnus.com>

* opcode/i860.h: Small formatting adjustments.

opcode:
2000-08-08  Jason Eckhardt  <jle@cygnus.com>

* i860-dis.c (print_br_address): Change third argument from int
to long.

bfd:
2000-08-08  Jason Eckhardt  <jle@cygnus.com>
* elf32-i860.c (elf32_i860_howto_table): Updated some fields.

23 years ago* select.cc (allocfd_set): Zero allocated fd_set.
Christopher Faylor [Wed, 9 Aug 2000 02:33:47 +0000 (02:33 +0000)]
* select.cc (allocfd_set): Zero allocated fd_set.
(cygwin_select): Move fd_set copying logic from ::wait to here.  Use common
return through sell.poll.
(select_stuff::wait): Just return success or failure and let caller fill in
fd_set.
* pinfo.h (pinfo): Eliminate self-referential pointer to sidbuf since pinfo
structure exists at random locations now.
* fork.cc (fork): Use 'use_psid' element to control when the psid is relevant.
* shared.cc (sec_user): Ditto.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (internal_getlogin): Ditto.
* syscall.cc (seteuid): Ditto.  Set use_psid element.

23 years ago* fhandler_serial.cc (tcsendbreak): "sleeptime" argument to usleep()
DJ Delorie [Tue, 8 Aug 2000 20:46:47 +0000 (20:46 +0000)]
* fhandler_serial.cc (tcsendbreak): "sleeptime" argument to usleep()
must be in units of microseconds, not milliseconds.

23 years ago* include/userenv.h: New header file.
Corinna Vinschen [Tue, 8 Aug 2000 20:00:35 +0000 (20:00 +0000)]
* include/userenv.h: New header file.
* lib/userenv.def: New stub for userenv.dll.

23 years ago2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 8 Aug 2000 19:01:02 +0000 (19:01 +0000)]
2000-08-08  Jeff Johnston <jjohnstn@redhat.com>

        * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
        so size of 0 results in nothing being written to string.
        Also fixed code so that when size is non-zero, there is only
        a maximum of size - 1 characters written to the array and
        a nul terminator is appended at the end.
        * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.

23 years ago* include/winuser.h: Correct PCWPSTRUCT typo.
Christopher Faylor [Tue, 8 Aug 2000 14:30:54 +0000 (14:30 +0000)]
* include/winuser.h: Correct PCWPSTRUCT typo.
(discovered by Axel Riese)

23 years agoRemove spurious CYGNUS LOCAL comments
Nick Clifton [Mon, 7 Aug 2000 18:54:49 +0000 (18:54 +0000)]
Remove spurious CYGNUS LOCAL comments

23 years ago* configure.in (FLAGS_FOR_TARGET): invert test for xgcc, should mean
DJ Delorie [Mon, 7 Aug 2000 15:02:09 +0000 (15:02 +0000)]
* configure.in (FLAGS_FOR_TARGET): invert test for xgcc, should mean
"if we're also building gcc, and it's a gcc that will run on the
build machine, we want to use its includes instead of the system's
default includes".

23 years ago* include/cygwin/cygwin_dll.h: Remove extraneous (and incorrect) declarations.
Christopher Faylor [Mon, 7 Aug 2000 04:13:34 +0000 (04:13 +0000)]
* include/cygwin/cygwin_dll.h: Remove extraneous (and incorrect) declarations.

23 years ago * avr.h (AVR_UNDEF_P, AVR_SKIP_P, AVR_DISP0_P): New macros.
Denis Chertykov [Sun, 6 Aug 2000 14:09:14 +0000 (14:09 +0000)]
* avr.h (AVR_UNDEF_P, AVR_SKIP_P, AVR_DISP0_P): New macros.
Move related opcodes closer to each other.
Minor changes in comments, list undefined opcodes.

23 years ago* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL
Christopher Faylor [Fri, 4 Aug 2000 04:04:46 +0000 (04:04 +0000)]
* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL
since we are already bounds checked by default.
* thread.cc (ResourceLocks::Lock): Streamline this function since it is called
a lot.
(ReleaseResourceLock): Ditto.

23 years ago* select.cc (fhandler_console::select_read): Call set_cursor_maybe since select
Christopher Faylor [Fri, 4 Aug 2000 01:33:33 +0000 (01:33 +0000)]
* select.cc (fhandler_console::select_read): Call set_cursor_maybe since select
may block and cursor may not be visible.
* select.cc (fhandler_console::select_write): Ditto.
* select.cc (fhandler_console::select_except): Ditto.

23 years ago* configure.in (libstdcxx_flags): Don't use `"'.
Alexandre Oliva [Thu, 3 Aug 2000 23:54:09 +0000 (23:54 +0000)]
* configure.in (libstdcxx_flags): Don't use `"'.

23 years ago* config-ml.in: Adjust multilib search paths to the
Alexandre Oliva [Thu, 3 Aug 2000 19:20:16 +0000 (19:20 +0000)]
* config-ml.in: Adjust multilib search paths to the
appropriate multilib tree.

23 years ago* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Set length field
Christopher Faylor [Thu, 3 Aug 2000 13:02:09 +0000 (13:02 +0000)]
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Set length field
correctly when "need_nl".

23 years ago* fork.cc (vfork): Store complete stack frame in vfork_save structure for later
Christopher Faylor [Thu, 3 Aug 2000 03:02:41 +0000 (03:02 +0000)]
* fork.cc (vfork): Store complete stack frame in vfork_save structure for later
recovery.
* spawn.cc (spawn_guts): Reorganize slightly to consolidate handling when there
is a CreateProcess error.
(_spawnve): Only longjmp back to vfork handling when a process has been
successfuly started.
* winsup.h (vfork_save): Extend to include frame info.  Remove obsolete cpplus
conditionals.

23 years ago* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Convert blanks to
Alexandre Oliva [Thu, 3 Aug 2000 02:22:11 +0000 (02:22 +0000)]
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Convert blanks to
commas in $LANGUAGES.

23 years agoadd winsup.h
DJ Delorie [Wed, 2 Aug 2000 20:13:18 +0000 (20:13 +0000)]
add winsup.h

23 years ago* strace.cc (strace::prntf): Make second argument the function name, rather
Christopher Faylor [Wed, 2 Aug 2000 19:26:01 +0000 (19:26 +0000)]
* strace.cc (strace::prntf): Make second argument the function name, rather
than use special format options.
(strace::vprntf): Ditto.
(getfunc): New function.
* include/sys/strace.h: Reflect above changes.
* smallprint.c (__small_vsprintf): Eliminate '%F' formatting.
* pinfo.cc (set_myself): Modify for new strace::prntf parameter.
* errno.cc (seterrno_from_win_error): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__release_output_mutex): Ditto.

23 years ago2000-08-01 Alexandre Oliva <aoliva@redhat.com>
DJ Delorie [Wed, 2 Aug 2000 18:56:20 +0000 (18:56 +0000)]
2000-08-01  Alexandre Oliva  <aoliva@redhat.com>

* configure.in (qCXX_FOR_TARGET): Use echo instead of expr.

2000-07-31  Alexandre Oliva  <aoliva@redhat.com>

* configure.in (qCXX_FOR_TARGET): Quote `&' characters in
CXX_FOR_TARGET for sed.

2000-07-30  Alexandre Oliva  <aoliva@redhat.com>

* configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET, CXX_FOR_TARGET):
Do not override if already set in the environment or in configure.
Don't duplicate $(FLAGS_FOR_TARGET) if it already appears in them.
(FLAGS_FOR_TARGET): Don't use host directories on Canadian crosses.

23 years ago* regexp/regexp.c: Add winsup.h.
Christopher Faylor [Wed, 2 Aug 2000 17:21:27 +0000 (17:21 +0000)]
* regexp/regexp.c: Add winsup.h.

23 years ago* winsup.h: take out protections of environ, errno, allow C use
DJ Delorie [Wed, 2 Aug 2000 16:28:18 +0000 (16:28 +0000)]
* winsup.h: take out protections of environ, errno, allow C use
* *.cc: put winsup.h before other headers (for __INSIDE_CYGWIN__);
use cur_environ() instead of just environ
* times.cc: remove import protections
* glob.c: add winsup.h
* localtime.c: ditto
* smallprint.c: ditto
* Makefile.in: don't __INSIDE_CYGWIN__ as it messes up profiling.

23 years ago* include/sys/strace.h: Fix strace definition.
Christopher Faylor [Wed, 2 Aug 2000 15:24:45 +0000 (15:24 +0000)]
* include/sys/strace.h: Fix strace definition.

23 years ago* strace.h: Add kludgy workarounds to avoid using deprecated methods for
Christopher Faylor [Wed, 2 Aug 2000 03:42:31 +0000 (03:42 +0000)]
* strace.h: Add kludgy workarounds to avoid using deprecated methods for
variable argument macros when possible.
* sigproc.cc: Throughout, use sigproc_printf rather than sip_printf.
* strace.cc (strace::prntf): Remove 'active' check, since callers are supposed
to ensure this.
(__system_printf): Remove.  Subsumed by strace::prntf.
* winsup.h: Define "NEW_MACRO_VARARGS" to indicate when to use new macro
varargs capability.

23 years ago* libc/include/sys/config.h: define __IMPORT appropriately
DJ Delorie [Tue, 1 Aug 2000 20:51:51 +0000 (20:51 +0000)]
* libc/include/sys/config.h: define __IMPORT appropriately
* libc/include/ctype.h (_ctype_): use __IMPORT
* libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
* libc/include/math.h (__mb_cur_max): ditto
* libc/include/time.h (_timezone, _daylight, _tzname): ditto
* libc/include/unctrl.h (__unctrl, __unctrllen): ditto
* libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
* libc/include/unistd.h (environ): ditto

23 years ago* passwd.c (main): Initialize oldpwd before beeing used.
Corinna Vinschen [Mon, 31 Jul 2000 13:35:39 +0000 (13:35 +0000)]
* passwd.c (main): Initialize oldpwd before beeing used.

23 years ago* fhandler_console.cc: Remove VK_DIVIDE detection.
Christopher Faylor [Sun, 30 Jul 2000 17:58:48 +0000 (17:58 +0000)]
* fhandler_console.cc: Remove VK_DIVIDE detection.
(get_nonascii_key): Simplify previous patch to return ascii char if it is
non-zero.  Add a second "temporary buffer" argument to help with thread safety.
* select.cc (peek_console): Pass a temporary buffer argument to
get_nonascii_key.

23 years agoFix formatting
Nick Clifton [Sat, 29 Jul 2000 19:37:30 +0000 (19:37 +0000)]
Fix formatting
Add copyright notice

23 years ago* fhandler_console.cc: Add VK_DIVIDE detection. Return virtual keycode if it
Christopher Faylor [Sat, 29 Jul 2000 19:07:15 +0000 (19:07 +0000)]
* fhandler_console.cc: Add VK_DIVIDE detection.  Return virtual keycode if it
is not detected and it is less than ' '.

23 years ago* path.cc (chdir): Avoid trailing dot calculation when chdir == '/' or we end
Christopher Faylor [Sat, 29 Jul 2000 17:36:05 +0000 (17:36 +0000)]
* path.cc (chdir): Avoid trailing dot calculation when chdir == '/' or we end
up with an empty string.

23 years ago* kill.cc (main): Add '-f' option to force termination of a process.
Christopher Faylor [Sat, 29 Jul 2000 16:26:37 +0000 (16:26 +0000)]
* kill.cc (main): Add '-f' option to force termination of a process.
(forcekill): New function.
* ps.cc (main): Add '-W' option to list Windows pids as well as Cygwin pids.
(dummyprocessmodules): New function.
(GetModuleFileNameEx95): New function.
(init_win): New function.
(to_time_t): New function.

23 years ago* include/cygwin/version.h: Bump DLL minor version number to 5 due to all of
Christopher Faylor [Sat, 29 Jul 2000 16:24:59 +0000 (16:24 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 5 due to all of
the changes below.  Redefine process structure to avoid a fixed size table.
Redefine pinfo/_pinfo classes.  Use these throughout.
* dcrt0.cc (dll_crt0_1): Accomodate set_myself argument change.
(__api_fatal): Accomodate _pinfo::record_death argument change.
* exceptions.cc (really_exit): Ditto.
(sig_handle_tty_stop): Use pinfo constructor to access process info.
(events_init): Don't create pinfo_mutex since it is no longer required.
* external.cc (fillout_pinfo): Use winpids class to iterate over all system
pids.
(cygwin_internal): lock_pinfo_for_update and unlock_pinfo are now noops.
* fhandler_termios.cc (fhandler_termios::set_ctty): Use pinfo constructor to
access process info.
* fork.cc (fork): Reorganize to initialize child info after the child has
started since that is when we know the child's winpid, which is necessary to
allocate the pinfo shared memory.
* mmap.cc (recreate_mmaps_after_fork): Change arg type to _pinfo.
* pinfo.cc: Rename pinfo methods to _pinfo throughout.  Eliminate pinfo_list
stuff.
(set_myself): Accept a pid argument now.  Call pinfo initializer to initialize
myself.  Detect when this is an "execed" process and create an "indirect" pid
block.
(pinfo_init): Accomodate set_myself arg change.
(procinfo): Remove.
(pinfo::lock_pinfo): Remove.
(pinfo::unlock_pinfo): Remove.
(pinfo::init): New method.  Allocates shared memory space for process pinfo
structure.
(pinfo::record_death): Don't call locking functions.
(cygwin_winpid_to_pid): Simplify by using new pinfo constructor.
(EnumProcessesW95): New function for iterating over processes on Windows 95.
(winpids::winpids): New constructor for winpids class.  Sets up a list of
process ids.
(enum_init): Initialize w95/wnt pid enumerators.
* shared.cc (shared-info::initialize): Remove pid initialization.
* shared.h: Move pinfo stuff into pinfo.h.
(class shared_info): Remove pinfo_list element.
* signal.cc (kill_worker): Use pinfo constructor to access process info.
(kill_pgrp): Ditto.  Use winpids methods to access list of processes.
* sigproc.cc: Throughout, modify to use _pinfo where appropriate.
(proc_exists (pid_t)): New function.  Determines if a process exists based on
the pid.
(proc_exists (_pinfo *p): Use new proc_exists function above.
(proc_subproc): Copy pinfo stuff around rather than _pinfo pointers.  Try to be
careful about releasing shared memory when we don't need it anymore.  Remove
pinfo locks.
(remove_zombies): Remove pinfo memory when zombie is going away.
* sigproc.h: Reflect _pinfo/pinfo changes in sigproc.cc.
* spawn.cc (spawn_guts): Eliminate pinfo *child argument.  Reorganize to only
initialize child pinfo after process has been started and we know the windows
pid.
(_spawnve): Reflect spawn_guts changes.
* syscalls.cc (setpgid): Use pinfo constructor to access process info.
(getpgid): Ditto.
(internal_getlogin): Use _pinfo.
* winsup.h: Eliminate pinfo_mutex.  Eliminate spawn_guts declaration since it
is static now.  Reflect set_myself argument change.
* include/sys/cygwin.h: Add some PID_* enums to accomodate new pinfo stuff.
* include/cygwin/version.h: Update minor version for cygdrive changes below.

23 years ago* environ.cc (parse_thing): Make binmode a DWORD.
Christopher Faylor [Sat, 29 Jul 2000 16:01:23 +0000 (16:01 +0000)]
* environ.cc (parse_thing): Make binmode a DWORD.
* hinfo.cc (hinfo::init_std_file_from_handle): Use 'binmode' to determine
default open mode.
* winsup.h: Declare binmode.

23 years ago* include/cygwin/cygwin_dll.h: Update for modern compilers.
Christopher Faylor [Sat, 29 Jul 2000 04:19:24 +0000 (04:19 +0000)]
* include/cygwin/cygwin_dll.h: Update for modern compilers.
* lib/cygwin_crt0.c: Inexplicably need to define alloca for newer compilers.
* fhandler.h (fhandler_console): Add new method.
* fhandler.cc (fhandler_console::set_cursor_maybe): New method.
(fhandler_console::read): Set cursor if it has moved to make it visible.

23 years agoMinor formatting change.
Christopher Faylor [Fri, 28 Jul 2000 23:21:04 +0000 (23:21 +0000)]
Minor formatting change.

23 years agoFix typo.
Christopher Faylor [Fri, 28 Jul 2000 22:37:23 +0000 (22:37 +0000)]
Fix typo.

23 years ago* utils/mount.cc (main): Add --show-cygdrive-prefixes option.
Christopher Faylor [Fri, 28 Jul 2000 22:34:24 +0000 (22:34 +0000)]
* utils/mount.cc (main): Add --show-cygdrive-prefixes option.
(show_cygdrive_prefixes): New function.
* utils/umount.cc (main): Add --remove-cygdrive-prefix option.
(error): Change signature from 'char *' to 'const char *'.
(remove_cygdrive_prefix): New function.

23 years ago* dcrt0.cc (dummy_autoload): Add load statement for RegDeleteValueA.
Christopher Faylor [Fri, 28 Jul 2000 22:33:43 +0000 (22:33 +0000)]
* dcrt0.cc (dummy_autoload): Add load statement for RegDeleteValueA.
* external.cc (get_cygdrive_prefixes): New function.
(cygwin_internal): Add CW_GET_CYGDRIVE_PREFIXES case.
* path.cc (mount_info::read_cygdrive_info_from_registry): Read system cygdrive
prefix if user one is undefined.
(mount_info::write_cygdrive_info_to_registry): Write cygdrive prefix to the
appropriate registry hive.  Overwrite in-memory copy of cygdrive, if
appropriate.
(mount_info::remove_cygdrive_info_from_registry): New method.
(mount_info::get_cygdrive_prefixes): New method.
(cygwin_umount): Remove cygdrive prefix, if appropriate.
* registry.cc (reg_key::killvalue): New method.
* shared.h (class reg_key): Add killvalue, remove_cygdrive_info_to_registry,
and get_cygdrive_prefixes declarations.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_CYGDRIVE_PREFIXES.

23 years ago2000-07-22 Jason Eckhardt <jle@cygnus.com>
Jason Eckhardt [Fri, 28 Jul 2000 21:16:11 +0000 (21:16 +0000)]
2000-07-22  Jason Eckhardt  <jle@cygnus.com>

* opcode/i860.h (btne, bte, bla): Changed these opcodes
to use sbroff ('r') instead of split16 ('s').
(J, K, L, M): New operand types for 16-bit aligned fields.
(ld.x, {p}fld.x, fst.x, pst.d): Changed these opcodes to
use I, J, K, L, M instead of just I.
(T, U): New operand types for split 16-bit aligned fields.
(st.x): Changed these opcodes to use S, T, U instead of just S.
(andh, andnoth, orh, xorh): Deleted 3-register forms as they do not
exist on the i860.
(pfgt.sd, pfle.sd): Deleted these as they do not exist on the i860.
(pfeq.ss, pfeq.dd): New opcodes.
(st.s): Fixed incorrect mask bits.
(fmlow): Fixed incorrect mask bits.
(fzchkl, pfzchkl): Fixed incorrect mask bits.
(faddz, pfaddz): Fixed incorrect mask bits.
(form, pform): Fixed incorrect mask bits.
(pfld.l): Fixed incorrect mask bits.
(fst.q): Fixed incorrect mask bits.
(all floating point opcodes): Fixed incorrect mask bits for
handling of dual bit.

* elf/i860.h: New file.
(elf_i860_reloc_type): Defined ELF32 i860 relocations.

* dis-asm.h (print_insn_i860): Add prototype.

23 years ago2000-07-22 Jason Eckhardt <jle@cygnus.com>
Jason Eckhardt [Fri, 28 Jul 2000 21:10:20 +0000 (21:10 +0000)]
2000-07-22  Jason Eckhardt  <jle@cygnus.com>

* include/opcode/i860.h (btne, bte, bla): Changed these opcodes
to use sbroff ('r') instead of split16 ('s').
(J, K, L, M): New operand types for 16-bit aligned fields.
(ld.x, {p}fld.x, fst.x, pst.d): Changed these opcodes to
use I, J, K, L, M instead of just I.
(T, U): New operand types for split 16-bit aligned fields.
(st.x): Changed these opcodes to use S, T, U instead of just S.
(andh, andnoth, orh, xorh): Deleted 3-register forms as they do not
exist on the i860.
(pfgt.sd, pfle.sd): Deleted these as they do not exist on the i860.
(pfeq.ss, pfeq.dd): New opcodes.
(st.s): Fixed incorrect mask bits.
(fmlow): Fixed incorrect mask bits.
(fzchkl, pfzchkl): Fixed incorrect mask bits.
(faddz, pfaddz): Fixed incorrect mask bits.
(form, pform): Fixed incorrect mask bits.
(pfld.l): Fixed incorrect mask bits.
(fst.q): Fixed incorrect mask bits.
(all floating point opcodes): Fixed incorrect mask bits for
handling of dual bit.

* include/elf/i860.h: New file.
(elf_i860_reloc_type): Defined ELF32 i860 relocations.

* bfd/cpu-i860.c: Added comments.

* bfd/elf32-i860.c (TARGET_LITTLE_SYM): Defined to
bfd_elf32_i860_little_vec.
(TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
(ELF_MAXPAGESIZE): Changed to 4096.

* bfd/targets.c (bfd_elf32_i860_little_vec): Declaration of
new target.
(bfd_target_vector): Added bfd_elf32_i860_little_vec.

* bfd/config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
config for little endian elf32 i860.
(targ_defvec): Define for the new config above
as "bfd_elf32_i860_little_vec".
(targ_selvecs): Define for the new config above
as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"

* bfd/configure.in (bfd_elf32_i860_little_vec): Added recognition
of new target vec.

* bfd/configure: Regenerated.

* opcodes/i860-dis.c: New file.
(print_insn_i860): New function.
(print_br_address): New function.
(sign_extend): New function.
(BITWISE_OP): New macro.
(I860_REG_PREFIX): New macro.
(grnames, frnames, crnames): New structures.

* opcodes/disassemble.c (ARCH_i860): Define.
(disassembler): Add check for bfd_arch_i860 to set disassemble
function to print_insn_i860.

* include/dis-asm.h (print_insn_i860): Add prototype.

* opcodes/Makefile.in (CFILES): Added i860-dis.c.
(ALL_MACHINES): Added i860-dis.lo.
(i860-dis.lo): New dependences.

* opcodes/configure.in: New bits for bfd_i860_arch.

* opcodes/configure: Regenerated.

23 years agoDeclare __infinity as an array to work around problems with small data support
Michael Meissner [Fri, 28 Jul 2000 16:27:55 +0000 (16:27 +0000)]
Declare __infinity as an array to work around problems with small data support

23 years ago* s/sourceware.cygnus.com/sources.redhat.com/ throughout
Frank Ch. Eigler [Fri, 28 Jul 2000 10:09:30 +0000 (10:09 +0000)]
* s/sourceware.cygnus.com/sources.redhat.com/ throughout
* added cgen/

23 years ago* include/cygwin/version.h: Bump DLL minor version number to 4.
Christopher Faylor [Fri, 28 Jul 2000 03:35:52 +0000 (03:35 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 4.

23 years ago* Makefile.in (FLAGS_FOR_TARGET): New macro.
Alexandre Oliva [Fri, 28 Jul 2000 02:10:36 +0000 (02:10 +0000)]
* Makefile.in (FLAGS_FOR_TARGET): New macro.
(GCC_FOR_TARGET): Use it.
(CC_FOR_TARGET, CXX_FOR_TARGET, CHILL_FOR_TARGET): Now defined...
* configure.in: ... here.
(FLAGS_FOR_TARGET): Define.  Add ld build dir to -L path.
(libstdcxx_flags): Define and append to CXX_FOR_TARGET.

24 years agoRemove obsolete entries:
David Starks-Browning [Thu, 27 Jul 2000 22:06:27 +0000 (22:06 +0000)]
Remove obsolete entries:
 - 'Why is gcc failing'
 - 'Why can't bison find bison.simple or bison.hairy?'
Remove disclaimer from up-to-date entries (possibly with some minor changes):
 - 'How is fork() implemented?'
 - 'How do symbolic links work?'
 - 'How do I compile a Win32 executable that doesn't use Cygwin?'
 - 'How do I make the console window go away?'
 - 'Why does make complain about a "missing separator"?'
 - 'Why can't we redistribute Microsoft's Win32 headers?'
 - 'How can I debug what's going on?'
 - 'Can I use a system trace mechanism instead?'
 - 'Can I use the gdb debugger to debug programs built by VC++?'
 - 'Where can I find info on x86 assembly?'
 - 'Why not use DJGPP?'

24 years agoEntry 'How do anti-virus programs like Cygwin?': Remove disclaimer; hanging
David Starks-Browning [Thu, 27 Jul 2000 21:29:19 +0000 (21:29 +0000)]
Entry 'How do anti-virus programs like Cygwin?': Remove disclaimer; hanging
when unpacking tar.gz archives.

24 years agoEntry 'How should I set my PATH?': Don't omit Windows system directories.
David Starks-Browning [Thu, 27 Jul 2000 21:13:16 +0000 (21:13 +0000)]
Entry 'How should I set my PATH?':  Don't omit Windows system directories.

24 years agoAdded missing ChangeLog entry.
Corinna Vinschen [Thu, 27 Jul 2000 18:30:57 +0000 (18:30 +0000)]
Added missing ChangeLog entry.

24 years ago* testsuite/winsup.api/winsup.exp: ignore stdout by default
DJ Delorie [Thu, 27 Jul 2000 17:30:51 +0000 (17:30 +0000)]
* testsuite/winsup.api/winsup.exp: ignore stdout by default
* testsuite/winsup.api/crlf.c: non-verbose by default

* winsup.h: prune out windows headers we don't normally need
* assert.cc: add wingdi.h and winuser.h
* fhandler_console.cc: ditto
* fhandler_windows.cc: ditto
* select.cc: ditto
* spawn.cc: ditto
* strace.cc: ditto
* tty.cc: ditto
* window.cc: ditto
* hinfo.cc: add winsock.h
* syscalls.cc: add winnls.h
* uinfo.cc: ditto

* include/windows.h: optimize non-inclusion of repeat headers

24 years ago* libc/include/math.h: Use appropriate dll import linkage for Cygwin.
Christopher Faylor [Thu, 27 Jul 2000 14:49:09 +0000 (14:49 +0000)]
* libc/include/math.h: Use appropriate dll import linkage for Cygwin.

24 years ago* fhandler.cc (fhandler_disk_file::fstat): Allow block calculation to succeed
Christopher Faylor [Thu, 27 Jul 2000 14:26:03 +0000 (14:26 +0000)]
* fhandler.cc (fhandler_disk_file::fstat): Allow block calculation to succeed
for files >= 2GB and <= 4GB.

24 years agoClarify texinfo/
Andrew Cagney [Thu, 27 Jul 2000 07:12:00 +0000 (07:12 +0000)]
Clarify texinfo/

24 years agofix typo.
Christopher Faylor [Thu, 27 Jul 2000 03:05:38 +0000 (03:05 +0000)]
fix typo.

24 years ago2000-07-26 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 26 Jul 2000 22:44:42 +0000 (22:44 +0000)]
2000-07-26  Dave Brolley  <brolley@redhat.com>

* cgen.h (cgen_hw_lookup_by_num): Second parameter is unsigned.

24 years agoGive signal_exit noreturn attribute.
Christopher Faylor [Wed, 26 Jul 2000 20:36:19 +0000 (20:36 +0000)]
Give signal_exit noreturn attribute.

24 years ago* exceptions.cc (signal_exit): Renamed from "really+exit". Always sets
Christopher Faylor [Wed, 26 Jul 2000 20:13:27 +0000 (20:13 +0000)]
* exceptions.cc (signal_exit): Renamed from "really+exit".  Always sets
EXIT_SIGNAL bit and reorganizes exit value for backwards cygwin handling.
(handle_exceptions): Call signal_exit.  Set "core dumped" bit.
(sig_handle): Call signal_exit.  Set "core dumped" bit appropriately.

24 years ago * environ.cc (posify): Revert previous patch.
Corinna Vinschen [Wed, 26 Jul 2000 18:51:14 +0000 (18:51 +0000)]
    * environ.cc (posify): Revert previous patch.
        (_addenv): Remove check_null_empty_path from here.
        (putenv): Call check_nullempty_path.
        (setenv): Call check_nullempty_path for name as well here.
        Don't report an error if value is empty string.
        (environ_init): Revert usage of newp.

24 years ago* syscalls.cc (stat_worker): Make stat return correct st_blocks for files with
Christopher Faylor [Wed, 26 Jul 2000 17:48:49 +0000 (17:48 +0000)]
* syscalls.cc (stat_worker): Make stat return correct st_blocks for files with
size bigger than 2Gb and less than 4Gb

24 years ago * security.cc (lookup_name): Search on local machine first if
Corinna Vinschen [Wed, 26 Jul 2000 15:44:58 +0000 (15:44 +0000)]
    * security.cc (lookup_name): Search on local machine first if
        myself->domain is not empty.

24 years ago* fhandler_console.cc (fhandler_console::read): Explicitly set cursor to make
Christopher Faylor [Wed, 26 Jul 2000 13:59:23 +0000 (13:59 +0000)]
* fhandler_console.cc (fhandler_console::read): Explicitly set cursor to make
it visible while waiting in WaitForMultipleObjects.

24 years agoAdd missing ChangeLog entry.
Christopher Faylor [Wed, 26 Jul 2000 13:42:01 +0000 (13:42 +0000)]
Add missing ChangeLog entry.

24 years ago * passwd.cc: Change name of passwd_in_memory_p to passwd_state.
Corinna Vinschen [Wed, 26 Jul 2000 11:48:38 +0000 (11:48 +0000)]
    * passwd.cc: Change name of passwd_in_memory_p to passwd_state.
        Change type to enum. Change storage class to static. Adjust comments.
        (read_etc_passwd): Set passwd_state to different values when loaded
        from file in contrast to being emulated.
        (search_for): Return default passwd entry if passwd is emulated or
        it's a request for the current user. Otherwise return NULL.

24 years ago* syscalls.cc (statfs): Use path_conv method to convert input path.
Christopher Faylor [Wed, 26 Jul 2000 01:56:48 +0000 (01:56 +0000)]
* syscalls.cc (statfs): Use path_conv method to convert input path.

24 years ago* syscalls.cc (_link): Avoid extraneous call to cygwin_conv_to_win32_path.
Christopher Faylor [Wed, 26 Jul 2000 01:44:16 +0000 (01:44 +0000)]
* syscalls.cc (_link): Avoid extraneous call to cygwin_conv_to_win32_path.

24 years agoNew entry (Programming Questions): 'Why doesn't gdb handle signals?'
David Starks-Browning [Tue, 25 Jul 2000 21:35:08 +0000 (21:35 +0000)]
New entry (Programming Questions):  'Why doesn't gdb handle signals?'

24 years agoEntry 'Is the Cygwin library multi-thread-safe?': Update for latest release.
David Starks-Browning [Tue, 25 Jul 2000 21:16:44 +0000 (21:16 +0000)]
Entry 'Is the Cygwin library multi-thread-safe?':  Update for latest release.

24 years agoEntry 'Are mixed-case filenames possible with Cygwin?': Expand slightly,
David Starks-Browning [Tue, 25 Jul 2000 20:49:59 +0000 (20:49 +0000)]
Entry 'Are mixed-case filenames possible with Cygwin?':  Expand slightly,
add reference to coolview.

24 years agoNew entry (Cygwin API Questions): 'Is there a mouse interface?' -- No.
David Starks-Browning [Tue, 25 Jul 2000 20:13:38 +0000 (20:13 +0000)]
New entry (Cygwin API Questions): 'Is there a mouse interface?' -- No.

24 years agoEntry 'Can I use my own malloc?': Add warning about _malloc_r from newlib.
David Starks-Browning [Tue, 25 Jul 2000 19:50:31 +0000 (19:50 +0000)]
Entry 'Can I use my own malloc?':  Add warning about _malloc_r from newlib.

24 years agoEntry 'Is it OK to have multiple copies of the DLL?':
David Starks-Browning [Tue, 25 Jul 2000 19:17:31 +0000 (19:17 +0000)]
Entry 'Is it OK to have multiple copies of the DLL?':
Emphasise that no, it's not OK.

24 years agoChanged 'sourceware.cygnus.com' to 'sources.redhat.com' in the FAQ, where appropriate.
David Starks-Browning [Tue, 25 Jul 2000 19:00:29 +0000 (19:00 +0000)]
Changed 'sourceware.cygnus.com' to 'sources.redhat.com' in the FAQ, where appropriate.

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