Commit Graph

9248 Commits

Author SHA1 Message Date
christos
a803d40076 PR/47757: Eric Radman: mktemp(3) mangles the pathname if not given an absolute
path
1. on error, gettemp() did not restore the path string
2. when emulating mktemp() it is not an error for the pattern not to represent
   a real directory structure
XXX[1]: pullup-5, pullup-6
XXX[2]: the default pattern is the simplistic <pid><X> for mktemp.
2013-04-22 20:57:36 +00:00
joerg
6353e1f897 Add new line at the end. 2013-04-22 19:33:53 +00:00
joerg
99fac95b50 Store time-specific locale data directly in the locale.
Ad dstrftime_l, strftime_lz and strptime_l.
2013-04-21 17:45:46 +00:00
joerg
9790c07a61 Add scanf_l and wscanf_l families. 2013-04-19 23:32:16 +00:00
joerg
e81d3f1ebf Add dummy strcoll_l and strxfrm_l. 2013-04-19 23:28:47 +00:00
matt
b0c992be1b for EARM, just build __lwp_park50 compat for libpthread until the situation
is involved.
2013-04-19 22:24:10 +00:00
matt
4b9c2e46bb Fix inverted test. 2013-04-19 21:02:43 +00:00
joerg
92ad0d098d Add libc/locale to the search path. 2013-04-19 20:18:33 +00:00
matt
7d19b890df Since earm is new, don't bother building the compat libc code since there
is nothing that can use it.
2013-04-19 16:53:18 +00:00
matt
a1629854ac Ignore VFP bit in magic. 2013-04-19 16:50:22 +00:00
joerg
2561b63430 Add explicit locale versions for the printf family. Replace asprintf,
snprintf and sprintf with simple wrappers around the corresponding
va_list functions to reduce code duplication.
2013-04-19 15:22:24 +00:00
joerg
3c1c8515c7 Add MB_CUR_MAX_L. 2013-04-19 14:35:31 +00:00
matt
92551f8725 A small optimization 2013-04-19 13:45:45 +00:00
skrll
5ea8d4cfd1 Actually fail if the magic number is found to be wrong in __longjmp.
Avoid overwriting the {,_}longjmp return value in __ARM_EABI__

