Commit Graph

9482 Commits

Author SHA1 Message Date
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
wiz c594b29834 bootparams, not bootparms. 2003-12-25 19:01:35 +00:00
christos b7dd6b46f8 Avoid array type is char warning. 2003-12-23 23:12:44 +00:00
matt 69f9c8b092 Add MD_CALL_STATIC_FUNCTION. This allows crt* to compiled with -g. 2003-12-22 21:05:01 +00:00
kleink a2c17b5c1e One merge-o missed in previous. 2003-12-20 00:21:00 +00:00
kleink 84a2a5ca6e Merge tzcode2003e. 2003-12-20 00:12:05 +00:00
kleink b717391e1a Note: the previous revision was an update for tzcode2003_e_. 2003-12-19 23:52:44 +00:00
kleink 4a2741cba1 Update for tzcode2003d. 2003-12-19 22:25:42 +00:00
christos b7559f8576 PR/23791: Patrick Latify: Fix memory leak on thread creation failure. 2003-12-18 15:39:56 +00:00
wiz ef1b175332 Bump date for previous (hi christos!). 2003-12-17 23:04:33 +00:00
christos 4c4fa74153 Say what happens with pgrp == 0. 2003-12-17 21:05:30 +00:00
jmc d9948df6dd Clean up tmp files on exit. Fixes PR#23723 2003-12-15 20:07:39 +00:00
lukem a8c35a134f remove superfluous assignment 2003-12-14 23:56:28 +00:00
matt 727e43c8f5 Cleanup last commit a bit. 2003-12-13 04:34:24 +00:00
matt 549de3d9ab Use :T and :tl and avoid using != 2003-12-13 04:28:50 +00:00
dyoung 4758291178 Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
  distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
  9 out of 10 experts agree that it is ludicrous to build w/
  KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
  MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly.  That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles.  While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
2003-12-11 09:46:26 +00:00
agc 7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
itojun c81f32fe6c comment from niels provos;
- seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x".
- skipping number is not needed, so disable it for 16bit generator (makes
  the repetition period to 30000)
2003-12-10 05:22:18 +00:00
grant 9510307938 simplify a sentence 2003-12-09 21:40:54 +00:00
augustss af68367011 Reference kfilter_register(9) rather than the non-existent kfilter_register(2). 2003-12-09 19:49:53 +00:00
wiz 02f06f3790 Bump date for previous (hi andrew!). 2003-12-09 16:00:40 +00:00
atatat 31f1dc4a27 Update man page to correct PROC_* names (addresses PR lib/23645) and
also describe the new PROC_PID_STOPEXIT variable.

