Age | Commit message (Collapse) | Author |
|
|
|
@STMicroelectronics).
This implementation is based on 'backward copying'.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
libc/stdlib/_strtod.c -> tst_wcstod;
libc/stdlib/stdlib.c -> tst_mblen, tst_mbtowc, tst_wctomb;
libc/stdio/_scanf.c -> tst_swscanf;
libc/string/strncmp.c -> tst_wcsncmp;
libc/misc/wchar/wchar.c -> tst_mbrlen, tst_mbrtowc, tst_wcswidth.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
Here follow the output of my analysis:
__stdio_fwrite expects at least 1 bytes. fputs_unlocked(S,F) calls
fwrite_unlocked and this calls __stdio_fwrite only if bytes to be
written are > 0, otherwise simply returs 0 (that is correct).
During the parsing of format spec it could happen that __stdio_fwrite
is called passing an empty string and with assertion enabled it will abort.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
doesn't fail (as glibc indeed does).
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
__extern_inline macro, this also makes gcc 4.3 happy.
(Taken from NPTL branch)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
a proper fix should ensure that statically linked mutli-threaded
binaries take always the proper locking implementation.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
instead of relying upon getdents64.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
(glibc community refused to apply a my patch for this :-) )
|
|
inversely conditional on __HAVE_SHARED__, which has been broken since
the time it was copied in originally. The compiler properly generates
the GOT references on its own, negating the entire purpose for the
init/fini reference.
|
|
it conditionally included among the installed header files depending on
UCLIBC_HAS_AI_ADDRCONFIG.
|
|
|
|
|
|
pread/write wanted to send an 8 byte value in the syscall where only 4 bytes
were allowed.
|
|
Pass via r4 the rtld finalizer
_dl_fini to the user application. This will be the 6^ arg of
__uClibc_main and will be registered with 'atexit'.
In this way the dynamic linker will be able to call destructors
defined within the loaded DSOs.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Add missing 7th arg "stack_end".
add comment of undocumented usage of r4.
fix comment of expected __uClibc_main() prototype.
Signed-off-by: Yoshii Takashi <yoshii.takashi@renesas.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
|
|
|
|
|
|
|
|
|
|
This fixes build breakage introduced in r22868.
|
|
Repair C89 compliance and severe whitespace-defects while at it.
|
|
compile-tested only, fixes
libc/misc/statfs/fstatfs64.c:29: error: 'fstatfs' undeclared here (not in a function)
|
|
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
|
|
otherwie some errno will be missed (i.e. ENOKEY used in libusb)
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
instead of modifying the contents of two bools.
|
|
|
|
running execve05 ltp test on blackfin ([#4194])
|
|
need the file outside of uClibc anyway.
|
|
Take __UCLIBC_HAS_IPV4__ into account.
|
|
getaddrinfo(3).
|
|
|
|
|
|
brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
|
|
|
|
Some of the code is functionally identical before and after, but for now
I'm just mechanically reverting the entire mess.
|
|
|
|
|
|
For now, a straight revert; we can decide later wheter we want to do something
more.
|
|
no libc_hidden_def exists for the function.
|
|
The spill routine to flush all windowed registers was missing a 'mov'
instruction.
Signed-off-by: Chris Zankel <chris@zankel.net>
|
|
__uc_malloc calls in getnetent.c, so we must retain the include and
libc_hidden_proto).
|
|
More details: http://uclibc.org/lists/uclibc/2008-June/019509.html
|
|
since posix_openpt lives in getpt.c it has to stay there unconditionally.
|
|
Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY
which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().
|
|
- ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()
|
|
definition. I seems to produce spurious warning:
libc/inet/resolv.c:1549: warning: 'visibility' attribute ignored on non-class types
(seems like gcc bug)
and it is not really needed - attribute_hidden was already
specified in function _declaration_ so it is not necessary here.
No code changes (verified with objdump).
|
|
SIGPIPE handler was attempting to re-acquire an already taken lock.
While at it, stop checking for sigaction failure which is not possible here.
Sizes:
text data bss dec hex filename
- 1123 13 2 1138 472 libc/misc/syslog/syslog.o
+ 1112 13 2 1127 467 libc/misc/syslog/syslog.o
Run tested.
|
|
text data bss dec hex filename
- 230 0 9 239 ef libc/inet/gethostent.o
+ 224 0 9 233 e9 libc/inet/gethostent.o
- 782 0 0 782 30e libc/inet/read_etc_hosts_r.o
+ 767 0 0 767 2ff libc/inet/read_etc_hosts_r.o
Run tested.
|
|
we were closing a FILE, but did not record that fact by setting
a variable to NULL, and then we used it for reading!
While at it, small reduction in bss.
Run tested.
text data bss dec hex filename
- 210 0 12 222 de libc/inet/gethostent.o
+ 230 0 9 239 ef libc/inet/gethostent.o
|