]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
18 years ago * include/objidl.h (PIDSI_*): Define.
Dimitri Papadopoulos [Wed, 5 Apr 2006 14:16:17 +0000 (14:16 +0000)]
* include/objidl.h (PIDSI_*): Define.
(PRSPEC_*): Define.
Thanks to:    Oliver Stoeneberg <kidkat at users dot sf dot net>

18 years ago * include/winbase.h (LOGON32_PROVIDER_WINNT40,
Dimitri Papadopoulos [Wed, 5 Apr 2006 13:53:14 +0000 (13:53 +0000)]
* include/winbase.h (LOGON32_PROVIDER_WINNT40,
LOGON32_PROVIDER_WINNT50, LOGON32_LOGON_NETWORK,
LOGON32_LOGON_UNLOCK, LOGON32_LOGON_NETWORK_CLEARTEXT,
LOGON32_LOGON_NEW_CREDENTIALS): Define.
Thanks to:    Oliver Stoeneberg <kidkat at users dot sf dot net>

18 years ago * include/mq.h: New file.
Dimitri Papadopoulos [Wed, 5 Apr 2006 10:01:56 +0000 (10:01 +0000)]
* include/mq.h: New file.
* lib/mqrt.def: (MQ*): Define a few missing functions.

18 years ago * lib/mqrt.def: New file.
Dimitri Papadopoulos [Wed, 5 Apr 2006 07:23:14 +0000 (07:23 +0000)]
* lib/mqrt.def: New file.
Needs the mq.h file to work properly, working on it.
Thanks to:    Pascal Obry <pobry at users dot sf dot net>

18 years ago * include/winerror.h (STG_E_*): Define.
Dimitri Papadopoulos [Wed, 5 Apr 2006 07:06:06 +0000 (07:06 +0000)]
* include/winerror.h (STG_E_*):  Define.
Thanks to:    Oliver Stoeneberg <kidkat at users dot sf dot net>
* include/winerror.h (STG_S_*): Define.
(CO_S_MACHINENAMENOTFOUND): Define.
(RPC_E_*): Define.
(NTE_*): Define.

18 years agofaq.using.chmod faq.programming.adjusting-heap
Joshua Daniel Franklin [Wed, 5 Apr 2006 04:09:55 +0000 (04:09 +0000)]
faq.using.chmod faq.programming.adjusting-heap

18 years ago * net.cc (fdsock): Raise default SO_RCVBUF/SO_SNDBUF buffer sizes to
Corinna Vinschen [Tue, 4 Apr 2006 09:54:25 +0000 (09:54 +0000)]
* net.cc (fdsock): Raise default SO_RCVBUF/SO_SNDBUF buffer sizes to
the same values as on Linux.

18 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
Christopher Faylor [Mon, 3 Apr 2006 17:33:07 +0000 (17:33 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
(child_info_fork::alloc_stack): Move into this class.
(child_info_fork::alloc_stack_hard_way): Ditto.
* dcrt0.cc (child_info_fork::alloc_stack): Ditto.
(child_info_fork::alloc_stack_hard_way): Ditto.
(_dll_crt0): Reference alloc_stack via fork_info.

18 years ago * spawn.cc (linebuf::finish): Drop argument. Don't check command line
Corinna Vinschen [Mon, 3 Apr 2006 17:21:42 +0000 (17:21 +0000)]
* spawn.cc (linebuf::finish): Drop argument.  Don't check command line
length.
(spawn_guts): Remove wascygexec.  Check real_path.iscygexec instead.
Accommodate change to linebuf::finish.

18 years ago* dcrt0.cc (sm): Delete.
Christopher Faylor [Mon, 3 Apr 2006 16:04:02 +0000 (16:04 +0000)]
* dcrt0.cc (sm): Delete.
(alloc_stack_hard_way): Figure out where the stack lives here rather than
relying on previously filled out information which has been invalid since
1.5.19.

18 years ago * include/commctrl.h (ListView_*): Define and correct.
Dimitri Papadopoulos [Mon, 3 Apr 2006 13:01:26 +0000 (13:01 +0000)]
* include/commctrl.h (ListView_*):  Define and correct.
(LVM_*): Define.

18 years ago * include/winuser.h (WM_IME_*): Define (DWORD type).
Dimitri Papadopoulos [Mon, 3 Apr 2006 09:55:26 +0000 (09:55 +0000)]
* include/winuser.h (WM_IME_*): Define (DWORD type).
(EM_*IMESTATUS): Define.
(WM_*): Define.
(XBUTTON*): Define.
Thanks to:    Steve Folly <spfolly at users dot sf dot net>

18 years ago* cygwinenv.sgml: Rename fork_retry to proc_retry since it has turned out to be
Christopher Faylor [Mon, 3 Apr 2006 03:37:52 +0000 (03:37 +0000)]
* cygwinenv.sgml: Rename fork_retry to proc_retry since it has turned out to be
more general than just fork.

18 years ago * fhandler_disk_file.cc (FS_IS_SAMBA_WITH_QUOTA): New define.
Corinna Vinschen [Fri, 31 Mar 2006 20:07:13 +0000 (20:07 +0000)]
* fhandler_disk_file.cc (FS_IS_SAMBA_WITH_QUOTA): New define.
(path_conv::hasgood_inode): Recognize Samba with quota support
compiled in.
(path_conv::is_samba): Ditto.  Fix comment to include Samba version
numbers for later reference.

18 years ago * include/winnetwk.h (WNetGetResourceInformationW): Correct first param.
Danny Smith [Fri, 31 Mar 2006 09:08:47 +0000 (09:08 +0000)]
* include/winnetwk.h (WNetGetResourceInformationW):  Correct first param.
Thanks to: Rene Rivera  <grafik at users dot sf dot net>.

18 years ago PR binutils/1860
Ben Elliston [Fri, 31 Mar 2006 02:32:20 +0000 (02:32 +0000)]
PR binutils/1860
* configure.in: Require makeinfo 4.4 or higher.
* configure: Regenerate.

18 years ago * security.h (sec_user_nih): Make sid1 argument mandatory.
Corinna Vinschen [Thu, 30 Mar 2006 16:08:50 +0000 (16:08 +0000)]
* security.h (sec_user_nih): Make sid1 argument mandatory.
(sec_user): Ditto.

18 years ago* include/winspool.h: Protect use of PRINTER_ENUM_VALUESW with proper version
Christopher Faylor [Thu, 30 Mar 2006 04:01:43 +0000 (04:01 +0000)]
* include/winspool.h: Protect use of PRINTER_ENUM_VALUESW with proper version
conditional.

18 years ago* sigproc.cc (wait_for_sigthread): Use the current user sid when setting up the
Christopher Faylor [Thu, 30 Mar 2006 00:57:59 +0000 (00:57 +0000)]
* sigproc.cc (wait_for_sigthread): Use the current user sid when setting up the
signal pipe rather than relying on (eventually) the effective sid.

18 years ago2006-03-29 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 29 Mar 2006 22:38:46 +0000 (22:38 +0000)]
2006-03-29  Shaun Jackman  <sjackman@gmail.com>

        * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
        for the declaration of n_long.

18 years ago2006-03-29 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 29 Mar 2006 22:23:00 +0000 (22:23 +0000)]
2006-03-29  Shaun Jackman  <sjackman@gmail.com>

        * libc/sys/linux/include/net/if.h: Include sys/socket.h for
        struct sockaddr.
        (IFF_SMART): Replace this define with IFF_NOTRAILERS.
        (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
        (IFF_NOTRAILERS): New define.
        (struct ifreq): Add ifru_netmask.
        (ifr_netmask): New define.

18 years ago2006-03-29 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 29 Mar 2006 22:09:56 +0000 (22:09 +0000)]
2006-03-29  Shaun Jackman  <sjackman@gmail.com>

        * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
        match sys/ioctl.h.

18 years ago2006-03-29 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 29 Mar 2006 22:04:27 +0000 (22:04 +0000)]
2006-03-29  Shaun Jackman  <sjackman@gmail.com>

        * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
        linux-newlib libc implementations.

