Recent commits on uclibc-ng (git) - uClinux-H8 - OSDN https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/ fa5e89: h8300: O_DIRECT and O_DIRECTIRY swapping. https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/fa5e8910f97a7f7aaa2667f4048057301a097f52 Yoshinori Sato Commit: fa5e8910f97a7f7aaa2667f4048057301a097f52
h8300: O_DIRECT and O_DIRECTIRY swapping.
]]>
189c68: h8300: Add ARCH_HAS_DEPRECATED_SYSCALLS Signed-off-by: Y... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/189c68825e87645ad822397531d9d868c3c50c48 ]]> Yoshinori Sato Commit: 189c68825e87645ad822397531d9d868c3c50c48
h8300: Add ARCH_HAS_DEPRECATED_SYSCALLS

Signed-off-by: Yoshinori Sato 
]]>
5a20ac: revert changes https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/5a20ac99efe282a233dc2f259876671eab4a10d1 Yoshinori Sato Commit: 5a20ac99efe282a233dc2f259876671eab4a10d1
revert changes
]]>
52d0bb: getdents is deprecated. So redirect to readdir64 in __ARC... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/52d0bbddfaa9492f4c57347e0f9040e2bb09001f ]]> Yoshinori Sato Commit: 52d0bbddfaa9492f4c57347e0f9040e2bb09001f
getdents is deprecated.
So redirect to readdir64 in __ARCH_HAS_DEPRECATED_SYSCALLS__.

Signed-off-by: Yoshinori Sato 
]]>
69c359: __ARCH_HAS_DEPRECATED_SYSCALLS__ case fix. getdents is de... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/69c3592d7ffdf7b0dfb35c85f2607e5d79ab5f5a ]]> Yoshinori Sato Commit: 69c3592d7ffdf7b0dfb35c85f2607e5d79ab5f5a
__ARCH_HAS_DEPRECATED_SYSCALLS__ case fix.
getdents is deprecated.

Signed-off-by: Yoshinori Sato 
]]>
9eecd9: Remove alias. open_cancel and open2_cancel have diffrent... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/9eecd9ab66d8616a1b5f03db6d6d9ef366dfc312 ]]> Yoshinori Sato Commit: 9eecd9ab66d8616a1b5f03db6d6d9ef366dfc312
Remove alias.

open_cancel and open2_cancel have diffrent argument on open.
So can't alias this functions.

Signed-off-by: Yoshinori Sato 
]]>
162e01: openat argument fix. If argument passing to register cas... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/162e01e2e7b2b80711ea4701444f083732861ecf ]]> Yoshinori Sato Commit: 162e01e2e7b2b80711ea4701444f083732861ecf
openat argument fix.

If argument passing to register case (ex. -mregparam=3).
This case set all parameters set to register from caller.
But callee refer to stack. So can't get parameter.

Signed-off-by: Yoshinori Sato 
]]>
4a4c4e: h8300: vfork flags update. Signed-off-by: Yoshinori Sato... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/4a4c4e9e1a53c00d21600344d3fb044050297f7d ]]> Yoshinori Sato Commit: 4a4c4e9e1a53c00d21600344d3fb044050297f7d
h8300: vfork flags update.

Signed-off-by: Yoshinori Sato 
]]>
35c132: rx: update Signed-off-by: Yoshinori Sato <ysato@users.so... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/35c132c4692a8227e0a9a3dfaa8306a13c7f0ffb ]]> Yoshinori Sato Commit: 35c132c4692a8227e0a9a3dfaa8306a13c7f0ffb
rx: update

Signed-off-by: Yoshinori Sato 
]]>
a0c13b: rx: update Signed-off-by: Yoshinori Sato <ysato@users.so... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/a0c13b17a2e6f9ab6d94377d8255605ceba74c7e ]]> Yoshinori Sato Commit: a0c13b17a2e6f9ab6d94377d8255605ceba74c7e
rx: update

Signed-off-by: Yoshinori Sato 
]]>
248b95: Add RX support. Signed-off-by: Yoshinori Sato <ysato@use... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/248b95ace92e0b9233768bdf2d6e45d0f3f8b5d9 ]]> Yoshinori Sato Commit: 248b95ace92e0b9233768bdf2d6e45d0f3f8b5d9
Add RX support.

Signed-off-by: Yoshinori Sato 
]]>
7db56e: remove deprecated architectures v850/i960 Both architect... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/7db56e580823ca91aff186d46eac693b09b9bb0e Waldemar Brodkorb Commit: 7db56e580823ca91aff186d46eac693b09b9bb0e
remove deprecated architectures v850/i960

