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
kleink
45cc3e349e
Need namespace.h to generate references to internal names.
2003-08-24 15:14:18 +00:00
nathanw
e1fb9dd8e8
In pthread__deliver_signal(), correctly use pt_trapuc or pt_uc as the
...
context-to-restore instead of always using pt_uc.
Fixes a problem with signal handlers for synchronous signals noted by
Matthias Drochner on current-users.
2003-08-22 17:35:52 +00:00
kleink
f518dc7e04
Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis.
2003-08-22 14:05:03 +00:00
uwe
42a8e50b21
Add missing prototypes to make softfloat compile with -DSOFTFLOAT_NEED_FIXUNS.
2003-08-21 02:12:33 +00:00
martin
88055fbde5
Include <stdlib.h> for exit() prototype.
2003-08-20 09:50:16 +00:00
dsl
79b2073eea
Significantly reduce the non-monotonicity of this function.
...
The way time is apportioned to interrupt/system/user makes it impossible
to guarantee monotonicity except by saving the previous value!
2003-08-19 08:31:18 +00:00
fvdl
6f517be9eb
Return the right value for modf(). Fixes PR 22503.
2003-08-16 21:45:50 +00:00