Man page still not updated to include new features.  I'm still working
on that.
2003-12-09 01:39:03 +00:00
lukem cbb69f7013 update for function name change 2003-12-08 12:03:01 +00:00
matt aa6e9c56c3 Make this compile on non-IEEE GCC3 targets (aka VAX). 2003-12-08 06:18:16 +00:00
grant 1492b0bcb0 "int flags" is correct in the prototype, but not in the English
language. s/int/in/
2003-12-08 00:55:57 +00:00
matt 3c12447a00 Make building IPv6 support controllable by MKINET6 2003-12-07 21:57:22 +00:00
christos 1edf98ec41 Add pthread_{g,s}etschedparam, that do nothing. 2003-12-07 20:29:07 +00:00
scw 29b106093d Swap WEAK_ALIAS args to how they should be. 2003-12-07 19:37:23 +00:00
simonb 758f7fd25d Check for __weak_alias macro before using it. 2003-12-07 12:53:19 +00:00
wiz 312a9703d5 Use Aq instead of <>, quote a minus, drop trailing space. 2003-12-05 13:46:39 +00:00
lukem a9beb0e443 Tokenization function enhancements:
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
  publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
  "const char *" (the former has "cursor" information), and optionally
  return the argv index ("int *cursorc") and offset within that index
  ("int *cursorv").  This means that completion routines can use the
  tokenization code to crack the line and easily find which word the
  cursor is at.  (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
  or \ at EOL), and added some more DEBUG messages including highlighting
  where the cursor is (with a `_').
2003-12-05 13:37:48 +00:00
keihan c9c20433ad Revert last change, as this is a 3rd-party file, noted by kleink@. 2003-12-05 06:56:19 +00:00
uebayasi 0b30fd3d69 Spaces. 2003-12-05 00:57:36 +00:00
keihan 39d96c1f34 netbsd.org -> NetBSD.org
NetBSD.ORG -> NetBSD.org

Now src/lib is done.
2003-12-04 23:39:18 +00:00
jdc 737fe44f7a Increment libcurses minor to 11 for nodelay() void -> int change. 2003-12-04 21:26:09 +00:00
jdc 2dd40f4b6c Make nodelay() return an int.
Now conforms to the Single Unix Specification.
Fixes PR lib/23531 by usa at garbagecollect dot jp.
2003-12-04 21:24:36 +00:00
atatat 6fc962bc06 oops 2003-12-04 19:45:19 +00:00
atatat 93375edaa0 Bump for sysctl() update 2003-12-04 19:42:32 +00:00
atatat fcc5d1a731 Adapt userland sysctl goop to new world order, permitting dynamic
discovery.
2003-12-04 19:40:55 +00:00
lukem 97f5444c8a MAKEVERBOSE tweaks 2003-12-04 01:02:44 +00:00
jschauma 355765bffd Add a list of pre-defined values (such as pi, e etc.).
Ok by wiz@.
2003-12-03 23:31:21 +00:00
christos 480316c216 Make sure this still compiles with gcc-2.95. Hello vaxen! 2003-12-03 18:41:35 +00:00
lukem 3921361c6a Use __attribute__((__used__,__noinline__)) (instead of __unused__)
for __do_global_ctors_aux() and __do_global_dtors_aux(),
to fix building with gcc3 -O3.
Discussed with Matt Thomas & Christos Zoulas, and tested on alpha & i386.
2003-12-02 03:01:19 +00:00
fvdl e367e360a4 The x86_64 assembler seems to get it wrong when assembling
_eprol@GOTPCREL, it resolved it internally as a PC-relative instruction,
getting garbage, since the needed value is in the GOT. Add a CPP hook
to export it explicitly, this makes it work. Only active on amd64. XXX
2003-11-28 23:25:54 +00:00
cl 828439fb74 Add td__getstacksize() to support variable stack sizes. 2003-11-27 16:32:09 +00:00
cl 2c9b7b1eb7 Set default stack size to the current limit on the stack size as set
with the shell's command to change limits.  Make the PTHREAD_STACKSIZE
environment variable override the default stack size.  The old fixed
stack size behaviour can be enable with PT_FIXEDSTACKSIZE_LG when building
libpthread.
2003-11-27 16:30:54 +00:00
jdolecek b02f563aeb improve random number generation by using largest 31-bit prime
as denominator; regenerate the randtbl[] with new generator

patch provided in lib/22853 by KIHARA Hideto; code actually present
in libkern/random.c since 1994/06/03

matches similar change done in glibc in 1995, and FreeBSD & OpenBSD in 1996
2003-11-26 20:44:40 +00:00
he ea56bcee84 Hide the register number constants behind an _R_ prefix, and also
rename FPBASE to _FPBASE, so that we avoid polluting the user's
name space when e.g. <sys/ptrace.h> is included.  Previously, the
PC symbol in mips/regnum.h would conflict with the declaration of
the external variable by the same name in termcap.h, as discovered
by the ``okheaders'' regression test.
2003-11-26 08:36:49 +00:00
lukem 18239b5b77 Fix compile problem if -UYP -DHESIOD.
Noted on current-users by Srinivasa Kanduru.
2003-11-26 00:48:59 +00:00
cl 11127744bf Save the old mask in the old context, not in the new one. 2003-11-25 23:55:27 +00:00
wiz 492a994a19 Bump date for previous. 2003-11-25 23:28:31 +00:00
itojun fd02e804dd take "Skip a random number of ids" into consideration, correct the rotation
period number.  simonb
2003-11-25 23:11:54 +00:00
cl d109665f1d Honor SA_NODEFER in pthread__deliver_signal(). This should help code which
makes a longjmp out of a signal handler.

Also add missing si_code argument to debugging printf in pthread__kill().
2003-11-25 22:45:33 +00:00
christos 0446e60323 Update list of items. 2003-11-25 22:44:16 +00:00
christos adfca9e3e4 This is not needed anymore. 2003-11-25 22:41:12 +00:00
christos 5077d05f7b GC sigcontext<->mcontext code and __HAVE_SIGINFO. All supported archs have
siginfo implemented.
2003-11-25 22:36:32 +00:00
christos 69658517e0 - don't store sigmask on the stack, we could store it in the right place
[in the context]
- this has the side effect of fixing the problem of the signal mask not
  being preserved properly upon signal return, found and fixed by cl.
- add si_code to the tramp debugging output (requested by cl).
2003-11-25 22:26:44 +00:00
christos 6477735848 m68k does not sigcontext<->mcontext anymore. 2003-11-25 21:27:30 +00:00
christos 22a07298e9 - Document NO_DEFER
- Turn sa_flags into a list to make it easier to find/read
- Sort the sa_flags lists.
2003-11-25 21:09:14 +00:00
itojun b6a2cef9dc "seed2" was ruining the non-repeating property of this function; remove it.
discussed on tech-net for ip_id.c (thanks for all the analysis).
2003-11-25 18:13:06 +00:00
kleink 1d408df31d Catch up with namei: An empty string is not a valid pathname.
Noted by SAITOH Akinori in PR misc/23565.
2003-11-25 15:33:58 +00:00
cl 774b4b225b Update mutex/rwlock/sem code to match recent change in cond code. 2003-11-24 23:54:13 +00:00
cl 4f8ea51319 add CONSTCOND in constant condition. 2003-11-24 23:23:17 +00:00
nathanw 250e7bbf8e Fix a race between timed wait callbacks and manual signal/broadcasting
accidentally introduced in rev. 1.5.

Noted by Christian Limpach.
2003-11-24 22:54:31 +00:00
christos 6f8e24d360 prevent double free. From OpenBSD 2003-11-24 21:49:12 +00:00
uwe 9d0d2c7461 Implement siginfo for sh3. 2003-11-23 23:13:11 +00:00
scw 53a406794d s/!=/==/
The last fix wasn't quite right, but happened to work for me due
to stale dependencies...

Reported by Markus W Kilbinger.
2003-11-23 09:10:20 +00:00
itojun 2a85abd333 avoid memory leak. hint from Andrew Lunn 2003-11-23 08:33:13 +00:00
itojun 5451f8a14e do not malloc(0). Andrew Lunn 2003-11-23 08:23:02 +00:00
wiz 6b3d472b3a New sentence, new line. Remove trailing spaces. 2003-11-23 07:22:19 +00:00
jhawk e54d574bd0 Bump Dd.
better explain the interactions between ip.mtudisc and tcp.mssdflt,
with regards to the TCP segment size.
ip.mtudisc is not read-only, as was implied by "returns"
XXX: this ("returns") should be corrected for other parameters, too.
Xr tcp(4)
2003-11-23 07:11:04 +00:00
nathanw cdf7f99ee6 Manually inline pthread__testcancel in these routines; two function
calls' worth of overhead per cancellable syscall is overkill.
2003-11-21 23:03:13 +00:00
nathanw 4e755ddba8 Prevent ptc_mutex from remaining set if a CV sleep is woken by
cancellation:

 * Arrange to not set ptc_mutex until after the pre-sleep cancellation
   test.

 * In the post-sleep cancellation test, check if there are no more
   sleepers and clear ptc_mutex if so.

While here, sprinkle some __predict_false() around the cancellation
tests.
2003-11-21 22:08:00 +00:00
scw 19552574ee Don't compile fp*.c if doing a soft-float build. 2003-11-21 11:39:46 +00:00
uwe 6d08061385 Do not move incoming paramters to callee-save registers when not
necessary.  Saves about a dozen of instructions.
2003-11-20 17:55:11 +00:00
uwe 4b13bb93a0 Follow-up to previous. In pthread__signal_tramp() maskp is below
siginfo on the stack, so get it from there.  ss_sp no longer points to
the the mask.  Pointed out by cl@.
2003-11-20 17:45:00 +00:00
uwe b3c165e505 Add _INITCONTEXT_U_MD, we need to clean _REG_SR. 2003-11-20 17:38:08 +00:00
uwe f5cd7f26ed Undo previous. In pthread__deliver_signal set uc->uc_stack.ss_sp = uc;
(as it used to be before 1.1.2.12) so that makecontext doesn't stomp
on the data we allocated on the stack.  Correct the debugging printf
to print olduc instead of target->pt_uc (we have pt_trapuc now, and
olduc can be pt_trapuc).
2003-11-20 17:16:41 +00:00
yamt d7b65981fb pthread__deliver_signal: swap oldmask and siginfo so that signal
handler's stack doesn't stomp siginfo.
this also fixes !__HAVE_SIGINFO, in that case
pthread__signal_tramp assumes uc->uc_stack.ss_sp points the old
signal mask.

pointed by uwe@.
2003-11-20 15:46:42 +00:00
uwe 1e78682585 In pthread__locked_switch set self->pt_uc only when the context is inited.
In STACK_SWITCH subtract STACKSPACE, not add it (it's zero for now anyway).
2003-11-20 03:31:02 +00:00
wiz c09770cac0 Use Rv for return values section; bump date. 2003-11-19 16:50:09 +00:00
pooka cce38fddc2 document RETURN VALUES 2003-11-19 15:20:32 +00:00
uwe 9b7e93e2c6 s/modified/modifies/ in the description of makecontext(). 2003-11-18 23:03:26 +00:00
grant 86f70dccd2 drop whitespace 2003-11-18 22:42:04 +00:00
wiz faedb5db06 Fix typo in previous. 2003-11-18 08:49:18 +00:00
uwe 024d461f8f First cut at pthreads MD code for sh3. Based on m68k version.
Regression tests still failing: sem, sigalarm.
2003-11-18 03:11:41 +00:00
uwe f9cb911365 Add necessary symbols. 2003-11-18 03:07:29 +00:00
thorpej 88ed237274 Bump libc to 12.107 and libpthread to 0.3 for fsync_range(2). 2003-11-18 01:00:19 +00:00
thorpej 137c808bb8 Userland portion of fsync_range(2), written by Bill Studenmund, and
contributed by Wasabi Systems, Inc.
2003-11-18 00:56:56 +00:00
cl 196dbdcd2b - delay processing unblocked threads until after locks are resolved:
without the blocked/unblocked upcall ordering, an interrupted blocked
  upcall might put the blocked thread on the intqueue because it needs
  to be continued.  With the delayed processing, we avoid putting such a
  thread twice on the runqueue.
- fix putting a thread on the intqueue when it needs to be continued
  after it blocked.

Also check return value when returning a single stack.
2003-11-17 22:59:00 +00:00
uwe 764c596c3f Cause SIGTRAP if NOTREACHED code is reached. 2003-11-17 22:38:11 +00:00
christos 895d7dee51 zero out nl, from Todd Miller. thanks! 2003-11-17 20:41:54 +00:00
wiz 4bbfee09ca Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00
keihan f73b119e04 s/modifed/modified/
And while here...

s/NetBSD.ORG/NetBSD.org/
2003-11-14 16:43:57 +00:00
itojun 08cbee504f avoid bswapl, which is post-i486 (including i486) insn. markus@openbsd 2003-11-13 19:36:31 +00:00
simonb bc4e986724 -traditional-cpp and spaces after commas is not a happy combination. 2003-11-13 06:29:39 +00:00
itojun 015dc7875b accelerate sha1 by using asm (i386). markus@openbsd.
there's internal symbol name changes, but it does not warrant shlib minor
bump as the symbol is totally internal.
2003-11-13 02:10:00 +00:00
cl 803f13c062 check deferred signals for all unblocked threads 2003-11-12 22:21:21 +00:00
itojun b6743615c4 correction made in 0.9.7c; from markus@openbsd 2003-11-12 16:20:27 +00:00
wiz c3c78af0ec Various fixes. 2003-11-12 11:58:34 +00:00
christos c8608b903b Document pthread_attr_setcreatesuspend_np, pthread_suspend_np, pthread_resume_np 2003-11-12 02:44:22 +00:00
simonb dc7f22dd3e Need weak aliases here. 2003-11-11 19:18:14 +00:00
simonb 7239f40663 Add #ifdef __weak_alias around use of __weak_alias. 2003-11-11 19:10:02 +00:00
simonb faf6ed6d51 Fix tyop. 2003-11-11 18:29:58 +00:00
martin 3e8ef3d56a Fix ucontext conversion macros. From Christian Limpach. 2003-11-11 16:21:05 +00:00
dsl 8acea4b2c0 Make {g|s|l}crt0.o depend on crt.o and remove the non-standand .afterdepend
translation.
2003-11-11 11:35:03 +00:00
dsl 016359fc65 Make gcrt0.o depend on crt0.o so that it picks up the dependencies from .depend. 2003-11-11 11:32:39 +00:00
wiz ee1b406595 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
martin d708163f7f All the ucontext <-> {fp}reg macros were slightly simplistic and untested
before (old gdb support on sparc did not use this).
Pointed out by Christian Limpach.
2003-11-10 07:52:52 +00:00
christos 38b1c6f405 Add:
int    pthread_attr_setcreatesuspend_np(pthread_attr_t *);
int    pthread_suspend_np(pthread_t);
int    pthread_resume_np(pthread_t);

needed for java. Approved and fixed by cl.
2003-11-09 18:56:48 +00:00
fvdl c4e432f3bd Make register usage more consistent, also in comparison with the i386
version, for easier maintenance.
2003-11-08 21:46:42 +00:00
fvdl 127827f46e Restore %rax correctly during a full context restore (oops). 2003-11-08 21:45:59 +00:00
christos e0406466be This is the last part of siginfo support for pc532. Simon will make this
work.
2003-11-06 02:46:44 +00:00
christos 368d3f3d0e siginfo trampoline addition. This is not used until simon verifies that it
works.
2003-11-06 02:28:00 +00:00
kleink c1a19161a9 From Ragge's wishlist: rename infinity -> huge_val. 2003-11-05 13:46:51 +00:00
itojun aec01dda91 sync w/ openssl 0.9.7c. shlib minor bump for libcrypto.
(ERR_release_err_state_table() added)
2003-11-04 23:54:26 +00:00
itojun 87abfaaaff resurrect assembly version of bignum operation; pointed out by perry 2003-11-04 21:06:32 +00:00
cube b9d0c518f9 When using /dev/ksyms, don't keep it open more than strictly necessary.
This allows LKM manipulation while an application using libkvm, such as
vmstat or gkrellm, is running.

Patch reviewed by Anders Magnusson.
2003-11-04 14:59:10 +00:00
christos 30278e9a57 s/wth/with/ 2003-11-04 13:22:19 +00:00
ragge 2fc6066af3 Add assembly routines for some of the bignum functions. Most comes from VMS,
a few written by me.  This speeds up ssh 2-3 times.
2003-11-03 10:22:28 +00:00
christos 1b8a2beb0c Fix uninitialized variable. 2003-11-03 03:22:55 +00:00
christos 62a5c8a602 Always use el->el_buffer, because newbuffer could have moved. From
Gerry Swislow gerry at certif dot com
2003-11-02 20:08:41 +00:00
christos 72dc1c2ac9 If the kill buffer is empty return normal. From Gerry Swislow gerry at certif
dot com
2003-11-02 20:07:58 +00:00
christos d67d488ee2 Handle M- as escape. XXX: should probably select the meta-map instead.
From Gerry Swislow  gerry at certif com
2003-11-02 20:06:57 +00:00
wiz 85cc64da0f Typo; from Jared Yanovich via jmc@openbsd. 2003-11-02 11:18:10 +00:00
wiz fff16e7f65 Uppercase name; from Jared Yanovich via jmc@openbsd. 2003-11-02 11:17:16 +00:00
wiz 6f9372dc27 Typo; from Jared Yanovich via jmc@openbsd. 2003-11-02 11:16:03 +00:00
christos b01cb286b8 Add userland portion of siginfo for mips. Many thanks to simon for letting
me use his machines down under.
2003-11-02 08:37:48 +00:00
christos 8467a84273 From: Gerry Swislow gerry at certif dot com
1) File name completion should list the files in the current directory
if no text is entered.  The previous version wouldn't list anything if
the text to complete was empty.

2) When listing directories, the entries "." and ".." shouldn't be
shown.

3) The filename completion should be used if the user's
rl_attempted_completion_function doesn't return any matches.  The
previous version didn't do that.
2003-11-02 01:45:14 +00:00
christos 391b46bc7f initialize ptr. 2003-11-01 23:39:22 +00:00
christos bd39b60424 Explain H_ADD better. from Otto Moerbeek otto at drijf dot net 2003-11-01 23:37:30 +00:00
christos 487a7c2a6c Fixes from Otto Moerbeek otto at drijf dot net 2003-11-01 23:36:39 +00:00
christos 4c93d52c09 Document history builtin commands. 2003-11-01 23:35:33 +00:00
nakayama 8fc6819ddd Corrent map order to match sparc/ieeefp.h. 2003-11-01 14:26:29 +00:00
kleink 9356ead951 Pasto. 2003-10-30 23:34:16 +00:00
kleink 617742615c It turns out the hppa ABI we're using does not support an extended-
precision type, so drop the library support for now but leave in place
(#ifdef _LP64) the header definitions.
2003-10-30 22:46:17 +00:00
yamt 71b290e975 use explicit "l" suffixes. (eg. lea -> leal) 2003-10-30 13:56:37 +00:00
grant a1e0a00965 "The fgets() and functions gets() do not..." ->
"The fgets() and gets() functions do not..."
2003-10-30 12:59:23 +00:00
wiz bc81ecac30 sigwait(2), not (3). 2003-10-30 12:57:11 +00:00
jdolecek e2e1314ccd bump date too 2003-10-30 11:53:33 +00:00
jdolecek f65cf67b62 xref sigwait(3) 2003-10-30 11:51:42 +00:00
kleink 2ddae9dc8a Add manual pages for fpclassify and isfinite. 2003-10-29 22:59:23 +00:00
kleink 26198324b4 Merge tzcode2003d. 2003-10-29 20:43:27 +00:00
kleink dc2bc4a89d Import tzcode2003d. 2003-10-29 20:19:13 +00:00
kleink 0a97d0875b C99 7.12.3.2: add library portions of isfinite, but don't build these just
yet.
2003-10-29 20:03:51 +00:00
kleink 3991bf60bc Fix the exponent value we're comparing with. 2003-10-29 19:34:11 +00:00
cl 812a254c5d remove incorrect assert:
regular threads can block in the kernel while holding (libpthread) locks
and have to be continued

XXX if the blocked upcall is preempted, the blocked threads syscall
XXX return value can get lost
2003-10-29 18:53:34 +00:00
pooka 70d2e11feb caps "Jonathan STone" in comment less dramatically 2003-10-29 12:28:33 +00:00
kleink 6bffe7fb50 Upon rereading the implementation suggestions in the standard, rename the
double-precision version to __fpclassifyd().  No need to diverge, here.
2003-10-28 22:50:42 +00:00
kleink 75327729a2 C99 7.12.3.1: add IEEE library portions of fpclassify. Don't build these
yet as the VAX implementation is still subject to discussion.
2003-10-28 22:05:37 +00:00
kleink 72f016b386 Retire FPA support from this file at last; suggested by Richard Earnshaw
and not objected to by port-arm.
2003-10-28 21:44:04 +00:00
jmc 782579c57a SUSE3 says htonl and friends come in via arpa/inet.h. This will actually not
hurt on NetBSD and makes hosting on non-native for tools/ work correctly
2003-10-28 04:00:51 +00:00
matt a54bd8931a Fix tpyo. (ieee854 -> ieee754) 2003-10-28 01:24:06 +00:00
kleink fdb80dd054 Ignore the explicit integer bit here, too; otherwise an infinity with the
explicit integer bit set could be classified as NaN.
2003-10-28 00:13:22 +00:00
christos 8b40dcaecf Make readline csh-like history work.
From Gerry Swislow <gerry at certif dot com>.
2003-10-27 22:26:35 +00:00
pooka 114cac461f magic_errno() was added -> bump minor 2003-10-27 17:09:43 +00:00
skrll f81f06350d One ';' is enough. 2003-10-27 09:27:03 +00:00
mrg dcce429e93 fix a typo that caused the build to fail. mmm commit before compile 2003-10-27 03:09:43 +00:00
christos 5f4474073a Explain the stack layout correctly now that that I understand it :-) 2003-10-27 02:33:06 +00:00
lukem 477697b1f2 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 02:17:18 +00:00
kleink 964d6747b5 Err, rename some members added in previous to make them reflect their
semantics better.
2003-10-27 01:11:46 +00:00
christos 6664eb5f2d Add __sigtramp2 2003-10-27 00:46:05 +00:00
christos d9676dda89 Signal trampoline stuff for siginfo.
XXX: I don't understand why I am off by 48 bytes.
2003-10-27 00:45:36 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
kleink 5976f8aa56 Retire local union { floating-type; struct ieee_prec; } in favor of those
available from <machine/ieee.h>
2003-10-27 00:05:46 +00:00
kleink 55337d2d6f On FPA, switch back `long double' to double-precision. According to
Richard Earnshaw, extended-precision was never supported by the compiler.
2003-10-26 16:00:17 +00:00
kleink be5cd162d0 Use the generic `long double' == `double' versions on m68000. 2003-10-26 10:03:11 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
kleink a98b4bac65 Add __infinityf and __infinityl, float respectively long double analogs
of __infinity.
2003-10-26 00:48:14 +00:00
kleink e9788d63be Whitespace cosmetics. 2003-10-25 22:43:26 +00:00
kleink 142c4159e8 libc.so.12.106: __infinityf, __infinityl. 2003-10-25 22:33:14 +00:00
kleink 9f3dbee22c Add __infinityf and __infinityl, float respectively long double analogs
of __infinity.
2003-10-25 22:31:20 +00:00
kleink 8e2428c2c6 Remove an unnecessary line continuation backslash from previous. 2003-10-25 21:54:30 +00:00
kleink c6126e1095 Sync with i386:
Update to account for separate handling of the explicit integer bit;
simplifies a little.
2003-10-25 21:48:34 +00:00
kleink 044354301a Update to account for separate handling of the explicit integer bit;
simplifies a little.
2003-10-25 21:42:07 +00:00
kleink 72315d3199 Update for FPA 80-bit extended-precision format. 2003-10-25 18:37:43 +00:00
kleink 25de9f5e2a Swap VFP and FPA sections to match the style of most other code;
no functional change.
2003-10-25 17:57:15 +00:00
cl 342cbd284f replace __longjmp14 asm-implementation with __longjmp14 C-implementation
uses setcontext instead of __sigreturn14
fixes longjmp/siglongjmp when !COMPAT_16
2003-10-25 17:13:57 +00:00
kleink bb5e0820bc Redo the VFP/endianness conditional logic of this file, making it easier
to read.  No functional change except for the side-effect of fixing the
ARMEB FPA case, which wasn't supported anyway.
2003-10-25 16:17:44 +00:00
he 6afbde6005 Correct another typo. 2003-10-25 14:51:16 +00:00
kleink 15e03bd18f Pasto in previous. 2003-10-25 14:31:21 +00:00
christos 075b83474e add a pair of double quotes. 2003-10-25 07:53:12 +00:00
christos 5028fe3e04 delint pointer casts. 2003-10-25 07:31:27 +00:00
christos ad96bb0dec remove unused variable 2003-10-25 07:31:12 +00:00
christos 9ee15c697a Another fix for incremental search prev. 2003-10-25 06:42:41 +00:00
kleink 661f76699f POSIX: when attempting to fdatasync(2) a file which is not open for
writing, fail with EBADF.
2003-10-25 01:18:01 +00:00
kleink 17bcc01b65 Oops, re-add line continuation. 2003-10-24 19:50:13 +00:00
yamt 2016949b00 update a comment. 2003-10-24 17:35:22 +00:00
kleink 4ca4f9f41a Add an error check to ensure these are used on platforms without a
distinct long doble type only.
2003-10-24 10:30:36 +00:00
uwe d469976b59 In PIC code "braf" to cerror, not "bsrf" to it! 2003-10-24 04:41:28 +00:00
kleink 712c8de209 * Since there is no single portable IEEE 754 format for a long double,
keep a common implementation of isinfl() and isnanl() to be used by
  platforms where `long double' == `double'; move others into
  machine-dependent code.
* In due course, consider __VFP_FP__ on arm.
2003-10-24 00:58:01 +00:00
scw 2ffebceb85 Duh, fix the align-to-32-bits code. 2003-10-23 20:46:40 +00:00
jmc 0c336c7f37 Move include for reentrant.h inside CONFIG_H test so this works correctly
with tools/compat. Fixes PR#21344
2003-10-23 20:06:16 +00:00
kleink 6cded84c4b Fix an RCS Id botch that occured when renaming. 2003-10-23 00:04:57 +00:00
kleink 22396ac6f7 G/c __nanf2, which is neither being used nor the representation of a NaN. 2003-10-22 23:50:47 +00:00
kleink 77e57be326 For a double-extended NaN, the exponent must be EXT_EXP_INFNAN, not
DBL_EXP_INFNAN.
2003-10-22 21:37:34 +00:00
drochner 9122b04d59 the last argument to recvfrom() is a pointer, so use "NULL" for
consistency
2003-10-22 15:40:19 +00:00
drochner 71baa97c0b -don't update the RPC server address with the reply's sender address;
this breaks server failover under some circumstances, and Solaris doesn't
 seem to do it either
-minor cleanup
approved by fvdl
2003-10-22 15:38:31 +00:00
fvdl 4e8e6f8ceb Don't compare an int to NULL. 2003-10-21 01:10:47 +00:00
fvdl bada5458de Don't use NULL to compare against an int. 2003-10-21 00:55:05 +00:00
fvdl 03831599c1 The last argument to sysctl is a size_t, not a pointer; don't pass NULL. 2003-10-21 00:47:46 +00:00
fvdl 3144ca7d6b Don't compare a char to NULL. 2003-10-21 00:30:05 +00:00
fvdl f8ba2b4d70 Don't compare an int against NULL. 2003-10-21 00:25:21 +00:00
fvdl 79cc88df48 Don't use NULL to compare against an int. 2003-10-21 00:16:55 +00:00
fvdl b279ed6377 Don't compare NULL against a character. 2003-10-21 00:07:17 +00:00
fvdl bc018099a2 Don't use NULL to compare against a char. 2003-10-21 00:03:47 +00:00
fvdl 39d7a2e359 Don't use NULL to compare against a character. 2003-10-21 00:00:34 +00:00
fvdl c2405107f1 Correct and simplify computing the return point; just use PC-relative
addressing.
2003-10-20 14:50:18 +00:00
fvdl b30e737545 Make sure the stack stays aligned. 2003-10-19 21:45:03 +00:00
christos 52215a07e7 add rl_catch_signals 2003-10-19 06:28:35 +00:00
wiz 2af5f10bcc Bump date for previous. 2003-10-19 01:26:11 +00:00
christos 6e782349a3 change allocation policy in el_push to allocate the string itself.
fix issues with strdup.
2003-10-18 23:48:42 +00:00
christos acc8915b44 make forward incremental search work better. 2003-10-18 23:27:36 +00:00
fvdl 9f7abac970 Use the int 0x80 path for context system calls. 2003-10-18 22:47:37 +00:00
christos e7c6d717ff remove debugging printf. 2003-10-18 22:37:24 +00:00
christos 730f23e551 Allow setty to set chars using char=value 2003-10-18 22:24:34 +00:00
briggs 7931285ae1 Need a couple more headers for the last change. 2003-10-18 20:11:04 +00:00
briggs 6646629469 Sync with the i386 version. 2003-10-18 18:36:35 +00:00
christos f57e3e8f0a sync with the x86 one. 2003-10-18 18:33:51 +00:00
christos c4990e5532 Userland portion of SIGTRAMP_VALID() commit. 2003-10-18 18:16:23 +00:00
wiz 449cf546df Link curses_cursor(3) to getmaxyx(3); from Steve Rumble in PR 23183. 2003-10-18 09:08:46 +00:00
wiz 6f0dbbbf08 mvgetstr and mvwgetstr do not have a limit argument; from Steve Rumble in PR 23183. 2003-10-18 09:06:49 +00:00
christos 7bd301151f When searching backwards don't include the characters after the cursor in
the search.
2003-10-17 18:49:11 +00:00
fvdl 2b9ab2aab8 Get ucontext pointer back out of callee-saved register %r15. 2003-10-17 16:23:20 +00:00
wiz 432d3289ba Bump date for previous. Replace > with \*[Gt]. 2003-10-17 15:33:23 +00:00
christos 5d79eff8f5 More libedit readline emulation functions from: Gerry Swislow
<gerry at certif dot com>
2003-10-16 22:26:32 +00:00
christos 99e15c71d0 I got tired of typing a cc line. 2003-10-16 21:41:46 +00:00
christos a246b45de2 Fix incremental search which was badly busted. 2003-10-16 21:41:26 +00:00
yamt 5cd18e71cc in pthread__deliver_signal(),
copy siginfo_t into the stack of the target thread
rather than relying on the luck that on-stack siginfo_t stay valid.
2003-10-16 13:38:28 +00:00
wiz 58cc8234ca Slight improvements. 2003-10-15 20:04:48 +00:00
wiz 910124a085 Make the plural of `X' `X's instead of `Xs'.
Following a suggestion from jmc@openbsd.
2003-10-15 19:44:51 +00:00
christos 378865a426 don't limit ^c to alpha c, and add VIS_NOSLASH so that vis(3) does not
produce \^c
2003-10-15 18:08:40 +00:00
wiz 538e6e3e1e Move siginfo(5) and ucontext(5) to siginfo(2) and ucontext(2) resp.,
and fix references.
Per a discussion on source-changes around Sep 14 2003.
2003-10-14 14:59:03 +00:00
christos e752a6f68a PR/23158: Johan Danielsson: Portable usage of the mk*temp() functions requires
six `X's.
2003-10-14 14:29:46 +00:00
yamt faf00d99a2 don't use uninitialized variable ('chlenbak').
the problem reported by Markus Illenseer on tech-userlevel@
and analyzed by enami tsugutomo.
2003-10-14 12:50:03 +00:00
scw 789335a49c Xscale-optimised mem* routines. Contributed by Wasabi Systems.
(Note: memcmp/memset improvements also benefit non-Xscale).

memcmp()  - Compare 32-bits at a time if possible. Special-case 6-byte
            comparisons, for the benefit of the network stack.

memset()  - More loop unrolling, plus use of 'strd' instruction,
bzero()     results in > 100% speedup on Xscale.

memcpy()  - Big-endian support, unrolled loops, 'strd/pld', plus special-
            cases for very common length/alignment combinations.
            Benchmarks show ~50% improvment on Xscale.

memmove() - Big-endian support. Use fast memcpy(), above, if the regions
bcopy()     don't overlap. Otherwise unchanged

XXX: The Xscale optimisations are not enabled by default, unless /etc/mk.conf
XXX: has the right compiler options. The intention is to pull them in via
XXX: something like libxscale.so, selected at runtime by ld.so.conf.
XXX: (Big-endian support is not affected by this).
2003-10-14 07:51:45 +00:00
wiz 8295081a25 & -> \*[Am]; mark up FD_SETSIZE; bump date for previous. 2003-10-14 07:44:43 +00:00
itojun 5435c421a0 note that programs that use rpc(3) cannot bump FD_SETSIZE. 2003-10-14 07:08:45 +00:00
agc 9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
agc b2b49933f4 Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
agc ed6ed8e698 Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.
2003-10-13 07:41:22 +00:00
pk f70031fee9 SIGINFO __sigaction & trampoline code. 2003-10-12 14:42:03 +00:00
christos 7152fa1070 use matt's powerpc implementation. It is simpler than mine, and it does
matter as far as performance goes.
2003-10-12 04:23:17 +00:00
chs f58c80fc8f fix typo in previous. 2003-10-12 00:25:25 +00:00
provos 36a965e899 fix a bad realloc; from awohl@chessclub 2003-10-11 18:30:09 +00:00
enami f431b58f2b Back out rev. 1.56; `pointer points the byte just after the valid region'
is normal case.  If the parser wants something more, there should be
another bounds check for it.
2003-10-11 03:35:42 +00:00
simonb 62887f0740 Remove another unneeded cast to size_t.
Pointed out by Anil Madhavapeddy in private email.
2003-10-10 05:38:45 +00:00
ichiro c9be9cafc5 dont use __ARMEB__
It changed so that it might distinguish by BYTE_ORDER
2003-10-09 09:44:25 +00:00
ichiro b6a7f7b339 support big endian 2003-10-09 09:37:56 +00:00
thorpej d2ab983617 * Bump the shlib major of libkrb5 because the shlib major of libcrypto
changed, and libkrb5 depends on libcrypto.
* Bump the shlib major of libgssapi, libhdb, libkadm5clnt, libkadm5srv,
  and libkafs, because they depend on librb5.

Dependent library list provided by, and change approved by, lha@netbsd.
Per discussion on tech-userlevel.
2003-10-09 04:40:26 +00:00
simonb 444e6dce83 No need to cast "len" to a size_t now that "len" is a size_t. 2003-10-09 00:50:34 +00:00
christos 5eda4a7d47 PR/23107: Nathan Williams: ^D as the first char on the command line does
not DTRT in readline compatibility mode
2003-10-09 00:42:28 +00:00
kleink fd04e737c6 Update to use symbolic register names. 2003-10-09 00:17:59 +00:00
itojun 1bb83f4a4a avoid signed->unsigned assignment. openbsd PR 1709 2003-10-08 20:33:17 +00:00
skd b3ec0a1d45 Siginfo libc changes for alpha. Approved by thorpej@netbsd.org. 2003-10-07 17:08:07 +00:00
thorpej 8655c7d7eb Add a MAP_WIRED flag to mmap(2), which causes the new mapping to be
wired as if by mlock(2).
2003-10-07 00:17:09 +00:00
fvdl 4da2d7565d Userland amd64 siginfo support. 2003-10-06 22:57:23 +00:00
matt ed9d433616 Update to new assmbler needs. Add getcontext.S stub. 2003-10-06 05:30:21 +00:00
matt 3e272c0b2a Deal with the new toolchain. 2003-10-06 05:28:05 +00:00
matt f3198687d6 Add SA_SIGINFO support for ARM. 2003-10-05 19:48:39 +00:00
bouyer 7b066791c8 Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
scw 5238256a02 s/sigcontext/siginfo/ 2003-10-05 10:46:41 +00:00
jdc 324f201e56 Increment libcurses minor to 10 for addition of redrawwin() and wredrawln(). 2003-10-05 10:14:36 +00:00
jdc d4f82864b6 Add redrawwin() and wredrawln().
Fixes PR lib/20038.
2003-10-05 10:13:02 +00:00
scw b469b163b9 libc bits for siginfo on sh5. 2003-10-05 10:01:49 +00:00
jdc 7c12a98041 Fix __CTRACE arguments. 2003-10-05 08:26:02 +00:00
junyoung e3ac3a4d0c Style fixes to reduce diff size against the FreeBSD version, notably:
- Use NULL where appropriate.
 - No need to pull in stdint.h.
 - Get rid of "register" keywords in the hope that the compiler will
   do a better job for us. :-)
 - Every message ends with a period.
 - MMAP() macro is supposed to return MAP_FAILED rather than -1 if it
   fails.
 - De-__P.
