wiz
6677b3582e
Add missing "-".
2004-04-14 13:40:30 +00:00
itojun
05e937a343
remove unneeded refs to rfc2553. jmc
2004-04-14 08:07:29 +00:00
itojun
66909f0052
remove prototype decl for removed function
2004-04-14 04:46:04 +00:00
itojun
777d124a65
remove unused code
2004-04-14 04:45:28 +00:00
itojun
8803684aa2
document AI_NUMERICSERV
2004-04-14 04:42:35 +00:00
itojun
a1b7e86ab4
implement AI_NUMERICSERV (as defined in RFC3493)
2004-04-14 04:37:06 +00:00
wiz
6f852e37a7
One too many punctuation fixed in previous.
2004-04-13 23:03:22 +00:00
wiz
f2d94d5597
Punctuation fixes; mark up NULL.
2004-04-13 23:02:28 +00:00
he
30f13a8751
Avoid using preprocessing conditionals in a macro argument list at least
...
as long as all ports have not yet been converted to using gcc 3.3.3.
Build bug discovered when building for vax.
2004-04-11 09:10:58 +00:00
atatat
8d5507a13f
Weak aliases for sysctlfoobar() functions.
2004-04-08 05:45:26 +00:00
atatat
11d2a71805
Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3).
2004-04-08 04:10:44 +00:00
ross
317058e147
Ignore errors when making tags here with the override target. (Now matches
...
the default target in bsd.dep.mk, which dashes the ctags commands.)
2004-04-07 03:49:16 +00:00
wiz
2569049f22
Add comma after "i.e.".
2004-04-04 23:41:23 +00:00
matt
6aeab1d37b
Update FPSCR_FX consistently per the Programming Environment Manual. So
...
if any sticky bit is set, FPSCR_FX should be set. If no sticky bits are
set, then FPSCR_FX should be clear.
2004-04-04 19:54:05 +00:00
matt
6da9a37235
Deal with the way FP_X_INV works. That maps to FPSCR_VX. However FPSCR_VX
...
is not a sticky, it's actually an inclusive OR of 9 stick bits. So when
FP_X_INV is cleared, we need to clear all of those bits. When FP_X_INV is
set, we set all of them.
2004-04-04 19:31:19 +00:00
matt
47e6b704bb
Lint cleanup. s/u_int64_t/uint64_t
2004-04-04 19:28:13 +00:00
matt
fb0f2fdab6
Supress a few lint warnings. s/u_int64_t/uint64_t/
2004-04-04 19:27:19 +00:00
matt
acdea83164
Suppress a lint warning.
2004-04-04 19:26:21 +00:00
perry
9b863e179d
make this man page explain what the calls do somewhat better.
2004-04-04 17:10:48 +00:00
christos
46937c5008
Avoid infinite recursion on:
...
echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g'
From OpenBSD.
2004-04-03 17:00:00 +00:00
matt
386a0ebdec
Rather than use magic values, include <powerpc/fpu.h> and use those
...
definitions to generate the magic bits.
2004-04-02 22:55:19 +00:00
pooka
12004f8f23
Pipes aren't "full-duplex byte streams", so don't compare SOCK_STREAM
...
type sockets to them.
2004-03-31 16:42:19 +00:00
snj
0e9a95f62e
Simplify a clunky multi-line Fn, correct Nm usage, use Dq for quotes, add
...
some commas.
2004-03-31 01:25:46 +00:00
snj
c747b3ab1b
Bump date for last.
2004-03-31 00:14:30 +00:00
heas
d9287af8b5
Add bits about FTS_WHITEOUT & FTS_W.
2004-03-31 00:01:47 +00:00
wiz
029ff5c848
Some wording improvements and other minor fixes from OpenBSD.
2004-03-30 13:28:13 +00:00
uwe
e8f97ddda1
Mark gcc "millicode" functions .hidden if compiled for PIC. NB: these
...
files are *NOT* used, as we now provide gcc's version of millicode in
libgcc_pic.
2004-03-27 03:48:23 +00:00
he
9e1e88e1c4
Introduce sysc_init_field() and use it to make the code a little less ugly.
...
Also, fix another gcc2-unfriendly initialization.
2004-03-26 22:54:42 +00:00
enami
d43ce6c183
Redo previous in a different way; cast the character held in int variable
...
as unsigned char just before passing isalnum() in ISWORD() rather than
fetching it as unsigned char. It is ok since EOF is never passed to ISWORD()
(though it will be a bit inefficient.)
Addresses PR#24929.
2004-03-26 22:42:17 +00:00
drochner
0341f6a45e
the WARN_REFERENCES text "include <signal.h> for correct reference" is pointless
...
as <signal.h> won't help you, so remove it
2004-03-26 22:15:03 +00:00
drochner
66a132ee6f
sigreturn() isn't officially supported anymore; remove its manpage
...
(which was outdated anyway)
2004-03-26 21:49:35 +00:00
drochner
87d87e87fe
no need to define __HAVE_SIGINFO anymore
2004-03-26 21:29:07 +00:00
drochner
598cd4e454
fix siginfo adaption -- the "compat_16" prefix
...
shouldn't be exposed as a symbol
2004-03-26 21:24:14 +00:00
drochner
85fa9b7250
fix references to the syscall formerly known as SYS___sigreturn14
2004-03-26 20:35:37 +00:00
drochner
67f778a2c4
fix references to the syscall formerly known as SYS___sigreturn14
2004-03-26 19:36:40 +00:00
drochner
954d4024f6
sigreturn14 is just for compatibility, not referenced by any new code
2004-03-26 19:31:05 +00:00
drochner
606b8ac15b
disembowel -- there is no kernel support anyway
2004-03-26 19:26:23 +00:00
he
2f47eb75f7
Modify this so that it actually compiles with gcc2.
2004-03-26 12:53:58 +00:00
wiz
073b7ea121
Bump date for previous; new sentence, new line;
...
remove duplicate word and fix a punctuation typo.
2004-03-25 20:02:04 +00:00
atatat
29e15c7932
Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
...
sysctl(8) into libc, making the minor number jump. Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc. That oughta cover it.
2004-03-25 19:36:26 +00:00
atatat
44afe14cb6
Unwind the nested designators for fields within structs within structs
...
(or unions). This should really be put back once we're all using gcc3
for everything, since that makes it look a *lot* cleaner.
2004-03-25 18:36:49 +00:00
drochner
65626c5d91
kill sigcontext passing to signal handlers, we don't have to worry
...
about compatibility
2004-03-25 14:21:29 +00:00
wiz
5f31e2f50a
Use Aq instead of \*[Lt]\*[Gt]; \- for a minus; remove
...
superfluous comma.
2004-03-25 01:13:32 +00:00
atatat
ce0d7254d4
Description framework for user-level sysctl nodes. Still haven't
...
written the descriptions.
2004-03-24 19:31:46 +00:00
snj
27d4257287
Bump date for last; avoid direct use of &, < and >; drop trailing space.
2004-03-24 19:10:46 +00:00
atatat
4723bb21ba
Bring sysctl man pages up to date (wrt new query interface, the
...
versioning, and descriptions).
2004-03-24 18:22:30 +00:00
atatat
c6abd47f96
New node version and layout. This should take care of the netbsd32
...
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
2004-03-24 17:21:02 +00:00
atatat
d42aae36c0
The new sysctl query interface returns the same information as the old
...
one, but you must pass in an empty node that indicates the version
you're using.
2004-03-24 16:34:34 +00:00
atatat
9b4aa5d493
Remove my private hack for watching how sysctl works. That's not
...
supposed to be there.
2004-03-24 16:29:10 +00:00
wiz
f3fef0b660
Increase width in tables so this displays more nicely.
2004-03-24 16:14:36 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
pk
8a0244288a
Call PIC_PROLOGUE only once.
2004-03-23 19:07:40 +00:00
pk
dc7908cc61
Store the correct boolean value in sc_onstack.
2004-03-23 18:54:03 +00:00
pk
5e5e68672c
The sc_g1, sc_o0 members in the jmp_buf aren't used.
2004-03-23 18:47:55 +00:00
pk
de8223fe4d
Since libpthread may want to interpose signal handling, we can't directly
...
invoke the sigprocmask syscall trap. So build a stack frame and call
the signal handling functions by name.
2004-03-23 18:46:47 +00:00
drochner
a8c94ef1d3
simplify: it doesn't need an i387 to kill a sign bit
2004-03-23 17:11:35 +00:00
drochner
3219cdc550
replace the last occurence of an "int 0x80" syscall
2004-03-23 16:33:47 +00:00
drochner
cd85223ee2
save errno while trying to install a !SA_SIGINFO trampoline -- this
...
is expected to fail with !COMPAT_16 kernels, and we shouldn't
overwrite errno in this case
2004-03-23 16:19:40 +00:00
pk
d82ce85d20
Fix comment: g6 => o1
2004-03-23 16:13:27 +00:00
simonb
2b5fd0669b
Actually compile __longjmp14.c.
2004-03-23 12:31:52 +00:00
simonb
02082ea642
Restore the PC as well; also use mcontext register defines for accessing
...
the mcontext.
2004-03-23 12:31:17 +00:00
simonb
769814bf89
Use setcontext() instead of sigreturn() to implement longjmp().
2004-03-23 02:21:49 +00:00
simonb
339695cff5
Put the jmpbuf's FPCR in the ucontext, not the other way around.
2004-03-23 01:42:53 +00:00
simonb
270fda2783
Fix <tab> nits.
2004-03-23 01:41:47 +00:00
martin
f85414fd31
Simplify slightly and fix a comment.
2004-03-22 18:35:51 +00:00
pk
3aa621c910
Use setcontext() instead of sigreturn() to implement longjmp().
2004-03-22 12:35:04 +00:00
matt
4b376ded6a
Change longjmp on VAX (ELF) to use setcontext instead of sigreturn14.
2004-03-21 18:19:52 +00:00
matt
ca145383c7
Change longjmp to use setcontext instead of sigreturn14. Change setjmp
...
to use symbolic offsets via assym.h
2004-03-21 18:04:27 +00:00
mrg
3b66f6e642
clean up my copyright
2004-03-21 05:47:44 +00:00
mrg
05cd119306
remove my copyright statement
2004-03-21 05:46:42 +00:00
kleink
78a2369a15
Make casing in previous consistent.
2004-03-19 19:30:23 +00:00
kleink
ddfc3e5143
%% doesn't write anything; a literal % is matched. Noted by Hubert Feyrer.
2004-03-19 19:28:08 +00:00
scw
d25d657094
sigreturn14 is deprecated, so don't use it in longjmp.
2004-03-17 00:35:08 +00:00
yamt
936455ecbc
"Upcall handlers should be registered" -> "An upcall handler ..."
...
as only one handler can be registered.
2004-03-14 23:05:09 +00:00
wiz
60f9cb09db
Begin sentences with uppercase letters.
2004-03-14 20:57:49 +00:00
snj
ae6d7048fe
Spelling fix.
2004-03-14 10:36:09 +00:00
snj
63b1d00163
Fix macro usage and a slight English problem.
2004-03-14 10:22:06 +00:00
snj
cd1f209f54
English fix.
2004-03-14 10:21:22 +00:00
snj
2fdc7bef13
English improvements.
2004-03-14 10:20:43 +00:00
snj
4e8e4580a2
Fix macro usage, use Dv for SA_FLAG_STACKINFO, and English nits.
2004-03-14 10:19:59 +00:00
snj
bcba66f310
Minor English nits.
2004-03-14 10:18:33 +00:00
yamt
e71ca4ef99
some manpages of scheduler activation syscalls.
2004-03-14 09:18:45 +00:00
enami
4604becb77
Sprinkle cast to prevent unwanted sign extension. Some of those actually
...
makes sed invoked during build process an out of bound array access.
2004-03-12 22:34:09 +00:00
drochner
ca430e5111
Really, there is no need to use the old int0x80 syscall entry just for
...
getcontext(). There are some registers not properly saved with the
new syscall entry, but these are calee-saved, scratch or meaningless.
It's the setcontext() return path what matters.
2004-03-09 20:21:22 +00:00
drochner
294b4fa9f2
we also have to reset bits in the i387 status
...
as required
2004-03-09 17:16:13 +00:00
drochner
b79602af35
-clear status bits in mxcsr as required
...
-return the old accumulated status bits
2004-03-05 16:27:56 +00:00
lukem
a19008b17f
Explicitly use base 10 when parsing numbers, to enforce the "decimal number"
...
semantics that the comments referred to and as per dd(1) (which was the
origin of this functionality).
2004-03-05 05:58:29 +00:00
wiz
06588a00dd
Sort SEE ALSO, drop trailing space.
2004-03-04 23:49:31 +00:00
wiz
61e64d47d4
Sort SEE ALSO.
2004-03-04 23:47:56 +00:00
kleink
a19b383778
libc.so.12.113: isinf(), isnan().
2004-03-04 23:43:56 +00:00
kleink
8e54f10bf7
* Turn isinf(3) and isnan(3) into C99-style macros.
...
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
enami
119b5f631a
Don't call end{serv,proto}ent_r() on return. It results dangling pointer.
2004-03-04 02:30:41 +00:00
matt
eeabd92cc2
Add UC_STACK and stack_t related definitions.
2004-03-04 00:16:47 +00:00
matt
71f2db14c8
Use this to symbolically get into ucontext_t and struct sigcontext.
2004-03-03 22:58:34 +00:00
matt
3bd8b208cf
Add support to generate an assym.h if corresponding ARCHDIR contains a
...
genassym.cf.
2004-03-03 22:57:26 +00:00
matt
afc5614967
Copy this from libpthread so arch-specific .S files can use assym.h
2004-03-03 22:56:04 +00:00
drochner
4634f0716d
Don't zero a floating point variable on entry -- this causes the FPU to
...
be allocated needlessly by almost every program (at least on i386/amd64).
2004-03-03 11:19:05 +00:00
itojun
ca0ee478c7
use "%s" for err(), do not pass pointer directly. Pedro Martelletto
2004-03-01 23:06:21 +00:00
drochner
1dd7501db3
blow this up by sticking a copyright notice to it
2004-03-01 20:56:05 +00:00
drochner
c5bc0dada8
optimize this: we can use %ra for relocation directly
...
(saves 1 insn)
2004-03-01 20:43:19 +00:00
drochner
9560ce9b0f
we need a silly trampoline to make _resumecontext work
2004-03-01 19:26:29 +00:00
drochner
293e83e97e
get the offset to gp right
2004-03-01 18:32:51 +00:00
drochner
e9ee155221
Get the stack alignment right: the stack arguments must start
...
at a 16-byte aligned address, the return address is at an
"odd" address.
approved by fvdl
2004-02-28 15:57:21 +00:00
drochner
a839ccc650
alignment trouble: uc_link is at offset 8
2004-02-27 21:23:05 +00:00
enami
5a257984e5
Fix indent and other whitespace usage.
2004-02-26 23:01:15 +00:00
drochner
37d3fd292f
the char we fill with shouldn't be sign-extended
...
(the way the length argument is dealt with looks suspicious
too, but this would only have an effect for >=2G fields)
this can probably be optimized...
2004-02-26 20:50:06 +00:00
drochner
3cac582c48
fix copyback from fp stack - we need 64 bits
2004-02-26 19:19:06 +00:00
taca
5509874609
Semantic fix for allocation size for malloc() and realloc() previously
...
modified. Allocation unit isn't sizeof(char **) but sizeof(char *).
Noted by Geoff Wing.
2004-02-25 06:28:10 +00:00
christos
e79fe4ef48
Fix allocation size bug from Takahiro Kambe.
2004-02-24 15:28:07 +00:00
christos
d3516aeed5
- fix a memory leak on the current line buffer.
...
- fix a memory leak on realloc failure.
2004-02-23 16:06:52 +00:00
uwe
ad788cab09
In gcc3 world the "millicode" must be provided by libgcc*.a, so don't
...
include it in libc.
2004-02-22 01:05:49 +00:00
christos
2b03200f1f
servent_r/protoent_r additions
2004-02-19 19:31:06 +00:00
christos
d68ecdf1c9
getservent_r/getprotoent_r
2004-02-19 19:27:53 +00:00
christos
ec210d4a19
Implement the non-reentrant ones using the reentrant ones.
...
Name files by function name.
2004-02-19 19:27:26 +00:00
christos
7782337bb7
_r functions for services and protocols; also add the inet_cidr_* function
...
which will come next.
2004-02-19 19:22:51 +00:00
christos
8059eed1bc
Re-entrant versions of services and prorocols functions.
2004-02-19 19:21:44 +00:00
lukem
aff9207208
document svcudp_create
2004-02-16 02:39:36 +00:00
wiz
e3fc4b66c3
Spell the plural of suffix "suffixes", not "suffices".
...
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
kleink
d141a7411d
Forgot to build signbit() library parts in previous; noticed by mrg.
2004-02-12 10:28:28 +00:00
lukem
6dbd72c053
MAKEVERBOSE messages
2004-02-08 22:52:41 +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
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
jmmv
be85fac5e9
Fix typo: 'Each characters' -> 'Each character'
2004-01-21 12:40:14 +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
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
matt
3d2a90fb95
Make this compile.
2004-01-18 19:33:01 +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
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