simonb
d8de5b102b
Remove support for NetBSD/pc532.
2008-01-09 11:25:58 +00:00
christos
5f01dfbd0d
PR/37708: A.Leo.: getservbyname, segetaddrinfo sefgfaults when user has no
...
rights for reading ``/etc/services''
2008-01-06 16:34:18 +00:00
christos
aa33183605
Simplify and check for snprintf() error.
2008-01-03 04:26:27 +00:00
christos
8bb176858f
block signals before playing with files. From Anon Ymous
2008-01-01 21:22:55 +00:00
martin
e094ff6106
Add missing stubs for syscalls returning addresses.
...
We can now run on a kernel that does not copy the syscall return value
to register A0.
As discussed in PR port-m68k/37631.
2007-12-31 07:39:19 +00:00
martin
93310937f3
Avoid munmap(-1, ...) - doesn't make much sense.
2007-12-28 00:39:32 +00:00
skrll
24ced765a1
Add a comment explaining stack layout and register contents.
2007-12-22 14:10:03 +00:00
lukem
433c095cb8
Add references to various protocol pages that support setsockopt(2).
...
Makes it much easier to find them.
2007-12-16 09:49:28 +00:00
yamt
5107db92df
document following system calls.
...
_lwp_ctl
_lwp_getname
_lwp_setname
2007-12-14 21:52:17 +00:00
yamt
b367d7f8b2
fix indentation.
2007-12-14 19:51:37 +00:00
xtraeme
5ee1eac43a
Fix up a comment.
2007-12-14 17:32:47 +00:00
christos
6d28b23da6
- add dehumanize_number
...
- decls for humanize_number and dehumanize_number are in stdlib.h
2007-12-14 17:26:19 +00:00
christos
b31749e77b
add fw decl.
2007-12-14 17:06:07 +00:00
christos
b76677eda5
fix obvious bogon [can't alias symbol to itself]
2007-12-14 17:04:28 +00:00
xtraeme
486b2ff085
The humanize_number(3) proto will be available in stdlib.h, after
...
christos moves it to the correct place.
2007-12-14 16:31:20 +00:00
macallan
f53566168d
make this compile again
2007-12-12 17:56:10 +00:00
he
c26a54ba24
Ensure that we pass -z initfirst to the linker. The mips gcc
...
was unhappy about the missing -Wl specification.
2007-12-08 18:34:51 +00:00
ad
558a5ffd0f
rtld changes for PR bin/37347:
...
- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
should be recording a dependency on libc, but it's too late to do that.
Ok christos@.
2007-12-07 20:34:04 +00:00
simonb
179bda4711
Fix twalk()s 3rd argument name so that it matches rest of manpage and
...
the source code.
2007-12-07 07:33:13 +00:00
dyoung
eac83fd0cb
Use __arraycount().
2007-12-06 22:51:57 +00:00
seb
975a58878b
Fix stresep(3) handling of consecutive quoted delimiter characters.
...
Approved by christos@
2007-12-06 22:07:07 +00:00
christos
14c8a52580
From Richard M Kreuter, add GLOB_PERIOD.
2007-12-05 20:25:54 +00:00
christos
b831a8ada2
move decls for _malloc_{pre,post}fork() to extern.h
2007-12-04 17:45:07 +00:00
christos
86ef91b80e
- use a non localized version of strerror_r.
...
- kill localized declarations and let namespace.h do its work.
2007-12-04 17:43:51 +00:00
skrll
fd903b1729
Implement ptrace.
2007-12-02 15:48:47 +00:00
skrll
819071140e
Fix include files and change use LEAF_ENTRY_NOPROFILE function to fix
...
the unwind entry.
2007-12-02 14:04:19 +00:00
rillig
d59ceee59e
ENOENT is also returned when the script interpreter does not exist.
2007-12-02 10:26:27 +00:00
ad
8b96cb8a97
Back out the per-cpu arena changes. With this, ld.so magically stops
...
loading libc/libpthread twice -- which does not make sense, because it
has its own private malloc().
2007-12-01 22:44:44 +00:00
rillig
b54c9d13a0
typo
2007-11-30 23:01:03 +00:00
dsl
b3dec55727
Fix the other half of the 'store int as a thread specific pointer'/
2007-11-30 17:44:38 +00:00
christos
e09a2e99e8
converting a pointer to unsigned is bad; use uintptr_t.
2007-11-30 17:09:22 +00:00
ad
49dcd767c3
Make the allocation arenas per-CPU in the most optimistic case, but
...
continue to 'stripe' by thread in case of contention.
2007-11-29 18:46:13 +00:00
christos
f6cecc05cf
Sync phk malloc.c with the latest one from FreeBSD. This gives us the
...
same api as jemalloc by:
- adding posix_memalign()
- moving calloc in the same file
- renaming malloc_options -> _malloc_options
2007-11-28 21:55:14 +00:00
ad
ae87f94d1d
Bump libc/libpthread minor for thr_curcpu()/pthread_curcpu_np().
2007-11-27 21:06:41 +00:00
ad
4084ca7f3f
Add thr_curcpu(), pthread_curcpu_np().
2007-11-27 20:58:26 +00:00
tnozaki
7e1ba00ce8
more PR/36938, restore internal-state if mbtowc() throw EILSEQ.
...
patch provided by Shiozaki-san, thanks.
2007-11-26 15:31:30 +00:00
dsl
d8e8042c1c
Add a note about the difficulty of actually looking at the return value
...
of __syscall() caused by ABIs (eg sparc) that don't pass the low bits of
a 64 bit result in the same register as a 32 bit result.
2007-11-23 20:29:40 +00:00
uebayasi
2b37ebddcf
KNF; no variable name in function prototype.
2007-11-23 12:39:15 +00:00
dsl
3ba44b945b
Reorder the code for i386 and amd64 syscall stubs so that the 'jc' on error
...
is a forwards jump instead of a backwards jump that a P4 will mispredect (and
probably immediatly get a cache-line miss due to the way the code gets
aligned).
2007-11-23 07:36:05 +00:00
dsl
b0b7248d92
Change all the syscall C 'glue' functions (most of which just add in an
...
extra argument to ensure that 'off_t' parameters are even numbered
parameters for stack alignment reasons on 32 bit systems) to use a normal
'syscall' wrapper for __foo instead of using __syscall(SYS_foo, ... ).
This saves all the faffing needed to get a 32bit return value on sparc.
Auto-generate the extra syscall wrappers.
Move swapon.c into the correct list (swapon() uses swapctl()).
This probably means there are very few users of syscall() and __syscall() left.
2007-11-22 21:11:30 +00:00
tnozaki
fca38949e4
fix lib/37290
...
- don't call abort(3) when there's no suitable charset found.
- use iso-8859-1(or INIT1 if specified) for C1 control char.
2007-11-21 14:19:32 +00:00
ad
95182011ed
Enable posix_memalign().
2007-11-19 14:48:41 +00:00
skrll
4f3467d61e
Remove unused include.
...
Fix unwind info with S/ENTRY/LEAF_&/
2007-11-18 14:11:25 +00:00
skrll
8ed2bd6ec6
Generate correct unwind info for syscall stubs by using LEAF_ENTRY instead
...
of ENTRY(foo,0) so that gdb can backtrace through the stubs.
2007-11-18 13:25:39 +00:00
drochner
095b25e7dd
Add pthread_equal() to libc stubs; this makes a lot of sense for
...
threadsafe libraries implementing own locking functions.
Ride on yesterday's minor version bumps.
2007-11-14 19:28:23 +00:00
ad
3c776c8aa6
Bump libc minor for _lwp_ctl, libpthread constructor changes.
2007-11-13 17:13:14 +00:00
ad
46f5cd4fb9
- Make it pass lint.
...
- Add RCSID.
2007-11-13 15:33:55 +00:00
ad
ec4d182d4a
- stack_protector.c doesn't really belong under sys/. Add a new directory
...
for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
stack protector stuff. libpthread cannot be initialized safely using
its own constructor because libc and libpthread are deeply intertwined.
PR bin/37347
2007-11-13 15:21:19 +00:00
he
3b9b3c5341
We now need <sys/lwpctl.h> included in order to lint LintSysNormal.c.
2007-11-13 09:07:33 +00:00
ad
b668a9a05f
Add _lwp_ctl() system call: provides a bidirectional, per-LWP communication
...
area between processes and the kernel.
2007-11-12 23:11:58 +00:00