2003-10-05 04:49:46 +00:00
kleink 09c5c31fc8 Convert to use register prefixes. 2003-10-03 22:37:35 +00:00
itojun f462c5301e paren around macro arg 2003-10-03 22:04:44 +00:00
itojun d26799ebc9 off-by-one. from millert@openbsd 2003-10-03 22:04:03 +00:00
itojun ffe9fe35e1 realloc error check failure; Greg Troxel, sync w/ kame 2003-10-03 21:53:08 +00:00
christos 44eab0895d PR/20768: Martin Blapp: Remove special handling for non-blocking connections
that breaks amd clients.
2003-10-03 21:29:16 +00:00
wiz 51dc91caa9 Add zlib(3) provided by jmc@openbsd -- thank you! 2003-10-03 18:46:22 +00:00
itojun 27ed6671c7 correct unsafe use of realloc(). 2003-10-02 19:38:59 +00:00
christos 3e10887300 Pass -D_LIBC 2003-09-30 22:30:16 +00:00
matt c1704e15b4 Enable the SIGINFO trampoline. 2003-09-30 19:05:41 +00:00
blymn 6adf4a4e77 new_item fixes:
* return NULL to indicate an error if a NULL name is passed
	* fix a crash if description is NULL
Thanks to Julian Coleman for finding and fixing these.
2003-09-29 12:32:24 +00:00
wiz 37ac1db454 available, not avaliable. From miod@openbsd. 2003-09-29 09:50:21 +00:00
provos cda395fc27 deal correctly with POLLNHUP 2003-09-28 20:02:44 +00:00
matt 4abc70c356 Deal with changed filename. 2003-09-28 16:30:18 +00:00
dsl 2f28cd113e Simon has persuaded me to remove the 'sizeof (struct kinfo_drivers)' field. 2003-09-28 13:18:41 +00:00
matt 117653c214 Since this a signal trampoline #2, make that's in the file name. 2003-09-27 21:43:29 +00:00
dsl fde7103b90 Add KERN_ROOT_PARTITION and KERN_DRIVERS 2003-09-27 19:09:10 +00:00
matt 4ba9658201 Remove __LIBC12_SOURCE 2003-09-27 03:33:00 +00:00
matt 7fff5acf50 Constify the _-sigaction_sigtramp tramp argument. 2003-09-27 03:14:59 +00:00
matt 20745b5469 Invoke the proper signal trampoline depending on SA_SIGINFO. 2003-09-27 01:03:40 +00:00
nathanw 9839173881 Don't include <machine/lock.h> anymore; instead, we now get
__cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED from <sys/types.h>.
Should prevent the massive namespace pollution by way of dragging in
many MD headers that has been observed to break stuff.
2003-09-26 22:48:23 +00:00
wiz cff5e477ad Process has only one c. From miod@openbsd. 2003-09-26 22:23:58 +00:00
wiz 6a6ecd3246 New sentence, new line; bump date for previous. 2003-09-26 21:09:13 +00:00
christos 552716dcff Implement enough of readline's 4.0 async mode to make gdb happy. This is
not complete yet, but it seems to work...
This required to introduce an unbuffered mode to el_gets(), but that was
a minor change.
2003-09-26 17:44:51 +00:00
matt 4e7e0da41e Add siginfo signal trampoline. 2003-09-25 22:46:22 +00:00
wiz a66ae71844 Slight syncing with OpenBSD version. 2003-09-23 10:26:54 +00:00
itojun 1db8823e19 out-of-bounds access. from openbsd 2003-09-23 03:19:28 +00:00
cl bfa716044e SA_SIGINFO support for m68k (libpthread) 2003-09-22 14:45:48 +00:00
cl ae9566397a SA_SIGINFO support for m68k (libc) 2003-09-22 14:42:02 +00:00
uwe 616df9fb1f Do not profile. Indent delay slots. 2003-09-22 02:42:02 +00:00
uwe 237ead7bc8 Indent delay slot. 2003-09-22 02:38:13 +00:00
uwe 849c5af36b Do not profile. Indent delay slot. 2003-09-22 02:35:46 +00:00
uwe 89a06df4c7 Indent delay slots. Add a comment that the magic number 8 is SIGFPE. 2003-09-22 02:27:59 +00:00
uwe e023f7cb8d Do not profile. Indent delay slot. 2003-09-22 02:18:40 +00:00
uwe 391ab004a4 Do not profile. Indent delay slot. 2003-09-22 02:08:07 +00:00
uwe f722916cc6 Indent delay slots. Whitespace change only, same object code produced. 2003-09-22 01:57:16 +00:00
martin 4df9d6555a Bring back previous sparc64 hack, but only #ifdef old gcc.
This is used when building libnbcompat for host tools - why it is included
when building on NetBSD is beyound me.
2003-09-21 17:15:36 +00:00
yamt d7adaffe99 use {u_,}int32_t instead of {u,}int32(={u_,}long) 2003-09-21 15:35:46 +00:00
martin 55acdca8c5 No more sparc64 compiler workarounds 2003-09-19 16:30:31 +00:00
itojun 57e4de6099 add warning on realloc() size de-synchronization. from openbsd 2003-09-19 05:36:59 +00:00
jdolecek bb21f0beb4 remove pw_dup() 2003-09-18 09:24:35 +00:00
jdolecek 430f0af1db remove pw_dup(3), for now at least
follows discussion on mailing lists, discussed in private e-mail with Itojun
2003-09-18 09:13:14 +00:00
cl c6de69ee49 fix pt_trapuc handling errors:
- movl to address register doesn't set flags (add explicit test)
- clr only clears a word (use clrl)
2003-09-17 20:08:07 +00:00
wennmach be03f9bd59 Avoid the PIC dance. 2003-09-16 18:17:11 +00:00
cl 465ed898bd bump minor for sa_unblockyield syscall 2003-09-16 13:55:41 +00:00
cl 5c40d56471 fix SA/pthread pagefault failure:
- prevent BLOCKED upcalls on double page faults and during upcalls
- make libpthread handle blocked threads which hold locks
- prevent UNBLOCKED upcalls from overtaking their BLOCKED upcall
this adds a new syscall sa_unblockyield
see also http://mail-index.netbsd.org/tech-kern/2003/09/15/0020.html
2003-09-16 13:51:31 +00:00
simonb 49b0281b33 Shut lint up. 2003-09-16 07:56:51 +00:00
itojun 94da0d16ac avoid overflow during multiply. David Laight 2003-09-15 23:38:20 +00:00
cl 64408794ea make popen/pclose thread safe 2003-09-15 22:30:38 +00:00
tron e9c2e92b36 Include "sys/ttydefaults.h" to get standard definition of "CTRL" macro
which avoids clash with custom one.
2003-09-15 11:33:33 +00:00
christos 2e7dfdfa24 kludge around CTRL redef. 2003-09-15 01:29:36 +00:00
christos 7fb5c922f1 Match the stupid function pointer declarations with actual readline's 4.0.
This is gross.
2003-09-14 22:15:23 +00:00
christos 7bb332f70b make this compile. 2003-09-14 21:55:39 +00:00
christos 705c04f0bc Avoid pre-ansi warning. 2003-09-14 21:55:19 +00:00
christos 166e18a7fd - provide enough hooks to compile gdb-5.3
- fix el_get(e, EL_TERMINAL, (char **))
2003-09-14 21:48:54 +00:00
fvdl 8eb02ce5c0 Make log1p and log1pf work in shared libraries again. 2003-09-14 21:26:14 +00:00
wiz d46db7b926 In is only to be used in SYNOPSIS; Aq Pa is better for other places.
Problem noticed by kleink.
2003-09-14 09:15:23 +00:00
wiz 5a12b7062e Various fixes. 2003-09-14 09:02:49 +00:00
kleink b9f1052a4d Fix some typos, attempt some markup normalization, align wording a little
more with other manual pages.
2003-09-13 23:00:38 +00:00
christos 8694ace9bd forgot to install timer_settime. 2003-09-13 22:50:21 +00:00
christos 960ffa78a4 Fix markup. 2003-09-13 22:44:23 +00:00
kleink 9865e7ff1d Sprinkle restrict into timer_{create,settime}(2). 2003-09-13 22:31:04 +00:00
itojun f6da4d89f2 weak alias for pw_dup 2003-09-13 22:28:12 +00:00
christos 226b4082f4 Add timer man pages. Hi Nathan! 2003-09-13 22:22:29 +00:00
itojun 220a141637 correct setup of ru_b/a for 16/20 bit case 2003-09-13 21:29:57 +00:00
itojun 1ecc9b581c use internal names for randomid() 2003-09-13 21:27:43 +00:00
christos 86d645082f fix syntax; thanks aymeric 2003-09-13 17:19:55 +00:00
christos d1bb4290e8 explicitly use a sigset_t * variable to recover the signal mask pointer. 2003-09-13 15:26:38 +00:00
mycroft ec5dc2be24 Fix something that's been annoying me for a while...
Pull in <fcntl.h>, so that the fcntl #defines are present, and we build in the
automatic reset of non-blocking mode, rather than beeping like mad.
2003-09-13 04:18:00 +00:00
christos ab0a78e1a7 - don't define __LIBC12_SOURCE__
- need to SIG_IGN SIGSYS for the version check
- simplify code
2003-09-12 20:42:15 +00:00
drochner 45a9abb6af make it compile with PTHREAD_SIG_DEBUG again 2003-09-12 15:31:00 +00:00
christos 8adecf9fbe need __HAVE_SIGINFO to get the right flavor of the sigreturn symbol. 2003-09-12 13:29:46 +00:00
christos 86ad7a15ee __sigreturn14 -> compat_16___sigreturn14; thanks yamt 2003-09-12 12:42:34 +00:00
kleink 8742dcef75 Fix pasto in previous. 2003-09-12 10:10:39 +00:00
christos 138df80b74 convert to use siginfo/ucontext style of signal delivery instead of
sigcontext. Approved by nathanw.
2003-09-12 00:37:17 +00:00
christos d217c83d02 add a cast to make lint happy. 2003-09-11 21:57:32 +00:00
christos 338cc5f663 sprinkle ARGSUSED for good cheer. 2003-09-11 21:51:57 +00:00
christos 5a93912d03 No reason for __ in static variable. 2003-09-11 20:24:39 +00:00
christos c18cae3e90 For kernels that have COMPAT_16 enabled, detect that and use the old
sigcontext trampoline code when SA_SIGINFO is not set.
2003-09-11 20:23:46 +00:00
christos 847c1ca736 bump major. i386_vm86 abi change. 2003-09-11 19:19:31 +00:00
christos e4a907f72e we only have it if __HAVE_SIGINFO is not defined. 2003-09-11 15:29:10 +00:00
itojun 07f2a2a309 check malloc failure. yamt 2003-09-11 11:24:33 +00:00
wennmach cf92bf760d Reimplement s_log1p.S and s_log1pf.S to use the fyl2xp1 instruction
where necessary.

