jwd
24a72fc271
Fix signed/unsigned comparison warning/error from 'make release'
2003-01-28 00:33:53 +00:00
mbr
48a0e2255a
Fix signed/unsigned comparison warnings.
...
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:46:50 +00:00
mbr
8273c63b65
Fix signed/unsigned comparison warnings. Fix spelling error in
...
comment.
NetBSD Rev. 1.9 and 1.7
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:45:08 +00:00
mbr
5bcca953be
Make this work in the !INET6 case -- if we mismatch the AF, don't return a
...
bogus (uninitialized) structure. Also, ignore v4 ifa's with no broadcast
address (rather than core dumping).
NetBSD Rev 1.8
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:43:23 +00:00
mbr
53b8543d8d
Check pmap_flag before sendto.
...
NetBSD r 1.5
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:38:25 +00:00
mbr
5a16f354fd
Make sure we don't look before the beginning of the string.
...
NetBSD Rev 1.5
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:36:53 +00:00
mbr
e61117f9e2
Add missing __rpc_fixup_addr. This is needed to make
...
mount_nfs -T work for scoped addresses.
NetBSD Rev 1.11
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:27:55 +00:00
mbr
00bea96dad
Free the correct buffer in error handling.
...
Handle that malloc may return NULL.
NetBSD Rev. 1.8
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:22:59 +00:00
mbr
28bc7aa886
Reset the record lenght and received bytes once a record
...
is finished. This fixes clients doing two RPCs over the
same connection at the same time. Without this fix, we
could end with a reply to old data.
Submitted by: Frank van der Linden <fvdl@netbsd.org>
Reviewed by: rwatson
Obtained from: NetBSD
2003-01-27 22:19:32 +00:00
ache
5c5994bd15
Now return NULLified struct in case of empty config file
...
(previous variant return NULL pointer for both empty file case and error case,
so caller can't sense error properly).
It not affect existen programs because property_find() now returns NULL
for both NULL pointer and NULLified struct.
2003-01-27 03:39:33 +00:00
ache
779e19d000
Handle read errors
2003-01-27 03:14:04 +00:00
jmallett
3b9e60f68a
If we don't know where the sblock is (e.g. filling out a blank disk), then
...
get it from the fs structure. Really libufs should have interfaces to generate
both what we export, and what we import, based on eachother, and this should
be full of redundant code to make sure everything is right... But really, we
don't even deal with checksums, so plenty of room to improve.
2003-01-27 01:57:15 +00:00
markm
0e17357e12
Very minor EOL whitespace diff-reducer.
2003-01-26 23:34:47 +00:00
markm
dffbfb659d
Missed a bit of cleanup.
2003-01-26 23:29:22 +00:00
markm
b7034cb57e
make these more useful for lint(1). Minor diff-reductions while I'm
...
about it.
2003-01-26 23:14:47 +00:00
mbr
066352b218
Fix namespace pollution introduced in previous commit.
...
Reviewed by: phk
2003-01-26 23:01:49 +00:00
markm
26450b90d3
Remove the get_term() function. It pretty much can't work for
...
FreeBSD, and makes ugly diffs with the other crt1.c's. Leave
behind a comment (words supplied by Thomas Moestl) that explain
the issue.
OK'ed by: tmm
2003-01-26 23:01:36 +00:00
alfred
1cd571649a
Add const qualifier to data argument for msgsnd.
...
PR: standards/45274
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-26 20:09:34 +00:00
tjr
6a029f7c04
Remove part of my stateful locale patch that slipped into the previous rev.
2003-01-26 11:45:54 +00:00
tjr
680c2aca55
Initial implementation of the C99 feature whereby calling freopen() with
...
a NULL filename argument allows a stream's mode to be changed. At the
moment it just recycles the old file descriptor instead of storing the
filename somewhere and using that to reopen the file, as the standard
seems to require. Strictly conforming C99 applications probably can't
tell the difference but POSIX ones can.
PR: 46791
2003-01-26 10:01:59 +00:00
alfred
28e8e60e36
Bring shm functions closer the the opengroup standards.
...
PR: 47469
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-25 21:33:05 +00:00
alfred
cea829ec35
Bring semop() closer the the opengroup standards.
...
PR: 47471
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-25 21:27:37 +00:00
mike
33e70583eb
Add an MLINK malloc.conf(5) -> malloc(3).
2003-01-24 13:58:56 +00:00
fjoe
52bbb9400b
remove #ifdef _THREAD_SAFE
2003-01-24 01:46:30 +00:00
jmallett
dd2fdc8704
bwrite, not sbwrite, needs to open for writing and write.
2003-01-23 23:58:22 +00:00
jmallett
070819018f
API to fillout a blank disk. For e.g. newfs.
2003-01-23 21:32:56 +00:00
phk
8d433414eb
For "sensitive" processes, we always set the 'A' flag which causes abort()
...
to be called on first sight of trouble.
"sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root
or gid == wheel".
The 'A' option carries no performance penalty.
It is not possible to override this setting: fix the program instead.
Absentmindedly nodded OK to by: various
2003-01-23 21:26:47 +00:00
des
b80b0e22d8
Document .netrc support.
2003-01-22 18:27:25 +00:00
des
48ceb170df
Hook in the .netrc code + don't use pointers as if they were booleans.
2003-01-22 17:54:49 +00:00
des
ae10e138a9
Experimental support for .netrc.
2003-01-22 17:53:58 +00:00
des
cead81021c
Initialization paranoia.
2003-01-22 17:53:15 +00:00
des
a5ab2dd958
A negative offset means "get it all".
2003-01-22 17:52:27 +00:00
maxim
67e1984f47
Remove EOL whitespaces.
2003-01-20 11:30:08 +00:00
maxim
81c42fccd4
o Fix a typo.
...
o Prepend a function name by .Fn macro.
Reviewed by: archie
2003-01-20 11:28:41 +00:00
jmallett
ade073ea23
Store not only the current cylinder group in the series (i.e. next that needs
...
to be read in) but also the last cylinder group in the series (i.e. what is
stored in the structure).
2003-01-19 05:46:23 +00:00
ache
c60183cc58
Add (unsigned char) cast to ctype macros
...
Handle NULL return from malloc and strdup
2003-01-19 03:05:01 +00:00
jmallett
70c14dc49d
Don't crash when utilities are dumb and try to read less than the disk block
...
size (dumpfs may try to read the cylinder size (or is is sector size?) by way
of bread). Prevents a bounds error.
2003-01-19 01:39:53 +00:00
jmallett
445adec218
Add facility to read one, or a string of, cylinger groups.
2003-01-19 01:31:26 +00:00
obrien
8af24a10fd
Sync with NetBSD -- sl_add() now returns an int.
2003-01-19 01:16:01 +00:00
jmallett
0a0a65bb42
Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.
...
Concept reviewed by: phk
2003-01-19 00:43:17 +00:00
obrien
6f344674a0
Use __FBSDID.
2003-01-19 00:17:03 +00:00
obrien
a390eae40f
We don't need our own personal definition of __CONCAT.
2003-01-18 23:26:04 +00:00
jmallett
291746d562
Fix typo.
2003-01-18 05:06:07 +00:00
jmallett
7284e7e47f
Nuke dumb error reporting code, people can just use disk::d_error. Unify the
...
DEBUG and d_error initialisation into an ERROR macro, which can both trace and
set the d_error field. Much a more meaningful thing, I should say.
2003-01-18 04:22:14 +00:00
tmm
0e609c0eb3
Document that listen() can return EINVAL now.
2003-01-17 19:25:27 +00:00
tjr
7516bf2b45
Do a better job of documenting mincore(2), esp. the MINCORE_* flags.
2003-01-17 04:06:57 +00:00
mbr
3262ba2f01
Fix memleak.
...
Reviewed by: rwatson
MFC after: 2 weeks
2003-01-16 16:43:58 +00:00
mbr
f209ccb0fd
Implement non-blocking tcp-connections.
...
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
2003-01-16 07:13:51 +00:00
johan
989f4676c5
realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.
...
This also reverts the PATH_MAX -> MAXPATHLEN part of
rev 1.3 of src/bin/realpath/realpath.c
Requested by: imp
Reviewed by: imp, bde
2003-01-15 21:22:55 +00:00
tjr
2ddffe4aa0
Add a missing word.
2003-01-15 09:48:15 +00:00