summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove libforms, it was never used.jkh1996-06-1913-2903/+0
|
* Remove libforms - it's unused.jkh1996-06-191-1/+1
|
* Add tcl.phk1996-06-181-1/+1
|
* Manage control connections a little better for the URL routines.jkh1996-06-171-5/+13
| | | | | | This will do as a stop-gap until I figure out a more fault-tolerant way of having deferred closes against the control connection work without blocking.
* Make binary mode the default.jkh1996-06-171-1/+2
|
* Stamp out a potential memory leak.jkh1996-06-172-10/+17
| | | | Make ftpChdir return the server status again - it was more convenient.
* Bring in libftpio.jkh1996-06-171-1/+1
|
* Add RCS Id and fix date.wollman1996-06-171-2/+3
|
* Cross-reference addr2ascii(3).wollman1996-06-171-3/+10
|
* Correct date and add $Id$ to reflect previous modification.wollman1996-06-171-2/+3
|
* Cross-reference addr2ascii(3) and inlcude a note about how thosewollman1996-06-171-2/+16
| | | | functions are preferred but are not widely available as yet.
* Rethink and reimpliment the way RESTARTS are handled. The method I inheiritedjkh1996-06-173-53/+33
| | | | | | from jmz was a hopeless kludge (sorry Jean-Marc :) and handled the problem in the wrong way. ftpRestart() has now gone away and ftpGet() has grown a new parameter.
* If hostname > UT_HOSTSIZE, use its numeric address instead to keepache1996-06-171-4/+18
| | | | valid entries into utmp and wtmp
* Add a feature: If the environment variable FTP_PASSIVE_MODE is definedjkh1996-06-171-1/+3
| | | | | (the convention as established by pkg_install(1)), select passive mode FTP automatically.
* Whoops, give the authors all proper credit.jkh1996-06-171-0/+2
|
* This commit was generated by cvs2svn to compensate for changes in r16420,jkh1996-06-176-0/+1226
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Bring in a new library `libftpio', so named to avoid clashes with olderjkh1996-06-176-0/+1226
| | | | | packages and also sort of give the (correct) impression that this basically sits on top of stdio and deals with stream pointers (FILE*).
* It would help if I actually added the source code for these routines.wollman1996-06-133-0/+377
|
* Add an independent implementation of addr2ascii(3) and ascii2addr(3)wollman1996-06-131-2/+5
| | | | following the API of the INRIA IPv6 implementation.
* Code cleanup:-jraynard1996-06-122-2/+3
| | | | | The usual stuff, adding missing function prototypes, argument types, return values, etc.
* Code cleanup:-jraynard1996-06-126-13/+13
| | | | | | | 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!
* Code cleanup:-jraynard1996-06-127-12/+11
| | | | | | 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".
* Code cleanup:-jraynard1996-06-125-5/+5
| | | | | The usual stuff, adding missing function prototypes, argument types, return values, etc.
* Code cleanup:jraynard1996-06-113-9/+9
| | | | | | | | 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...)
* Code cleanup:jraynard1996-06-109-21/+37
| | | | | | | | | | | | | | | | 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.
* Update man to tell that <sys/types.h> is needed.phk1996-06-101-0/+1
| | | | Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
* Remove extraneous '+' that looks like it was left in by mistake. Thiswpaul1996-06-101-2/+2
| | | | | | module compiles now. Reported by: Stephen Hocking
* Code cleanup (part two):jraynard1996-06-107-22/+30
| | | | | | | | | | | | 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.
* update sticky bit documentationwosch1996-06-091-8/+3
|
* Use better approximation if collate info not available.ache1996-06-093-16/+41
| | | | Fix bug: strxfrm+strcmp != strcoll, if collate info not available
* Localize it.ache1996-06-091-46/+7
| | | | (it was NOT localized initially, it does some trick instead!)
* Reword the sentence about the required space for the result string.joerg1996-06-091-1/+1
| | | | Closes PR # 1303.-
* Code cleanup (part one):jraynard1996-06-088-14/+28
| | | | | | | | | | | | 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.
* Rephrase some things as suggested by Bruce.alex1996-06-081-2/+3
|
* Oops, replace a rather important line that was lost in transit 8-(jraynard1996-06-081-1/+2
|
* Document that truncate can also be used to extend the size of a file,alex1996-06-071-2/+8
| | | | but doing so is not truly portable.
* Pass correct length OID to kernel for KERN_PROC_ALL.phk1996-06-061-2/+2
|
* Add ypxfrd.x so that the XDR routines for this protocol will be builtwpaul1996-06-051-2/+2
| | | | into librpcsvc.
* Submitted by: (based on code in "Advanced Programming in the Unix Environment"jraynard1996-06-052-18/+36
| | | | | | | | | | | | | | | | 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.
* Code clean up:jraynard1996-06-041-2/+3
| | | | Changed type of pid from int to pid_t. (Missed one!)
* Code clean up:jraynard1996-06-031-2/+2
| | | | Changed type of pid from int to pid_t.
* Code clean up:jraynard1996-06-031-1/+3
| | | | Added missing headers for system functions.
* Minor corrections. The second parameter is actually of type intjoerg1996-06-032-18/+12
| | | | | | (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.
* backout yacc changesphk1996-06-021-2/+2
|
* backup yacc changesphk1996-06-022-2/+2
|
* Clean up the FP stack before returning. The i387 exp() leaked an FPbde1996-06-011-1/+2
| | | | | register on its first call. Subsequent calls reused the register so the leak didn't accumulate. Fixes PR 1275.
* Make _yp_dobind() a litle smarter:wpaul1996-06-011-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Improve NIS performace of getservbyname() and getservbyport(). Both thesewpaul1996-06-013-7/+123
| | | | | | | | | | | | | | | | | | | | | | 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.
* Use the setsockopt for IP_PORTRANGE to cause rresvport() to allocate apeter1996-05-311-12/+24
| | | | | | | | | 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.
* yacc rule change.phk1996-05-301-3/+3
|
OpenPOWER on IntegriCloud