tshiozak
8ad8061809
use _citrus_lookup_alias() instead of __unalias().
2004-07-21 14:17:22 +00:00
tshiozak
23affd3c41
make sure that _citrus_lookup family functions can be specified their case
...
sensitivity.
2004-07-21 14:16:34 +00:00
itojun
588f60ad8b
now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int
2004-07-21 03:16:29 +00:00
he
b17ac49bb1
Cast result of pthread__uc_pc() via intptr_t before using as a pointer.
...
Fixes compile problem for evbsh5.
2004-07-20 12:40:53 +00:00
chs
6c4049f2ff
fix some stack-pointer math in the previous revision.
2004-07-20 01:51:49 +00:00
drochner
07d87c5c6e
replace the str*() functions by speed optimized versions, submitted by
...
J.T. Conklin per PR port-amd64/25411
2004-07-19 20:04:41 +00:00
chs
e348d7e175
add hppa MD libpthread bits. translated from MIPS.
2004-07-19 03:39:02 +00:00
chs
c27bdd3547
added new files for context, LWP and siginfo support.
2004-07-18 22:41:23 +00:00
chs
1e1499c776
split __longjmp14() into a separate file and make it use setcontext()
...
instead of __sigreturn14(). translated from MIPS.
2004-07-18 22:38:33 +00:00
chs
61b506f0a2
add a siginfo signal trampoline and always use it.
2004-07-18 22:38:07 +00:00
chs
56371a56c7
add *context and LWP support for hppa. translated from MIPS.
2004-07-18 22:37:32 +00:00
chs
94a458cedd
enhance MI pthreads code to support hppa:
...
- statically initialize all global spin locks. on hppa, 0 means
the lock is held, so leaving them with the default value doesn't work.
- compare functions pointers using a function-pointer type rather than
an integral type. on hppa, function pointers may be indirect,
so we need to trigger gcc to emit calls to the function-pointer
canonicalization routines in the millicode.
- on hppa the stack grows up, so handle that using the STACK_* macros.
2004-07-18 21:24:52 +00:00
chs
32c9e25b89
call abort() if longjmperror() returns.
2004-07-18 20:51:24 +00:00
chs
2f80fec241
replace these placeholders with real implementations.
...
translated from the mips version.
2004-07-18 20:48:04 +00:00
chs
c2f33bd76d
save and restore %t1 around calling __errno, it's a caller-saved register.
2004-07-18 20:44:05 +00:00
chs
7d976824e9
add a missing return instruction.
2004-07-18 20:30:04 +00:00
thorpej
2a63e04007
- Change the strong dlfcn names in libc to ___name, and make the __name
...
versions used by others in libc weak, so that we have:
name: weak
__name: weak
___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that we have:
name: strong
__name: strong
This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.
Fixes the problem described in:
http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html
Reviewed by Nick.
2004-07-18 17:26:19 +00:00
drochner
c351eda960
amd64: stack sanity, leave the return PC alone
2004-07-16 18:40:24 +00:00
thorpej
b8b64b05f9
Use ANSI function decls.
2004-07-16 16:11:43 +00:00
skrll
7bdf35d6e3
Add a copyright message.
2004-07-15 19:58:00 +00:00
junyoung
ffb3101064
round(3) and roundf(3) appeared in 2.0.
...
Bump date.
2004-07-15 12:12:39 +00:00
wiz
5102b97303
Bump date for previous.
2004-07-14 20:10:14 +00:00
kleink
ea50e13fa9
Add a STANDARDS section; noted by Peter Bex in PR standards/25957.
2004-07-14 19:12:26 +00:00
jonathan
98b92eb4a5
Commit manpage for krb5_set_password(3), based on Heimdal-20040606,
...
with small revisions by myself, reviewed/approved by Love.
2004-07-14 07:02:07 +00:00
seb
ebe2c02564
Bump libc minor for wordexp(3) addition.
2004-07-13 15:45:18 +00:00
seb
2f8bbc118e
Add wordexp(3). The wordexp function performs shell-style word expansions.
...
This implementation is wrapper around the undocumented wordexp sh(1)
built-in command.
From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.
2004-07-13 15:42:03 +00:00
jonathan
e5f57f3a70
Commit changes from Heimdal-current, as per discussion with Love
...
(lha@NetBSD.ORG ), to incorporate contemporary (last-year-ish)
set-password and change-password extensions derived RFC-3244
(Microsoft set-password/change-password extensions), and the
subsequent MIT-KRB5 APIs for changing and setting passwords.
Required for compatibility with recent (2002/2003-ish) open-source
code which uses the MIT KRB5 APIs for setting passwords, or for
joining Microsoft domains as a "computer account".
Modified files (for pullup tracking purposes):
lib/libasn1/Makefile
crypto/dist/heimdal/lib/asn1/k5.asn1
crypto/dist/heimdal/lib/krb5/changepw.c
crypto/dist/heimdal/lib/krb5/krb5-protos.h
crypto/dist/heimdal/lib/krb5/krb5.h
2004-07-12 20:44:56 +00:00
enami
c991543af7
Print 10450000 as 10M instead of 10.0M (more greater value such as
...
10500000 is printed as 10M).
2004-07-12 09:21:20 +00:00
enami
1b94ae7df7
No need to set divisor twice.
2004-07-12 09:14:07 +00:00
nathanw
cb111b5e34
When _SOFT_FLOAT is defined, don't save or restore user FP context.
...
(note: still needs some mk rules tweaking for MKSOFTFLOAT=yes to pass
-msoft-float to asm builds).
2004-07-10 20:57:00 +00:00
wiz
f46be40b71
Move RCS Id to top of file; comment out reference to trunc(3),
...
which we do not have.
2004-07-10 14:11:18 +00:00
junyoung
bc836a3102
lib/24252: Add C99 functions round(3) and roundf(3).
...
libm minor unchanged; ride a recent bump.
From FreeBSD.
2004-07-10 13:49:09 +00:00
christos
18c8edba4d
PR/23486: Andreas Gustafsson: gdb no longer works with emacs
...
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.
2004-07-08 00:51:36 +00:00
nathanw
821dde500e
Fix a comment to say "Edit" instead of "Exit".
2004-07-07 18:21:33 +00:00
nathanw
993713df32
Recognize thread objects in addr2sync.
2004-07-06 19:33:53 +00:00
cube
2e61c89539
KERN_CP_TIME returns an arry of uint64_ts, not longs, as noted by Adam
...
Sampson in PR 23190. Also, tell about ``kern.cp_time.#CPU''.
2004-07-05 11:45:12 +00:00
mycroft
a10e4d1f3a
Cardbus -> CardBus
2004-07-03 17:36:51 +00:00
junyoung
74d67c3551
Add strcasestr(3), case insensitive version of strstr(3).
...
Bump libc minor.
From FreeBSD.
2004-07-03 08:27:25 +00:00
simonb
b52cdd0dd6
Copy the sparc/sparc64 __longjmp14() way of dealing with signal masks:
...
* Restore the signal mask with sigprocmask() instead of _UC_SIGMASK,
* since libpthread may want to interpose on signal handling.
Fixes regress/lib/libpthread/siglongjmp1.
2004-07-03 05:44:55 +00:00
simonb
b4f0be566a
Catch up with changes to __fpregset_t.
...
In __longjmp14(), copy the FP CSR from the correct array and array slot.
Completes fix for PR port-mips/25942.
2004-07-03 05:10:06 +00:00
heas
2cc74cfa3e
UDP checksums are always checked (RFC1122 S4.1.3.4), it is not controllable
...
by net.inet.udp.checksum.
2004-07-02 18:17:45 +00:00
drochner
3e7f9e1481
allocate stack space for temporary storage
2004-07-02 10:17:23 +00:00
christos
4b9f9bad8c
remove __UNCONST definition; it is now in <sys/cdefs.h>
2004-07-02 03:00:01 +00:00
sjg
3a0c68edfd
Add support for SHA1 hashed passwords.
...
The algorithm used is essentially PBKDF1 from RFC 2898 but using
hmac_sha1 rather than SHA1 directly (suggested by smb@research.att.com ).
* The format of the encrypted password is:
* $<tag>$<iterations>$<salt>$<digest>
*
* where:
* <tag> is "sha1"
* <iterations> is an unsigned int identifying how many rounds
* have been applied to <digest>. The number
* should vary slightly for each password to make
* it harder to generate a dictionary of
* pre-computed hashes. See crypt_sha1_iterations.
* <salt> up to 64 bytes of random data, 8 bytes is
* currently considered more than enough.
* <digest> the hashed password.
hmac.c implementes HMAC as defined in RFC 2104 and includes a unit
test for both hmac_sha1 and hmac_sha1 using a selection of the Known
Answer Tests from RFC 2202.
It is worth noting that to be FIPS compliant the hmac key (password)
should be 10-20 chars.
2004-07-02 00:05:23 +00:00
kleink
d93fc4c14e
Tidy up the namespace: lint -> __lint__.
2004-07-01 22:52:34 +00:00
drochner
07be12b505
also provide an alpha assembler implemtation of lrint()
2004-07-01 19:08:21 +00:00
nathanw
3a30736db7
td_sync_info(): explicitly clear the "locked" flag when unlocked,
...
instead of leaving it as garbage.
2004-07-01 18:59:52 +00:00
nathanw
aaad58dd18
td_map_addr2sync(): recognize read-write lock objects.
2004-07-01 18:27:36 +00:00
drochner
5d151d763f
enable lrint.S for amd64 (which doesn't build libm387),
...
and tighten the generic->machdep source distribution a bit to avoid
unwanted substitutions
2004-07-01 17:33:16 +00:00
drochner
af7cf00a5a
provide an assembler implementation of lrint() for i386 and amd64
2004-07-01 17:30:48 +00:00
drochner
9768ef916d
bump libm minor version (functions added)
2004-07-01 16:14:18 +00:00
drochner
147d852dbc
being here, add the (l)lround(f) functions to libm
...
(almost the same like lrint)
2004-07-01 16:09:21 +00:00
drochner
54e35f616a
aboid to shift an int by more than 31 bits - behaviour is implementation
...
dependant in this case
2004-07-01 16:06:30 +00:00
kleink
2d356478dd
Make the spelling of reentrant match the rest of the system.
2004-07-01 10:38:28 +00:00
skrll
aeb58ad6a0
Add a cerror.S and re-work various syscalls and SYS.h to use __cerror.
...
With help from the OpenBSD version of SYS.h.
2004-07-01 06:50:04 +00:00
drochner
d45473e8a3
fic the <close-to-1>^<huge number> fix as in e_pow.c
2004-06-30 18:45:25 +00:00
drochner
a6d8e4cf79
-fix a long-standing bug which affects the <close-to-1>^<huge number> case
...
(fixed in fdlibm-5.3)
-being here, sync with -5.3 as far as possible (There is another bugfix -
sign in overflow/underflow cases -; this doesn't change anything for us
because the wrapper (w_pow.c) fixes this up. Keep things in sync anyway
to ease further maintainance.)
2004-06-30 18:43:15 +00:00
drochner
d76992e490
Implement (l)lrint(f).
...
(Could get some optimization for LP64; this would need a change to
the float access macros in math_private.h.)
2004-06-30 15:08:30 +00:00
drochner
0e6c93b9fa
const'ify the arguments to pthread__assertfunc and _errorfunc;
...
needed because the __func__ pseudo-var is strictly "const*" in gcc-3.4
2004-06-25 16:33:32 +00:00
drochner
dddd0e25a3
ANSIfy
2004-06-25 15:57:38 +00:00
wiz
a26de71379
Do not xref ourselves; grammar fixes.
2004-06-25 15:29:25 +00:00
wiz
da71bc8372
Sort sections.
2004-06-25 15:27:39 +00:00
itojun
7a97c46b28
support format for if_pflog.c (new format only/old format not supported)
...
Peter Postma
2004-06-25 12:22:23 +00:00
nathanw
47513cedb9
If the sleep sleeps for its full time and rmtp is non-NULL, clear it;
...
sleep(3) expects this, even though it's not a documented property of
nanosleep().
Fixes a problem where sleep() in a threaded program would return
nonzero even on success.
2004-06-24 22:18:11 +00:00
atatat
eaa9fc4cc3
Reverse arguments to fcntl(2).
2004-06-22 13:49:43 +00:00
itojun
5e700978a6
fix missing license.
2004-06-21 21:20:05 +00:00
jmc
b2f782612f
Completely rework how tools/compat is done. Purge all uses/references to
...
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
thorpej
a6ae8a84ac
Slight hack to get this building on OS X again: Undo the renaming before
...
including the host's <pwd.h> to avoid renaming the host's versions of
these functions (which causes a prototype conflict). After <pwd.h> has
been included, then re-apply the renaming.
2004-06-18 20:34:58 +00:00
christos
92cd5ee20c
Don't allow openpty to succeed if the caller is non-superuser.
...
XXX: we cross-reference ptm 4 which does not exist (yet)
2004-06-18 02:42:57 +00:00
lha
cc333b3dd7
Add list of async-signal-safe functions
...
Approved by wiz
2004-06-13 19:17:06 +00:00
scw
0f10094026
Cast integer to pointer types via intptr_t.
...
Problem reported by Havard Eidnes while building evbsh5.
2004-06-11 07:28:05 +00:00
lha
bb3caff139
Expand a little bit on forks behavior in threaded programs
...
OK by nathanw and martin
2004-06-10 23:45:07 +00:00
martin
7347018381
Ouch. Lint didn't like the last change on sparc64. The reason:
...
<machine/reg.h> plays dirty naming tricks on sparc64 to allow 32bit
compatibility (reg -> reg64 and the parameter in
PTHREAD_REG_TO_UCONTEXT() is called reg). This probably needs to be
fixed separately, but for now reordering the includes will do.
2004-06-10 18:06:19 +00:00
uebayasi
0571d32356
Minor fix in SEE ALSO; put xref first; .Pp before a sentence.
2004-06-10 14:01:45 +00:00
uebayasi
f013145702
Split a sentence in SEE ALSO by a .Pp.
2004-06-10 13:58:47 +00:00
uebayasi
12db5f3635
Remove a superfluous .sp in the SEE ALSO section.
2004-06-10 13:53:48 +00:00
kleink
79d01decfe
Update for use of uint{16,32}_t.
2004-06-10 11:37:35 +00:00
nathanw
41e871fe18
Avoid depending on declarations of struct reg and struct fpreg by using
...
the proc_regsize() callback to allocate reg and fpreg buffers as part of the
proc state (lazily initialized by the PT_STATE_RUNNING case of
td_thr_suspend()).
Fixes build on sh3 (and probably sh5) platforms.
2004-06-10 01:38:29 +00:00
christos
4b05f4b58a
Jump through taller hoops to provide binary compatibility with programs
...
compiled with the older and shorter _res. We now use _nres internally
which is the new and bigger one. We define a _res which is the old
size one if COMPAT__RES is set, and then we consult selected values from
this old _res in res_init(), to emulate the old behavior.
2004-06-09 18:07:03 +00:00
he
552a47b805
Revert previous; mhitch has already committed a workaround to ../Makefile.inc.
2004-06-06 17:09:48 +00:00
he
4b896b2324
It appears necessary to add -I. to CPPFLAGS for nslexer.c. This is
...
most probably caused by gcc 2.95.3; will be documented in doc/HACKS.
Reviewed by ragge.
2004-06-06 13:26:01 +00:00
ginsbach
9fcbc1ee6b
Change remaining K&R style function definition to ANSI; Reviewd by <christos>.
2004-06-04 20:05:25 +00:00
christos
93b9ee2332
simplify and make more efficient (YAMAMOTO Takashi)
2004-06-03 19:32:27 +00:00
mhitch
e1afa110dd
A -I. is needed by vax; had gotten removed from elsewhere.
2004-06-03 16:34:19 +00:00
nathanw
568717a98d
Get the td_thread_t * corresponding to nthread to mess with its lwp
...
data, rather than trying a nonsensical operation on a caddr_t from a
different address space.
Moral: test-compile in the same tree you're working in.
2004-06-03 15:22:08 +00:00
nathanw
387534cc0a
Update cached LWP values when suspending the running thread.
2004-06-03 00:31:28 +00:00
nathanw
bff67c76fe
Add an offset to the thread ID numbers, because GDB really doesn't
...
cope with "thread 0".
2004-06-03 00:20:24 +00:00
nathanw
44a1e00a08
Remove a comment made obsolete by the previous commit.
2004-06-02 22:39:52 +00:00
nathanw
9edc974b8c
Add support for reporting and examining suspended threads.
2004-06-02 21:18:25 +00:00
nathanw
24ddb5f789
td_map_lwps(): there's always one lwp. This makes the call work before
...
the thread system has started.
Additionally, mark not-on-LWP threads explicitly, so that there's no
risk of using stale information.
2004-06-02 21:15:42 +00:00
nathanw
92733106a3
Add td_thr_suspend() and td_thr_resume(), to suspend and resume
...
threads from the context of a debugger.
2004-06-02 21:13:42 +00:00
christos
cd8fc4ae1f
delete duplicate namespace protection.
2004-06-02 20:54:58 +00:00
pooka
aff31bed2f
pthread_spin_lock.3 also describes pthread_spin_trylock(),
...
so link them together
2004-06-02 14:07:07 +00:00
kleink
d355352b08
Don't refer to errno as "global integer variable".
2004-06-01 16:12:51 +00:00
kleink
7de493a895
libc.so.12.120: addition of closefrom(3)
2004-06-01 16:07:17 +00:00
kleink
e78a58d8d7
Sync section number with reality.
2004-06-01 16:06:43 +00:00
wiz
ce20e7ac30
Use "In" instead of "Fd #include <...>".
2004-06-01 10:57:48 +00:00
itojun
347bbb94d3
oops, i've committed BSD auth stuff by mistake.
2004-05-31 06:51:59 +00:00
itojun
9e40b59093
EBADF is returned when fd < 0, so change text to tell the truth
2004-05-31 05:32:27 +00:00
itojun
34f8d0e9df
closefrom(3)
2004-05-31 05:25:40 +00:00
itojun
56c1b44159
implement closefrom(3).
2004-05-31 05:06:51 +00:00
uwe
9da2eaca32
Provide _REENTRANT code. It's a wonder nobody has noticed this before.
...
Uncovered by multithreaded bind9 utils.
2004-05-28 23:39:09 +00:00
uwe
521748fbfa
Fix typo in comment.
2004-05-28 22:58:25 +00:00
christos
388c103e83
PR/25003: John Kohl: File is missing a copyright.
2004-05-28 14:38:53 +00:00
wiz
508c6e7767
Uppercase Dt argument; \-1, not -1; sort SEE ALSO; & -> \*[Am].
2004-05-28 00:10:57 +00:00
wiz
714885bde5
Drop trailing whitespace.
2004-05-28 00:06:50 +00:00
kleink
8bd97363d6
Merge tzcode2004a.
2004-05-27 20:39:49 +00:00
kleink
0e5c1261b9
Update for tzcode2004a.
2004-05-27 20:33:31 +00:00
christos
04562cac02
add a simple lock in _yp_check(), to make it re-entrant.
2004-05-27 18:41:11 +00:00
christos
71fe243008
make yp stuff re-entrant.
2004-05-27 18:40:07 +00:00
christos
f099fa154d
use the pty multiplexor if it exists.
2004-05-27 03:12:48 +00:00
christos
d321ccdba8
bump; posix pty functions.
2004-05-27 03:08:07 +00:00
christos
892ad9caae
unix/98 pty functions and manual pages.
2004-05-27 02:58:48 +00:00
petrov
b4f8e35755
Add current directory to inlcude pathes as it needed for generated assym.h.
2004-05-25 21:06:50 +00:00
christos
cbebf25ae4
remove stray NSUNLOCK(); pointed out by Brian Ginsbach.
2004-05-24 16:16:26 +00:00
lukem
b8580dfae9
Put the description of "options" in a new paragraph, for consistency
2004-05-24 05:52:52 +00:00
christos
556949a68e
Oops, forgot to commit this.
2004-05-24 01:20:17 +00:00
christos
3c2635eac1
Do all the _res initialization in __res_get_state()
2004-05-23 16:55:09 +00:00
christos
13cc3543b5
centralize res_*init() calls in __res_get_state()
2004-05-23 16:54:12 +00:00
christos
94564d94a6
make this thread-safe.
2004-05-23 16:53:22 +00:00
christos
ba991ec242
one more missing weak_alias
2004-05-23 05:09:52 +00:00
lukem
b817247988
Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
...
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
christos
162504ee9b
Provide access to the 8 symbols the bind8 resolver did, through weak aliases.
...
3 of them [res_send_*, and res_querydomain], were done incorrectly before...
2004-05-22 23:47:09 +00:00
christos
b6b34b8065
fix memory leak; thanks to Logan Gabriel
2004-05-22 23:21:28 +00:00
christos
7168861fac
Provide access to _res in the non-threaded case, and abort in the threaded
...
case.
2004-05-22 15:44:26 +00:00
kleink
6b3fbf5d75
IEEE Std 1003.1-2001/Cor 2-2004, item XSH/TC2/D6/5: fdatasync() shall
...
have cancellation points.
Note: we ride today's resolver-related version bumps.
2004-05-21 17:15:42 +00:00
christos
5ce4c264ed
disable weak aliases for now; the resolver header file adds __ to all the
...
names.
2004-05-21 16:03:05 +00:00
christos
729d8bb9ff
#ifdef protect __weak_alias
2004-05-21 16:02:40 +00:00
christos
6f3786f41c
namespace protection for resolver routines.
2004-05-21 15:35:05 +00:00
martin
09e989c0e2
ptrdiff_t may be != int, so printf it with %tu instead of %u.
2004-05-21 08:20:50 +00:00
itojun
30dd6e8b37
inet6_{option,rthdr}_space are still alive.
2004-05-21 04:51:00 +00:00
christos
d0631d4012
no support for printing dnssec key in libc
2004-05-21 04:24:53 +00:00
christos
627129c2d3
bump the version of this too.
2004-05-21 04:09:13 +00:00
christos
9b99e159b4
add pool code for res state.
...
XXX: could be more efficient.
2004-05-21 03:40:51 +00:00
christos
1dda7301b9
bump version.
...
XXX: this needs work
2004-05-21 03:33:44 +00:00
christos
d14c1915e0
Finish bind9 resolver merge.
2004-05-21 02:30:03 +00:00
christos
3fa54233f6
Add the remaining files from net that are going to be moved here and
...
the Makefile glue.
2004-05-20 23:13:02 +00:00
christos
df0952c6d2
- merge in our newer and better changes
...
- pass lint
- XXX: need to get rid of SPRINTF() macro
2004-05-20 23:12:33 +00:00
christos
39e7bb7142
import the parts of the bind9 lib/bind/inet directory directory that we
...
use.
2004-05-20 22:29:02 +00:00
christos
e878251743
Add headers that ISC software [bind9] needs to include
2004-05-20 22:26:22 +00:00
christos
fd00db407e
- de-lint
...
- add NetBSD rcsid.
2004-05-20 20:35:05 +00:00
christos
a8846ff30b
- make prototypes for 16 and 32 bit types make sense.
...
- fix lint issues
- add NetBSD rcsid
2004-05-20 20:19:00 +00:00
christos
56d79e72ce
add Makefile glue
2004-05-20 20:02:26 +00:00
christos
0c789e3239
import files needed from the nameser directory of bind9
2004-05-20 20:01:31 +00:00
christos
49a363f167
1. de-lint
...
2. NetBSD rcsid.
2004-05-20 19:52:31 +00:00
christos
3e5b2b5f54
makefile glue.
2004-05-20 19:52:14 +00:00
christos
8681712dac
de-lint
2004-05-20 19:51:55 +00:00
christos
89abd4929c
import isc specific header files.
2004-05-20 19:49:41 +00:00
christos
ca31adbdcc
netbsd rcsid.
2004-05-20 19:43:39 +00:00
christos
330989eefb
import isc specific functions from bind9.
2004-05-20 19:34:32 +00:00
christos
50d86ec259
more lint fixes.
2004-05-20 19:31:52 +00:00
christos
7899178585
provide __h_errno_set()
2004-05-20 19:31:40 +00:00
christos
fa406da826
Add glue files.
2004-05-20 18:00:55 +00:00
christos
1ad5eecb0b
- add casts to appease lint
...
- fix unreachable condition pointed out by lint.
2004-05-20 17:59:43 +00:00
christos
d2fb1f98f1
add casts to silence lint.
2004-05-20 17:43:31 +00:00
christos
f5b0f7df42
silence lint.
2004-05-20 17:42:30 +00:00
christos
d398b3c4b9
add casts to silence lint.
2004-05-20 17:41:00 +00:00
christos
08b5682b49
- add casts to silence lint
...
- add missing prototype
- rename variables to avoid hiding globals
2004-05-20 17:39:55 +00:00
christos
df510acf5d
- res_ourserver_p prototype was inconsistent (thanks lint)
...
- protect update functions with _LIBRESOLV
- add res_opt() to mirror res_nopt
2004-05-20 17:34:17 +00:00
christos
f4f2cfc21a
- don't use irs.
...
- h_errno is not going to be per-thread in our implementation.
2004-05-20 17:23:22 +00:00
christos
2b237084d1
Import libc portion of the resolver from bind9
2004-05-20 17:18:54 +00:00
kleink
675001e211
* Note string termination behaviour of NAME_MAX vs. PATH_MAX.
...
* Replace reference to non-existant KERN_NAME_MAX appropriately with
{NAME_MAX}.
2004-05-19 11:40:51 +00:00
sjg
5d1af908f6
Apply patch from OGAWA Takaya to fix FreeBSD hosted builds.
...
The trick is to force use of the NetBSD versions of user_from_{uid,gid}().
PR: 24843
2004-05-18 22:14:35 +00:00
skrll
5e2026a163
Add code code for .init and .fini section fallthroughs and regression
...
test.
2004-05-18 19:19:34 +00:00
wiz
59c0620d8b
Bump date for previous.
2004-05-18 14:53:47 +00:00
ragge
3a42a9c112
Update connect manpage to reflect current changes.
2004-05-18 12:21:29 +00:00
chs
255a1a9db8
__sigreturn14 -> compat_16___sigreturn14
2004-05-17 14:14:18 +00:00
skrll
c007da99a0
Update for ELF.
2004-05-17 10:44:22 +00:00
lukem
7c3f906965
no need to define INTERNALLIB here
2004-05-17 05:49:54 +00:00
lukem
42415f999d
Add entries for items found on the Microsoft Wireless MultiMedia Keyboard 1.1.
...
Spell "Microsoft" correctly.
2004-05-16 13:22:23 +00:00
mhitch
a6d522d13c
Add ceilf(), floorf(), and sqrtf() (as wrappers using ceil(), floor(), and
...
sqrt() repectively). The fixes PR#22796.
2004-05-13 20:35:40 +00:00
wiz
64ebeb5cbc
\- is a minus, not -.
2004-05-13 10:20:57 +00:00
wiz
339084de19
\- is a minus, not -.
2004-05-13 10:10:46 +00:00
kleink
c54a69ad5a
Like in shmget(2), elaborate on IPC_EXCL in the description.
2004-05-13 01:49:55 +00:00
kleink
2594bcf8ad
Repair sentence in previous.
2004-05-13 01:43:13 +00:00
kleink
aa87f3ef0e
* Undo rev. 1.9, most of which was either redundant, inaccurate, or wrong.
...
* Elaborate on IPC_EXCL in the description.
2004-05-13 01:39:14 +00:00
kleink
15a5f3876a
Don't use tm_gmtoff for %z: a strictly conforming ISO C application won't
...
initialize it. However, instead of using what is suggested in this code
path, attempt get it right for DST as well. Addresses PR standards/21722
from Richard Earnshaw.
2004-05-12 23:03:11 +00:00
toshii
ac142bbda7
Fix typos.
2004-05-12 17:20:01 +00:00
wiz
7117989465
Sort sections; use \*[Lt]\*[Gt] instead of <>.
2004-05-11 20:02:54 +00:00
kleink
58c660fd11
When using PATH_MAX in the example, make sure we include <limits.h>!
2004-05-11 17:39:36 +00:00
kleink
3bb0518901
Add an example code piece; suggested by Thomas Klausner.
2004-05-11 17:38:18 +00:00
drochner
f56a8e5871
make this build in the tools/compat reachover
...
case if HAVE_FPARSELN is not present
patch from Christian Limpach
2004-05-11 17:31:04 +00:00
wiz
d5286aa001
End sentence with a dot.
2004-05-11 12:29:22 +00:00
kleink
4c5383c22f
Don't use tm_zone for %Z: a strictly conforming ISO C application won't
...
initialize it. Addresses PR standards/21722 from Richard Earnshaw.
2004-05-11 09:32:02 +00:00
kleink
8df3999b0c
While I'm at it: add restrict qualifiers to readlink(2).
2004-05-10 22:33:08 +00:00
kleink
43b7ae77fa
POSIX-2001: Change readlink(2)'s return type from int to ssize_t.
2004-05-10 22:28:23 +00:00
thorpej
1e627ed78e
Make gmon / mcount work properly for threaded applications by keeping
...
thread-specific gmonparam structures and then merging them before dumping
the profile buffers.
Written by Nathan J. Williams, contributed by Wasabi Systems, Inc.
2004-05-10 22:16:42 +00:00
drochner
d1a752ca4b
put back the CAVEATS section
...
pointed out by wiz
2004-05-10 17:15:28 +00:00
drochner
1626697cbc
remove the fgetstr manpage
2004-05-10 17:02:21 +00:00
drochner
64b5a4f2c6
Add FLOCKFILE() locking - should be threadsafe now.
...
(Didn't test the !HAVE_FPARSELN && !_REENTRANT case -- this might be
hit in tools/compat on some host platforms.)
2004-05-10 16:50:23 +00:00
drochner
db594c6591
After discussion with christos, turn fgetstr() into an internal function.
...
Its API in inherently non-threadsafe (and it depends on certain properties
of the underlying stdio implementation), so it shouldn't be a first-class
function for general use, polluting the application namespace.
Also remove the FLOCKFILE() code from it - this is under control of the
calling function now.
(XXX I'm not sure whether the FLOCKFILE() should be kept in fgetln(),
this function cannot be used in multiple threads anyway. It doesn't
hurt much, and it might prevent corruption of internal FILE structures.)
2004-05-10 16:47:11 +00:00
kleink
f52f2d3dfe
Add a manual page for the standard-inspired offtime(3) and friends;
...
requested by Thomas Klausner.
2004-05-10 02:02:00 +00:00
lukem
2ebcc58148
sbsize should be parsed as R_CSIZE so that suffixes work correctly.
...
Fix from Christian Biere in PR [lib/25504].
(XXX: the R_CSIZE parsing should be changed to using strsuftollx(3))
2004-05-09 23:28:11 +00:00
kleink
f379d2c8ac
There are two instances of getsubopt.c, one in gen, which came by the
...
ways of 386BSD, and one in stdlib, which is from Lite-2. The former was
picked up by the build process and has seen a little more maintenance
while the latter's location is "right", so bring the latter up to par
with the former and dispose of the (now) latter.
Reported by David A. Holland in PR lib/25160, which is worded in a
far less mind-boggling fashion than the above.
2004-05-09 19:34:11 +00:00
kleink
a060c8818b
We now need an internal name for fileno(), since when buildling libc
...
_REENTRANT we can no longer use the macro version from <stdio.h>.
2004-05-09 17:27:53 +00:00
yamt
609701c865
- note its typical usage.
...
- bump date.
2004-05-09 11:28:58 +00:00
kleink
95e4d0d7af
Need namespace.h for internal names of strdup, strlcpy.
2004-05-09 11:26:33 +00:00
kleink
6352cc4399
Need namespace.h for internal names of fseeko, strlcpy.
2004-05-09 11:25:52 +00:00
kleink
6108f6dd87
Need namespace.h for internal name of strlcpy.
2004-05-09 11:25:20 +00:00
kleink
8d54bc1847
struct netnet.n_net used to be an unsigned long integer.
...
In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.
To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness. Fixes PR
standards/21411 from Ben Harris.
This should be deleted the next time the libc major number is
incremented.
Also, update getnetbyaddr(3)'s `net' argument accordingly.
2004-05-08 18:52:15 +00:00
wiz
3a6d7bd8c0
Revert part of previous.
...
[Never argue with a language lawyer, or at least expect to lose ;)]
2004-05-06 19:16:32 +00:00
jdolecek
55c776851d
fix reference Nx 2.1 to Nx 3.0
2004-05-05 08:48:36 +00:00
atatat
f5a0e81454
That's "endutxent", not "entutxent". Hi, wiz!
2004-05-04 02:38:35 +00:00
lukem
5f5a907836
fix description for svc_getreqset()
2004-05-03 15:57:36 +00:00
kleink
5a6f0c93e7
In the nothread version, don't return EINTR if select() was interrupted
...
since this value is explicitly ruled out by POSIX. Instead, return 0,
like a spurious wakeup. From YAMAMOTO Takashi in PR standards/24240.
2004-05-03 09:13:34 +00:00
wiz
fde70892d3
Mention that cfmakeraw needs an initialized termios structure.
...
Addresses PR 25371.
2004-05-01 08:15:54 +00:00
wiz
7383a5157d
Make that NULL, and mark up an extension like a path.
2004-05-01 07:59:09 +00:00
mrg
d04c0ebe4a
oops; don't back out the minor number, just remove the functions.
...
this will allow updating to happen seemlessly.
2004-05-01 07:57:46 +00:00
mrg
cd841de728
backout the changes made on 29th of january:
...
- remove gzopenfull() and gzdopenfull()
- un-bump minor number
- remove docs for gone functions.
traditionally this is an invalid change (removing an API from a library
without bumping the major.) it has been decided that this case is special
enough not to require that. no one should have been using these new
functions yet.
PS: this may cause "make install" to barf about older libraries already
being installed.
2004-05-01 07:54:50 +00:00
kleink
88d9244df3
Add ndbm(3) documentation, fixing PR lib/25357.
2004-04-30 21:13:23 +00:00
skrll
f01797a30f
Fix typos so that we define _start and __start.
...
The linker script gets the right entry point now.
2004-04-30 08:11:37 +00:00
christos
744eb72770
PR/25397: David A. Holland: bug in second loop of resizeterm
...
(win used uninitialized), hidden by wrong gcc appeasal.
2004-04-29 22:28:51 +00:00
kleink
ceeaed078c
XPG4.2: when it is attempted to open a database write-only, silently
...
"upgrade" to use read/write access on the database file.
2004-04-29 18:37:20 +00:00
kleink
b4e89dd2ab
Purge a leftover comment from rev. 1.6.
2004-04-29 16:33:20 +00:00
kleink
dc370e204f
libc.so.12.117: added __dbm_{delete,fetch,firstkey,nextkey,store}13().
2004-04-28 00:11:44 +00:00
kleink
dbfbef898d
XPG4.2: Change member `dsize' of struct datum from int to size_t.
...
Version dbm_{delete,fetch,firstkey,nextkey,store}() accordingly.
Fixes PRs standards/21402 from Ben Harris and standards/25343 from
Murray Armfield.
2004-04-28 00:10:52 +00:00
kleink
537be69d5c
Remove internal names for dbm_*(3); these are not required at this time.
2004-04-27 20:03:45 +00:00
uwe
85cb92089f
Add trailing space that got lost from the string definition.
...
Pointed out in PR lib/25340 by Juho Juopperi.
2004-04-27 02:15:04 +00:00
kleink
681b62c2ce
POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
...
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2]. From Murray
Armfield in PR standards/25331.
In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
2004-04-27 01:12:44 +00:00
jonathan
887b782b0b
Initial commit of a port of the FreeBSD implementation of RFC 2385
...
(MD5 signatures for TCP, as used with BGP). Credit for original
FreeBSD code goes to Bruce M. Simpson, with FreeBSD sponsorship
credited to sentex.net. Shortening of the setsockopt() name
attributed to Vincent Jardin.
This commit is a minimal, working version of the FreeBSD code, as
MFC'ed to FreeBSD-4. It has received minimal testing with a ttcp
modified to set the TCP-MD5 option; BMS's additions to tcpdump-current
(tcpdump -M) confirm that the MD5 signatures are correct. Committed
as-is for further testing between a NetBSD BGP speaker (e.g., quagga)
and industry-standard BGP speakers (e.g., Cisco, Juniper).
NOTE: This version has two potential flaws. First, I do see any code
that verifies recieved TCP-MD5 signatures. Second, the TCP-MD5
options are internally padded and assumed to be 32-bit aligned. A more
space-efficient scheme is to pack all TCP options densely (and
possibly unaligned) into the TCP header ; then do one final padding to
a 4-byte boundary. Pre-existing comments note that accounting for
TCP-option space when we add SACK is yet to be done. For now, I'm
punting on that; we can solve it properly, in a way that will handle
SACK blocks, as a separate exercise.
In case a pullup to NetBSD-2 is requested, this adds sys/netipsec/xform_tcp.c
,and modifies:
sys/net/pfkeyv2.h,v 1.15
sys/netinet/files.netinet,v 1.5
sys/netinet/ip.h,v 1.25
sys/netinet/tcp.h,v 1.15
sys/netinet/tcp_input.c,v 1.200
sys/netinet/tcp_output.c,v 1.109
sys/netinet/tcp_subr.c,v 1.165
sys/netinet/tcp_usrreq.c,v 1.89
sys/netinet/tcp_var.h,v 1.109
sys/netipsec/files.netipsec,v 1.3
sys/netipsec/ipsec.c,v 1.11
sys/netipsec/ipsec.h,v 1.7
sys/netipsec/key.c,v 1.11
share/man/man4/tcp.4,v 1.16
lib/libipsec/pfkey.c,v 1.20
lib/libipsec/pfkey_dump.c,v 1.17
lib/libipsec/policy_token.l,v 1.8
sbin/setkey/parse.y,v 1.14
sbin/setkey/setkey.8,v 1.27
sbin/setkey/token.l,v 1.15
Note that the preceding two revisions to tcp.4 will be
required to cleanly apply this diff.
2004-04-25 22:25:03 +00:00
kleink
3e7f30c118
POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
...
to id_t. Partially addressing PR standards/25216 from Murray Armfield.
2004-04-25 22:18:08 +00:00
christos
0b1d0cb383
Add -DSMALL so that this can be used in libhack.
2004-04-25 06:45:29 +00:00
atatat
990f278f7a
Remove dynamic sysctl node version 0 from the tree. It seemed okay at
...
first, but quickly showed its shortcomings. The version 1 node we're
now using should be good for a while.
2004-04-25 05:47:52 +00:00
kleink
37fa02ea0d
Bump to 1.0: incompatible pci_devinfo() argument change.
2004-04-24 09:57:13 +00:00
kleink
7407d114f9
Catch up with the kernel: new buffer length argument to pci_devinfo().
2004-04-24 09:56:36 +00:00
christos
f0f6798596
sprinkle const.
2004-04-23 17:54:02 +00:00
christos
dea77b1806
sprinkle const
2004-04-23 15:23:26 +00:00
wiz
af1b524517
Bump date for previous.
2004-04-23 14:52:42 +00:00
christos
36d9d2a4de
adjust to constification of cgetent()
2004-04-23 14:49:18 +00:00
christos
b3a5c6932f
Adjust to constification of db_name vector.
2004-04-23 14:48:07 +00:00
christos
2bab61681c
Ansify and add change db_name vector from char ** to const char * const *
2004-04-23 14:47:52 +00:00
christos
75f2f1640d
adjust to constification.
2004-04-23 14:47:23 +00:00
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
04680727b1
s/this this/this/.
2004-04-23 02:48:12 +00:00
kleink
8b6d4dd0ae
Xref statvfs(5).
2004-04-21 21:25:59 +00:00
wiz
3274408555
Whitespace nits; fix a minus; remove unnecessary {}.
2004-04-21 12:18:23 +00:00
wiz
1c276b3fae
Mark up NULL, and fix a minus.
2004-04-21 12:16:00 +00:00
wiz
bb32d7ba63
Drop trailing whitespace.
2004-04-21 12:10:36 +00:00
wiz
6cbd2718d7
Use mdoc macros instead of roff to mark up table;
...
mark up some more stuff.
2004-04-21 11:45:42 +00:00
jdc
eb71bd67da
Add missing mvin* and mvwin* manual pages.
2004-04-21 06:24:32 +00:00
kim
293fb86ada
Formatting tweaks to make things line up yet not have columns
...
run into each other. Fix one typo while here.
2004-04-21 02:46:34 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
wiz
58da84e9bf
Bump date for previous.
2004-04-21 00:21:04 +00:00
wiz
74eeae1bcf
Drop trailing whitespace; null -> nul; & -> \*[Am]
2004-04-21 00:19:40 +00:00
christos
887ab9a1b5
bump.
2004-04-21 00:02:46 +00:00
christos
4e510a4ef6
protect fgetstr
2004-04-21 00:02:26 +00:00
christos
6321f42fe9
Add a generalized version of fgetln that can stop at an arbitrary delimiter,
...
and implement fgetln on top of that.
2004-04-21 00:01:57 +00:00
atatat
b91680c172
The API to hostid that libc provides may involve a "long", but the
...
interface the kernel provides to libc (and the rest of userland) is an
"int". Therefore, stop pretending that it's a long, since that can
incur bizarre failure modes if the types also don't have the same size
(sparc64, alpha, etc).
2004-04-19 13:16:42 +00:00
wiz
71cdf6adc0
Fix typo in xref.
2004-04-19 11:27:03 +00:00
lukem
968e09b852
Document RLIMIT_SBSIZE.
2004-04-19 01:53:21 +00:00