yamt
8a0e62d02d
open_shared: correct a buffer size.
2004-12-21 08:07:41 +00:00
christos
f1a325d103
Unbreak setuserpath(); from Nick Hudson.
2004-12-20 18:42:03 +00:00
christos
da6f1ded1d
revert previous change while discussion is in progress.
2004-12-20 18:30:26 +00:00
itojun
2fdfeb359f
RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
...
remove it until someone writes it up from scratch/freely-redistributable
text is found.
2004-12-20 03:50:04 +00:00
wiz
c54f10d8b4
Use more markup. Sort sections.
2004-12-16 17:29:55 +00:00
kleink
9508efa066
Internally rename getdevmajor(); noted by Geoff Wing.
2004-12-16 12:30:04 +00:00
atatat
817b002242
Fix a whitespace nit and make this compile again. So there.
2004-12-16 04:37:25 +00:00
atatat
d91a4a5990
Put caching back on the pts major number. It's worth the code
...
overhead not to go look it up a zillion times when running fstat or ps
on a machine with a billion people logged in. fstat mostly.
2004-12-16 04:33:03 +00:00
atatat
4e04a6f62d
Get rid of the private getptsname() function and use getdevmajor()
...
instead. It's really much better that way, you'll see.
2004-12-16 04:15:19 +00:00
christos
29fb313de0
document properly the return value and the errno settings.
2004-12-16 04:07:22 +00:00
christos
d15ecb98a9
knf fixes.
2004-12-16 04:07:01 +00:00
atatat
fe13117c07
Bump to minor 124 since getdevmajor(3) was added
2004-12-16 04:05:51 +00:00
atatat
2803cf768c
Add a function called getdevmajor().
...
It tells you the major device number for whatever character or block
device you ask it. This is sort of the inverse of devname(3) but not
quite, since it's backed by the kernel (sysctl's kern.drivers
information) and not a database cobbled together from the contents of
the filesystem.
2004-12-16 03:54:56 +00:00
wiz
c53d75fdd8
Grammar improvements.
2004-12-15 16:37:58 +00:00
wiz
dd4b29f9a3
Fix typo in comment.
2004-12-15 16:29:53 +00:00
simonb
43cfce7a27
Remove trailing blank lines.
2004-12-14 11:14:45 +00:00
atatat
1cb09b336b
Properly return the constructed name for ptyfs nodes. Otherwise we
...
accidentally return NULL on the first call and find it in the cache on
all subsequent calls.
2004-12-14 03:08:01 +00:00
yamt
e19f3f9976
document sched_yield.
2004-12-14 01:47:13 +00:00
nathanw
5229c9f993
Nuke threadlib.h. Library defensive threading is now provided through the
...
normal pthread.h interface.
Move stubs for libc back into a libc-internal header.
2004-12-14 00:23:19 +00:00
nathanw
9ae878eb94
Fix the __libc_thr_yield_stub() signature.
2004-12-14 00:21:40 +00:00
yamt
98a0fd8d54
fix mvgetch prototype.
2004-12-13 23:51:11 +00:00
nathanw
50df45f4e5
The __libc_thr_yield_stub() for scched_yield() should return int (and
...
a 0), not void.
2004-12-13 16:07:13 +00:00
nathanw
480a2816f2
Add #defines to make use of libc stubs for pthread_cond_wait() and
...
pthread_cond_timedwait().
XXX as noted in the comments, in the situations where these are
useful, they should never be called in a single-threaded
process. Perhaps they should die rather than return 0.
Addresses xsrc/28630.
2004-12-13 03:10:52 +00:00
christos
980de1e92d
s/__function__/__func__/
2004-12-12 08:29:56 +00:00
christos
e7d22a2e64
- NetBSD build glue
...
- Warning fixes
- RCSID's
2004-12-12 08:18:42 +00:00
christos
bb62ec41f1
- NetBSD specific fixes.
...
- Changes from Jason to use our YP stuff.
2004-12-12 08:17:56 +00:00
christos
6f11bdf15c
- Import freebsd's version of libpam as of today (20041212).
...
- Did not import opie, passwdqc, tacplus. We need to decide what to do
with them.
- Imported radius and ssh, although they will not work until we
import libradius and re-structure our tree to install libssh.
2004-12-12 06:45:21 +00:00
snj
316a956c56
Bump date for last.
2004-12-12 05:56:45 +00:00
yamt
ebf187e60c
document correct return value. PR/28571 from ITOH Yasufumi.
2004-12-12 01:09:44 +00:00
wiz
ff7ab08a15
Mmm, API changes without date bumps... bump date for constification.
2004-12-11 16:50:56 +00:00
christos
7462bd3e7c
fix cast-qual issue.
2004-12-11 06:41:40 +00:00
christos
a5c1a01ed9
WARNS=3; fix cast-qual issues.
2004-12-11 06:41:15 +00:00
christos
70756f97e8
Constify; the api was completely broken before.
2004-12-11 06:40:42 +00:00
nathanw
cb9ebec1e2
Correctly return ETIMEDOUT when the absolute time is in the past, in
...
the nonthreaded case. Fixes, and fix from, PR lib/25961.
2004-12-10 17:11:53 +00:00
nathanw
0eaa8971b7
Use CPP macros to cause many libpthread functions used by applications
...
to be transformed into the do-nothing-when-libpthread-isn't-linked libc
stub names. This will permit library code that uses <pthread.h> and pthread
functions "defensively" to not need to link against libpthread and not need
to be patched to the threadlib.h API.
2004-12-10 16:40:40 +00:00
simonb
23a85fb5b0
libgcc has __fixunsdfsi and __fixunssfsi, so don't build
...
the softfloat versions of these.
Fixes PR toolchain/24509 from Masao Uebayashi.
2004-12-09 00:39:41 +00:00
martin
528e949b20
Replace the stack unwinding by a much simpler solution taken from
...
../../arch/sparc/gen/_setjmp.S rev. 1.6. This ended up to be ~identical
to the OpenBSD change triggered by the same sparc change.
Thanks to Stoned Elipot for pointing out the problem.
2004-12-07 08:20:07 +00:00
nathanw
08c663a3c0
Implement __libc_thr_sigsetmask_stub() in terms of sigprocmask(),
...
instead of having a dummy function.
2004-12-06 18:58:12 +00:00
wiz
d768695880
Add RCS Id.
2004-12-06 13:16:36 +00:00
christos
8d79e1b130
Use /dev/bpf.
2004-12-02 00:05:02 +00:00
dsl
4eaada98f4
Change a returned value of -1 (NO_PGID) to (uint)(pid_t)~0u >> 1 (0x7fffffff)
...
to satisfy the SuSv3/POSIX-2004/etc requirement that "If there is no
foreground process group, tcgetpgrp() shall return a value greater than 1
that does not match the process group ID of any existing process group."
Should fix PR standards/28493 and zsh.
2004-12-01 21:37:15 +00:00
skrll
32069ca6a3
pt_sleepuc was removed a long time ago.
2004-12-01 14:27:01 +00:00
ws
4aa5370862
Use correct stack offsets after pushing values onto it.
2004-12-01 01:08:18 +00:00
peter
192aae95b5
Add missing LIBRARY section.
...
ok wiz@
2004-12-01 00:06:46 +00:00
nathanw
45204d9ceb
Punt to setcontext() system call if the PSL_T bit (single-step trap)
...
is set, so that the single-step trap happens in the thread's context
and not in the middle of _setcontext_u.
XXX might be able to do something here with iret, too, but it needs
more testing.
2004-11-30 21:05:01 +00:00
ginsbach
e9042901ff
rresvport_af() should return -1 when the address family is unsupported
...
and set errno accordingly.
2004-11-29 17:00:06 +00:00
jmc
9da9dc64b7
Add heapsort to libnbcompat
2004-11-28 06:57:14 +00:00
christos
3bca82ec33
PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure
2004-11-27 18:31:45 +00:00
christos
5a55e0c902
Don't give write privileges at all if the tty group is missing.
2004-11-25 02:49:46 +00:00
christos
db5d4e2d6a
I really want to kill the hard-coding of _TTY_GID. Set the group to the
...
primary group of the user if the group tty does not exist.
2004-11-24 22:17:19 +00:00