18 years ago2006-03-29 Eric Blake <ebb9@byu.net>
Jeff Johnston [Wed, 29 Mar 2006 21:57:21 +0000 (21:57 +0000)]
2006-03-29  Eric Blake  <ebb9@byu.net>

        * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
        * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.

18 years agoFix reference to __mknod syscall to pass proper third argument.
Jeff Johnston [Wed, 29 Mar 2006 21:50:52 +0000 (21:50 +0000)]
Fix reference to __mknod syscall to pass proper third argument.

18 years ago2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Mar 2006 21:49:58 +0000 (21:49 +0000)]
2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/io.c (__mknod): Fix declaration of
        syscall to pass a dev_t as third argument rather than
        a pointer to dev_t.

18 years ago2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Mar 2006 21:45:17 +0000 (21:45 +0000)]
2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/net/name6.c: Fix struct references.

18 years ago * include/winspool.h (JOB_INFO_3): Add structure.
Dimitri Papadopoulos [Wed, 29 Mar 2006 17:10:00 +0000 (17:10 +0000)]
* include/winspool.h (JOB_INFO_3): Add structure.
(PROVIDOR_INFO_*{AW}): Add structure.
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(PRINTER_ENUM_VALUES{AW}): Add structure.
(PRINTPROCESSOR_CAPS): Add structure.

18 years ago * include/winspool.h [_WIN32_WINNT >= 0x0500]
Dimitri Papadopoulos [Wed, 29 Mar 2006 12:41:58 +0000 (12:41 +0000)]
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(PRINTER_INFO_7A): Correct definition.

18 years ago * include/winspool.h [_WIN32_WINNT >= 0x0500]
Dimitri Papadopoulos [Wed, 29 Mar 2006 12:41:10 +0000 (12:41 +0000)]
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(DRIVER_INFO_7A): Correct definition.

18 years ago * include/winspool.h [_WIN32_WINNT >= 0x0500]
Dimitri Papadopoulos [Wed, 29 Mar 2006 12:23:08 +0000 (12:23 +0000)]
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(DRIVER_INFO_*{AW}): Add structure.
(PRINTER_INFO_*{AW}): Add structure.
Thanks to:   Roland Schwingel <rolandschwingel at users dot sf dot net>

18 years ago * include/winspool.h [_WIN32_WINNT >= 0x0500]
Dimitri Papadopoulos [Wed, 29 Mar 2006 11:56:38 +0000 (11:56 +0000)]
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(DRIVER_*MODE): Define (DWORD type).
Thanks to:   Roland Schwingel <rolandschwingel at users dot sf dot net>

18 years ago* dcrt0.cc (child_info_fork::handle_fork): Set uid/gid in myself so that it can
Christopher Faylor [Wed, 29 Mar 2006 06:35:25 +0000 (06:35 +0000)]
* dcrt0.cc (child_info_fork::handle_fork): Set uid/gid in myself so that it can
be used by subsequent startup functions.
(dll_crt0_0): Issue a warning if DuplicateTokenEx fails and DEBUGGING.
(dll_crt0_1): Move user_data->{resourcelocks,threadinterface} initialization
here from dll_crt0_0.
* fork.cc (frok::child): Tell wait_for_sigthread that this is fork.
(frok::parent): Only initialize start_time once.  Tighten time when we're
"deimpersonated".
* sigproc.cc (signal_fixup_after_exec): Rework (futiley) sa_buf stuff.  Add
debugging output.
(wait_for_sigthread): Accept an argument which illustrates whether we are
forked or not.
(wait_sig): Avoid using myself pointer.
* winsup.h ((wait_for_sigthread): Reflect change to argument.

18 years ago gas:
Nathan Sidwell [Tue, 28 Mar 2006 07:19:16 +0000 (07:19 +0000)]
gas:
* config/tc-m68k.c (m68000_control_regs, m68010_control_regs,
m68020_control_regs, m68040_control_regs, m68060_control_regs,
mcf_control_regs, mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs, mcf5249_control_regs, mcf528x_control_regs,
mcfv4e_control_regs, m68010_control_regs): Rename and reorder to ...
(m68000_ctrl, m68010_ctrl, m68020_ctrl, m68040_ctrl, m68060_ctrl,
mcf_ctrl, mcf5208_ctrl, mcf5213_ctrl, mcf5235_ctrl, mcf5249_ctrl,
mcf5216_ctrl, mcf5250_ctrl, mcf5271_ctrl, mcf5272_ctrl,
mcf5282_ctrl, mcfv4e_ctrl): ... these.
(mcf5275_ctrl, mcf5329_ctrl, mcf5373_ctrl): New.
(struct m68k_cpu): Change chip field to control_regs.
(current_chip): Remove.
(control_regs): New.
(m68k_archs, m68k_extensions): Adjust.
(m68k_cpus): Reorder to be in cpu number order.  Adjust.
(CPU_ALLOW_MC, CPU_ALLOW_NEGATION): Remove.
(find_cf_chip): Reimplement for new organization of cpu table.
(select_control_regs): Remove.
(mri_chip): Adjust.
(struct save_opts): Save control regs, not chip.
(s_save, s_restore): Adjust.
(m68k_lookup_cpu): Give deprecated warning when necessary.
(m68k_init_arch): Adjust.
(md_show_usage): Adjust for new cpu table organization.

include/opcodes:
* m68k.h (cpu_m68k, cpu_cf, cpu_m68000, cpu_m68008, cpu_m68010,
cpu_m68020, cpu_m68ec030, cpu_m68040, cpu_m68060, cpu_m68851,
cpu_m68881, cpu_m68882, cpu_cpu32, cpu_cf5200, cpu_cf5206e,
cpu_cf5208, cpu_cf521x, cpu_cf5213, cpu_cf5249, cpu_cf528x,
cpu_cf5307, cpu_cf5329, cpu_cf5407, cpu_cf547x, cpu_cf548x): Remove.

18 years ago * include/wincon.h (GetConsoleProcessList): Declare.
Danny Smith [Mon, 27 Mar 2006 05:34:23 +0000 (05:34 +0000)]
* include/wincon.h (GetConsoleProcessList): Declare.

18 years ago2006-03-27 Hansres Engel <engel@node.ch>
Danny Smith [Mon, 27 Mar 2006 05:23:52 +0000 (05:23 +0000)]
2006-03-27  Hansres Engel  <engel@node.ch>

* include/mlang.h: New file.

18 years ago* spawn.cc (spawn_guts): Close handles if we know that we will not be seeing a
Christopher Faylor [Mon, 27 Mar 2006 03:52:24 +0000 (03:52 +0000)]
* spawn.cc (spawn_guts): Close handles if we know that we will not be seeing a
sync event from the child.

18 years ago* sigproc.cc (wait_sig): Move myself manipulation...
Christopher Faylor [Mon, 27 Mar 2006 01:10:48 +0000 (01:10 +0000)]
* sigproc.cc (wait_sig): Move myself manipulation...
(wait_for_sigthread): ...to here.

18 years ago2006-03-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 26 Mar 2006 01:24:03 +0000 (01:24 +0000)]
2006-03-26  Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

    * include/winbase.h (SetProcessWorkingSetSize): Corrected define.

