Commit Graph

9089 Commits

Author SHA1 Message Date
jmmv
70eabe78c3 List sys/param.h as a prerequisite of sys/sysctl.h. Bump date. 2004-02-10 12:48:48 +00:00
lukem
6dbd72c053 MAKEVERBOSE messages 2004-02-08 22:52:41 +00:00
nathanw
193a376007 Test pt_blockgen against pt_unblockgen, not against itself, to check
for blocked-in-kernel situations.
2004-02-03 20:26:16 +00:00
nathanw
0a6afcc70d Rename pt_stacksize, pt_stacksize_lg, and pt_stackmask to pthread_*. External
symbols can't start with pt_, as that is in the application namespace.
2004-02-02 20:36:18 +00:00
nathanw
b2f27acb27 Do all the symbol lookups at td_open() time and cache them in the td_proc_st.
Make the stacksize lookups and data part of td_proc_st rather than global state.
2004-02-02 20:08:27 +00:00
uebayasi
fa3c270527 Minor KNF. 2004-01-31 16:56:12 +00:00
wiz
9af86fc6f2 Fix two typos, and remove a superfluous comma. 2004-01-30 16:03:50 +00:00
wiz
7fcc4d6c6b Sort SEE ALSO. 2004-01-30 15:38:47 +00:00
christos
fa6c746b59 cross reference sticky(7) 2004-01-30 15:31:27 +00:00
wiz
375b7a6d24 Use -literal instead of -unfilled Bds; replace OpenBSD with .Ox;
<> -> \*[Lt]\*[Gt].
2004-01-29 15:23:09 +00:00
mrg
42d0909cf9 add two functions to zlib: gzopenfull() and gzdopenfull() that both take
additional "const char *savename" and "u_int32_t mtime" parameters that
are written out into the gzip header in the mtime field and as the original
filename.
2004-01-29 13:08:19 +00:00
itojun
4348bc0770 whitespace KNF 2004-01-29 08:25:28 +00:00
tsarna
72489e1ea0 uuidgen(2) syscall. Originally from FreeBSD, ported by John Franklin in
PR#23470, with minor updates by me. This is only the syscall support
from that PR, for now.

Changes: port over fix from FreeBSD for multicast address generation.
Changed bcopy to memcpy.  For now, #ifdef notyet the portions of
kern_uuid.c that are meant to be used by (currently nonexistent) other
things in the kernel.  Added syscall to COMPAT_FREEBSD as well, though
that's currently not useful, as any program new enough to use this call
also uses other syscalls we don't (yet) emulate.
2004-01-29 02:00:02 +00:00
lukem
b763e0987d Use the correct parameters when building the YP map name in _yp_getnetbyaddr().
Fixes getnetbyaddr() when reading from YP.  From Brian Ginsbach in email.
2004-01-29 01:39:15 +00:00
lukem
b776c8e6bb Retain the euid of the target user whilst reading the
.rhosts file.  This allows it to have a mode of 600
and still function correctly even when used on an NFS
client with uid 0 mapped to another (anonymous) UID.
Patch from Brian Ginsbach <ginsbach@cray.com>,
and fixes [bin/14880] from Darren Reed <darrenr@>.
2004-01-27 11:46:34 +00:00
lukem
c5a53802fe Use syslog(3) instead of err(3) to log errors.
Based on email conversation with Brian Ginsbach.

Add '%option never-interactive' to nslexer.l, to prevent isatty() from
being called unnecessarily.
Per discussion on current-users@ between Christian Biere and Greg Woods.
2004-01-25 16:38:15 +00:00
wiz
cef0afe940 Lots of grammar and wording changes from jmc@openbsd, with some
additional consistency changes by me.
2004-01-24 16:58:54 +00:00
wiz
36f4f7f5c3 Misc fixes from jmc@openbsd. 2004-01-24 15:33:43 +00:00
martin
9ee271adfd If the syscall fails, the carry bit will be set - not the zero bit. 2004-01-23 13:45:43 +00:00
blymn
316f67d63e Add defines MIN_FORM_COMMAND and MAX_FORM_COMMAND for ncurses
compatibility.  This closes PR 20029.
2004-01-23 13:01:17 +00:00
jmmv
be85fac5e9 Fix typo: 'Each characters' -> 'Each character' 2004-01-21 12:40:14 +00:00
jonathan
f0d1f46d5b Do runtime dynamic binary-search for maximum obtainable bpf capture
size (via BIOCSBLEN). Obtained from FreeBSD 4.x; originally from
http://www.tcpdump.org's version of libpcap.

