• R/O
  • HTTP
  • SSH
  • HTTPS

uClibc: List of commits


RSS
Rev. Time Author
9c4fce5 2012-06-15 21:00:42 Austin Foxley

nptl: remove sigaction, sigprocmask, and sigfillset from libpthread

Having them defined in both places was causing errors with static linking

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

836d74b 2012-06-15 21:00:42 Peter S. Mazinger

pread_write.c: make all archs use common code

c6x does not need own version at all

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

61198b4 2012-06-15 21:00:42 Peter S. Mazinger

add cancellation to generic pread_write

Prepare the file to be used in all arch specific files

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

814b090 2012-06-15 21:00:41 Peter S. Mazinger

enable the common code for NPTL

the generic open, close, waitpid, read, write are good for NPTL too
no good reason to have the same sleep in both libc and libpthread (NPTL)
no good reason to add sigwaitinfo, sigtimedwait and sigwait to libpthread (NPTL)

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

9ac34e3 2012-06-15 21:00:41 Peter S. Mazinger

fork: do not add fork() to libpthread

No need for __libc_fork either.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

050f753 2012-06-15 21:00:41 Peter S. Mazinger

make NPTL's getpid behave similar to the common one

make __getpid static
provide getppid alias if needed
remove unneeded libc_hidden_proto

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

145ad1d 2012-06-15 21:00:41 Peter S. Mazinger

poll, ppoll: use cancel.h

use __SYSCALL_SIGSET_T_SIZE
use non-cancellable select in fallback

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

b72b0b1 2012-06-15 21:00:41 Peter S. Mazinger

rework cancellation for sigwait, sigtimedwait and sigwaitinfo

sigtimedwait:
- provide __sigtimedwait_nocancel
- use __SYSCALL_SIGSET_T_SIZE instead of _NSIG / 8
- do not provide __sigtimedwait
- guard a section to avoid failure on archs if SI_TKILL/SI_USER are not defined
sigwaitinfo:
- simply use sigtimedwait since that handles cancellation already
sigwait:
- use non-cancellable functions (sigtimedwait, sigsuspend)
- get rid of code already done in __sigtimedwait_nocancel

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

24edbbd 2012-06-15 21:00:41 Peter S. Mazinger

lseek, lseek64: add cancellation for all THREADS

LT_OLD provides cancellable versions, do it for all THREADS.
llseek.c: use newly added macros for offset handling.
Add a comment about endianness issue around offset.
Compile llseek.c only on 32bit archs.
Provide aliases for 64bit archs or if syscall is not available.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

fae8e7e 2012-06-15 21:00:41 Peter S. Mazinger

sigsuspend.c: add cancellation support independently of rt_sigsuspend

signal.h: add __SYSCALL_SIGSET_T_SIZE, since kernel sigset_t is different
on mips and use that instead of _NSIG / 8

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

551ca52 2012-06-15 21:00:41 Peter S. Mazinger

pselect.c: avoid handling cancellation twice

Use __select_nocancel instead of select

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

7338106 2012-06-15 21:00:41 Peter S. Mazinger

ioctl.c: use cancel.h

Guard changed from NPTL to __NEW_THREADS to cover LT new as well.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

d3b8155 2012-06-15 21:00:41 Peter S. Mazinger

nanosleep.c: use cancel.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

613b0fa 2012-06-15 21:00:41 Peter S. Mazinger

wait.c: use cancel.h

Use __wait4_nocancel, since wait4 is not available all the time

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

f74f77b 2012-06-15 21:00:41 Peter S. Mazinger

fcntl: add cancellation to fcntl64, use cancel.h

fcntl64 missed cancellation.
Guard fcntl64 for 32bit archs.
Reuse as much code as possible in __syscall_fcntl.c.
Provide alias fcntl64 if that syscall is not available.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

4228d2f 2012-06-15 21:00:41 Peter S. Mazinger

ptfork.c: use strong_alias for vfork

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

6a78127 2012-06-15 21:00:41 Peter S. Mazinger

waitid.c: use cancel.h

and use __waitpid_nocancel in fallback code

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

0500402 2012-06-15 21:00:41 Peter S. Mazinger

readv, writev: rewrite to use cancel.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

08b258a 2012-06-15 21:00:41 Peter S. Mazinger

waitpid.c: provide __waitpid_nocancel, use cancel.h

Use __wait4_nocancel since wait4 is not available all the time.
Add a comment about not using waitpid syscall.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

c4b9ff2 2012-06-15 21:00:40 Peter S. Mazinger

open.c: add cancellation using cancel.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

15f25e3 2012-06-15 21:00:40 Peter S. Mazinger

open64.c: no need for separate cancellation, open handles it already

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

2c917b0 2012-06-15 21:00:40 Peter S. Mazinger

adapt fdatasync, fsync, msync to use cancel.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

f9af28c 2012-06-15 21:00:40 Peter S. Mazinger

creat*.c: add LIBC_CANCEL_HANDLED to know that it is cancellable (handled by open)

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

2d9054b 2012-06-15 21:00:40 Peter S. Mazinger

pause.c: use cancel.h, provide __libc_pause only for LT_OLD

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

6c7c4fb 2012-06-15 21:00:40 Peter S. Mazinger

select: adapt cancelation to use cancel.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

e4b5997 2012-06-15 21:00:40 Peter S. Mazinger

fork: provide __libc_fork only if THREADS are enabled

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

9df9c60 2012-06-15 21:00:40 Peter S. Mazinger

add cancellation for read, write, close

close.c: add function __close_nocancel_no_status to be used internally
in libc avoiding inlining it everywhere.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

f6a03f1 2012-06-15 21:00:40 Peter S. Mazinger

endian.h: add some handy macros to be used in syscalls

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

9f68f0c 2012-06-15 21:00:40 Peter S. Mazinger

cancel.h: add generic file to ease cancellation support

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

a92060f 2012-06-15 21:00:40 Peter S. Mazinger

wait4.c: provide hidden __wait4_nocancel independent of any guards

Correct wait4 guard (it is only __USE_BSD)
wait3, system: use __wait4_nocancel

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

Show on old repository browser