Both architectures are more or less deprecated.
No Linux upstream support, no gcc support for uClinux.
]]>
49b3d8: Replace bltzal with lapc for MIPS R6 builds. The R6 vers... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/49b3d8569a8c8cb724ba6eadb34dea2df9b5ec4d ]]> Steve Ellcey Commit: 49b3d8569a8c8cb724ba6eadb34dea2df9b5ec4d
Replace bltzal with lapc for MIPS R6 builds.

The R6 version of MIPS does not support the bltzal instruction.  This
patch changes dl-startup.h and dl-sysdep.h to use lapc on R6 instead.
lapc is a new R6 insruction so older systems need to continue to use
bltzal in order to load register $31.

Signed-off-by: Steve Ellcey 
]]>
b778f3: Replace MIPS specific memcpy.S/memset.S with version from... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/b778f37b8395a3258925e13a706dbc7d43c7c0ed ]]> Steve Ellcey Commit: b778f37b8395a3258925e13a706dbc7d43c7c0ed
Replace MIPS specific memcpy.S/memset.S with version from glibc/newlib.

These MIPS specific versions of memcpy.S and memset.S are faster than
the current ones and match what is in newlib and glibc.  They also have
support for the mips32r6 and mips64r6 architectures.

Signed-off-by: Steve Ellcey 
]]>
e6555c: pselect: Use linux pselect syscall when available Linux ... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/e6555c6f15da4545496c02ba569f3bc61e2a0210 = 1E9 handling comes from uclibc's linux select() implementation, which itself uses pselect() internally if the pselect syscall exists. I though it would be good to do the same here. Note that although the libc pselect() API has 6 arguments, the linux kernel syscall as 7 arguments. There is an extra, somewhat vestigial, sizeof the signal mask argument. Signed-off-by: Nicolas S. Dade ]]> Nicolas S. Dade Commit: e6555c6f15da4545496c02ba569f3bc61e2a0210
pselect: Use linux pselect syscall when available

Linux has a pselect syscall since 2.6.something. Using it
rather than emulating it with sigprocmask+select+sigprocmask
is smaller code, and works properly. (The emulation has
race conditions when unblocked signals arrive before or
after the select)

The tv.nsec >= 1E9 handling comes from uclibc's linux select()
implementation, which itself uses pselect() internally if the
pselect syscall exists. I though it would be good to do the
same here.

Note that although the libc pselect() API has 6 arguments,
the linux kernel syscall as 7 arguments. There is an extra,
somewhat vestigial, sizeof the signal mask argument.

Signed-off-by: Nicolas S. Dade 
]]>
a31204: libc/pwd_grp: Create template for non-reentrant functions... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/a312047276043f460d796ed7b38ca52791eef386 ]]> Waldemar Brodkorb Commit: a312047276043f460d796ed7b38ca52791eef386
libc/pwd_grp: Create template for non-reentrant functions

Avoid a lot of copy'n'paste code, no functionality change

Signed-off-by: Leonid Lisovskiy 
]]>
de234f: Use gcc's __builtin_mempcpy() as __mempcpy(), if possible... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/de234fb71b8847e00007dd951e22091d8e954c7b ]]> Waldemar Brodkorb Commit: de234fb71b8847e00007dd951e22091d8e954c7b
Use gcc's __builtin_mempcpy() as __mempcpy(), if possible

Patch from OpenWrt.

Reported-by: Leonid Lisovskiy 
]]>
2ffb76: use arch specific thread stack size for nptl Use the arc... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/2ffb76519c1369c239364bd5bc11e6a92937b7e9 ]]> Waldemar Brodkorb Commit: 2ffb76519c1369c239364bd5bc11e6a92937b7e9
use arch specific thread stack size for nptl

Use the arch specific thread stack size for nptl if the size
returned by getrlimits exceeds it - fixes threads on systems
with only 16 MB RAM.

Patch from OpenWRT

Reported-by: Leonid Lisovskiy 
]]>
382c1c: Do define some IPv6 related symbols even with IPv6 disabl... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/382c1c583cd55486c654cd9e1d429e2b1256acda ]]> Waldemar Brodkorb Commit: 382c1c583cd55486c654cd9e1d429e2b1256acda
Do define some IPv6 related symbols even with IPv6 disabled

Fixes compilation of some faulty applictions.
Patch from Freetz.org