Taken verbatim from the FreeBSD 4.9 version, lint and all, other than
increasing the maximum size from 32Kibyte to an extremely generous
4Mibytes.  We assume root will configure the in-kernel maximum value
sensibly on small-memory machines.
2004-01-20 23:31:20 +00:00
matt
1373fa4222 s/sgn/sign (compiles now) 2004-01-20 19:41:30 +00:00
matt
8863e1ea05 Make these compile too. 2004-01-20 19:33:19 +00:00
matt
2758365e99 Make these compile. 2004-01-20 19:29:43 +00:00
yamt
0cb9ad6acb fix a comment; nl_langinfo(CODESET) belongs to LC_CTYPE, not LC_MESSAGES. 2004-01-20 12:04:48 +00:00
wiz
071711957c Use standard comment format. Fix typo. From Douwe Kiela. 2004-01-20 08:31:46 +00:00
wiz
81a9cc23f5 Add function descriptions. From Douwe Kiela. 2004-01-20 08:30:55 +00:00
wiz
4d74fb0ff9 Improve function descriptions. From Douwe Kiela. 2004-01-20 08:30:41 +00:00
wiz
60c0778ca6 Grammer fix. From Douwe Kiela. 2004-01-20 08:29:29 +00:00
wiz
c365bab896 Mini KNF. From Douwe Kiela. 2004-01-20 08:29:09 +00:00
wiz
27297af537 Fix recurring typo in comments. From Douwe Kiela. 2004-01-20 08:28:26 +00:00
wiz
3a7de20e0d Add mv{,w}inch{,n}str. From Douwe Kiela. 2004-01-20 08:27:47 +00:00
wiz
a99c798fbb Add mv{,w}inch{,n}str and mvwscanw. 2004-01-20 08:26:44 +00:00
martin
dff5a86b96 Too sad - inlining syscall stubs on sparc64 is so much easier than doing
PIC calls to the libc stubs, but unfortunately we need to do the latter-
otherwise we break weak symbol semantics and make libpthread fail.
Thanks to Christian Limpach for the analyzis.
2004-01-19 18:33:21 +00:00
martin
f04f3a62db Forgot to mention in last commit message: remove some accidently commited
debug code.
2004-01-19 18:20:35 +00:00
martin
fd70c1464d Unfortunately we can not restore the signal mask with setcontext() - this
breaks libpthread, which tries to intercept the weak sigprocmask symbol.
So use an explicit sigprocmask call instead.
2004-01-19 18:19:33 +00:00
martin
e032233866 Store the "signal mask saved" flag at the end of the jmp_buf - we now use
more of it than before (and I bet the old place just is a non translated
32bit sparc value).
2004-01-19 18:17:21 +00:00
kleink
9f0429b6cc ; may be a comment character in assembly, use \n as a separator instead.
This instance spotted by Martin Husemann.
2004-01-19 16:18:33 +00:00
matt
3d2a90fb95 Make this compile. 2004-01-18 19:33:01 +00:00
yamt
570948990d add an ARGSUSED. 2004-01-18 08:54:02 +00:00
yamt
1318d6326f comment. 2004-01-18 08:53:09 +00:00
yamt
f3ec2d5725 implement gettext implicit iconv and bind_textdomain_codeset. 2004-01-18 08:40:40 +00:00
yamt
c5bbd9dca0 _citrus_NONE_stdenc_wctomb: return E2BIG correctly. 2004-01-18 03:57:30 +00:00
dbj
1d81763357 print max rather than min in error message when number
parsed by strsuftollx is greater than max
2004-01-17 23:02:51 +00:00
martin
2f3e9d2cf8 Avoid using the depreceated __sigreturn14 for longjmp by adapting
Christian Limpachs arch/m68k implementation using setcontext().
2004-01-17 22:01:15 +00:00
christos
c8d67a7da2 portability fixes. 2004-01-17 17:57:40 +00:00
cl
359b937c80 - delay making a thread unblocked until it's put on the runqueue.
- simplify handling of blocked idle threads.

This should fix the ``assertion "target->pt_state != PT_STATE_RUNNING
|| target->pt_blockgen != target->pt_unblockgen" failed'' problem
reported by Marc Recht and Steve Bellovin on current-users.

Also g/c unused pthread__sched_bulk call left over from pthread_sa.c
rev. 1.22 change.
2004-01-16 15:23:31 +00:00
ragge
ead753d26d Fix typo fpclassifd.c -> fpclassifyd.c, reported by Bertram Barth. 2004-01-16 10:46:11 +00:00
wiz
3ce85dd47a inifities are probably infinities. 2004-01-15 20:31:40 +00:00
wiz
51008fe87a I guess ture means true. 2004-01-15 20:30:46 +00:00
kleink
bb37e9c818 libc.so.12.110: fpclassify(), isfinite(), isnormal(), signbit(). 2004-01-15 19:44:46 +00:00
kleink
d82e732345 Add C99 fpclassify(), isfinite(), isnormal(), and signbit() macros. 2004-01-15 19:43:44 +00:00
mrg
3c36c70c82 fix a typo 2004-01-11 16:05:27 +00:00
cl
c8017c0dc6 - add deadlock check to pthread_rwlock_wrlock and pthread_rwlock_timedwrlock
- return EPERM when unlocking a lock which isn't held
=> prevent the failure in PR 24023, where the citrus code had a deadlocking
   code path