ok matt@
2013-04-19 13:14:10 +00:00
joerg
0feb0f126e Pass locale down to gethex as well. 2013-04-19 10:41:53 +00:00
joerg
10e0e4a06b Add wcscoll_l, wcsxfrm_l, wcsncasecmp_l, wcscasecmp_l, btowc_l,
mbrlen_l, mbsinit_l, mbsrtowcs_l, wcrtomb_l, wcsrtombs_l and wctob_l.
2013-04-18 23:24:26 +00:00
joerg
9a7fa6ff3c Add wcstof_l, wcstod_l and wcstold_l. 2013-04-18 22:23:17 +00:00
joerg
ceb51ddcad Add mblen_l, mbstowcs_l, wctomb_l, mbtowc_l and wcstombs_l. 2013-04-18 22:22:20 +00:00
joerg
c99aac45e5 Add strtof_l, strtod_l and strtold_l. 2013-04-18 21:54:10 +00:00
joerg
6ffcdd8d70 Add localeconv_l. 2013-04-17 20:40:13 +00:00
christos
b3e96d6652 PR/47747: Thorsten Brehm: TCP-based RPC client calls no longer terminate when
connections break. Return proper error code.
XXX: pullup 6
2013-04-17 16:36:47 +00:00
joerg
a67fde0356 Add strtol_l and friends. Switch _citrus_bcs_strtol to use plain
strtol_l unless in tools mode. Add note to retire the BCS code on the
next libc major bump.
2013-04-16 21:44:06 +00:00
joerg
444e318434 Add support for wcstoimax_l and friends. 2013-04-16 16:52:13 +00:00
matt
3dd33daddb Deal with arguments being NaNs 2013-04-16 13:38:34 +00:00
matt
c9faa1e14f Use MACHINE_ARCH, not MACHINE 2013-04-16 12:26:28 +00:00
joerg
b7970e3b60 Add wcwidth_l, wcswidth_l and the wctype.h family of *_l functions. 2013-04-16 11:39:13 +00:00
joerg
4e2459a9e6 Add isalpha_l and friends. 2013-04-16 11:29:12 +00:00
matt
f6c75cc7da ARM EABI needs different floating point comparision functions. 2013-04-16 10:54:53 +00:00
matt
9be231ea7c aeabi floating compare ops are different from the normal gcc softfloat ones. 2013-04-16 10:37:39 +00:00
joerg
a952f5938e Provide a const copy of global_locale for libc-internal use.
This will be used by *_l when a NULL pointer is given.
2013-04-14 23:44:53 +00:00
joerg
14b179f1c9 Rename struct _locale_impl_t to struct _locale, since it will end up as
locale_t later.
2013-04-14 23:30:15 +00:00
joerg
e8fa8f4db7 Extend ctype classification table to 16bit. Based on patch by
Takehiko Nozaki, with changes to compile fail when using the old names
and to exploit __BUILD_LEGACY
2013-04-13 10:21:20 +00:00
joerg
71e4dd8871 Use more consistent naming for tolower/toupper translation table for the
C locale. From Takehiko Nozaki with changes to use __BUILD_LEGACY.
2013-04-13 10:16:27 +00:00
joerg
575a4660cc Rename BUILDCOLD to BUILD_LEGACY and provide a preprocessor macro that
can be used in code files that aren't easy to split up. Add the removal
to the major bump todo list.
2013-04-12 19:58:45 +00:00
joerg
5dd13d5b75 Weak alias directly to the catchall stub and don't strong alias twice. 2013-04-12 18:14:22 +00:00
joerg
62898dbb43 Mark __libc_thr_exit_stub as dead. 2013-04-12 18:12:58 +00:00
wiz
35fe9915cb Remove trailing whitespace. 2013-04-07 23:12:36 +00:00
christos
d17f9381dd Add a small example. 2013-04-07 22:54:26 +00:00
christos
644dcf797e split init and errno to a separate file. No point in growing rtld 10K. 2013-04-05 20:15:42 +00:00
dholland
b4acc95ea0 stdlib.h, not malloc.h 2013-04-05 03:17:38 +00:00
wiz
3730b7cf2f pull over agc's typo fix from agc-symver branch. 2013-04-04 21:52:04 +00:00
christos
38019b46e5 no need for __lwp_park50.S here and we don't provide __lwp_park60.S so that
it does not get accidentally used.
2013-03-29 02:10:53 +00:00
christos
dabcbd76a6 Compat glue for lwp park, but does not use the new syscall yet. 2013-03-29 02:09:58 +00:00
christos
71d484f921 - Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
  the necessary functionality.
XXX: pullup to 6
2013-03-21 16:49:11 +00:00
lukem
10126a0b3e Use "unsigned FOO" instead of less-portable "u_FOO". 2013-03-20 23:44:47 +00:00
christos
c60a6af952 now live in common/lib/libc/arch/sparc64/string 2013-03-17 00:43:45 +00:00
christos
e2fcd4fa37 apply 2013b 2013-03-16 00:59:14 +00:00
martin
cd29bf72fc Remove clearing of ucontext_t, the only random register values now are
argument and scratch registers (which will be reloaded after return anyway).
2013-03-13 08:05:46 +00:00
martin
c06bee84e7 Save the GP register value and restore it on longjmp.
While formally GP is not a callee-saved register, for static linking
the link time optimization described in section 3.2.3 of the "Calling
Standard for Alpha Systems" allows the caller to rely on GP being the
value needed within setjmp() - and not restore it after return if setjmp
and the call site share a GP value.

This fixes longjmp/setjmp for statically linked programs, e.g. /rescue/csh
or the static tcsh variant from pkgsrc.
2013-03-12 19:38:20 +00:00
tron
47c0e0c312 Replace previous Sun Microsystems, Inc. license with a standard
BSD 3-clause license granted by Oracle America, Inc..
This license change was approved by Wim Coekaerts, Senior Vice President,
Linux and Virtualization at Oracle Corporation.

This fixes PR lib/45293 by Pedro Giffuni.
2013-03-11 20:19:28 +00:00