The log1p() function is provided to compute an accurate value of
log(1 + x), even for tiny values of x. The i387 FPU provides the
fyl2xp1 instruction for this purpose.

However, since the range of the fyl2xp1 function is limited to
-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
          (-0.292893 <= x <= 0.414214)
we need to check if the argument is in the valid range.

In order to reduce the cost for testing the range, we only use
fyl2xp1 if the argument is in the range
               -0.25 <= x <= 0.25
which can be checked with just one conditional branch.

Fixes PR lib/22599 by Ray Brownrigg.
2003-09-10 16:45:43 +00:00
wiz fb114e34c8 Add semicolons when enumerating variables (looks more natural);
new sentence, new line; sort SEE ALSO.
2003-09-10 14:27:22 +00:00
christos a3c9529278 Reflect reality after siginfo changes. 2003-09-10 14:13:07 +00:00
wiz 8d66b069c8 Use standard section headers, suggested by jmc@openbsd. Sort sections. 2003-09-10 13:30:16 +00:00
wiz 9e4a539564 Pull over some improvements from OpenBSD's v1.26 of this file, including
SEE ALSO and RETURN VALUES sections.
2003-09-10 09:35:41 +00:00
wiz 0e9a92473d Fix Nd; use In instead of Fd; grammar fixes. 2003-09-10 09:16:45 +00:00
tls ef0a2c06dc Another gcc3 problem: "exp" shadows a builtin. Rename it to "expo". 2003-09-10 07:20:13 +00:00
tls 732fa344d5 This didn't build with gcc3 because it was missing <string.h> for memset. 2003-09-10 07:12:33 +00:00
wiz 89d02ff30e Use In instead of Fd for header files. 2003-09-10 05:51:06 +00:00
itojun 0186de22d3 getopt return value has to be held in int, not char. 2003-09-10 00:03:42 +00:00
itojun 0257a0c524 bump minor for randomid(3) and pw_dup(3) 2003-09-09 22:18:08 +00:00
itojun cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
itojun 00552ebbd7 add randomid(3). 2003-09-09 22:10:33 +00:00
itojun 24a3a1d964 have pw_dup(3). from openbsd 2003-09-09 22:01:56 +00:00
wiz 185463aee4 Fix typos and declare a missing variable in example. From Quentin Garnier in PR 22733. 2003-09-09 19:31:53 +00:00
itojun 5c945215d0 __RCSID police 2003-09-09 03:56:39 +00:00
itojun 35beb40305 have __rpc_getxid.c 2003-09-09 03:56:23 +00:00
itojun 8b08fa0d3b use niels provos' random sequence number generator to initialize RPC XID. 2003-09-09 00:22:17 +00:00
itojun c469f0373f initialize 'res' to NULL 2003-09-08 20:54:48 +00:00
wiz dca9ccd375 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
wiz a2f146d519 Mention RFC 3493; inet_{ntop,pton} are in 1003.1-2001; move XNS5.2 to HISTORY.
Okayed by kleink.
2003-09-08 17:21:31 +00:00
itojun 0676396691 plug possible memory leak. from openbsd 2003-09-08 16:19:40 +00:00
itojun ce87a439ff deal with policy without selector. sync w/ kame 2003-09-08 10:16:31 +00:00
fvdl 7e7bcf4bc9 Allow platforms to define __EH_FRAME_CONST. Currently "const" for x86_64,
empty for others. x86_64 (and s390, which we do not have) have .eh_frame
as a read-only section, so __EH_FRAME_BEGIN__ and the register/deregister
functions must take a const foo *.

