[PATCH] add argument check in mknod

2014-11-11 Thread wangyufen
mknod() in glibc/eglibc will check the argument, like this, ... if (k_dev != dev) { __set_errno (EINVAL); return -1; } ... So add argument check in uclibc's mknod() too. Signed-off-by: Wang Yufen wangyu...@huawei.com --- libc/sysdeps/linux/common/mknod.c |4 1 files

[PATCH] uclibc:fix basename modify the input path

2014-09-23 Thread Wangyufen
From: Wang Yufen wangyu...@huawei.com I tested basename(path), path is ///, the basename(path) returned /, but the input path also be modified to /. It because in basename impl, last[1] = 0; modified the input path, I think that isn't correct. This patch fix this problem. Signed-off-by: Wang

Re: [PATCH] uclibc:fix basename modify the input path

2014-09-23 Thread wangyufen
On 2014/9/24 10:07, Wangyufen wrote: From: Wang Yufen wangyu...@huawei.com I tested basename(path), path is ///, the basename(path) returned /, but the input path also be modified to /. It because in basename impl, last[1] = 0; modified the input path, I think that isn't correct

[PATCH v2] uclibc:fix basename modify the input path

2014-09-23 Thread Wangyufen
From: Wang Yufen wangyu...@huawei.com I tested basename(path), path is ///, the basename(path) returned /, but the input path also be modified to /. It because in basename impl, last[1] = 0; modified the input path, I think that isn't correct. This patch fix this problem. Signed-off-by: Wang

Re: arm: strptime(x2084y, x%C%yy, tm) returns NULL

2014-09-22 Thread wangyufen
On 2014/9/20 18:12, wangyufen wrote: Hi, I tested the strptime() functionon arm board: with uclibc: strptime(x2084y, x%C%yy, tm) returns NULL strptime(61, %S, tm) also returns NULL but,on x86 with glibc: strptime(x2084y, x%C%yy, tm) returns correct ptr

arm: strptime(x2084y, x%C%yy, tm) returns NULL

2014-09-20 Thread wangyufen
Hi, I tested the strptime() functionon arm board: with uclibc: strptime(x2084y, x%C%yy, tm) returns NULL strptime(61, %S, tm) also returns NULL but,on x86 with glibc: strptime(x2084y, x%C%yy, tm) returns correct ptr strptime(61, %S, tm) returns correct ptr Is this a

Re: [PATCH] arm: add RESET_PID in the clone impl

2014-09-05 Thread wangyufen
On 2014/9/4 19:40, Bernhard Reutner-Fischer wrote: On 4 September 2014 00:01, Waldemar Brodkorb w...@openadk.org wrote: Hi Carmelo, Carmelo Amoroso wrote, Hi, I don't think clone on arm is missing RESET_PID if you use the correct implementation from

[PATCH] arm: add RESET_PID in the clone impl

2014-09-05 Thread wangyufen
From: Wang Yufen wangyu...@huawei.com Called getpid() When creating a new process with clone(), getpid() returns the father_process's value. It should be child_process's value. The reason is missing a RESET_PID in the arm clone impl. Signed-off-by: Wang Yufen wangyu...@huawei.com ---

[PATCH v2] arm: add RESET_PID in the clone impl

2014-09-05 Thread wangyufen
From: Wang Yufen wangyu...@huawei.com Called getpid() When creating a new process with clone(), getpid() returns the father_process's value. It should be child_process's value. The reason is missing a RESET_PID in the arm clone impl. Signed-off-by: Wang Yufen wangyu...@huawei.com ---

[PATCH] arm: add RESET_PID in the clone impl

2014-09-02 Thread Wangyufen
From: Wang Yufen wangyu...@huawei.com Called getpid() When creating a new process with clone(), getpid() returns the father_process's value. It should be child_process's value. The reason is missing a RESET_PID in the arm clone impl. Signed-off-by: Wang Yufen wangyu...@huawei.com ---