| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc.
Notes:
svn path=/head/; revision=16338
|
| |
|
|
|
|
|
|
|
|
| |
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!
Notes:
svn path=/head/; revision=16337
|
| |
|
|
|
|
|
|
|
| |
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".
Notes:
svn path=/head/; revision=16336
|
| |
|
|
|
|
|
|
| |
The usual stuff, adding missing function prototypes, argument types,
return values, etc.
Notes:
svn path=/head/; revision=16335
|
| |
|
|
|
|
|
|
|
|
|
| |
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...)
Notes:
svn path=/head/; revision=16302
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=16283
|
| |
|
|
|
|
|
| |
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
Notes:
svn path=/head/; revision=16279
|
| |
|
|
|
|
|
|
|
| |
module compiles now.
Reported by: Stephen Hocking
Notes:
svn path=/head/; revision=16275
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=16270
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16265
|
| |
|
|
|
|
|
| |
Fix bug: strxfrm+strcmp != strcoll, if collate info not available
Notes:
svn path=/head/; revision=16255
|
| |
|
|
|
|
|
| |
(it was NOT localized initially, it does some trick instead!)
Notes:
svn path=/head/; revision=16250
|
| |
|
|
|
|
|
| |
Closes PR # 1303.-
Notes:
svn path=/head/; revision=16241
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=16236
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16229
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16228
|
| |
|
|
|
|
|
| |
but doing so is not truly portable.
Notes:
svn path=/head/; revision=16165
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16158
|
| |
|
|
|
|
|
| |
into librpcsvc.
Notes:
svn path=/head/; revision=16124
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=16117
|
| |
|
|
|
|
|
| |
Changed type of pid from int to pid_t. (Missed one!)
Notes:
svn path=/head/; revision=16106
|
| |
|
|
|
|
|
| |
Changed type of pid from int to pid_t.
Notes:
svn path=/head/; revision=16096
|
| |
|
|
|
|
|
| |
Added missing headers for system functions.
Notes:
svn path=/head/; revision=16095
|
| |
|
|
|
|
|
|
|
| |
(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.
Notes:
svn path=/head/; revision=16091
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16072
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16071
|
| |
|
|
|
|
|
|
| |
register on its first call. Subsequent calls reused the register so
the leak didn't accumulate. Fixes PR 1275.
Notes:
svn path=/head/; revision=16054
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=16051
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functions are implimented as wrappers around getservent(), which means it's
up to getservent() to do all the work. The NIS support in getservent()
only allows it to scan through the services.byname map one entry at a
time until it finds the requested service name/port. This can be painfully
slow due to the overhead involved (lots and lots of successive RPCs).
To fix this, we allow getservbyname() and getservbyport() to signal
getservent() that if NIS is turned on (there's a '+' in /etc/services),
the usual yp_first()/yp_next() linear search should be abandoned and
yp_match() used instead. This causes getservent() to immediately
locate the requested entry instead of wasting time groping through the
whole map.
The downside is that this trick is accomplished by exporting a couple of
pointers from getservent.c which getservbyname.c and getservbyport.c can
preset in order to tell getservent() what to do. If all three functions
were in the same source module, then the extra cruft could be delcared
static to avoid poluting the global symbol space. Maybe they should be
combined anyway. For now I've settled on prepending lots of underscores.
Notes:
svn path=/head/; revision=16050
|
| |
|
|
|
|
|
|
|
|
|
|
| |
privileged port within a single bind(), rather than looping through
attempts to bind over and over again over progressively lower ports.
This should speed up rlogin/rsh etc, and will probably cure some of the
strange rlogin hangs that have been reported in the past where rresvport()
managed to bind() to a port address that it shouldn't have.
Notes:
svn path=/head/; revision=16034
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16019
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16018
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15976
|
| |
|
|
|
|
|
|
| |
asprintf.3 -> printf.3
vasprintf -> printf.3
Notes:
svn path=/head/; revision=15970
|
| |
|
|
|
|
|
|
|
|
|
| |
des_setkey.3 -> crypt.3
des_cipher.3 -> crypt.3
err_set_exit.3 -> err.3
err_set_file.3 -> err.3
strunvis.3 -> unvis.3
Notes:
svn path=/head/; revision=15968
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15963
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15960
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15947
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15946
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
not based on gpl'ed code, just prototype and usage. I'm not 100% certain
they behave the same while the system is in trouble (eg: malloc() failing)
but in those circumstances all bets would be off anyway.
These routines work like sprintf() and vsprintf(), except that instead of
using a fixed buffer, they allocate memory and return it to the user
and it's the user's responsibility to free() it. They have allocate as
much memory as they need (and can get), so the size of strings it can deal
with is limited only by the amount of memory it can malloc() on your
behalf.
There are a few gpl'ed programs starting to use this interface, and it's
becoming more common with the scares about security risks with sprintf().
I dont like the look of the code that the various programs (including
cvs, gdb, libg++, etc) provide if configure can't find it on the system.
It should be possible to modify the stdio core code to provide this
interface more efficiently, I was more worried about having something
that worked and was secure. :-) (I noticed that there was once intended
to be a smprintf() routine when our stdio was written for 4.4BSD, but it
looks pretty stillborn, and it's intended interface is not clear). Since
Linux and gnu libc have this interface, it seemed silly to bring yet
another one onto the scene.
Notes:
svn path=/head/; revision=15931
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15927
|
| |
|
|
|
|
|
| |
Closes PR#doc/536
Notes:
svn path=/head/; revision=15923
|
| |
|
|
|
|
|
| |
directories, and mention that it was historical practice.
Notes:
svn path=/head/; revision=15898
|
| |
|
|
|
|
|
|
| |
wrong function type declarations, and wrong argument type
declarations.
Notes:
svn path=/head/; revision=15874
|
| |
|
|
|
|
|
|
|
|
| |
Fix submitted by: Alan Cox <alc@cs.rice.edu>
- Nuke yet another free(result) that isn't needed. (This one I found
without phkmalloc's help. :)
Notes:
svn path=/head/; revision=15839
|
| |
|
|
|
|
|
|
|
| |
- Don't allow non-root users to specify LKMDIR.
- Don't allow any users to specify TMPDIR.
- Call /sbin/modload using execl() rather than execlp().
Notes:
svn path=/head/; revision=15804
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
to call clnt_destroy() on a potentially NULL RPC handle. Somebody should
bang on this a bit to make sure the problem is really gone; I seem to
have difficulty reproducing it. Patch provided by Peter Wemm and
slightly tweaked by me.
- Don't call _yp_unbind() in individual ypclnt functions unless we encounter
an RPC error while making a clnt_call().
Notes:
svn path=/head/; revision=15793
|
| |
|
|
|
|
|
|
| |
use of the same label in a recently-introduced PIC_PROLOGUE. This
should solve the recent core dumps from pdksh.
Notes:
svn path=/head/; revision=15731
|
| |
|
|
|
|
|
|
|
| |
a PIC_EPILOGUE (leaving an extra long on the stack).
Submitted by: John Polstra <jdp@polstra.com>
Notes:
svn path=/head/; revision=15719
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15706
|