]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:34:26 +0000 (09:34 +0000)]
include/coff/
* internal.h (C_AIX_WEAKEXT): New macro.
(C_WEAKEXT): Use the GNU definition in the generic part of the file,
and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of
the file.
(CSECT_SYM_P): New macro.
* xcoff.h (L_WEAK): Define.
(EXTERN_SYM_P): New macro.

bfd/
* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
check whether a symbol has csect information.
(coff_print_aux): Likewise.
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff_swap_aux_out): Likewise.
(xcoff_reloc_type_br): Handle defweak symbols too.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff64_swap_aux_out): Likewise.
(xcoff64_reloc_type_br): Handle defweak symbols too.
* coffgen.c (coff_print_symbol): Handle auxillary function
information for C_AIX_WEAKEXT too.
* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
instead of BSF_GLOBAL if the L_WEAK flag is set.
(xcoff_dynamic_definition_p): New function.
(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
always take the symbol class from the ldsym.  Use weak bfd symbol
types for weak ldsyms.
(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
Fix the check for whether a definition is from a shared object.
Allow redefinitions of weak symbols.
(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
(xcoff_keep_symbol_p): Likewise.
(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
but mark them as L_WEAK.
(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.

gas/
* config/tc-ppc.c (ppc_frob_symbol): Add csect information for
C_AIX_WEAKEXT too.

ld/testsuite/
* ld-powerpc/aix-glink-2a.s, ld-powerpc/aix-glink-2a.ex,
ld-powerpc/aix-glink-2b.s, ld-powerpc/aix-glink-2c.s,
ld-powerpc/aix-glink-2c.ex, ld-powerpc/aix-glink-2d.s,
ld-powerpc/aix-glink-2-32.dd, ld-powerpc/aix-glink-2-64.dd,
ld-powerpc/aix-weak-1a.s, ld-powerpc/aix-weak-1b.s,
ld-powerpc/aix-weak-1-rel.hd, ld-powerpc/aix-weak-1-rel.nd,
ld-powerpc/aix-weak-1-dso.hd, ld-powerpc/aix-weak-1-dso.nd,
ld-powerpc/aix-weak-1-dso.dnd, ld-powerpc/aix-weak-1.ex,
ld-powerpc/aix-weak-2a.s, ld-powerpc/aix-weak-2a.ex,
ld-powerpc/aix-weak-2a.nd, ld-powerpc/aix-weak-2b.s,
ld-powerpc/aix-weak-2b.nd, ld-powerpc/aix-weak-2c.s,
ld-powerpc/aix-weak-2c.ex, ld-powerpc/aix-weak-2c.nd,
ld-powerpc/aix-weak-2c.od, ld-powerpc/aix-weak-3a.s,
ld-powerpc/aix-weak-3a.ex, ld-powerpc/aix-weak-3b.s,
ld-powerpc/aix-weak-3b.ex, ld-powerpc/aix-weak-3-32.d,
ld-powerpc/aix-weak-3-32.dd, ld-powerpc/aix-weak-3-64.d,
ld-powerpc/aix-weak-3-64.dd: New tests.
* ld-powerpc/aix52.exp: Run them.  Replace tmp/aix-* with
tmp/aix64-* in 64-bit ld options.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:33:38 +0000 (09:33 +0000)]
include/coff/
* xcoff.h (XCOFF_ALLOCATED): New flag.

bfd/
* xcofflink.c (xcoff_mark): When walking the relocations,
only mark the target symbol or the target section, not both.
(xcoff_final_definition_p): New function.
(xcoff_keep_symbol_p): Use it to check whether an external XCOFF
symbol is a valid definition of the associated output symbol.
Use XCOFF_ALLOCATED to stop the same hash table entry having
two output symbols.
(bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
keeping a symbol.
(xcoff_link_input_bfd): Use xcoff_final_definition_p.

ld/testsuite/
* ld-powerpc/aix-no-dup-syms-1a.s, ld-powerpc/aix-no-dup-syms-1b.s,
ld-powerpc/aix-no-dup-syms-1.ex, ld-powerpc/aix-no-dup-syms-1.im,
ld-powerpc/aix-no-dup-syms-1-dso.dnd,
ld-powerpc/aix-no-dup-syms-1-dso.drd,
ld-powerpc/aix-no-dup-syms-1-dso.nd,
ld-powerpc/aix-no-dup-syms-1-dso.rd,
ld-powerpc/aix-no-dup-syms-1-rel.nd,
ld-powerpc/aix-no-dup-syms-1-rel.rd: New tests.
* ld-powerpc/aix52.exp: Run them.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:17:31 +0000 (09:17 +0000)]
include/coff/
* xcoff.h (XCOFF_CALLED, XCOFF_IMPORT): Update comments.
(XCOFF_WAS_UNDEFINED): New flag.
(xcoff_link_hash_table): Add an "rtld" field.

bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
flag is set.  Assert that all undefined symbols are either
imported or defined by a dynamic object.
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
handling to all relocations.  Only set XCOFF_CALLED for function
symbols.
(xcoff_find_function): New function, split out from...
(bfd_xcoff_export_symbol) ...here.
(xcoff_set_import_path): New function, split out from...
(bfd_xcoff_import_symbol): ...here.  Remove assertion for old
meaning of XCOFF_CALLED.
(xcoff_mark_symbol): If we mark an undefined and unimported
symbol, find some way of defining it.  If the symbol is a function
descriptor, fill in its definition automatically.  If the symbol
is a function, mark its descriptor and allocate room for global
linkage code.  Otherwise mark the symbol as implicitly imported.
Move the code for creating function descriptors from...
(xcoff_build_ldsyms): ...here.  Use XCOFF_WAS_UNDEFINED to
check for symbols that were implicitly defined.
(xcoff_mark): Don't count any dynamic relocations against
function symbols.
(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
in the xcoff link info.
(xcoff_link_input_bfd): Remove handling of undefined and
unexported symbols.

ld/
* emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
-berok and -bernotok control link_info.unresolved_syms_in_objects
and link_info.unresolved_syms_in_shared_libs instead of
force_make_executable.

ld/testsuite/
* ld-powerpc/aix-glink-1.ex, ld-powerpc/aix-glink-1.s,
ld-powerpc/aix-glink-1-32.dd, ld-powerpc/aix-glink-1-64.dd,
ld-powerpc/aix-glink-1-32.d, ld-powerpc/aix-glink-1-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.

15 years ago * gendef: Remove STABS directives.
Corinna Vinschen [Sat, 14 Mar 2009 09:14:47 +0000 (09:14 +0000)]
* gendef: Remove STABS directives.

15 years ago* ldd.cc: Rework to detect missing DLLs.
Christopher Faylor [Sat, 14 Mar 2009 06:46:00 +0000 (06:46 +0000)]
* ldd.cc: Rework to detect missing DLLs.
(start_process): Change to expect windows filename as input.
(tocyg): New function - convert cygwin fn to windows fn.
(print_dlls_and_kill_inferior): Accept extra argument denoting whether to open
input and look for nonexistent DLLs.  Use tocyg to convert filename and pass it
to start_process.
(report): Flag when an DLL-not-found exception occurs and pass this information
to print_dlls_and_kill_inferior.
(filelist): New structure.
(saw_file): New function.
(dump_import_directory): Ditto.
(map_file): Ditto.
(skip_dos_stub): Ditto.
(get_directory_index): Ditto.
(process_file): Ditto.

15 years agoinclude/ChangeLog
Dave Korn [Sat, 14 Mar 2009 03:30:26 +0000 (03:30 +0000)]
include/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>

* coff/internal.h (struct internal_extra_pe_aouthdr):  Correct type
of DllCharacteristics flags field to unsigned.
* coff/pe.h (IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT,
IMAGE_DLLCHARACTERISTICS_NO_ISOLATION,
IMAGE_DLLCHARACTERISTICS_NO_SEH,
IMAGE_DLLCHARACTERISTICS_NO_BIND,
IMAGE_DLLCHARACTERISTICS_WDM_DRIVER,
IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE):  New macros to
define flag bit values for DllCharacteristics field of PEAOUTHDR,
PEPAOUTHDR.

ld/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>
            Danny Smith  <dannysmith@users.sourceforge.net>

* emultmpl/pe.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flag bits.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* emultmpl/pep.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flags.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
no-isolation, no-seh, no-bind, wdmdriver, tsaware options.

15 years ago * mktemp.cc: Remove STABS specific link-time warning. Align copyright
Corinna Vinschen [Fri, 13 Mar 2009 20:49:42 +0000 (20:49 +0000)]
* mktemp.cc: Remove STABS specific link-time warning.  Align copyright
text to upstream.

15 years ago * flock.cc: Fix lockf copyright to latest version.
Corinna Vinschen [Fri, 13 Mar 2009 09:33:55 +0000 (09:33 +0000)]
* flock.cc: Fix lockf copyright to latest version.

15 years ago * fhandler_disk_file.cc (path_conv::isgood_inode): Move to be defined
Corinna Vinschen [Thu, 12 Mar 2009 22:03:28 +0000 (22:03 +0000)]
* fhandler_disk_file.cc (path_conv::isgood_inode): Move to be defined
earlier.
(get_ino_by_handle): Take additional path_conv argument, accommodate
throughout.  Only use FileId if isgood_inode check is true.
(fhandler_base::open_fs): Simplify setting ino due to above change.
(readdir_get_ino): Make sure to return always a non-zero inode number.
(fhandler_disk_file::readdir): Always open file in dir with
FILE_OPEN_REPARSE_POINT so as not to open wrong file.
Drop call to isgood_inode here.
* path.cc (symlink_info::check): Call fs.update in case we're fetching
file information from call to NtQueryDirectoryFile.

15 years ago * flock.cc (fhandler_disk_file::lock): Don't test file open mode in
Corinna Vinschen [Thu, 12 Mar 2009 18:30:29 +0000 (18:30 +0000)]
* flock.cc (fhandler_disk_file::lock): Don't test file open mode in
case of flock-type locks.  Explain why.

15 years ago * gethostby_helper: Fix typos in DEBUGGING case.
Corinna Vinschen [Thu, 12 Mar 2009 15:54:49 +0000 (15:54 +0000)]
* gethostby_helper: Fix typos in DEBUGGING case.

15 years ago * libc/time/time.tex (wcsftime.def): Include.
Corinna Vinschen [Thu, 12 Mar 2009 15:34:57 +0000 (15:34 +0000)]
* libc/time/time.tex (wcsftime.def):  Include.
* libc/time/wcsftime.c:  Clean up documentation a little.

15 years ago * libc/stdio/swscanf.c: Some documentation corrections.
Corinna Vinschen [Thu, 12 Mar 2009 14:30:28 +0000 (14:30 +0000)]
* libc/stdio/swscanf.c:  Some documentation corrections.

15 years ago * libc/stdio/swprintf.c (_swprintf_r, swprintf):
Corinna Vinschen [Thu, 12 Mar 2009 10:27:10 +0000 (10:27 +0000)]
* libc/stdio/swprintf.c (_swprintf_r, swprintf):
correct how terminating L'\0' is added;
change return to match standard for when output does not fit;
some corrections and enhancements to the docs.
* libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
* libc/stdio/vfwprintf.c:  some corrections to the docs and some
enhancements to comments.  (No code changes.)
* libc/time/strftime.c:  Correct some problems that made wcsftime()
not work correctly:  work properly with swprintf returns that are
different from snprintf returns, correct test vector lengths for
when sizeof(wchar_t) > 1.
* libc/stdio/sprintf.c:  Some documentation and comment corrections and
enhancements to match those done to swprintf.c.

15 years ago * cygwin.din: Export wcscasecmp, wcsncasecmp.
Corinna Vinschen [Wed, 11 Mar 2009 13:00:28 +0000 (13:00 +0000)]
* cygwin.din: Export wcscasecmp, wcsncasecmp.
* posix.sgml: Move wcscasecmp, wcsncasecmp to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
Corinna Vinschen [Wed, 11 Mar 2009 12:57:53 +0000 (12:57 +0000)]
* libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
* libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
* libc/stdio/Makefile.in: Regenerate.
* libc/string/strings.tex: Add new documentation references.
* libc/string/wcscasecmp.c: New file.
* libc/string/wcsncasecmp.c: New file.

15 years ago * cygwin.din: Export wscanf, fwscanf, swscanf, vwscanf, vfwscanf,
Corinna Vinschen [Wed, 11 Mar 2009 12:03:44 +0000 (12:03 +0000)]
* cygwin.din: Export wscanf, fwscanf, swscanf, vwscanf, vfwscanf,
vswscanf.
* posix.sgml: Move fwscanf, swscanf, vwscanf, vfwscanf, vswscanf
to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
Corinna Vinschen [Wed, 11 Mar 2009 11:53:22 +0000 (11:53 +0000)]
* libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
wscanf): Declare.
(_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
_wscanf_r): Declare.
* libc/stdio/Makefile.am: Add new wscanf files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fwscanf.c: New file.
* libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
__ssvfiwscanf_r): Declare.
* libc/stdio/stdio.tex: Add new documentation references.
* libc/stdio/swscanf.c: New file.
* libc/stdio/vfwscanf.c: New file.
* libc/stdio/vswscanf.c: New file.
* libc/stdio/vwscanf.c: New file.
* libc/stdio/wscanf.c: New file.

* libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
define if INTEGER_ONLY is defined.  Declare otherwise.
(__ssrefill_r): Ditto.
(_sfread_r): Ditto.

Remove static eofread/eofread1 functions and use __seofread
function instead, throughout.
* libc/stdio/local.h (__seofread): Declare.
* libc/stdio/stdio.c (__seofread): Define.

* libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
* libc/stdio/fgetws.c (_fgetws_r): Ditto.
* libc/stdio/fread.c (_fread_r): Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vswprintf.c: Ditto.

15 years ago * libc/machine/arm/arm_asm.h: Fix typo.
Corinna Vinschen [Tue, 10 Mar 2009 09:02:32 +0000 (09:02 +0000)]
* libc/machine/arm/arm_asm.h: Fix typo.

15 years agoinclude/opcode/
Alan Modra [Tue, 10 Mar 2009 06:53:45 +0000 (06:53 +0000)]
include/opcode/
* ppc.h (ppc_parse_cpu): Declare.
opcodes/
* ppc-dis.c: Include "opintl.h".
(struct ppc_mopt, ppc_opts): New.
(ppc_parse_cpu): New function.
(powerpc_init_dialect): Use it.
(print_ppc_disassembler_options): Dump options from ppc_opts.
Internationalize message.
gas/
* config/tc-ppc.c (parse_cpu): Delete.
(md_parse_option, ppc_machine): Use ppc_parse_cpu.
gas/testsuite/
* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
* gas/ppc/common.d: Adjust for -Mcom not including -Mppc.

15 years ago * fhandler.h (fhandler_socket::wait_for_events): Take additional
Corinna Vinschen [Mon, 9 Mar 2009 14:40:45 +0000 (14:40 +0000)]
* fhandler.h (fhandler_socket::wait_for_events): Take additional
parameter "dontwait".
* fhandler_socket.cc (fhandler_socket::wait_for_events): Act as if the
socket is non-blocking if dontwait is true.
(fhandler_socket::recv_internal): Use incoming MSG_DONTWAIT flag to
set the wait_for_events dontwait parameter.
(fhandler_socket::send_internal): Ditto.  Optimize code slightly.
* include/cygwin/socket.h (MSG_DONTWAIT): Define.
* include/cygwin/version.h: Bump API minor number.

15 years ago * cygwin.din: Export wcsftime.
Corinna Vinschen [Mon, 9 Mar 2009 13:22:37 +0000 (13:22 +0000)]
* cygwin.din: Export wcsftime.
* posix.sgml: Move wcsftime to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/time/strftime.c: Adapt for dual-purpose use so not only
Corinna Vinschen [Mon, 9 Mar 2009 12:35:03 +0000 (12:35 +0000)]
* libc/time/strftime.c:  Adapt for dual-purpose use so not only
defines strftime(), but can also define wcsftime(); add optional
test package; speed up %Y handling.
* libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
indirectly by including strftime.c) and its documentation.
* libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
description to match modified description in strftime.c
* libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
so that wcsftime.o gets rebuilt when strftime changes.
* libc/time/Makefile.in:  Regenerate.
* libc/include/wchar.h (wcsftime): Declare.

15 years ago * pathnames.sgml: Try to be more clear explain raw devices.
Corinna Vinschen [Mon, 9 Mar 2009 10:23:44 +0000 (10:23 +0000)]
* pathnames.sgml: Try to be more clear explain raw devices.

15 years ago * utils.sgml: Fix typo.
Corinna Vinschen [Mon, 9 Mar 2009 09:20:38 +0000 (09:20 +0000)]
* utils.sgml: Fix typo.

15 years ago* cygcheck.cc (usage): Fix typo.
Christopher Faylor [Sun, 8 Mar 2009 21:13:26 +0000 (21:13 +0000)]
* cygcheck.cc (usage): Fix typo.

15 years ago * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
Corinna Vinschen [Fri, 6 Mar 2009 17:11:20 +0000 (17:11 +0000)]
* libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
statements in _REENT_SMALL case.  Check if _atexit is not NULL before
dereferencing it.
(_wrapup_reent): Check if _atexit is not NULL before dereferencing it.

15 years ago * cygwin.din: Export gethostbyname2.
Corinna Vinschen [Fri, 6 Mar 2009 16:31:26 +0000 (16:31 +0000)]
* cygwin.din: Export gethostbyname2.
* net.cc: define _CYGWIN_IN_H and include resolv.h.
(realloc_ent): New function.
(dup_ent): Call realloc_ent.
(memcpy4to6): New function.
(dn_length1): New function.
(gethostby_helper): New function.
(gethostbyname2): New function.
* posix.sgml: Add gethostbyname2.
* include/cygwin/version.h: Bump API minor number.
* libc/minires.c (get_options): Look for "inet6" and apply bounds
to "retry" and "retrans".
(res_ninit): Set the default options at the beginning.
(dn_expand): Fix "off by one".

15 years ago * cygwin.din: Export wprintf, fwprintf, swprintf, vwprintf, vfwprintf,
Corinna Vinschen [Fri, 6 Mar 2009 10:09:55 +0000 (10:09 +0000)]
* cygwin.din: Export wprintf, fwprintf, swprintf, vwprintf, vfwprintf,
vswprintf.  Sort.
* posix.sgml: Move fwprintf, swprintf, vwprintf, vfwprintf, vswprintf
to SUSv4 list.  Sort SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/stdio.h (__VALIST): Guard against multiple definition.
Corinna Vinschen [Fri, 6 Mar 2009 09:55:52 +0000 (09:55 +0000)]
* libc/include/stdio.h (__VALIST): Guard against multiple definition.
* libc/include/wchar.h: Include stdarg.h.
(__VALIST): Define conditionally.
(fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf: Declare.
(_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
 _wprintf_r): Declare.
* libc/stdio/Makefile.am: Add new files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fwprintf.c: New file.
* libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
(__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
and move to the __ namespace.
(__chclass, __state_table, __action_table): Declare.
* libc/stdio/stdio.tex: Add new documentation references.
* libc/stdio/swprintf.c: New file.
* libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
__sprint_r function according to compilation unit.  Use throughout.
(__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
Make externaly available.  Only define if INTEGER_ONLY is defined.
(__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
is defined.  Handle stream orientation.
(__sbprintf): Copy FILE's _flags2 member as well.
(__chclass, __state_table, __action_table): Prepend __ to name and
make externally available.
* libc/stdio/vfwprintf.c: New file.
* libc/stdio/vswprintf.c: New file.
* libc/stdio/vwprintf.c: New file.
* libc/stdio/wprintf.c: New file.

15 years ago2009-03-05 Kai Tietz <kai.tietz@onevision.com>
Chris Sutcliffe [Thu, 5 Mar 2009 14:48:38 +0000 (14:48 +0000)]
2009-03-05  Kai Tietz  <kai.tietz@onevision.com>

        * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.

15 years ago * dcrt0.cc (disable_dep): Disable. Explain why.
Corinna Vinschen [Wed, 4 Mar 2009 11:45:58 +0000 (11:45 +0000)]
* dcrt0.cc (disable_dep): Disable.  Explain why.
(dll_crt0_0): Disable calling disable_dep.  Explain why.

15 years agoinclude/elf/
Alan Modra [Wed, 4 Mar 2009 05:50:48 +0000 (05:50 +0000)]
include/elf/
* ppc.h (R_PPC_TLSGD, R_PPC_TLSLD): Add new relocs.
* ppc64.h (R_PPC64_TLSGD, R_PPC64_TLSLD): Add new relocs.
bfd/
* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
* section.c (struct bfd_section): Add has_tls_get_addr_call.
(BFD_FAKE_SECTION): Init new flag.
* ecoff.c (bfd_debug_section): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
(ppc_elf_reloc_type_lookup): Handle new relocs.
(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.
(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
(ppc64_elf_reloc_type_lookup): Handle new relocs.
(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.  Set toc_ref for new relocs as
appropriate.
(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
gas/
* config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
have non-zero addend.
(md_assemble): Parse args of __tls_get_addr calls.
(md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
ld/testsuite/
* ld-powerpc/tlsmark.s, * ld-powerpc/tlsmark.d: New test.
* ld-powerpc/tlsmark32.s, * ld-powerpc/tlsmark32.d: New test.
* ld-powerpc/powerpc.exp: Run them.

15 years ago * net.cc: Include asm/byteorder.h.
Corinna Vinschen [Tue, 3 Mar 2009 11:44:18 +0000 (11:44 +0000)]
* net.cc: Include asm/byteorder.h.
(htonl): Move to end of file.  Add comment to explain why.  Align
definition to POSIX.  Use related macro from asm/byteorder.h.
(ntohl): Ditto.
(htons): Ditto.
(ntohs): Ditto.
* include/asm/byteorder.h: Revert previous patch.

15 years ago * include/asm/byteorder.h: Disable optimization when building
Corinna Vinschen [Tue, 3 Mar 2009 11:11:26 +0000 (11:11 +0000)]
* include/asm/byteorder.h: Disable optimization when building
Cygwin network code.

15 years ago * faq-using.xml: Rework UTF FAQ to accommodate latest setlocale
Corinna Vinschen [Tue, 3 Mar 2009 10:36:59 +0000 (10:36 +0000)]
* faq-using.xml: Rework UTF FAQ to accommodate latest setlocale
change in newlib.

15 years ago * libc/locale/locale.c (_setlocale_r): New implementation based on
Corinna Vinschen [Tue, 3 Mar 2009 09:28:45 +0000 (09:28 +0000)]
* libc/locale/locale.c (_setlocale_r): New implementation based on
FreeBSD's setlocale.
(currentlocale): New helper function.
(loadlocale): Ditto.
(__locale_charset): New function.
(__locale_msgcharset): Rename from __locale_charset.
* libc/ctype/local.h (__lc_ctype): Remove declaration.
(__locale_charset): Declare.
* libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
using __lc_ctype directly.  Only compare against the charset alone.
* libc/ctype/iswblank.c (iswblank): Ditto.
* libc/ctype/iswcntrl.c (iswcntrl): Ditto.
* libc/ctype/iswprint.c (iswprint): Ditto.
* libc/ctype/iswpunct.c (iswpunct): Ditto.
* libc/ctype/iswspace.c (iswspace): Ditto.
* libc/ctype/towlower.c (towlower): Ditto.
* libc/ctype/towupper.c (towupper): Ditto.
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
* libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
* libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
__locale_msgcharset instead of __locale_charset.

15 years ago * pathnames.sgml: Remove reference to managed mountpoints in mount
Corinna Vinschen [Tue, 3 Mar 2009 09:11:45 +0000 (09:11 +0000)]
* pathnames.sgml: Remove reference to managed mountpoints in mount
entry example.

15 years ago2009-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 2 Mar 2009 23:30:59 +0000 (23:30 +0000)]
2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
        charset, cast wchar to size_t in case wchar_t is signed.
        * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.

15 years ago2009-03-02 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Mon, 2 Mar 2009 23:20:28 +0000 (23:20 +0000)]
2009-03-02  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
        invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
        value in case of using a singlebyte charset.

15 years ago * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
Corinna Vinschen [Mon, 2 Mar 2009 10:56:19 +0000 (10:56 +0000)]
* utils.sgml: Set example prompt to "$" throughout.  Don't use "/"
as example cygdrive prefix.  Remove reference to -u and -s options.
Add an example using the -o flag.

15 years ago * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
Corinna Vinschen [Mon, 2 Mar 2009 10:47:04 +0000 (10:47 +0000)]
* mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
Add comments.

15 years agoAdd support for Score7 architecture.
Nick Clifton [Mon, 2 Mar 2009 10:33:07 +0000 (10:33 +0000)]
Add support for Score7 architecture.

15 years ago Backport from git Libtool:
Ralf Wildenhues [Sun, 1 Mar 2009 18:57:16 +0000 (18:57 +0000)]
Backport from git Libtool:

2009-01-19  Robert Millan  <rmh@aybabtu.com>
Support GNU/kOpenSolaris.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

ld/
* configure: Regenerate.

15 years ago* dtable.cc (dtable::select_read): Add ability to override fh.
Christopher Faylor [Fri, 27 Feb 2009 00:34:40 +0000 (00:34 +0000)]
* dtable.cc (dtable::select_read): Add ability to override fh.
* fhandler.h (fhandler_fifo::select_read): Declare new function.
(fhandler_fifo::select_write): Ditto.
(fhandler_fifo::select_except): Ditto.
* select.cc (peek_pipe): Treat certain classes of pipe errors as "no data".
(fhandler_fifo::select_read): Define new function.
(fhandler_fifo::select_write): Ditto.
(fhandler_fifo::select_except): Ditto.
* shared_info.h (CURR_SHARED_MAGIC): Update.

15 years agogas/
Peter Bergner [Thu, 26 Feb 2009 22:07:33 +0000 (22:07 +0000)]
gas/
* config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
"f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
(parse_cpu): Extend -mpower7 to accept power7 and isel instructions.

gas/testsuite/
* gas/ppc/e500mc.d ("wait", "waitsrv", "waitimpl"): Add tests.
* gas/ppc/e500mc.s: Likewise.
* gas/ppc/power6.d ("cdtbcd", "cbcdtd", "addg6s"): Add tests.
* gas/ppc/power6.s: Likewise.
* gas/ppc/power7.d ("lfdpx", "mffgpr", "mftgpr"): Remove invalid tests.
("wait", "waitsrv", "waitimpl", "divwe", "divwe.", "divweo", "divweo.",
"divweu", "divweu.", "divweuo", "divweuo.", "bpermd", "popcntw",
"popcntd", "ldbrx", "stdbrx", "lfiwzx", "lfiwzx", "fcfids", "fcfids.",
"fcfidus", "fcfidus.", "fctiwu", "fctiwu.", "fctiwuz", "fctiwuz.",
"fctidu", "fctidu.", "fctiduz", "fctiduz.", "fcfidu", "fcfidu.",
"ftdiv", "ftdiv", "ftsqrt", "ftsqrt", "dcbtt", "dcbtstt", "dcffix",
"dcffix.", "lbarx", "lbarx", "lbarx", "lharx", "lharx", "lharx",
"stbcx.", "sthcx.", "fre", "fre.", "fres", "fres.", "frsqrte",
"frsqrte.", "frsqrtes", "frsqrtes.", "isel"): Add tests.
* gas/ppc/power7.s: Likewise.
* gas/ppc/vsx.d: New test.
* gas/ppc/vsx.s: Likewise.
* gas/ppc/ppc.exp: Run it.

include/opcode/
* ppc.h (PPC_OPCODE_POWER7): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Extend -Mpower7 to disassemble
the power7 and the isel instructions.
* ppc-opc.c (insert_xc6, extract_xc6): New static functions.
(insert_dm, extract_dm): Likewise.
(XB6): Update comment to include XX2 form.
(WC, XC6, SHW, DMEX, UIM, XX2, XX3RC, XX4, XX2_MASK, XX2UIM_MASK,
XX2BF_MASK, XX3BF_MASK, XX3SHW_MASK, XX4_MASK, XWC_MASK, POWER7): New.
(RemoveXX3DM): Delete.
(powerpc_opcodes): <"lfdp", "lfdpx", "mcrxr", "mftb", "mffgpr",
"mftgpr">: Deprecate for POWER7.
<"fres", "fres.", "frsqrtes", "frsqrtes.", "fre", "fre.", "frsqrte",
"frsqrte.">: Deprecate the three operand form and enable the two
operand form for POWER7 and later.
<"wait">: Extend to accept optional parameter.  Enable for POWER7.
<"waitsrv", "waitimpl">: Add extended opcodes.
<"ldbrx", "stdbrx">: Enable for POWER7.
<"cdtbcd", "cbcdtd", "addg6s">: Add POWER6 opcodes.
<"bpermd", "dcbtstt", "dcbtt", "dcffix.", "dcffix", "divde.", "divde",
"divdeo.", "divdeo", "divdeu.", "divdeu", "divdeuo.", "divdeuo",
"divwe.", "divwe", "divweo.", "divweo", "divweu.", "divweu", "divweuo.",
"divweuo", "fcfids.", "fcfids", "fcfidu.", "fcfidu", "fcfidus.",
"fcfidus", "fctidu.", "fctidu", "fctiduz.", "fctiduz", "fctiwu.",
"fctiwu", "fctiwuz.", "fctiwuz", "ftdiv", "ftsqrt", "lbarx", "lfiwzx",
"lharx", "popcntd", "popcntw", "stbcx.", "sthcx.">: Add POWER7 opcodes.
<"lxsdux", "lxsdx", "lxvdsx", "lxvw4ux", "lxvw4x", "stxsdux", "stxsdx",
"stxvw4ux", "stxvw4x", "xsabsdp", "xsadddp", "xscmpodp", "xscmpudp",
"xscpsgndp", "xscvdpsp", "xscvdpsxds", "xscvdpsxws", "xscvdpuxds",
"xscvdpuxws", "xscvspdp", "xscvsxddp", "xscvuxddp", "xsdivdp",
"xsmaddadp", "xsmaddmdp", "xsmaxdp", "xsmindp", "xsmsubadp",
"xsmsubmdp", "xsmuldp", "xsnabsdp", "xsnegdp", "xsnmaddadp",
"xsnmaddmdp", "xsnmsubadp", "xsnmsubmdp", "xsrdpi", "xsrdpic",
"xsrdpim", "xsrdpip", "xsrdpiz", "xsredp", "xsrsqrtedp", "xssqrtdp",
"xssubdp", "xstdivdp", "xstsqrtdp", "xvabsdp", "xvabssp", "xvadddp",
"xvaddsp", "xvcmpeqdp.", "xvcmpeqdp", "xvcmpeqsp.", "xvcmpeqsp",
"xvcmpgedp.", "xvcmpgedp", "xvcmpgesp.", "xvcmpgesp", "xvcmpgtdp.",
"xvcmpgtdp", "xvcmpgtsp.", "xvcmpgtsp", "xvcpsgnsp", "xvcvdpsp",
"xvcvdpsxds", "xvcvdpsxws", "xvcvdpuxds", "xvcvdpuxws", "xvcvspdp",
"xvcvspsxds", "xvcvspsxws", "xvcvspuxds", "xvcvspuxws", "xvcvsxddp",
"xvcvsxdsp", "xvcvsxwdp", "xvcvsxwsp", "xvcvuxddp", "xvcvuxdsp",
"xvcvuxwdp", "xvcvuxwsp", "xvdivdp", "xvdivsp", "xvmaddadp",
"xvmaddasp", "xvmaddmdp", "xvmaddmsp", "xvmaxdp", "xvmaxsp",
"xvmindp", "xvminsp", "xvmovsp", "xvmsubadp", "xvmsubasp", "xvmsubmdp",
"xvmsubmsp", "xvmuldp", "xvmulsp", "xvnabsdp", "xvnabssp", "xvnegdp",
"xvnegsp", "xvnmaddadp", "xvnmaddasp", "xvnmaddmdp", "xvnmaddmsp",
"xvnmsubadp", "xvnmsubasp", "xvnmsubmdp", "xvnmsubmsp", "xvrdpi",
"xvrdpic", "xvrdpim", "xvrdpip", "xvrdpiz", "xvredp", "xvresp",
"xvrspi", "xvrspic", "xvrspim", "xvrspip", "xvrspiz", "xvrsqrtedp",
"xvrsqrtesp", "xvsqrtdp", "xvsqrtsp", "xvsubdp", "xvsubsp", "xvtdivdp",
"xvtdivsp", "xvtsqrtdp", "xvtsqrtsp", "xxland", "xxlandc", "xxlnor",
"xxlor", "xxlxor", "xxmrghw", "xxmrglw", "xxsel", "xxsldwi", "xxspltd",
"xxspltw", "xxswapd">: Add VSX opcodes.

15 years ago2009-02-26 Brooks Moses <brooks@codesourcery.com>
Jeff Johnston [Thu, 26 Feb 2009 21:32:45 +0000 (21:32 +0000)]
2009-02-26  Brooks Moses  <brooks@codesourcery.com>

        * libc/machine/arm/strcpy.c: Add missing comma.

15 years agoFix character set problem with Ralf's name.
Jeff Johnston [Thu, 26 Feb 2009 21:04:59 +0000 (21:04 +0000)]
Fix character set problem with Ralf's name.

15 years ago2009-02-26 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 26 Feb 2009 21:03:53 +0000 (21:03 +0000)]
2009-02-26  Ralf Corsépius  <ralf.corsepius@rtems.org>

        * libc/machine/lm32/configure.in: Let
        AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
        * libs/machine/lm32/configure: Regenerate.

15 years ago2009-02-25 Brooks Moses <brooks@codesourcery.com>
Jeff Johnston [Wed, 25 Feb 2009 21:33:18 +0000 (21:33 +0000)]
2009-02-25  Brooks Moses  <brooks@codesourcery.com>

        * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
          mbsnrtowcs.def, wcsnrtombs.def.
        * libc/stdlib/Makefile.in: Regenerate.
        * libc/stdlib/stdlib.tex (@menu): Use correct section
          names for mbsrtowcs, wcsrtombs.
        * libc/stdlib/wcstod.c: Remove stray character in
          documentation.

15 years ago * mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6 byte UTF-8
Corinna Vinschen [Wed, 25 Feb 2009 09:10:09 +0000 (09:10 +0000)]
* mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6 byte UTF-8
sequences since they are invalid in the Unicode standard.
Handle surrogate pairs in case of wchar_t == UTF-16.
* wctomb_r.c (_wctomb_r): Don't convert invalid Unicode wchar_t
values beyond 0x10ffff into UTF-8 chars.  Handle surrogate pairs in
case of wchar_t == UTF-16.

15 years ago * libc/stdio/open_memstream.c (stdint.h): Include.
Kevin Buettner [Wed, 25 Feb 2009 04:00:05 +0000 (04:00 +0000)]
* libc/stdio/open_memstream.c (stdint.h): Include.

15 years agoAdd DESTDIR functionality to Makefile.in's.
Christopher Faylor [Tue, 24 Feb 2009 02:11:14 +0000 (02:11 +0000)]
Add DESTDIR functionality to Makefile.in's.

15 years ago2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 Feb 2009 01:43:49 +0000 (01:43 +0000)]
2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (STB_LOPROC): Replace Application-specific with
Processor-specific in comments.
(STB_HIPROC): Likewise.
(STT_LOPROC): Likewise.
(STT_HIPROC): Likewise.

15 years ago2009-02-23 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Mon, 23 Feb 2009 23:42:03 +0000 (23:42 +0000)]
2009-02-23  Craig Howland  <howland@LGSInnovations.com>

        * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
        coupling ttyname_r() and ttyname() due to the latter's large buffer).
        * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
        ttyname.c.
        * libc/unix/ttyname.h:  New file (common size definition for the 2
        ttyname*c files that are now split).
        * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
        * libc/unix/Makefile.in:  Regenerate.

15 years ago * sec_auth.cc (get_user_local_groups): Simplify LookupAccountName code.
Corinna Vinschen [Mon, 23 Feb 2009 18:27:48 +0000 (18:27 +0000)]
* sec_auth.cc (get_user_local_groups): Simplify LookupAccountName code.

15 years ago * faq-using.xml: Rework XEmacs FAQ.
Corinna Vinschen [Mon, 23 Feb 2009 16:33:17 +0000 (16:33 +0000)]
* faq-using.xml: Rework XEmacs FAQ.

15 years ago * autoload.cc (NetLocalGroupEnum): Remove.
Corinna Vinschen [Fri, 20 Feb 2009 16:10:45 +0000 (16:10 +0000)]
* autoload.cc (NetLocalGroupEnum): Remove.
(NetLocalGroupGetMembers): Remove.
(NetUserGetLocalGroups): Add.
* sec_auth.cc (is_group_member): Remove function.
(get_user_local_groups): Get user as string instead of as SID.
Call NetUserGetLocalGroups instead of NetLocalGroupEnum.  Drop call
to is_group_member.
(get_server_groups): Call get_user_local_groups with user name instead
of user SID.

15 years ago * winver.rc: Fix Copyright date.
Corinna Vinschen [Thu, 19 Feb 2009 16:12:02 +0000 (16:12 +0000)]
* winver.rc: Fix Copyright date.

15 years ago * cygwin.din: Export mbsnrtowcs and wcsnrtombs.
Corinna Vinschen [Thu, 19 Feb 2009 09:22:51 +0000 (09:22 +0000)]
* cygwin.din: Export mbsnrtowcs and wcsnrtombs.
* posix.sgml: Move mbsnrtowcs and wcsnrtombs to SUSv4 section.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/wchar.h (mbsnrtowcs): Declare.
Corinna Vinschen [Thu, 19 Feb 2009 09:19:42 +0000 (09:19 +0000)]
* libc/include/wchar.h (mbsnrtowcs): Declare.
(_mbsnrtowcs_r): Declare.
(wcsnrtombs): Declare.
(_wcsnrtombs_r): Declare.
* libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
and wcsnrtombs.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
* libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
(mbsrtowcs): Ditto.
* libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
(wcsrtombs): Ditto.
* libc/stdlib/stdlib.tex: Accommodate new documentation.

15 years ago2009-02-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 18 Feb 2009 21:28:41 +0000 (21:28 +0000)]
2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
        buffer size to be in wchar_t units if wide == 1 is passed in.  In
        this case, also initialize the first character of the buffer to be
        wide char null.
        (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
        * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
        incrementing the size_t value n to first check that n is not already
        size_t -1.  Fix some compiler warnings.
        * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.

15 years ago * cygwin.din: Export open_wmemstream.
Corinna Vinschen [Wed, 18 Feb 2009 17:38:16 +0000 (17:38 +0000)]
* cygwin.din: Export open_wmemstream.
* posix.sgml: Move open_wmemstream to SUSv4 section.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
Corinna Vinschen [Wed, 18 Feb 2009 17:35:24 +0000 (17:35 +0000)]
* libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
(struct memstream): Add wide element.
Change saved to a union to take char and wchar_t values.
(memwriter): Accommodate wide-oriented oeprations.
(memseeker): Ditto.
(memseeker64): Ditto.
(memcloser): Ditto.
(internal_open_memstream_r): New static function.  Take functionality
from former _open_memstream_r and handle additional "wide" parameter.
(_open_memstream_r): Just call internal_open_memstream_r with wide==-1
from here.
(_open_wmemstream_r): New function.
(open_wmemstream): Ditto.
* libc/include/wchar.h (open_wmemstream): Declare.
(_open_wmemstream_r): Declare.

15 years ago * cygwin.din: Export reallocf.
Corinna Vinschen [Mon, 16 Feb 2009 20:22:38 +0000 (20:22 +0000)]
* cygwin.din: Export reallocf.
* malloc_wrapper.cc( reallocf): New function.
* posix.sgml: Add reallocf to BSD section.
* include/cygwin/version.h: Bump API minor number.
* libc/fts.c: Remove erroneous reallocf definition.

15 years ago * cygwin.din: Export wcstoimax, wcstoumax.
Corinna Vinschen [Mon, 16 Feb 2009 15:36:01 +0000 (15:36 +0000)]
* cygwin.din: Export wcstoimax, wcstoumax.
* posix.sgml: Move wcstoimax and wcstoumax to SUSv4 section.
* include/inttypes.h: Declare wcstoimax and wcstoumax.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/stdio/fputwc.c: Fix typo in man page info.
Corinna Vinschen [Mon, 16 Feb 2009 15:04:34 +0000 (15:04 +0000)]
* libc/stdio/fputwc.c: Fix typo in man page info.

15 years ago * faq-using.xml: Fix usage of ampersand in NT emacs script.
Corinna Vinschen [Sat, 14 Feb 2009 20:56:48 +0000 (20:56 +0000)]
* faq-using.xml: Fix usage of ampersand in NT emacs script.

15 years ago * faq-using.xml: Expand Emacs entries.
Corinna Vinschen [Sat, 14 Feb 2009 20:52:50 +0000 (20:52 +0000)]
* faq-using.xml: Expand Emacs entries.

15 years ago * overview.sgml: Fix 1.7 release date.
Corinna Vinschen [Fri, 13 Feb 2009 18:41:32 +0000 (18:41 +0000)]
* overview.sgml: Fix 1.7 release date.

15 years ago * cygwin.din: Export wcsnlen.
Corinna Vinschen [Fri, 13 Feb 2009 18:39:37 +0000 (18:39 +0000)]
* cygwin.din: Export wcsnlen.
* posix.sgml: Move wcsnlen to SUSv4 section.
* include/cygwin/version.h: Bump API minor number.

15 years ago * environ.cc (_getenv_r): New function.
Corinna Vinschen [Fri, 13 Feb 2009 17:49:37 +0000 (17:49 +0000)]
* environ.cc (_getenv_r): New function.

15 years ago * posix.sgml: Move dirfd to SUSv4 section.
Corinna Vinschen [Fri, 13 Feb 2009 12:45:02 +0000 (12:45 +0000)]
* posix.sgml: Move dirfd to SUSv4 section.

15 years ago * cygwin-api.in.sgml: Fix API section layout.
Corinna Vinschen [Fri, 13 Feb 2009 12:23:21 +0000 (12:23 +0000)]
* cygwin-api.in.sgml: Fix API section layout.

15 years ago * posix.sgml: Move interfaces deprecated in SUSv4 to deprecated
Corinna Vinschen [Fri, 13 Feb 2009 12:19:25 +0000 (12:19 +0000)]
* posix.sgml: Move interfaces deprecated in SUSv4 to deprecated
interfaces section.  Move interfaces added in SUSv4 to SUSv4
section or, if unimplemented, add them to the unimplemented interfaces
section.

15 years ago * posix.sgml: Merge SUSv3 and SUSv4 section into a single SUSv4 section.
Corinna Vinschen [Fri, 13 Feb 2009 11:33:32 +0000 (11:33 +0000)]
* posix.sgml: Merge SUSv3 and SUSv4 section into a single SUSv4 section.
Move Solaris calls now in SUSv4 to SUSv4 section.  Rename unimplemented
section to refer to SUSv4.  Add note about missing interfaces.
Move wcstod and wcstof from unimplemented to SUSv4 section.

15 years ago * pathnames.sgml: Add a cygdrive section.
Corinna Vinschen [Fri, 13 Feb 2009 10:13:28 +0000 (10:13 +0000)]
* pathnames.sgml: Add a cygdrive section.

15 years ago * mount.cc (mount_info::from_fstab_line): Make cygdrive posix=0 by
Corinna Vinschen [Fri, 13 Feb 2009 09:05:42 +0000 (09:05 +0000)]
* mount.cc (mount_info::from_fstab_line): Make cygdrive posix=0 by
default as documented.

15 years ago * pathnames.sgml: Replace "binmode" with new "binary" output of mount.
Corinna Vinschen [Fri, 13 Feb 2009 09:04:51 +0000 (09:04 +0000)]
* pathnames.sgml: Replace "binmode" with new "binary" output of mount.

15 years ago * cygwin.din: Export wcstod and wcstof.
Corinna Vinschen [Fri, 13 Feb 2009 08:33:11 +0000 (08:33 +0000)]
* cygwin.din: Export wcstod and wcstof.
* include/cygwin/version.h: Bump API minor number.

15 years ago2009-02-12 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Thu, 12 Feb 2009 23:10:01 +0000 (23:10 +0000)]
2009-02-12  Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/wchar.h (_wcstod_r): Declare.
        (_wcstof_r): Declare.
        (wcstod): Declare.
        (wcstof): Declare.
        * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
        (CHEWOUT_FILES): Add wcstod.def.
        * libc/stdlib/Makefile.in: Regenerate.
        * libc/stdlib/stdlib.tex: Add wcstod.
        * libc/stdlib/wcstod.c: New file.

15 years ago * faq-using.xml: First cut on Emacs.
Corinna Vinschen [Thu, 12 Feb 2009 15:30:03 +0000 (15:30 +0000)]
* faq-using.xml: First cut on Emacs.

15 years ago * faq-setup.xml: Revamp for Cygwin 1.7.
Corinna Vinschen [Thu, 12 Feb 2009 14:45:50 +0000 (14:45 +0000)]
* faq-setup.xml: Revamp for Cygwin 1.7.
* faq-using.xml: Ditto.

15 years ago * faq-programming.xml: Revamp (mostely) for Cygwin 1.7.
Corinna Vinschen [Wed, 11 Feb 2009 18:22:50 +0000 (18:22 +0000)]
* faq-programming.xml: Revamp (mostely) for Cygwin 1.7.
* faq-what.xml: Ditto.

15 years ago * Makefile.in (FAQ_SOURCES): Define FAQ sources.
Corinna Vinschen [Wed, 11 Feb 2009 16:44:13 +0000 (16:44 +0000)]
* Makefile.in (FAQ_SOURCES): Define FAQ sources.
(faq/faq.html): Depend on FAQ sources.
(faq/faq-nochunks.html): Ditto.
* faq-api.xml: Revamp for Cygwin 1.7.
* faq-problems.xml: Remove.
* faq-sections.xml: Accommodate removal of faq-problems.xml.
* faq.xml: Ditto.

15 years ago * syscalls.cc (open): Handle O_DIRECTORY flag.
Corinna Vinschen [Wed, 11 Feb 2009 16:06:39 +0000 (16:06 +0000)]
* syscalls.cc (open): Handle O_DIRECTORY flag.
* include/fcntl.h: Add SUSv4 flags O_DIRECTORY, O_EXEC and O_SEARCH.
* include/cygwin/version.h: Bump API minor number.

15 years ago * fhandler_floppy.cc (fhandler_dev_floppy::open): Fix format. Add
Corinna Vinschen [Mon, 9 Feb 2009 18:28:53 +0000 (18:28 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::open): Fix format.  Add
code to allow to read disk and CD/DVD devices in full length.  Explain
why.
(fhandler_dev_floppy::raw_read): Add current position to debug output.

* include/sys/sched.h: New stub file to override newlib file with
clashing definitions.

15 years ago * include/winioctl.h (FSCTL_ALLOW_EXTENDED_DASD_IO): Copy definition
Corinna Vinschen [Mon, 9 Feb 2009 18:22:08 +0000 (18:22 +0000)]
* include/winioctl.h (FSCTL_ALLOW_EXTENDED_DASD_IO): Copy definition
from ddk/ntifs.h.

15 years agoMinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
Keith Marshall [Sun, 8 Feb 2009 18:02:17 +0000 (18:02 +0000)]
MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.

15 years ago2009-02-06 Linton Miller <Linton.Miller@trivininc.com>
Chris Sutcliffe [Sat, 7 Feb 2009 04:34:27 +0000 (04:34 +0000)]
2009-02-06  Linton Miller  <Linton.Miller@trivininc.com>

        * include/wtsapi32.h (WTS_CURRENT_SESSION): Fix definition.

15 years ago * i386.h: Add comment regarding sse* insns and prefixes.
Doug Evans [Fri, 6 Feb 2009 23:14:34 +0000 (23:14 +0000)]
* i386.h: Add comment regarding sse* insns and prefixes.

15 years ago2009-02-05 Neal H. Walfield <neal@gnu.org>
Jeff Johnston [Thu, 5 Feb 2009 20:10:21 +0000 (20:10 +0000)]
2009-02-05  Neal H. Walfield  <neal@gnu.org>

        * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.

15 years ago * cygwin.din: Export wcstok.
Corinna Vinschen [Thu, 5 Feb 2009 17:30:17 +0000 (17:30 +0000)]
* cygwin.din: Export wcstok.
* posix.sgml: Move wcstok from unimplemented to susv3.
* include/cygwin/version.h: Bump API minor number.

15 years ago* Makefile.tpl (stage_last): Define $r and $s before using
Andreas Schwab [Thu, 5 Feb 2009 15:45:55 +0000 (15:45 +0000)]
* Makefile.tpl (stage_last): Define $r and $s before using
$(RECURSE_FLAGS_TO_PASS).
* Makefile.in: Regenerate

15 years ago * fhandler_proc.cc (proc_tab): Add entry for mounts symlink.
Corinna Vinschen [Wed, 4 Feb 2009 16:40:04 +0000 (16:40 +0000)]
* fhandler_proc.cc (proc_tab): Add entry for mounts symlink.
(format_proc_mounts): New function to implement mounts symlink.
* fhandler_process.cc (process_tab): Add entry for mounts file.
(format_process_mounts): New function to implement mounts file.

15 years ago * security.cc (alloc_sd): Disable generating default permission entries
Corinna Vinschen [Wed, 4 Feb 2009 15:26:22 +0000 (15:26 +0000)]
* security.cc (alloc_sd): Disable generating default permission entries
for directories.

15 years agobfd:
Joseph Myers [Tue, 3 Feb 2009 18:16:04 +0000 (18:16 +0000)]
bfd:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
* archures.c (bfd_mach_mips_xlr): Define.
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_xlr): Define.
(arch_info_struct): Add XLR entry.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
(mips_set_isa_flags): Handle bfd_mach_mips_xlr
(mips_mach_extensions): Add XLR entry.

binutils:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR.

gas:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
M_MSGWAIT and M_MSGWAIT_T.
(mips_cpu_info_table): Add XLR entry.
* doc/c-mips.texi (-march): Document xlr.

gas/testsuite:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* gas/mips/mips.exp (xlr): New architecture.
(xlr-ext): Run test.
* gas/mips/xlr-ext.d, gas/mips/xlr-ext.s: New.

include/elf:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips.h (E_MIPS_MACH_XLR): Define.

include/opcode:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips.h (INSN_XLR): Define.
(INSN_CHIP_MASK): Update.
(CPU_XLR): Define.
(OPCODE_IS_MEMBER): Update.
(M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT, M_MSGWAIT_T): Define.

opcodes:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips-dis.c (mips_cp0_names_xlr, mips_cp0sel_names_xlr): Define.
(mips_arch_choices): Add XLR entry.
* mips-opc.c (XLR): Define.
(mips_builtin_opcodes): Add XLR instructions.

15 years agobfd:
Joseph Myers [Tue, 3 Feb 2009 15:54:01 +0000 (15:54 +0000)]
bfd:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am
and install-pdf-recursive targets. Define pdfdir.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate
* doc/Makefile.in: Regenerate.

binutils:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

etc:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* configure: Regenerate.

gas:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

gprof:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.

ld:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.

opcodes:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* Makefile.am: Add install-pdf target.
* po/Make-in: Add install-pdf target.
* Makefile.in: Regenerate.

15 years ago M68K TLS support.
Nick Clifton [Tue, 3 Feb 2009 14:36:47 +0000 (14:36 +0000)]
    M68K TLS support.

        ld/testsuite/
        * ld-m68k/got-multigot-12-13-14-34-35-ok.d: Update.
        * ld-m68k/got-multigot-14-ok.d: Update.
        * ld-m68k/m68k-got.exp: Update.
        * ld-m68k/got-negative-12-13-14-34-ok.d: Update.
        * ld-m68k/got-negative-14-ok.d: Update.
        * ld-m68k/tls-gd-1.d, ld-m68k/tls-gd-2.d: New tests.
        * ld-m68k/tls-gd-ie-1.d, ld-m68k/tls-ie-1.d: New tests.
        * ld-m68k/tls-ld-1.d, ld-m68k/tls-ld-2.d: New tests.
        * ld-m68k/tls-ld-1.s, ld-m68k/tls-ld-2.s, ld-m68k/tls-le-1.s:
        New test sources.
        * ld-m68k/tls-no-1.s, ld-m68k/tls-gd-ie-1.s, ld-m68k/tls-gd-1.s:
        New test sources.
        * ld-m68k/tls-gd-2.s, ld-m68k/tls-ie-1.s: New test sources.
        * ld-m68k/m68k.exp: Run new tests.
        (merge isa-a isa-a:nodiv): Fix.

        gas/testsuite/
        * gas/m68k/tls-gd-3.d, gas/m68k/tls-gd-3.s: New test.
        * gas/m68k/all.exp: Run it.

        gas/
        * config/m68k-parse.h (enum pic_relocation): Add values for TLS
        relocations.
        * config/m68k-parse.y (yylex): Parse TLS relocations.
        * config/tc-m68k.c (m68k_elf_cons): New static function.
        (md_pseudo_table): Use it.
        (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
        relocations.
        (md_apply_fix): Fix to set thread local flag.
        (m68k_elf_suffix): New static function; helper for m68k_elf_cons.

        include/elf/
        * m68k.h: Map TLS relocations to numbers.

        bfd/
        * bfd-in2.h: Regenerate.
        * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
        fields from n_entries to n_slots where appropriate, update comments.
        (HOWTO): Add TLS relocations.
        (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
        (enum elf_m68k_got_offset_size): New enum.
        (struct elf_m68k_got_entry.type): Move field to ...
        (struct elf_m68k_got_entry_key): ... here.  Update all uses.
        (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
        functions.
        (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
        functions.
        (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
        fields into n_entries array.  Update comments.
        (elf_m68k_init_got): Simplify, update all uses.
        (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
        (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
        GOT entries; update name, update all uses.
        (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
        (elf_m68k_get_got_entry): Update.
        (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
        simplify.
        (elf_m68k_remove_got_entry_type): Simplify.
        (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
        (elf_m68k_can_merge_gots): Update.
        (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
        (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
        GOT entries, simplify.
        (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
        (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
        field, remove obsoleted local_n_entries field.
        (elf_m68k_partition_multi_got_2): New static function.
        (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
        update.
        (elf_m68k_remove_got_entry_type): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary
        update of sgot->size and srelgot->size.
        (elf_m68k_gc_sweep_hook): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
        TLS relocations.
        * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
        * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.

15 years ago * pathnames.sgml: Rephrase the "Case sensitive filenames" chapter
Corinna Vinschen [Tue, 3 Feb 2009 09:03:18 +0000 (09:03 +0000)]
* pathnames.sgml: Rephrase the "Case sensitive filenames" chapter
slightly.

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