summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use new-style function declations.imp2002-02-131-6/+2
|
* I THINK this fixes 'make world'julian2002-02-131-1/+4
| | | | | | I'll know as soon as I re-import it and compile it.. :-) There is no longer a 'pri' strict in the proc struct. the fields are scattered between the ksegrp and thread in question.
* Don't make it seem like vm.max_proc_mmap only affects MAP_FIXED.dd2002-02-101-4/+4
| | | | | | PR: 34005 Submitted by: Steven Grady <grady@digitaldeck..com>, Hiten Pandya <hitmaster2k@yahoo.com>
* Part III: Update extended attribute system call interface documentation.rwatson2002-02-101-18/+39
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* This has been sitting in my local tree long enough. Remove the usedeischen2002-02-0915-804/+501
| | | | | | | | | | | | | | of an alternate signal stack for handling signals. Let the kernel send signals on the stack of the current thread and teach the threads signal handler how to deliver signals to the current thread if it needs to. Also, always store a threads context as a jmp_buf. Eventually this will change to be a ucontext_t or mcontext_t. Other small nits. Use struct pthread * instead of pthread_t in internal library routines. The threads code wants struct pthread *, and pthread_t doesn't necessarily have to be the same. Reviewed by: jasone
* Silence a warning by initializing the return value. This wasn'tdeischen2002-02-091-2/+3
| | | | | set in the case of a short write, and I think returning 0 for this is what was intended.
* This file needs <syslog.h>.des2002-02-091-0/+1
| | | | Sponsored by: DARPA, NAI Labs
* Now that cross-tools ld(1) has been fixed to look for dynamicru2002-02-081-2/+2
| | | | | | | | | | dependencies in the correct place, record the fact that -lssh depends on -lcrypto and -lz. Removed false dependencies on -lz (except ssh(1) and sshd(8)). Removed false dependencies on -lcrypto and -lutil for scp(1). Reviewed by: markm
* FreeBSD 4.1 bootstrapping aid (__FBSDID is not there).ru2002-02-082-0/+4
|
* pre-emptively fix a KSE/M3 problem.julian2002-02-071-7/+14
| | | | | | | Make a slight change so that libkvm reaches the main thread via the linked list, rather than assuming it is in the proc structure. Both conditions are true in -current but only the first will be true in the KSE M3 world.
* Move the AF_LOCAL check to the AF_INET check since portmap protocolalfred2002-02-061-5/+1
| | | | | | v. 2 only needs this. That also makes it shorter and simpler. Submitted by: mbr
* Remove NO_WERROR, now that WARNS=n is gone.markm2002-02-065-5/+0
|
* Comment out the WARNS= so as to not trample all over the GCC3 work.markm2002-02-061-1/+1
|
* remove -M from RPCCOM, it slipped in with the tirpc upgrade.alfred2002-02-061-1/+1
| | | | Submitted by: mbr
* ANSIfy and remove some dead code.des2002-02-064-92/+39
| | | | Sponsored by: DARPA, NAI Labs
* Apply the following mechanical transformations in preparation fordes2002-02-063-135/+135
| | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
* balance parens.alfred2002-02-051-1/+1
| | | | Submitted by: mbr
* For RPC v2 we need to fill in ret->xp_raddr too. INET_6alfred2002-02-051-1/+1
| | | | | | is not supported in portmap, so we don't have to care about it. Submitted by: mbr
* Fix cc -Wall, fix rcsid warnings, add missing prototypes,alfred2002-02-0519-22/+37
| | | | | | | | | change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros. Submitted by: mbr Requested by: bde
* Do not call addrinfo on local transport adresses, if returning aalfred2002-02-051-5/+25
| | | | | | | | | server handle (for reuse or whatever). We just return now a handle connected to the local rpcbind. Do not try to call checkcache, if host = NULL; Submitted by: mbr
* Switch to a self-starting allocation scheme.des2002-02-051-10/+3
|
* Reindent, and add parentheses to return statements. Some functions indes2002-02-058-1989/+1997
| | | | | ftp.c and http.c now have exceedingly long lines due to deep nesting; this will be corrected by reorganizing the code in a later revision.
* Eliminate a redundant loop.des2002-02-051-2/+1
|
* style: return(x) -> return (x)alfred2002-02-051-2/+2
| | | | Submitted by: mbr
* Fix the credential handling code.alfred2002-02-051-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In NetBSD, Solaris, xprt->xp_p2 pointed directly to the credentials, in FreeBSD xprt->xp_verf.oa_base was a pointer to a struct cmessage, which is defined as follow: struct cmessage { struct cmsghdr cmsg; struct cmsgcred cmcred; }; The credentials were submitted the right way and xprt->xp_p2 pointed to them. But cb_verf.oa_flavor was still empty. There was an assignment missing in svc_recv() in svc_vc.c: msg->rm_call.cb_verf.oa_flavor = AUTH_UNIX; Also + if (addr.ss_family == AF_LOCAL) { + xprt->xp_raddr = *(struct sockaddr_in *)xprt->xp_rtaddr.buf; + xprt->xp_addrlen = sizeof (struct sockaddr_in); + } was missing. But the first seems not to be needed: I guess in rpc.yppasswdd there was a typo: - transp>xp_verf.oa_flavor != AUTH_UNIX) { + rqstp->rq_cred.oa_flavor != AUTH_UNIX) { This little fix does fix the breakage in rpc.yppasswdd :-) + if (msg.msg_controllen == 0 || + (msg.msg_flags & MSG_CTRUNC) != 0) + return (-1); We cannot set the cb_verf.oa_length in svc_recv() of svc_vc.c, the credentials get overwritten then, and that's bad. Submitted by: mbr
* The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacksalfred2002-02-051-6/+17
| | | | | | | | | | | | | were removed and replaced them with clnt_tp_create, now the af_local support is fixed. I also removed the hack how rpcinfo contacted rpcbind, now we can relay on clnt_tp_create create the client-handle for us. Only rpcbind itself needs a hardcoded socket-path. Submitted by: mbr Also add $FreeBSD
* Three times lucky: <stddef.h>, not <sys/param.h>des2002-02-052-2/+2
|
* Oops, the correct header to include for NULL is <sys/param.h>.des2002-02-052-2/+2
|
* ANSIfy and constify.des2002-02-051-17/+15
| | | | Sponsored by: DARPA, NAI Labs
* #include <sys/types.h> for NULL (hidden by Linux-PAM header pollution)des2002-02-052-0/+4
| | | | Sponsored by: DARPA, NAI Labs
* #include cleanup.des2002-02-0518-24/+35
| | | | Sponsored by: DARPA, NAI Labs
* hex.c is new in libisc with 8.3.1-REL.nectar2002-02-041-1/+1
|
* Explicitly declare (gcc internal) functions.markm2002-02-041-0/+1
| | | | Submitted by: ru
* ssh_get_authentication_connection() gets its parameters from environmentdes2002-02-041-2/+24
| | | | | | variables, so temporarily switch to the PAM environment before calling it. Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>
* Protect "make buildworld" against -Werror, as this module does notmarkm2002-02-041-0/+1
| | | | build cleanly.
* Allow ldd(1) be used on shared libraries in addition to executables.sobomax2002-02-041-0/+7
|
* Add the other half of the salt-generating code. No functionalmarkm2002-02-041-8/+7
| | | | | difference except that the salt is slightly harder to build dictionaries against, and the code does not use srandom[dev]().
* Turn on fascist warning mode.markm2002-02-031-0/+2
|
* WARNS=n fixes (and some stylistic issues).markm2002-02-036-55/+91
|
* Remove an unnecessary #include that trips up OpenPAM. The header in questiondes2002-02-021-2/+0
| | | | | | | | is an internal Linux-PAM header which shouldn't be used outside Linux-PAM itself, and has absolutely zero effect on pam_ftp. Sponsored by: DARPA, NAI Labs MFC after: 1 week
* Fixed world breakage in previous commit. The generated headers are inbde2002-02-021-1/+1
| | | | the current directory which is rarely ${.CURDIR}.
* Fixed tab lossage in vendor id and nearby style bugs in previous commit.bde2002-02-011-1/+4
|
* Fixed syntax error in previous commit. It was non-fatal because it wasbde2002-02-011-3/+5
| | | | | | | in conditional code that happens not to be compiled, and because gcc doesn't complain garbage after #endif by default. Fixed some style bugs in previous commit, 1.8 and 1.1.
* Post-repocopy cleanup.des2002-02-012-7/+1
| | | | Sponsored by: DARPA, NAI Labs
* Complete bzip2-1.0.2 import.sobomax2002-02-015-15/+58
| | | | MFC in: 14 days
* Connect the pam_lastlog(8) and pam_login_access(8) modules to the build.des2002-02-012-0/+4
| | | | Sponsored by: DARPA, NAI Labs
* Return ENONAME if getaddrinfo() is called with AI_NUMERICHOSTroam2002-02-011-1/+1
| | | | | | | | | and the hostname given is not numeric. PR: 34390 Submitted by: Serge van den Boom <svdb@stack.nl> Approved by: silence from -net MFC after: 1 month
* Fixed slipage in editor.obrien2002-02-011-0/+1
|
* Cut-n-paste in `list' mode considered harmful.obrien2002-02-012-5/+5
|
* * Remove __P and convert to ANSI prototypes.obrien2002-02-012-19/+17
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
OpenPOWER on IntegriCloud