- remove deadlock check in pthread_rwlock_tryrdlock, return EBUSY instead
=> makes pthread_rwlock_tryrdlock standards compliant
2004-01-09 18:08:28 +00:00
christos
7d6187a689 PR/24023: Min Sik Kim: Don't deadlock while closing mappers. The module
uninit function can call close again, which will try to obtain a held
lock. Unlock the lock before calling the actual close function, since
we already disassociated cm from the rest of the data structures.
2004-01-08 19:23:19 +00:00
wiz
70cfe67d9f There is no sysctl(9) (yet?), comment it out;
fix a typo.
2004-01-08 09:21:35 +00:00
wiz
6807f73559 Fix some spacing nits, an Xref section, and a long line.
Bump date for previous.
2004-01-08 09:12:57 +00:00
atatat
76f7bb35fd Add descriptions of flags. 2004-01-07 21:25:14 +00:00
christos
46f02625cb - Describe all system threads.
- Mention all MI threads that are not device specific; i.e. mention scsibus,
usb, raidframe, nfs, but not pms.
2004-01-07 16:26:23 +00:00
agc
40069685c3 Make this compile, and, as a side-effect, LP64 clean. 2004-01-06 11:29:30 +00:00
itojun
12eeb195bb kill strcpy 2004-01-06 08:08:44 +00:00
itojun
8047470762 sys/types.h is not needed here. kevlo@openbsd 2004-01-05 19:21:00 +00:00
augustss
a6cfb45c19 The report size is not a local item, so don't clear it when clearing local items. 2004-01-05 17:55:48 +00:00
christos
8a293ad181 Document F_MAXFD, F_CLOSEM 2004-01-05 00:34:34 +00:00
martin
f6ee845eac Fix a cast for little endian archs 2004-01-03 23:50:47 +00:00
martin
a2c6783de5 When writing/reading longs use explicit 32bit temporary values (this is
what "long" means in xdr context).
Fixes PR lib/23960.
2004-01-03 23:01:41 +00:00
wiz
a004e52a39 Uppercase CPU; mark up NULL; remove superfluous word; simplify macro usage. 2004-01-03 13:09:44 +00:00
atatat
9cfe841137 At long last, add descriptions of new "dynamic" operations. 2004-01-03 06:06:36 +00:00
martin
ba54915063 Fix two inverted comparisions and a few comments.
This makes sparc64 pass the sigsetjmp regression tests.
2004-01-02 22:30:36 +00:00
itojun
0169ab0afa minor KNF 2004-01-02 22:19:51 +00:00
itojun
35f883b08a KNF 2004-01-02 21:49:35 +00:00
cl
f35871411a make siglongjmp out of a signal handler work:
- strong alias __sigprocmask14 to pthread_sigmask
- call _sys___sigprocmask14 where appropriate
- make pthread_sigmask not set the signal mask lazily when pthreads
  aren't started yet
2004-01-02 19:24:44 +00:00
cl
33622a5943 userland part of no-syscall upcall stack return
- add pt_stackinfo to struct __pthread_st
- add pthread__stackinfo_offset returning the offset from ss_sp to
  pt_stackinfo
- pass stackinfo_offset to sa_register and set SA_FLAG_STACKINFO to
  make the kernel use it
- call pthread__sa_recycle in pthread__resolve_locks; g/c recycleq and
  pthread__recycle_bulk
- return stack in pthread__sa_recycle by incrementing sasi_stackgen
- make pthread__sa_recycle debugging output formatting conditional on
  pthread__debug_newline
2004-01-02 19:14:00 +00:00
cl
90e89977d4 - libc.so.12.109 and libpthread.so.0.4
- add ssize_t stackinfo_offset argument to sa_register syscall
- remove sa_unblockyield syscall
- make __sigprocmask14 syscall weak
- in pthread__sa_start: catch up with 4-argument sa_register syscall
2004-01-02 18:56:39 +00:00
jmmv
8ab300d124 Fix typo; from Aidan Kehoe in PR lib/23951. 2004-01-02 17:06:21 +00:00
jmmv
2fec59e8d0 Fix typo; from Aidan Kehoe in PR lib/23950. 2004-01-02 17:04:52 +00:00
martin
ce5186b58b Restore stack frames on error return. 2004-01-02 14:31:31 +00:00
cl
91d9c8c22f pthread__upcall: output LWPid in SA_UPCALL_BLOCKED case 2004-01-02 14:29:22 +00:00
cl
677748c645 logging/debugging changes:
- add PTHREAD_PID_DEBUG which prints the pid before each debuglog line
- output thread returned in pthread__next
- add asserts in pthread__sched akin to asserts in pthread__sched_bulk:
  check if scheduled thread is at front/end of queue
