| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
`NULL' (which should only be used in reference to null pointers). Also
fix a cross-reference.
|
|
|
|
| |
Suggested by: Keith Bostic
|
|
|
|
|
| |
being sent back to Bostic by the NetBSD crew.
Obtained from: NetBSD-current
|
| |
|
|
|
|
|
|
|
|
| |
was still somewhat confusing and poorly worded. So I took
the alarm.3 man page from NetBSD, which looked much
better all around.
Obtained from: NetBSD
|
| |
|
| |
|
|
|
|
|
|
| |
part that does zic(8)/zdump(8) is still yet to be imported (but the old
zic and zdump will work just fine with these header files and the
data format has not changed).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
directly in order to obtain binding information, check that the local
ypbind is using a reserved port and return YPERR_YPBIND if it isn't.
We should not trust any ypbind running on a port >= IPPORT_RESERVED;
it may have been started by a malicious user hoping to trick us into
talking to a bogus ypserv.
Note that we do not check the ypserv port returned to us from ypbind.
It is assumed that ypbind has already done a reserved port test (or not,
depending on whether or not it was started with -s); if we trust the
authenticity of the local ypbind, we should also trust its judgement.
Obtained from: OpenBSD
|
|
|
|
|
|
|
| |
with the correct return type. This does not include the renaming
of KERN_DOMAINNAME to KERN_NISDOMAINNAME.
Pointed-out-by: Keith Bostic
|
|
|
|
| |
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
| |
|
| |
|
|
|
|
|
|
|
| |
so that it is less likely someone will confuse it with a
"FILE *" type pointer.
Submitted by: Based on James Raynard's patch
|
|
|
|
| |
Submitted by: James Raynard
|
|
|
|
|
|
|
|
|
|
| |
aren't silently converted to minbrk. This stops malloc(INT_MAX) from
dumping core. Small values are still silently converted. They should
be an error. sbrk() doesn't do any range checking or conversions or
overflow checking.
Moved PIC_EPILOGUE invocation to a more natural place where it
obviously doesn't interfere with the comparison.
|
|
|
|
|
| |
phrasing in the ERRORS section a bit, as well as now specifying
the return status.
|
|
|
|
|
|
|
|
|
| |
Document the fact that the tracefile argument must lead to a regular file.
Also took the opportunity to remove the spurious "Errors" entry
relating to filenames with the high-order bit set and add $Id$.
(More of the same to follow if there are no objections).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added $Id$'s to files that were lacking them (gpalmer), made some
cosmetic changes to conform to style guidelines (bde) and checked
against NetBSD and Lite2 to remove unnecessary divergences (hsu, bde)
One last code cleanup:-
Removed spurious casts in fseek.c and stdio.c.
Added missing function argument in fwalk.c.
Added missing header include in flags.c and rget.c.
Put in casts where int's were being passed as size_t's.
Put in missing prototypes for static functions.
Changed second args of __sflags() inflags.c and writehook() in vasprintf.c
from char * to const char * to conform to prototypes.
This directory now compiles with no warnings with -Wall under
gcc-2.6.3 and with considerably less warnings than before with the
ultra-pedantic script I used for testing. (Most of the remaining ones
are due to const poisoning).
|
|
|
|
|
| |
This program should COMPLAIN about uids > 65K but not abort.. they are after
all legal, and some of us NEED them!
|
|
|
|
|
|
|
| |
but falls a little short. I added a comment on the null
termination of struct group's gr_mem field.
Reviewed by: jkh
|
| |
|
| |
|
| |
|
|
|
|
| |
functions are preferred but are not widely available as yet.
|
| |
|
|
|
|
| |
following the API of the INRIA IPv6 implementation.
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc.
|
|
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc.
This directory now compiles with no warnings with -Wall on gcc2.6.3!
|
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc. In mktemp.c, convert pid from u_int to pid_t, and
get rid of "extern int errno".
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc.
|
|
|
|
|
|
|
|
| |
Fixed a couple of nitpick warnings, plus one that slipped through the
net earlier.
This directory now compiles without any warnings with -Wall! (Until
the next gcc upgrade...)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Added missing function prototypes.
2. Added missing function return types.
3. Added missing function argument types.
4. Added missing headers for system function prototypes.
5. Corrected format specifier in printf().
6. Added extra parentheses around assignment used as truth value.
7. Added missing "default" cases in switch statements.
8. Added casts for function pointers.
9. Did *not* change int declarations of uid and gid to uid_t/gid_t
because I don't know if that would affect the protocol. Put in
explicit casts to int instead, to make things more obvious.
10. Moved declarations of variables that are only used if YP is
defined inside the '#ifdef YP' conditionals.
|
|
|
|
| |
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
|
|
|
|
|
|
| |
module compiles now.
Reported by: Stephen Hocking
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Added missing function prototypes.
2. Added missing function return types.
3. Added missing function argument types.
4. Added missing headers for system function prototypes.
5. Corrected casts in select() args.
6. Got rid of more "extern int errno" rubbish.
7. Added extra parentheses around assignment used as truth value.
8. Fixed bug in clnt_{tcp, udp}create() where pointers could be free'd
even if they hadn't been successfully malloc()'d.
|
| |
|
|
|
|
| |
Fix bug: strxfrm+strcmp != strcoll, if collate info not available
|
|
|
|
| |
(it was NOT localized initially, it does some trick instead!)
|
|
|
|
| |
Closes PR # 1303.-
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Added missing function prototypes.
2. Added missing function return types.
3. Added missing function argument types.
4. Added missing headers for system function prototypes.
5. Got rid of "extern int errno" rubbish.
|
| |
|
| |
|
|
|
|
| |
but doing so is not truly portable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by W.Richard Ste vens. EINTR handling suggested by bde@freebsd.org).
Code cleanup:
1. Add missing return type.
2. Replace 'union wait' by int.
3. Use Posix-style signal handling instead of signal().
4. Use fork() instead of deprecated vfork().
5. Block signals before fork()'ing, instead of after.
6. Return -1 if fork() fails, instead of 0.
7. Add EINTR handling for waitpid() call.
Also add claim of Posix conformance to man page.
|
|
|
|
| |
Changed type of pid from int to pid_t. (Missed one!)
|
|
|
|
| |
Changed type of pid from int to pid_t.
|
|
|
|
| |
Added missing headers for system functions.
|
|
|
|
|
|
| |
(though only char will be used), and our implementation is not really
worse than the SysV one, so there's no need to claim so in the BUGS
section.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that we preserve RPC handles instead of rebuilding them each time
a ypcln function is called, we have to be careful about keeping our sockets
in a sane state. It's possible that the caller may call a ypclnt
function, and then decide to close all its file descriptors. This would
also close the socket descriptor held by the yplib code. Worse, it
could re-open the same descriptor number for its own use. If it then calls
another ypclnt function, the subsequent RPC will fail because the socket
will either be gone or replaced with Something Completely Different. The
yplib code will recover by rebinding, but it doing so it may wreck the
descriptor which now belongs to the caller.
To fix this, _yp_dobind() needs to label the descriptor somehow so
that it can test it later to make sure it hasn't been altered between
ypclnt calls. It does this by binding the socket, thus associating a port
number with it. It then saves this port number in the dom_local_port member
of the dom_binding structure for the given domain. When _yp_dobind() is
called again (which it is at the start of each ypclnt function), it checks
to see if the domain is already bound, and if it is, it does a getsockname()
on the socket and compares the port number to the one it saved. If the
getsockname() fails, or the port number doesn't match, it abandons the
socket and sets up a new client handle.
This still incurs some syscall overhead, which is what I was trying to
avoid, but it's still not as bad as before.
|