Commit Graph

8011 Commits

Author SHA1 Message Date
christos 19fe9b6b27 remove parameter names to avoid shadowing of globals. 2003-03-22 17:23:09 +00:00
wiz 2c30441d13 Try to get some consistency in the used macros; other minor fixes. 2003-03-22 15:46:47 +00:00
jdolecek 1edd42a9d2 move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00
scw 922be02781 Include <string.h> for strcmp(3) prototype. 2003-03-21 13:48:53 +00:00
ross c73965d14b LP64 warnings 2003-03-21 03:07:40 +00:00
ross f80c89ab02 fix LP64 and other warnings 2003-03-20 22:53:12 +00:00
dsl 5360d5b4c3 FIONASYNC should be FIOASYNC 2003-03-20 11:53:29 +00:00
nathanw a0628261fe Use pthread__assert() instead of plain assert(), as the latter has
locking issues.
2003-03-20 01:03:52 +00:00
nathanw aa70f03b23 When implementing a recursive mutex, it helps if you remember to
decrement the recursion count.

Fixes the problem of uic dying with a no-next-thread assertion while
building kdeadmin3; reported by Perry Metzger and others on
tech-pkg.
2003-03-19 22:26:47 +00:00
ross 88929ccff1 crt{begin,end}S.o must now depend on the new crt{begin,end}S.c wrappers 2003-03-19 16:54:25 +00:00
dsl 9be8ac5294 Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
ross 520b9c1f59 * remove .ALLSRC, which doesn't work with the new dependency tree
replaced mostly with .IMPSRC, so add .c wrappers for variant .o names

* any machine with a shared crt0.c that also uses common_elf (I didn't see
  any) will now need a reachover wrapper in .CURDIR a la crtbeginS.c

this should fix the build breakage
2003-03-19 04:31:41 +00:00
jdolecek 47bc3eb448 in gzseek(), use fseeko() instead of fseek() to support full 64bit offset 2003-03-18 20:51:24 +00:00
jdolecek 8174d4a1bb eliminate some const-castaways 2003-03-18 20:47:47 +00:00
jdolecek 6a28264443 constify compress_block() 2003-03-18 20:37:33 +00:00
mycroft ecd973b46f const poisoning. There is no initialized read-write data in the static library
now.
2003-03-18 19:53:15 +00:00
christos e04b01c9ff Add appropriate SRCS lines so that we actually create dependencies. I've
been running with a crt0.o from last year!
2003-03-18 19:11:57 +00:00
wiz 9e95578da3 Mention namelen in DESCRIPTION. From Todd C. Miller/OpenBSD. 2003-03-18 06:44:22 +00:00
wiz 7ae24b8852 Fix capitalisation of "indicates". From Todd C. Miller/OpenBSD. 2003-03-18 06:41:19 +00:00
itojun b5dda3e238 From: "Jason L. Wright" <jason@thought.net>
The man page for getaddrinfo() and RFC2553 says it should return EAI_NONAME
for the case where hostname != NULL, hostname is not a numeric string and
ai_flags has the AI_NUMERICHOST bit set.  Instead, it returns EAI_NODATA
for this case.  The diff below makes it return EAI_NONAME for this case.

This is why ntpq and ntpdc from ntp-4.1.74 can't resolve hostnames,
but work fine with numeric strings like ::1 or 127.0.0.1.
2003-03-17 23:10:25 +00:00
wiz 42a6975065 Improve English, sort SEE ALSO.
XXX: list of valid charclasses should be added.
2003-03-17 08:49:46 +00:00
wiz f885d77c51 Drop trailing space. 2003-03-17 08:41:31 +00:00
wiz 64e132da8b Fix typo. 2003-03-17 08:39:54 +00:00
wiz aae776727f Use .Dv in some places, add "function" in another, and sort SEE ALSO. 2003-03-17 08:33:45 +00:00
wiz 0d4f93ac07 Use Dv in some places, and sort SEE ALSO. 2003-03-17 08:29:44 +00:00
wiz a798d4ff8e Consistent tab usage. 2003-03-17 07:45:04 +00:00
christos d5632de9bf Don't do:
if ((xdrp->x_handy -= need) < 0)
		return FALSE;