This also fixes an ICE in gcc 3.3.1 (see gcc PR #9552)
2003-09-07 22:27:54 +00:00
wiz c4f582bcc6 Fix typos in comments; from Brian Poole via jmc@openbsd. 2003-09-07 19:06:50 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
cl 89d0cfd21f Remove possible race condition in upcall recycling. 2003-09-07 14:47:44 +00:00
uwe b5623b232f Use delay slot in STACK_SWITCH (catching up with sparc64 changes). 2003-09-07 02:08:31 +00:00
uwe 7d522ba08b Use correct context to switch to.
From sparc64 fix by Andrey Petrov <petrov@netbsd>.
2003-09-07 01:54:47 +00:00
christos ec30b8c224 Add __sigtramp2.S 2003-09-06 22:56:47 +00:00
christos cdf03491b8 rename exp to expo to avoid global shadowing warning. 2003-09-06 22:47:56 +00:00
christos 28b6d65b33 bump for i386 signal trampoline; not strictly necessary, but convenient
for people who have an unsuccessful build.
2003-09-06 22:11:50 +00:00
christos 9c5c2215ea siginfo signal trampoline code. 2003-09-06 22:10:40 +00:00
kleink 9f18c21c61 Add Xref to dirname(1). 2003-09-06 20:58:39 +00:00
kleink d27a834c8e Add Xref to basename(1). 2003-09-06 20:58:11 +00:00
wiz 4bfb9a4429 Add __warn_references for deprecated lastlogxname. Okayed by christos. 2003-09-06 16:42:10 +00:00
itojun 08fc9c3284 move provos' copyright closer to res_randomid() 2003-09-06 11:46:32 +00:00
itojun a970cdd909 bring in openbsd lib/libc/net/res_random.c for truely-random res_randomid(). 2003-09-06 11:40:52 +00:00
jhawk 4b3391a2a6 %F is a date conversion, not a time converstion.
don't bother to bump Dd
2003-09-03 16:10:56 +00:00
wiz f88c193847 Mark up NULL; bump date for last; drop trailing space. 2003-09-01 15:40:46 +00:00
tshiozak cf33db0f3a fix the problem about resetting the state of iconv().
iconv() was not conforming to the SUSv3 at this point.
reported by Bruno Haible.
2003-09-01 06:16:13 +00:00
wiz a24c4806d6 Nm -> Fn getnameinfo; grammar improvements; markup improvement;
all from jmc@openbsd, thanks.
2003-08-28 12:03:08 +00:00
wiz 520d0eab98 Bump date for CAVEATS; fix punctuation usage in one place;
drop trailing space; use \*[Am] instead of & for HTML generation.
2003-08-28 09:39:11 +00:00
itojun e3a97c1624 use NI_NUMERICHOST for 2nd invocation 2003-08-28 01:49:30 +00:00
itojun 9de573eee1 add int error in CAVEAT 2003-08-28 01:46:45 +00:00
itojun 91c72951cb add CAVEATS section 2003-08-28 01:43:14 +00:00
heas 6333112bb9 plural "characters" for ret of {v}snprintf 2003-08-27 18:47:14 +00:00
uwe 2194ee2027 Add a comment that explains that
. this function cannot have _PROF_PROLOGUE
  . this function cannot be called via PLT

Change ENTRY to NENTRY for the former.

XXX: The latter is important in the gcc3 world, that have shared
libraries.  We will need to play tricks with .hidden to make sure
every shared library gets its own private __udivsi3 that it can call
directly, without going through the PLT.
2003-08-27 15:03:06 +00:00
petrov 0d472e116b typo in previous commit, annul isn't good there,
noticed by Eduardo Horvath.
2003-08-26 17:50:06 +00:00
wiz 7666801285 Add man page for getlastlogx and friends. 2003-08-26 17:37:48 +00:00
wiz a200eb2c89 Bump to 101 for getlastlogx change, says kleink. 2003-08-26 17:05:13 +00:00
wiz c7025ad491 Add note about rename getlastlogx on next major bump. 2003-08-26 17:03:33 +00:00
wiz 31fd31ccf7 Make getlastlogx have the pathname to the lastlogx database as first
argument, to be consistent with updlastlogx.

Approved by christos, reviewed by kleink.

[The lastlogxname function should not be used any longer.]
2003-08-26 16:48:32 +00:00
itojun e4b5e8fb10 protect SADB_X_EXT_TAG with #ifdef 2003-08-26 03:49:05 +00:00
itojun 1bb4de9b71 typo 2003-08-26 03:37:25 +00:00
matt f847c1a7f3 When updating wtmpx, if the write fails make sure to close the file (to
release the lock held on it).  Use O_SHLOCK when adding just one record
since O_APPEND will enforce the atomicity that is required.
2003-08-25 23:09:37 +00:00
petrov 2cae323122 Use branch-slot in STACK_SWITCH, suggested by Martin Husemann. 2003-08-25 23:00:23 +00:00
petrov c139cd4893 Use correct context to switch to. 2003-08-25 22:48:24 +00:00
ragge 644236bf71 Add PT_TRAPUC and pthread__switch_return_point.
Not tested (as most of the pthread stuff on vax) but at least
allow the system to compile.
2003-08-25 20:32:13 +00:00
ragge 0303d5ba8a execl, execle and execlp must be weak-aliased. 2003-08-24 21:04:53 +00:00