- pthread__upcall: output event/interrupted LWP count instead of LWPid
  of the first event/interrupted LWP (since unblock upcalls can have
  multiple event LWPs).
- pthread__find_interrupted: output LWPid here
2004-01-02 14:13:16 +00:00
martin
97ab4e62e3 Restore stack frames on error exit. This makes us pass dynamic and static
linked versions of the clonetest regression test.
While here, some cosmetics: branch prediction, avoid depreceated instructions.
2004-01-02 14:06:51 +00:00
itojun
855852a04b comment on values from 0x80000000 to 0xffffffff 2004-01-02 12:27:41 +00:00
itojun
5d489a8a2a safer realloc 2004-01-02 12:25:46 +00:00
itojun
64d2443254 safer realloc, some KNF. noted by deraadt@openbsd 2004-01-02 12:19:25 +00:00
itojun
edffd45884 use strlcpy 2004-01-02 12:10:48 +00:00
lukem
d597f546a1 Add dependencies to assym.h on:
pthread.h pthread_int.h pthread_md.h
Should help prevent the problem I raised in [kern/23946], based on
a hint from Christian Limpach.

Add MAKEVERBOSE support.
2004-01-02 01:37:53 +00:00
cl
36ee225d9a catch up with block/unblock changes in libpthread 2003-12-31 16:46:34 +00:00
cl
82b6b2dbda Handle block/unblock for threads in critical section without
sa_unblockyield.

XXX g/c sa_unblockyield in kernel later
2003-12-31 16:45:48 +00:00
martin
586bc581af Use CC64FSZ instead of magic constant for stack frame size.
Frob the clone's stack pointer to be BIASed - it is 64 bit code too.
Use "carry set" as test for a failed syscall.
2003-12-31 15:56:26 +00:00
martin
47923e6bf5 In case of underflow, return -0.0 or +0.0, depending on the sign of
the argument.
This makes sparc64 pass regress/lib/libc/ldexp.
2003-12-30 23:19:07 +00:00
martin
7fd2c31d41 Add support for scanf "hh" format modifiers - we use it in int_fmtio.h
for SCNd8 and friends - so we should support it properly (and not only
by pure luck on alignment blind little endian archs - it used the
"h" code path, storing a 16bit int via a byte pointer).

This makes sparc64 pass regress/lib/libc/int_fmtio.
2003-12-30 22:10:20 +00:00
martin
9f96807631 When storing data size as 32bit int in an overflow page, copy the
length to a temporary u_int32_t variable and memmove from there to the
final destination - instead of copying the first four 0 bytes from a
64bit variable directly on big endian 64 bit platforms.

This makes sparc64 pass regress/lib/libc/db.
2003-12-30 21:20:16 +00:00
yamt
9a4bbff85d _citrus_iconv_std_iconv_convert:
- allow 0 byte input.  PR/23889 (Valeriy E. Ushakov)
- remove redundant E2BIG check, which should be done by
  each encoding modules anyway.
2003-12-29 18:05:01 +00:00
yamt
95a5e260a9 _citrus_MSKanji_wcrtomb_priv: return E2BIG correctly. 2003-12-29 17:59:03 +00:00
yamt
556685e5a3 _citrus_NONE_stdenc_cstomb: return E2BIG correctly. 2003-12-29 17:49:22 +00:00
wiz
08f5fb02e9 Remove sentence about this being an alpha
version -- after twelve years it is at least beta ;)
The BUGS section is extensive enough even without it.
2003-12-29 17:36:12 +00:00
wiz
d46bc94200 Niels Provos kindly agreed to drop clauses 3 and 4 from the
license -- thanks.
Based on OpenBSD commit and hints by itojun.
2003-12-26 19:04:55 +00:00
simonb
f9f4341a9f Don't ever add a ".0" to a single digit number.
XXX: Should (for example) 1024 be 1.0K or 1K when the HN_DECIMAL flag
     is passed?  Should there be a separate option that says "use the
     HN_DECIMAL behaviour unless we are exactly equal to the suffix"?
2003-12-26 11:30:36 +00:00
martin
903622333a Use an unsigned comparison against minbrk.
From Steve Woodford, inspired by a similar change to other archs from
OpenBSD.
2003-12-26 11:23:44 +00:00
martin
269c3e3d2b Use an unsigned comparison against minbrk.
From OpenBSD, changed by Miod Vallat.
2003-12-26 11:21:48 +00:00