Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Do noy use syscall wrapper based on INTERNAL_SYSCALL.
A proper fix would require an arch specific implementation.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
parts of the buffers were not being zeroed out as expected. Reported
by Dmytro Gorbunov <dmitro.gorbunov@gmail.com>.
|
|
|
|
|
|
|
|
|
|
of failure instead of -1 and setting errno, according to SuSv3
(IEEE Std 1003.1 2004 edition) specification.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
|
|
|
|
This patch adds the needed defines and function prototype for the
sync_file_range syscall on AVR32 architecture.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
|
|
|
|
|
|
Tested successfully on i386..
|
|
|
|
macro so that a dummy argument will be inserted before the long long length argument, which is expected to be in an even/odd register pair.
-This line, and those below, will be ignored--
M uClibc_arch_features.h
|
|
__UCLIBC_HAS_LOCALE__ macro but it does not include <features.h>, so that macro is never defined. This causes problems with strcoll when locale support is enabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@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>
|