18 years agoforced checkin
Christopher Faylor [Sun, 26 Mar 2006 00:59:40 +0000 (00:59 +0000)]
forced checkin

18 years agoforced checkin
Christopher Faylor [Sun, 26 Mar 2006 00:58:34 +0000 (00:58 +0000)]
forced checkin

18 years agoforced checkin
Christopher Faylor [Sun, 26 Mar 2006 00:58:00 +0000 (00:58 +0000)]
forced checkin

18 years ago2006-03-26 Hansres Engel <engel@node.ch>
Danny Smith [Sat, 25 Mar 2006 21:43:55 +0000 (21:43 +0000)]
2006-03-26  Hansres Engel <engel@node.ch>

         Add Uniscribe API for typography and for complex scripts.
 * include/usp10.h: New file.
         * lib/usp10.def: New file.

* include/winver.h:  Change first argument of GetFileVersionInfo[...] to const.

        * include/imm.h (IMECHARPOSITION): Add structure.
(RECONVERTSTRING): Likwise.

* include/commdlg.h (OPENFILENAME_SIZE_VERSION_400): Define.

        * lib/uuid.c (CMultiLanguage): Add UUID definition.
(IMLangFontLink2): Likewise.
(IMultiLanguage): Likewise.

18 years ago * elf/bfin.h (R_BFIN_GOT17M4, R_BFIN_GOTHI, R_BFIN_GOTLO,
Bernd Schmidt [Sat, 25 Mar 2006 18:21:47 +0000 (18:21 +0000)]
* elf/bfin.h (R_BFIN_GOT17M4, R_BFIN_GOTHI, R_BFIN_GOTLO,
R_BFIN_FUNCDESC, R_BFIN_FUNCDESC_GOT17M4,  R_BFIN_FUNCDESC_GOTHI,
R_BFIN_FUNCDESC_GOTLO, R_BFIN_FUNCDESC_VALUE,
R_BFIN_FUNCDESC_GOTOFF17M4, R_BFIN_FUNCDESC_GOTOFFHI,
R_BFIN_FUNCDESC_GOTOFFLO, R_BFIN_GOTOFF17M4, R_BFIN_GOTOFFHI,
R_BFIN_GOTOFFLO): New relocs.
(EF_BFIN_PIC, EF_BFIN_FDPIC, EF_BFIN_PIC_FLAGS): New macros.

18 years ago * fhandler_floppy.cc: Include ntdef.h and ntdll.h.
Corinna Vinschen [Fri, 24 Mar 2006 14:52:08 +0000 (14:52 +0000)]
* fhandler_floppy.cc: Include ntdef.h and ntdll.h.
(fhandler_dev_floppy::get_drive_info): Rearrange so that now
NtQueryVolumeInformationFile is called on drives which don't support
IOCTL_DISK_GET_DRIVE_GEOMETRY.
* ntdll.h (struct _FILE_FS_SIZE_INFORMATION): Add.
(enum _FSINFOCLASS): Add missing values.

18 years ago* fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Make error
Christopher Faylor [Thu, 23 Mar 2006 23:58:52 +0000 (23:58 +0000)]
* fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Make error
message more explicit.
* pinfo.cc (_pinfo::commune_request): Don't lock process unless we're looking
for fifos.

18 years ago* dcrt0.cc (child_info_spawn::handle_spawn): Don't initialize the console
Christopher Faylor [Thu, 23 Mar 2006 16:52:34 +0000 (16:52 +0000)]
* dcrt0.cc (child_info_spawn::handle_spawn): Don't initialize the console
handler here.
* dtable.cc (dtable::stdio_init): Initialize console handler here.

18 years ago* sigproc.cc (sigalloc): Don't set SA_RESTART here.
Christopher Faylor [Thu, 23 Mar 2006 15:55:59 +0000 (15:55 +0000)]
* sigproc.cc (sigalloc): Don't set SA_RESTART here.
* signal.cc (_SA_NORESTART): New flag.
(sigaction_worker): New function, derived from sigaction.  Don't set internal
flags unless called internally.
(sigaction): Use sigaction_worker.
(signal): Honor new _SA_NORESTART flag.
(siginterrupt): Set _SA_NORESTART flag appropriately.  Use sigaction_worker to
set flags.
* include/cygwin/signal.h: Define _SA_INTERNAL_MASK here.

18 years ago* winsup.api/checksignal.c (main): Add test for siginterrupt.
Christopher Faylor [Thu, 23 Mar 2006 15:52:16 +0000 (15:52 +0000)]
* winsup.api/checksignal.c (main): Add test for siginterrupt.

18 years agoPatch by matz@suse.de:
Andreas Jaeger [Thu, 23 Mar 2006 08:23:09 +0000 (08:23 +0000)]
Patch by matz@suse.de:
bfd/ChangeLog:
* reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
BFD_RELOC_X86_64_PLTOFF64.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
* elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
Add howtos for above relocs.
(x86_64_reloc_map): Add mappings for new relocs.
(elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
R_X86_64_GOTPLT64 need a got entry.  R_X86_64_GOTPLT64 also a PLT
entry.  R_X86_64_GOTPC64 needs a .got section.  R_X86_64_PLTOFF64
needs a PLT entry.
(elf64_x86_64_gc_sweep_hook): Reflect changes from
elf64_x86_64_check_relocs for the new relocs.
(elf64_x86_64_relocate_section): Handle new relocs.

gas/ChangeLog:
* config/tc-i386.c (type_names): Correct placement of 'static'.
(reloc): Map some more relocs to their 64 bit counterpart when
size is 8.
(output_insn): Work around breakage if DEBUG386 is defined.
(output_disp): A BFD_RELOC_64 with GOT_symbol as operand also
needs to be mapped to BFD_RELOC_X86_64_GOTPC64 or
BFD_RELOC_X86_64_GOTPC32.  Also x86-64 handles pcrel addressing
different from i386.
(output_imm): Ditto.
(lex_got): Recognize @PLTOFF and @GOTPLT.  Make @GOT accept also
Imm64.
(md_convert_frag): Jumps can now be larger than 2GB away, error
out in that case.
(tc_gen_reloc): New relocs are passed through.  BFD_RELOC_64
and BFD_RELOC_64_PCREL are mapped to BFD_RELOC_X86_64_GOTPC64.

gas/testsuite/ChangeLog:
* gas/i386/reloc64.s: Accept 64-bit forms.
* gas/i386/reloc64.d: Adjust.
* gas/i386/reloc64.l: Adjust.

include/ChangeLog:
* elf/x86-64.h: Add the new relocations with their official
numbers.

18 years ago * thread.cc (pthread_mutex::is_good_initializer_or_bad_object): Delete.
Corinna Vinschen [Wed, 22 Mar 2006 20:38:26 +0000 (20:38 +0000)]
* thread.cc (pthread_mutex::is_good_initializer_or_bad_object): Delete.
(pthread_cond::is_good_initializer_or_bad_object): Delete.
(pthread_rwlock::is_good_initializer_or_bad_object): Delete.
(pthread_cond::init): Remove disabled code.  Guard assignment to
object to initialize against access violation.
(pthread_rwlock::init): Ditto.
(pthread_mutex::init): Ditto.

18 years ago* fhandler.cc (fcntl): Print flags in hex.
Christopher Faylor [Wed, 22 Mar 2006 16:42:45 +0000 (16:42 +0000)]
* fhandler.cc (fcntl): Print flags in hex.
* dcrt0.cc (dll_crt0_0): Semi-revert 2006-03-14 change which moved pinfo_init
and uinfo_init here.
(dll_crt0_1): Ditto.
(__dll_crt0): Ditto.  Don't call update_envptrs here.
(dll_crt0_1): Ditto.  Move wait_for_sigthread call here from dll_crt0_0.
* environ.cc (environ_init): Call it here instead.
* sigproc.cc (my_readsig): New static variable.
(wait_for_sigthread): Set up read pipe here since we are assured that we have
the proper privileges when this is called.
(talktome): Eliminate second argument since it is available as a global now.
(wait_sig): Reflect use of my_readsig.

18 years ago * thread.cc (pthread_cond::init): Disable validity test of object
Corinna Vinschen [Wed, 22 Mar 2006 12:52:26 +0000 (12:52 +0000)]
* thread.cc (pthread_cond::init): Disable validity test of object
to initialize since test of uninitialized content is unreliable.
(pthread_rwlock::init): Ditto.
(pthread_mutex::init): Ditto.

18 years ago * mt/startup-16-002.S (.internal_io): Make @nobits.
Nathan Sidwell [Wed, 22 Mar 2006 12:47:59 +0000 (12:47 +0000)]
* mt/startup-16-002.S (.internal_io): Make @nobits.
* mt/startup-16-003.S (.internal_io): Make @nobits.
* mt/startup-ms2.S (.internal_io): Make @nobits.

18 years ago Richard Sandiford <richard@codesourcery.com>
Richard Sandiford [Wed, 22 Mar 2006 09:28:13 +0000 (09:28 +0000)]
Richard Sandiford  <richard@codesourcery.com>
Daniel Jacobowitz  <dan@codesourcery.com>
Phil Edwards  <phil@codesourcery.com>
Zack Weinberg  <zack@codesourcery.com>
Mark Mitchell  <mark@codesourcery.com>
Nathan Sidwell  <nathan@codesourcery.com>

bfd/
* bfd-in2.h: Regenerate.
* config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
* configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
(bfd_elf32_littlemips_vxworks_vec): Likewise.
(bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
(bfd_elf32_littlemips_vec): Likewise.
(bfd_elf32_nbigmips_vec): Likewise.
(bfd_elf32_nlittlemips_vec): Likewise.
(bfd_elf32_ntradbigmips_vec): Likewise.
(bfd_elf32_ntradlittlemips_vec): Likewise.
(bfd_elf32_tradbigmips_vec): Likewise.
(bfd_elf32_tradlittlemips_vec): Likewise.
(bfd_elf64_bigmips_vec): Likewise.
(bfd_elf64_littlemips_vec): Likewise.
(bfd_elf64_tradbigmips_vec): Likewise.
(bfd_elf64_tradlittlemips_vec): Likewise.
* elf32-mips.c: Include elf-vxworks.h.
(mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
instead of calling mips_elf32_rtype_to_howto directly.
(mips_vxworks_copy_howto_rela): New reloc howto.
(mips_vxworks_jump_slot_howto_rela): Likewise.
(mips_vxworks_bfd_reloc_type_lookup): New function.
(mips_vxworks_rtype_to_howto): Likewise.
(mips_vxworks_final_write_processing): Likewise.
(TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
(TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
(elf_backend_want_got_plt): Likewise.
(elf_backend_want_plt_sym): Likewise.
(elf_backend_got_symbol_offset): Likewise.
(elf_backend_want_dynbss): Likewise.
(elf_backend_may_use_rel_p): Likewise.
(elf_backend_may_use_rela_p): Likewise.
(elf_backend_default_use_rela_p): Likewise.
(elf_backend_got_header_size: Likewise.
(elf_backend_plt_readonly): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Likewise.
(elf_backend_mips_rtype_to_howto): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
(elf_backend_finish_dynamic_symbol): Likewise.
(bfd_elf32_bfd_link_hash_table_create): Likewise.
(elf_backend_add_symbol_hook): Likewise.
(elf_backend_link_output_symbol_hook): Likewise.
(elf_backend_emit_relocs): Likewise.
(elf_backend_final_write_processing: Likewise.
(elf_backend_additional_program_headers): Likewise.
(elf_backend_modify_segment_map): Likewise.
(elf_backend_symbol_processing): Likewise.
* elfxx-mips.c: Include elf-vxworks.h.
(mips_elf_link_hash_entry): Add is_relocation_target and
is_branch_target fields.
(mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
(MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
(MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
Return 3 for VxWorks.
(ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
mips_elf_link_hash_table.  Return 0 for VxWorks.
(MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
mips_elf_link_hash_table.  Update the call to ELF_MIPS_GP_OFFSET.
(mips_vxworks_exec_plt0_entry): New variable.
(mips_vxworks_exec_plt_entry): Likewise.
(mips_vxworks_shared_plt0_entry): Likewise.
(mips_vxworks_shared_plt_entry): Likewise.
(mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
(mips_elf_rel_dyn_section): Change the bfd argument to a
mips_elf_link_hash_table.  Use MIPS_ELF_REL_DYN_NAME to get
the name of the section.
(mips_elf_initialize_tls_slots): Update the call to
mips_elf_rel_dyn_section.
(mips_elf_gotplt_index): New function.
(mips_elf_local_got_index): Add an input_section argument.
Update the call to mips_elf_create_local_got_entry.
(mips_elf_got_page): Likewise.
(mips_elf_got16_entry): Likewise.
(mips_elf_create_local_got_entry): Add bfd_link_info and input_section
arguments.  Create dynamic relocations for each entry on VxWorks.
(mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
(mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
and MIPS_RESERVED_GOTNO.
(mips_elf_create_got_section): Update the uses of
MIPS_ELF_GOT_MAX_SIZE.  Create .got.plt on VxWorks.
(is_gott_symbol): New function.
(mips_elf_calculate_relocation): Use a dynobj local variable.
Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
mips_elf_got_page_entry.  Set G to the .got.plt entry when calculating
VxWorks R_MIPS_CALL* relocations.  Calculate and use G for all GOT
relocations on VxWorks.  Add dynamic relocations for references
to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Don't
create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
in VxWorks executables.
(mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
Don't allocate a null entry on VxWorks.
(mips_elf_create_dynamic_relocation): Update the call to
mips_elf_rel_dyn_section.  Use absolute rather than relative
relocations for VxWorks, and make them RELA rather than REL.
(_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
read-only on VxWorks.  Update the call to mips_elf_rel_dyn_section.
Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
VxWorks.  Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
Call elf_vxworks_create_dynamic_sections for VxWorks and
initialize the plt_header_size and plt_entry_size fields.
(_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
used in VxWorks executables.  Don't allocate dynamic relocations
for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
Set is_relocation_target for each symbol referenced by a relocation.
Allocate .rela.dyn entries for relocations against the special
VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Create GOT
entries for all VxWorks R_MIPS_GOT16 relocations.  Don't allocate
a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations.  Update the calls
to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
relocations.  Don't set no_fn_stub on VxWorks.
(_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
mips_elf_allocate_dynamic_relocations.
(_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
(_bfd_mips_elf_always_size_sections): Do not allocate GOT page
entries for VxWorks, and do not create multiple GOTs.
(_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
Handle .got specially for VxWorks.  Update the uses of
MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
Check for sgotplt and splt.  Allocate the .rel(a).dyn contents last,
once its final size is known.  Set DF_TEXTREL for VxWorks.  Add
DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
tags on VxWorks.  Do not add the MIPS-specific tags for VxWorks.
(_bfd_mips_vxworks_finish_dynamic_symbol): New function.
(mips_vxworks_finish_exec_plt): Likewise.
(mips_vxworks_finish_shared_plt): Likewise.
(_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
to mips_elf_rel_dyn_section.  Use a VxWorks-specific value of
DT_PLTGOT.  Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
DT_PLTRELSZ and DT_JMPREL.  Update the uses of MIPS_RESERVED_GOTNO
and mips_elf_rel_dyn_section.  Use a different GOT header for
VxWorks.  Don't sort .rela.dyn on VxWorks.  Finish the PLT on VxWorks.
(_bfd_mips_elf_link_hash_table_create): Initialize the new
mips_elf_link_hash_table fields.
(_bfd_mips_vxworks_link_hash_table_create): New function.
(_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
on VxWorks.  Update the call to ELF_MIPS_GP_OFFSET.
* elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_link_hash_table_create): Likewise.
* libbfd.h: Regenerate.
* Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
(elf32-mips.lo): Likewise.
* Makefile.in: Regenerate.
* reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
* targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
(bfd_elf32_littlemips_vxworks_vec): Likewise.
(_bfd_target_vector): Add entries for them.

gas/
* config/tc-mips.c (mips_target_format): Handle vxworks targets.
(md_begin): Complain about -G being used for PIC.  Don't change
the text, data and bss alignments on VxWorks.
(reloc_needs_lo_p): Don't return true for R_MIPS_GOT16 when
generating VxWorks PIC.
(load_address): Extend SVR4_PIC handling to VXWORKS_PIC.
(macro): Likewise, but do not treat la $25 specially for
VxWorks PIC, and do not handle jal.
(OPTION_MVXWORKS_PIC): New macro.
(md_longopts): Add -mvxworks-pic.
(md_parse_option): Don't complain about using PIC and -G together here.
Handle OPTION_MVXWORKS_PIC.
(md_estimate_size_before_relax): Always use the first relaxation
sequence on VxWorks.
* config/tc-mips.h (VXWORKS_PIC): New.

gas/testsuite/
* gas/mips/vxworks1.s, gas/mips/vxworks1.d,
* gas/mips/vxworks1-xgot.d: New tests.
* gas/mips/mips.exp: Run them.  Do not run other tests on VxWorks.

include/elf/
* mips.h (R_MIPS_COPY, R_MIPS_JUMP_SLOT): New relocs.

ld/
* configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
separate VxWorks emulations.
* emulparams/elf32ebmipvxworks.sh: New file.
* emulparams/elf32elmipvxworks.sh: New file.
* Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
eelf32elmipvxworks.o.
(eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
* Makefile.in: Regenerate.

ld/testsuite/
* ld-mips/vxworks1.dd, ld-mips/vxworks1.ld, ld-mips/vxworks1-lib.dd,
* ld-mips/vxworks1-lib.nd, ld-mips/vxworks1-lib.rd,
* ld-mips/vxworks1-lib.s, ld-mips/vxworks1.rd, ld-mips/vxworks1.s,
* ld-mips/vxworks1-static.d, ld-mips/vxworks2.s, ld-mips/vxworks2.sd,
* ld-mips/vxworks2-static.sd: New tests.
* ld-mips/mips-elf.exp: Run them.

18 years ago* signal.cc (signal): Don't set SA_RESTART here.
Christopher Faylor [Wed, 22 Mar 2006 04:13:55 +0000 (04:13 +0000)]
* signal.cc (signal): Don't set SA_RESTART here.
(siginterrupt): White space.
* sigproc.cc (sigalloc): Set SA_RESTART here, on initialization.

18 years ago* child_info.h (child_status): Fix typo which made it impossible to set
Christopher Faylor [Wed, 22 Mar 2006 03:20:28 +0000 (03:20 +0000)]
* child_info.h (child_status): Fix typo which made it impossible to set
iscygwin.
(child_info::isstraced): Booleanize.
(child_info::iscygwin): Ditto.
* sigproc.cc (child_info::child_info): Minor cleanup of flag setting.
* spawn.cc (spawn_guts): Only close_all_files when we know the process has
started successfully.
* exceptions.cc (init_console_handler): Fix indentation.

18 years ago * configure.host: Allow hosts to set the default
Mark Mitchell [Tue, 21 Mar 2006 20:02:13 +0000 (20:02 +0000)]
* configure.host: Allow hosts to set the default
newlib_atexit_dynamic_alloc value.
* configure.in: Likewise.
* configure: Regenerated.

18 years ago* dcrt0.cc (dll_crt0_0): Call SetErrorMode earlier.
Christopher Faylor [Tue, 21 Mar 2006 01:37:25 +0000 (01:37 +0000)]
* dcrt0.cc (dll_crt0_0): Call SetErrorMode earlier.
* pinfo.cc (_pinfo::dup_proc_pipe): Reset wr_proc_pipe on failure.  Return
previous pipe handle.
* pinfo.h (_pinfo::dup_proc_pipe): Reflect change to return value.
* spawn.cc (spawn_guts): Restore previous proc pipe on retry or if process
exits before synchronization.

18 years ago * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
Mark Mitchell [Tue, 21 Mar 2006 00:57:34 +0000 (00:57 +0000)]
* acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
* configure.in (--disable-newlib-atexit-dynamic-alloc): New
option.
* configure: Regenerated.
* newlib.hin: Regenerated.
* libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
if _ATEXIT_DYNAMIC_ALLOC is undefined.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
if _ATEXIT_DYNAMIC_ALLOC is undefined.

18 years ago* child_info.h (child_status): New enum.
Christopher Faylor [Mon, 20 Mar 2006 18:01:17 +0000 (18:01 +0000)]
* child_info.h (child_status): New enum.
(child_info::flag): Rename from 'straced'.
(child_info::isstraced): New function.
(child_info::iscygwin): Ditto.
(child_info_fork::handle_fork): Reparmize.
(child_info_fork::handle_failure): Ditto.
(child_info_spawn::handle_spawn): New function.
* dcrt0.cc (get_cygwin_startup_info): Use isstraced method.
(child_info_spawn::handle_spawn): Define new function from code previously in
dll_crt0_0.
(dll_crt0_0): Move spawn stuff into handle_spawn.  Only call
init_console_handler for fork case.
* sigproc.cc (child_info::child_info): Set flag appropriately.
(child_info::proc_retry): Treat exit code as "funny" if it's a cygwin process.
* spawn.cc (spawn_guts): Remove commented out flag setting.

18 years agorevert previous debugging checkin
Christopher Faylor [Mon, 20 Mar 2006 02:01:50 +0000 (02:01 +0000)]
revert previous debugging checkin

18 years ago* pinfo.cc (commune_process): Fix randomly invalid pointer which caused fifos
Christopher Faylor [Mon, 20 Mar 2006 01:59:23 +0000 (01:59 +0000)]
* pinfo.cc (commune_process): Fix randomly invalid pointer which caused fifos
to work incorrectly.

18 years ago* dcrt0.cc (dll_crt0_0): Oops. We need to bother with setting this in the
Christopher Faylor [Mon, 20 Mar 2006 01:16:39 +0000 (01:16 +0000)]
* dcrt0.cc (dll_crt0_0): Oops.  We need to bother with setting this in the
fork/exec case.

18 years ago* dcrt0.cc (dll_crt0_0): Don't bother with setting init_console_handler here
Christopher Faylor [Mon, 20 Mar 2006 01:11:30 +0000 (01:11 +0000)]
* dcrt0.cc (dll_crt0_0): Don't bother with setting init_console_handler here
since it will be set later when we discover if we have a ctty or not.
* exceptions.cc (init_console_handler): Properly remove NULL handler.

18 years ago * hppa.h (SHF_HP_TLS, SHF_HP_NEAR_SHARED, SHF_HP_FAR_SHARED,
John David Anglin [Mon, 20 Mar 2006 01:07:29 +0000 (01:07 +0000)]
* hppa.h (SHF_HP_TLS, SHF_HP_NEAR_SHARED, SHF_HP_FAR_SHARED,
SHF_HP_COMDAT, SHF_HP_CONST, SHN_TLS_COMMON, SHN_NS_COMMON,
SHN_NS_UNDEF, SHN_FS_UNDEF, SHN_HP_EXTERN, SHN_HP_EXTHINT,
SHN_HP_UNDEF_BIND_IMM, SHT_HP_OVLBITS, SHT_HP_DLKM, SHT_HP_COMDAT,
SHT_HP_OBJDICT, SHT_HP_ANNOT, STB_HP_ALIAS): Define.

18 years ago* pinfo.h (EXITCODE_OK): Define new constant.
Christopher Faylor [Sat, 18 Mar 2006 19:28:59 +0000 (19:28 +0000)]
* pinfo.h (EXITCODE_OK): Define new constant.
* sigproc.cc (child_info::sync): Return EXITCODE_OK if entering with exit_code
== 0.
(sig_send): Don't complain if sending signals while blocked if the sender isn't
in the main thread.

18 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate.
Christopher Faylor [Sat, 18 Mar 2006 19:17:21 +0000 (19:17 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate.
(child_info::retry): Move here from fork subclass.
(child_info::exit_code): New field.
(child_info::retry_count): Max retry count for process start.
(child_info::proc_retry): Declare new function.
(child_info_fork::retry): Move to parent.
(child_info_fork::fork_retry): Ditto.
* dcrt0.cc (child_info::fork_retry): Rename and move.
(child_info_fork::handle_failure): Move.
(dll_crt0_0): Initialize console handler based on whether we have a controlling
tty or not.  Avoid nonsensical check for fork where it can never occur.
* environ.cc (set_proc_retry): Rename from set_fork_retry.  Set retry_count in
child_info.
(parse_thing): Reflect above change.
* exceptions.cc (dummy_ctrl_c_handler): Remove unused variable name.
(ctrl_c_handler): Always return TRUE for the annoying CTRL_LOGOFF_EVENT.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Remove call to
init_console_handler.
* fhandler_tty.cc (fhandler_tty_slave::open): Just call mange_console_count
here and let it decide what to do with initializing console control handling.
* fork.cc (fork_retry): Remove definition.
(frok::parent): Define static errbuf and use in error messages (not thread safe
yet).  Close pi.hThread as soon as possible.  Protect pi.hProcess as soon as
possible.  Don't set retry_count.  That happens automatically in the
constructor now.  Accommodate name change from fork_retry to proc_retry.
* init.cc (dll_entry): Turn off ctrl-c handling early until we know how it is
supposed to be handled.
* pinfo.cc (_pinfo::dup_proc_pipe): Remember original proc pipe value for
failure error message.  Tweak debug message slightly.
* sigproc.cc (child_info::retry_count): Define.
(child_info::child_info): Initialize retry count.
(child_info::sync): Set exit code if process dies before synchronization.
(child_info::proc_retry): Rename from child_info_fork::fork_retry.  Use
previously derived exit code.  Be more defensive about what is classified as an
error exit.
(child_info_fork::handle_failure): Move here from dcrt0.cc.
* spawn.cc (spawn_guts): Maintain error mode when starting new process to avoid
annoying pop ups.  Move deimpersonate call within new loop.  Move envblock
freeing to end.  Loop if process dies prematurely with bad exit code.
* syscalls.cc (init_console_handler): Remove hopefully unneeded call to
init_console_handler.

18 years ago2006-03-18 Julien Lecomte <julienlecomte@users.sourceforge.net>
Danny Smith [Sat, 18 Mar 2006 04:02:54 +0000 (04:02 +0000)]
2006-03-18  Julien Lecomte <julienlecomte@users.sourceforge.net>

* include/wincon.h  (ENABLE_*): Add more defines.

2006-03-18  Jan Nijtmans <nijtmans@users.sourceforge.net>

* include/winnt.h (INHERITED_ACE): Define.
(VALID_INHERIT_FLAGS): Correct definition.

2006-03-18  Peter �strand  <astrand@cendio.se>

         * lib/wtsapi32.def: New file.

18 years ago2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 17 Mar 2006 22:27:37 +0000 (22:27 +0000)]
2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/linuxthreads/config.h: Remove definition
        of UINT32_C.

18 years ago* include/winbase.h (STATUS_DLL_INIT_FAILED): New define.
Christopher Faylor [Thu, 16 Mar 2006 03:05:39 +0000 (03:05 +0000)]
* include/winbase.h (STATUS_DLL_INIT_FAILED): New define.
(STATUS_DLL_INIT_FAILED_LOGOFF): Ditto.

18 years ago* cygheap.cc (init_cygheap::manage_console_count): Turn console control handler
Christopher Faylor [Thu, 16 Mar 2006 02:57:37 +0000 (02:57 +0000)]
* cygheap.cc (init_cygheap::manage_console_count): Turn console control handler
on/off depending on whether we have allocated a console or not.
* dcrt0.cc (child_info_fork::fork_retry): Add more potential retry statuses.
(dll_crt0_0): Turn on/off console control depending on whether we have a
controlling tty or not.
* exceptions.cc (init_console_handler): Change BOOL to bool.
* fhandler_console.cc (fhandler_console::need_invisible): Cosmetic change.
* winsup.h (init_console_handler): Reflect argument type change.
* wincap.h (supports_setconsolectrlhandler_null): Remove duplicate capability
throughout.
* wincap.cc: Ditto.

18 years ago2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 15 Mar 2006 22:38:59 +0000 (22:38 +0000)]
2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
        for a string I/O file that isn't using the asprintf family.

18 years ago* child_info.h (child_info_fork::fork_retry): Declare new function.
Christopher Faylor [Wed, 15 Mar 2006 00:29:14 +0000 (00:29 +0000)]
* child_info.h (child_info_fork::fork_retry): Declare new function.
* dcrt0.cc (child_info_fork::fork_retry): Define new function.
* fork.cc (frok::parent): Move retry decision into child_info_fork::fork_retry
and honor what it tells us to do.
* sigproc.cc (sig_send): Unhold signals on __SIGEXIT.

18 years ago* fork.cc (frok::parent): Improve error message.
Christopher Faylor [Tue, 14 Mar 2006 21:01:35 +0000 (21:01 +0000)]
* fork.cc (frok::parent): Improve error message.

18 years ago* dcrt0.cc (main_environ): Initialize to &__cygwin_environment.
Christopher Faylor [Tue, 14 Mar 2006 19:07:36 +0000 (19:07 +0000)]
* dcrt0.cc (main_environ): Initialize to &__cygwin_environment.
(dll_crt0_1): Move resourcelocks, thread interface, pinfo_init, and
uinfo_init...
(dll_crt0_0): ...to here.
(_dll_crt0): Call update_envptrs here after setting main_environ.
* environ.cc (environ_init): Eliminate initted variable.  Don't call
update_envptrs here.
* sigproc.cc (wait_sig): Use my_sendsig when calling CreatePipe to avoid a
dereference.

18 years ago2006-03-14 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 14 Mar 2006 16:26:44 +0000 (16:26 +0000)]
2006-03-14  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.in: Regenerate.

18 years ago2006-03-14 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 14 Mar 2006 16:10:08 +0000 (16:10 +0000)]
2006-03-14  Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2006-03-10  Aldy Hernandez  <aldyh@redhat.com>

        * configure.in: Handle --disable-<component> generically.
        * configure: Regenerate.

2006-02-21 Rafael Avila de Espindola <rafael.espindola@gmail.com>

        * Makefile.tpl  (BUILD_CONFIGDIRS): Remove.
        (TARGET_CONFIGDIRS): Remove.
        * configure.in: Remove AC_SUBST(target_configdirs).
        * Makefile.in, configure: Regenerated.

18 years ago* child_info.h (child_info_fork::handle_failure): Declare new function.
Christopher Faylor [Mon, 13 Mar 2006 21:10:14 +0000 (21:10 +0000)]
* child_info.h (child_info_fork::handle_failure): Declare new function.
(child_info_fork::retry): New field.
* dcrt0.cc (__api_fatal_exit_val): Define.
(child_info_fork::handle_failure): Define new function.
(__api_fatal): Exit using __api_fatal_exit_val value.
* environ.cc (set_fork_retry): Set fork_retry based on CYGWIN environment
variable.
(parse_thing): Add "fork_retry" setting.
* fork.cc (fork_retry): Define.
(frok::parent): Reorganize to allow retry of failed child creation if child
signalled that it was ok to do so.
* heap.cc (heap_init): Signal parent via handle_failure when VirtualAlloc
fails.
* pinfo.h (EXITCODE_RETRY): Declare.
* sigproc.cc (child_info::sync): Properly exit with failure condition if called
for fork and didn't see subproc_ready.
* spawn.cc (spawn_guts): Use windows pid as first argument.
* winsup.h: Remove obsolete NEW_MACRO_VARARGS define.
(__api_fatal_exit_val): Declare.
(set_api_fatal_return): Define.
(in_dllentry): Declare.
* exceptions.cc (inside_kernel): Remove unneeded in_dllentry declaration.

18 years ago* cygwinenv.sgml: Explain about new fork_retry CYGWIN environment variable
Christopher Faylor [Mon, 13 Mar 2006 21:02:37 +0000 (21:02 +0000)]
* cygwinenv.sgml: Explain about new fork_retry CYGWIN environment variable
setting.

18 years ago* dcrt0.cc (dll_crt0_0): Reorganize so that sigproc_init is called a little
Christopher Faylor [Mon, 13 Mar 2006 18:29:48 +0000 (18:29 +0000)]
* dcrt0.cc (dll_crt0_0): Reorganize so that sigproc_init is called a little
later.  Add a comment.
* fork.cc (resume_child): Make void.
(frok::parent): Only zero pi when necessary.  Explicitly zero si.  Set
this_errno when child_copy fails.  Accommodate change to resume_child.
* sigproc.cc (sigalloc): Move global_sigs initialization here.
(sigproc_init): Move global_sigs.
(sig_send): Just check for flush signals once.
* wincap.h: Define supports_setconsolectrlhandler_null throughout.
* wincap.cc: Ditto.

18 years ago Fix typo.
Corinna Vinschen [Mon, 13 Mar 2006 11:25:07 +0000 (11:25 +0000)]
Fix typo.

18 years ago * autoload.cc (LoadDLLfuncNt): New define to wrap NT native functions.
Corinna Vinschen [Mon, 13 Mar 2006 11:22:51 +0000 (11:22 +0000)]
* autoload.cc (LoadDLLfuncNt): New define to wrap NT native functions.
Use for NT native functions throughout.
* dtable.cc (handle_to_fn): Treate return value of NtQueryObject as
NTSTATUS value.

18 years agotweak last ChangeLog description
Christopher Faylor [Mon, 13 Mar 2006 05:21:05 +0000 (05:21 +0000)]
tweak last ChangeLog description

18 years ago* cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were
Christopher Faylor [Mon, 13 Mar 2006 04:26:57 +0000 (04:26 +0000)]
* cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were
previously initialized.
* cygtls.h (_cygtls::initialized): Move nearer the end to catch situation when
Windows 98 mysteriously changes pieces of cygtls when thread is detaching.
* gendef (__sigfe_maybe): Simplify slightly.
* tlsoffsets.h: Regenerate.

18 years ago* cygtls.h (CYGTLS_INITIALIZED): Change to a little more unlikely value.
Christopher Faylor [Sun, 12 Mar 2006 23:57:05 +0000 (23:57 +0000)]
* cygtls.h (CYGTLS_INITIALIZED): Change to a little more unlikely value.
(CYGTLSMAGIC): Delete.
* dcrt0.cc (dll_crt0_0): Call sigproc_init during init startup.
(_dll_crt0): Don't worry about sync_startup.  Just wait for sigthread here.
* dll_init.cc (cygwin_detach_dll): Only pick up tls version of retaddr if we
have a valid tls.
* fork.cc (frok::child): Remove sigproc_init initialization since it happens
much earlier now.
* gendef: Recognize SIGFE_MAYBE.
(fefunc): Generate calls to _sigfe_maybe, if appropriate.
(_sigfe_maybe): New function.
* init.cc (search_for): Always initialize search_for, even on fork.
(calibration_thread): Delete.
(calibration_id): Delete.
(prime_threads): Delete.
(munge_threadfunc): Remove calibration_thread special case.  Avoid calling
thread function if we haven't yet hit the "search_for" thread.
(dll_entry): Remove prime_threads call.  Only call munge_threadfunc when
hwait_sig is active.  Ditto.  for _my_tls.remove ();
* sigproc.cc (hwait_sig): Make global.
(sigproc_init): Don't bother with sync_startup.
(sig_send): Treat flush as a no-op when signals are held.
(wait_sig): Cause signals to be held after fork.

18 years ago2006-03-10 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 10 Mar 2006 17:20:30 +0000 (17:20 +0000)]
2006-03-10  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
(elf32_arm_print_private_bfd_data): Ditto.
binutils/
* readelf.c (decode_ARM_machine_flags):  Handle EABIv5.
gas/
* config/tc-arm.c (md_begin): Handle EABIv5.
(arm_eabis): Add EF_ARM_EABI_VER5.
* doc/c-arm.texi: Document -meabi=5.
include/elf/
* arm.h (EF_ARM_EABI_VER5): Define.

18 years ago2006-03-10 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 10 Mar 2006 17:16:49 +0000 (17:16 +0000)]
2006-03-10  Paul Brook  <paul@codesourcery.com>

include/opcode/
* arm.h (ARM_AEXT_V7_ARM): Include v6ZK extensions.

18 years ago * syscalls.cc (rename): Move existance check for oldpath further up
Corinna Vinschen [Thu, 9 Mar 2006 15:31:08 +0000 (15:31 +0000)]
* syscalls.cc (rename): Move existance check for oldpath further up
to the start of the function.  Avoid another case of a name collision
if oldpath is a shortcut and a file or directory newpath already exists.

18 years ago * include/winspool.h (DI_MEMORYMAP_WRITE): Define (DWORD type).
Dimitri Papadopoulos [Thu, 9 Mar 2006 13:23:24 +0000 (13:23 +0000)]
* include/winspool.h (DI_MEMORYMAP_WRITE): Define (DWORD type).
(FORM_USER,FORM_PRINTER): Define (DWORD type).
* include/winspool.h [_WIN32_WINNT >= 0x0500]
(DSPRINT_*): Define (DWORD type).
Thanks to:   Roland Schwingel <rolandschwingel at users dot sf dot net>

18 years ago * autoload.cc (NtClose): Define.
Corinna Vinschen [Thu, 9 Mar 2006 09:01:08 +0000 (09:01 +0000)]
* autoload.cc (NtClose): Define.
(NtOpenDirectoryObject): Define.
(NtQueryDirectoryObject): Define.
* fhandler_proc.cc: Include ctype.h and wchar.h.
(format_proc_partitions): Revamp loop over existing harddisks by
scanning the NT native \Device object directory and looking for
Harddisk entries.
* ntdll.h: Rearrange system call declarations alphabetically.
(DIRECTORY_QUERY): Define.
(struct _DIRECTORY_BASIC_INFORMATION): Define.
(NtOpenDirectoryObject): Declare.
(NtQueryDirectoryObject): Declare.

18 years ago Remove accidentally checked in ChangeLog entry.
Corinna Vinschen [Thu, 9 Mar 2006 09:00:10 +0000 (09:00 +0000)]
Remove accidentally checked in ChangeLog entry.

18 years ago * include/winspool.h (JOB_CONTROL_*,JOB_STATUS_*): Define.
Dimitri Papadopoulos [Thu, 9 Mar 2006 08:26:24 +0000 (08:26 +0000)]
* include/winspool.h (JOB_CONTROL_*,JOB_STATUS_*): Define.
Thanks to:   Roland Schwingel <rolandschwingel at users dot sf dot net>

18 years ago* cygtls.h (_cygtls::retaddr): New method.
Christopher Faylor [Wed, 8 Mar 2006 23:55:14 +0000 (23:55 +0000)]
* cygtls.h (_cygtls::retaddr): New method.
* dll_init.cc (cygwin_detach_dll): Use new tls function to find return address
since this function is now signal guarded.
(update_envptrs): Remove unneeded braces.
* syscalls.cc (statvfs): Coerce full_path to avoid a gcc warning.

18 years ago * syscalls.cc (statvfs): Simplify path name expression.
Corinna Vinschen [Wed, 8 Mar 2006 16:10:55 +0000 (16:10 +0000)]
* syscalls.cc (statvfs): Simplify path name expression.

18 years ago * syscalls.cc: Include winioctl.h.
Corinna Vinschen [Wed, 8 Mar 2006 16:07:28 +0000 (16:07 +0000)]
* syscalls.cc: Include winioctl.h.
(statvfs): Request correct volume size using DeviceIoControl if
quotas are enforced on the file system.

18 years ago2006-03-07 Eric Blake <ebb9@byu.net>
Jeff Johnston [Tue, 7 Mar 2006 22:20:18 +0000 (22:20 +0000)]
2006-03-07  Eric Blake  <ebb9@byu.net>

        * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
        filename, allow read-only or write-only FILE atop O_RDWR file
        descriptor.
        * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.

18 years ago2006-03-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 7 Mar 2006 22:14:04 +0000 (22:14 +0000)]
2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>

        * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
        * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.

18 years ago * include/shellapi.h [_WIN32_IE >= 0x0600]
Dimitri Papadopoulos [Tue, 7 Mar 2006 10:59:46 +0000 (10:59 +0000)]
* include/shellapi.h  [_WIN32_IE >= 0x0600]
(SEE_MASK_NOZONECHECKS,SEE_MASK_FLAG_LOG_USAGE): Define on
Windows XP SP1 and Windows XP respectively.

18 years ago * include/shellapi.h (NOTIFYICONDATA_V*_SIZE): Define.
Dimitri Papadopoulos [Tue, 7 Mar 2006 10:45:35 +0000 (10:45 +0000)]
* include/shellapi.h (NOTIFYICONDATA_V*_SIZE): Define.
Thanks to:  Daniel Atallah <datallah at users dot sf dot net>
* include/shellapi.h  [_WIN32_IE >= 0x0500]
(NIS_*): Introduced in Version 5.0.

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