because by repeatedly calling this we can cause overflow, and then overwrite
valid memory. Instead do:

	if (xdrp->x_handy < need)
		return FALSE;
	xdrp->x_handy -= need;
2003-03-16 15:42:22 +00:00
wiz 83de4abed2 Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
jhawk d935301e6f Xr vfork(2); not worth a Dd bump 2003-03-15 22:06:34 +00:00
hannken 94a50cb223 Make it work on cpus with cachelinesize < 32.
Tested on macppc by Markus W Kilbinger.
2003-03-15 14:10:21 +00:00
fvdl e4189529ce No need to use movq for the small immediate values here, they'll be
zero-extended with movl.
2003-03-15 12:34:33 +00:00
christos 75fdb547df PR/13242: John Heasley: ENOTDIR is not fatal 2003-03-15 04:41:17 +00:00
nathanw a25b9285d9 Add a wrapper for the execve() system call that arranges for the current
thread sigal mask to be propagated into the new process image.
2003-03-14 22:27:34 +00:00
nathanw 022a762c83 Make execve a weak syscall. 2003-03-14 22:26:13 +00:00
thorpej 04d0b802f7 Include <sys/types> before <sys/lock.h>, shuffle <ucontext.h>. 2003-03-13 19:51:33 +00:00
tshiozak 5e62671b2f changes for cross build on FreeBSD box.
- rename some macros and types defined in runetype.h.
 - move declarations of some global symbols to rune.h from runetype.h.
 - make sure the target sources use rune.h and mklocale use runetype.h.
I tested them on FreeBSD-4.6.2 box (./build.sh -m i386 tools).
2003-03-11 17:23:07 +00:00
nathanw 64324a8175 Remove debugging code accidentally committed. 2003-03-11 16:27:38 +00:00
tshiozak 3f9925f700 add wcstoll, wcstoimax, wcstoull and wcstoumax. (lib/20656)
- these are defined in C99 (wcsto[ui]max) and SUSv3.
  - these implementations are written by sigsegv@s25.xrea.com,
    derived from NetBSD's wcstol/wcstoul.
  - I just added some comments.
2003-03-11 09:21:22 +00:00
nathanw 16612d0814 * Use a <= comparison rather than a < comparison when searching for
alarms to process.

* Remove a redundant assignment.

* Make a debug message more consistent with the others.
2003-03-11 00:18:36 +00:00
nathanw 37c11910ec Re-enable nanosleep(); kernel bug is squished (kern_time.c:1.67). 2003-03-10 22:16:36 +00:00
christos 80a839beda don't use the path for awk 2003-03-10 21:21:10 +00:00
tshiozak 4f31053655 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:50 +00:00
christos 687b5d51e3 s/u_int32_t/unsigned int/ 2003-03-10 21:18:49 +00:00
tshiozak 8328c33b65 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:48 +00:00
tshiozak 75e29ba505 some changes around mklocale:
- clean up cpp directives.
- stop including rune.h from mklocale.
- stop using _BSD_RUNE_T macro.  instead, use int32_t directly in runetype.h.
- move _DEFAULT_INVALID_RUNE to runetype.h.
These were for historical reason on porting rune from FreeBSD,
but it seems that these are no longer reasonable but troublesome
under the current NetBSD build system.
additionally:
- runetype.h -> locale/runetype.h in mklocale, because this might conflict
  to FreeBSD's one.
2003-03-10 20:41:29 +00:00
dsl 25456aecdb Put the __weak_extern() back inside vi_alias, but after the extern for
get_alias_text().
2003-03-10 11:09:25 +00:00
he d5428a2906 Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
function, so that this compiles again.
2003-03-10 09:55:10 +00:00
christos 1d6595e599 null is not 0 2003-03-10 01:14:54 +00:00
christos 2ffae6453d if no __weak_extern, don't even try to do vi_alias. 2003-03-10 01:14:07 +00:00
christos 61c24e2c2a fix uninitialized variable.
grr, I want gcc-3.3
2003-03-10 01:05:12 +00:00