Reported-by: Leonid Lisovskiy 
]]>
990f2c: resolv: fix gethostbyname2_r to match gethostbyname_r, fi... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/990f2ce7da5ee67599d6d8a12b681713776275e0 ]]> Waldemar Brodkorb Commit: 990f2ce7da5ee67599d6d8a12b681713776275e0
resolv: fix gethostbyname2_r to match gethostbyname_r, fixing bugs with AAAA lookups

The latter half of gethostbyname2_r (doing AAAA queries) is rather dramatically different
from the corresponding portion of gethostbyname_r (doing A queries). This leads to problems
like calls to getaddrinfo only returning one IPv6 address, even when multiple exist.

Seems to be entirely a case of divergent evolution -- a half-decade of fixes for the IPv4
code but no love for IPv6. Until now. ;)

DNS behaviour for IPv6 is really no different than for IPv4 -- beyond the difference in
address sizes, there's no need for the functions to be so different.

Consequently, this patch really is almost just a cut-and-paste of gethostbyname_r, with
the appropriate substitutions of in6_addr, AF_INET6, etc; while holding on to the few
extra bits that actually belong in there (eg #ifdef __UCLIBC_HAS_IPV6__).

Signed-off-by: Wes Campaigne 
]]>
5659e2: inet/resolv: Fix broken h_aliases list terminator after 2... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/5659e2a1c763a51957c3e9bd13737534a1d894c6 #include #include #include #include #include #include int main (void) { int i; char *a; struct hostent *he; struct in_addr ipv4addr; inet_pton(AF_INET, "63.63.0.2", &ipv4addr); he = gethostbyaddr(&ipv4addr, sizeof ipv4addr, AF_INET); if (he == NULL) exit(1); printf("Host name: '%s'\n", he->h_name); i = 0; while ((a = he->h_aliases[i]) != NULL) { printf("Host alias: '%s'\n", a); ++i; } return 0; } Wrong output: Host name: 'host1' Host alias: 'alias2' Host alias: 'alias3' Host alias: 'alias4' Host alias: 'alias5' Host alias: '??' Signed-off-by: Leonid Lisovskiy Signed-off-by: Waldemar Brodkorb ]]> Waldemar Brodkorb Commit: 5659e2a1c763a51957c3e9bd13737534a1d894c6
inet/resolv: Fix broken h_aliases list terminator after 2dab3f5

Commit 2dab3f5a "resolv: tiny shrinkage in /etc/hosts handling" leads to
that read_etc_hosts_r() provide garbage pointer at the end of h_aliases
list if more than four hostnames follow a dotted quad in /etc/hosts

Test-case:

Add following line to /etc/hosts
63.63.0.2    host1 alias2 alias3 alias4 alias5

	#include 
	#include 
	#include 
	#include 
	#include 
	#include 
	#include 

	int main (void)
	{
		int i;
		char *a;
		struct hostent *he;
		struct in_addr ipv4addr;

		inet_pton(AF_INET, "63.63.0.2", &ipv4addr);
		he = gethostbyaddr(&ipv4addr, sizeof ipv4addr, AF_INET);
		if (he == NULL)
			exit(1);
		printf("Host name: '%s'\n", he->h_name);
		i = 0;
		while ((a = he->h_aliases[i]) != NULL) {
			printf("Host alias: '%s'\n", a);
			++i;
		}

		return 0;
	}

 Wrong output:

 Host name: 'host1'
 Host alias: 'alias2'
 Host alias: 'alias3'
 Host alias: 'alias4'
 Host alias: 'alias5'
 Host alias: '??'

Signed-off-by: Leonid Lisovskiy 
Signed-off-by: Waldemar Brodkorb 
]]>
7807bd: Revert "glibc compat: bump glibc minor version" This rev... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/7807bd3ada8b488167f1e5ab486ef0feb560eab8 Waldemar Brodkorb Commit: 7807bd3ada8b488167f1e5ab486ef0feb560eab8
Revert "glibc compat: bump glibc minor version"

This reverts commit 4a05ed87ceb946608100642121c32e642b58cd0d.

This breaks SSP detection for gcc, which might be problematic
for some projects. Revert it after some discussion with
buildroot and openembedded people.
]]>
6c7189: reduce stack cache size to save memory space Idea from d... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/6c718953a5d42a1a815af39f276aa0fa47e75e4b Waldemar Brodkorb Commit: 6c718953a5d42a1a815af39f276aa0fa47e75e4b
reduce stack cache size to save memory space

Idea from different projects as OpenWrt and others.
https://lists.openwrt.org/pipermail/openwrt-devel/2013-November/022299.html
https://github.com/wl500g/toolchain/blob/master/toolchain/uClibc/patches/0.9.32/980-stack-cache-maxsize.patch
]]>
5caa04: testsuite subdir fix Signed-off-by: Leonid Lisovskiy <ll... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/5caa0427cfcd53d9f479b5fe44b0fdfa16bb4e25 Signed-off-by: Waldemar Brodkorb ]]> Waldemar Brodkorb Commit: 5caa0427cfcd53d9f479b5fe44b0fdfa16bb4e25
testsuite subdir fix

Signed-off-by: Leonid Lisovskiy 
Signed-off-by: Waldemar Brodkorb 
]]>
cd71b2: Add implementation for copysignl for ppc Signed-off-by: ... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/cd71b2f504b412d30bf39a34986b7ff0d80e51ef ]]> Khem Raj Commit: cd71b2f504b412d30bf39a34986b7ff0d80e51ef
Add implementation for copysignl for ppc

Signed-off-by: Khem Raj 
]]>
f5f83a: libc/stdlib: canonicalize_file_name() memory leak Uclibc... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/f5f83a9fa86a9d59300854077a8b127ad6622ebe Wojciech Nizinski Commit: f5f83a9fa86a9d59300854077a8b127ad6622ebe
libc/stdlib: canonicalize_file_name() memory leak

Uclibc's canonicalize_file_name() is allocating temprary buffer of 4kB
(PATH_MAX), and passing it to realpath() as second argument. Function is
not checking if realpath() fails and memory is lost.
]]>
5ec447: utlis/ldd: Fix host ldd in case of target wordsize differ... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/5ec4477584b69fe5f1410649b2eb3a63835fb649 Signed-off-by: Waldemar Brodkorb ]]> Waldemar Brodkorb Commit: 5ec4477584b69fe5f1410649b2eb3a63835fb649
utlis/ldd: Fix host ldd in case of target wordsize differs from host one

improved solution from http://freetz.org/ticket/842

Signed-off-by: Leonid Lisovskiy 
Signed-off-by: Waldemar Brodkorb 
]]>
73e297: test/tls: tls-macros*.h fixes from glibc glibc commits ... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/73e297159f20f73ee7bfb47cec8d74c20b010c2c Signed-off-by: Waldemar Brodkorb ]]> Waldemar Brodkorb Commit: 73e297159f20f73ee7bfb47cec8d74c20b010c2c
test/tls: tls-macros*.h fixes from glibc

glibc commits
 4822a2a520 Add x32 support to TLS_LE/TLS_IE/TLS_GD
 63fb881a04 tls-macros-mips.h: Load $gp as required.
            Merge 32-bit and 64-bit versions.

Signed-off-by: Leonid Lisovskiy 
Signed-off-by: Waldemar Brodkorb 
]]>
4b44f6: dlclose fix Patch is from Timo Teras Refs.: http://lis... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/4b44f69a3592aaa3d7269a96990e006872edf6e1 Waldemar Brodkorb Commit: 4b44f69a3592aaa3d7269a96990e006872edf6e1
dlclose fix

Patch is from Timo Teras

Refs.:
 http://lists.uclibc.org/pipermail/uclibc/2012-October/047059.html
 http://git.alpinelinux.org/cgit/aports/tree/main/libc0.9.32/uclibc-dlclose-fix.patch
]]>
b59b36: Fix syslog messages lost if syslogd is temporary busy Co... https://de.osdn.net/projects/uclinux-h8/scm/git/uclibc-ng/commits/b59b369dd19e8dedbcf43a3dce5559c2caf6152a ]]> Vladislav Grishenko Commit: b59b369dd19e8dedbcf43a3dce5559c2caf6152a
Fix syslog messages lost if syslogd is temporary busy

Commit 4139fe5aec935ba3f462dcaf6aafb6e5eadf1ab9 fixes SIGSTOPed syslogd issue.
but introduced new one - messages will be lost when socket buffer gets full,
not only if syslogd is stalled, but even if it accepts message slower than
someone sends and possibly leads to security hole, when important messages get
lost as result of attacker flooding.

Patch adds 1 second waiting for socket buffer can accept the message, helps
when syslogd is working hard. If it's stalled/SIGSTOPed, message will be sent
to errout as before. After that, further non-blocking /dev/log connect attempts
will fail immediately with EAGAIN error until syslogd reads some from it.

function                                             old     new   delta
openlog_intern                                       259     355     +96
static.tv                                              -       8      +8
.rodata                                              151     159      +8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 112/0)             Total: 112 bytes

Signed-off-by: Vladislav Grishenko 
]]>