Commit Graph

10128 Commits

Author SHA1 Message Date
thorpej 610505c88f Fix a markup bug and a minor wording consistency nit. 2005-02-26 15:08:54 +00:00
thorpej 5a2161b24e Minor wording consistency nit. 2005-02-26 15:05:25 +00:00
thorpej 9503750ce5 Oops, one more nit. 2005-02-26 15:04:52 +00:00
thorpej 5f604055a2 Minor wording consistency nit. 2005-02-26 15:04:09 +00:00
thorpej aa2b566306 Wording consistency nits. 2005-02-26 15:02:15 +00:00
thorpej d7bb9fc4f2 Minor wording consistency nit. 2005-02-26 14:54:25 +00:00
thorpej 0a40f744b4 Make sure to set yppwd.oldpass. 2005-02-26 02:57:32 +00:00
matt ab963ad04b Alphabetize main list of sources. 2005-02-25 21:51:10 +00:00
christos 4274cae273 Don't try to build PIC stuff if we cannot do PIC. 2005-02-25 18:26:00 +00:00
manu 34ec7ca0bb update ipsec-tools version 2005-02-24 20:56:19 +00:00
manu be15b99c92 Define SADB_X_EALG_AESCBC=SADB_X_EALG_AES, as we define SADB_X_EALG_AES
in <net/pfkeyv2.h> while ipsec-tools uses SADB_X_EALG_AESCBC in the code.
2005-02-24 13:45:08 +00:00
manu da4d1abb40 bump ipsec-tools package version 2005-02-23 15:27:09 +00:00
he 738be40c8f Make conversions from unsigned long to int explicit via casts,
rather than imiplicit, which causes lint heart burn ("conversion
from 'unsigned long' to 'int' may lose accuracy).
2005-02-20 23:59:31 +00:00
wiz 9086769d81 Fix Xref. 2005-02-20 19:39:09 +00:00
wiz 1d07a19af1 <> -> \*[Lt]\*[Gt]. 2005-02-20 19:38:01 +00:00
wiz b57f6d2615 Sort SEE ALSO. 2005-02-20 19:37:30 +00:00
christos 03b16f4fe5 Put back exit on warning for lint. 2005-02-20 17:06:33 +00:00
christos 595789382e Fix lint on 64 bit machines. 2005-02-20 17:06:16 +00:00
martin bf9e950197 This needs work to pass lint - whic I'm not going to invest.
Make lint not treat warnings as errors.
2005-02-20 16:20:36 +00:00
wiz fb1b5900a0 Remove duplicate .Pp. XXX: References non-existing rad_config(3). 2005-02-20 01:02:07 +00:00
manu 00b13c7897 Build libradius, imported from FreeBSD 2005-02-20 00:52:02 +00:00
christos 6683368b82 Add pam_radius. 2005-02-20 00:37:49 +00:00
christos ccb28c34b3 Get rid of liblibradius; hi manu. 2005-02-20 00:36:47 +00:00
christos 23d6637ce7 Oops, include dir. 2005-02-20 00:32:18 +00:00
christos 28074938ee Add include files. 2005-02-20 00:31:01 +00:00
christos 476ca6e1f0 Pass lint and WARNS=3 2005-02-20 00:28:20 +00:00
manu 8809553739 Import FreeBSD's libradius as of 2005/02/20, plus minor tweaks to build
o nNetBSD and a Makefile for NetBSD.
2005-02-19 23:56:30 +00:00
christos a6d2304b90 constify, whitespace. 2005-02-19 22:55:35 +00:00
christos 9485d63b3e Fix whitespace. 2005-02-19 22:47:51 +00:00
christos c8127943d0 Fix pk to use BN_ instead of libmp. 2005-02-19 22:47:10 +00:00
thorpej 05597c360c Enable building the lint library. 2005-02-19 22:03:49 +00:00
christos 185393efaa PAM support from FreeBSD. 2005-02-19 21:55:52 +00:00
thorpej 01db58f7e8 Bump shlib version to 2.1 as was intended with ipsec-tools integration. 2005-02-19 21:44:35 +00:00
tsutsui 1b4b48e1ea Add (missed) fabs.c to SRCS. 2005-02-19 18:18:53 +00:00
thorpej c5aea678b7 Additional cleanup pass. 2005-02-19 16:58:26 +00:00
thorpej 354f2a1004 Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
2005-02-19 16:55:02 +00:00
dsl 67b39d4957 Change first arg of __hash_more to const void * to remove need for double casts 2005-02-18 22:16:27 +00:00
christos 1a940a96f9 remove extraneous `*' that caused a core-dump. 2005-02-17 21:22:25 +00:00
christos 3f899b0a98 do some manual CSE. 2005-02-17 19:58:21 +00:00
tron f82977b51c Fix lint warning caused by last change. 2005-02-17 19:15:38 +00:00
enami aa6d8c7778 Jump to just before the copy instead of after it. Saves 8 byte on i386. 2005-02-17 04:30:23 +00:00
enami d02f179fc6 Simplify, KNF and plug leaks. Compile test only. 2005-02-17 04:16:09 +00:00
briggs a6246199bb Supply _kvm_kvatop() and _kvm_pa2off() for OEA-type CPUs. This does
not yet support other PPC CPU types.
Contributed by Wasabi Systems Inc.
2005-02-17 02:31:27 +00:00
christos 81a2ba5600 Simplify and KNF. Instead of keeping track if the pointer was allocated,
keep a copy of the pointer itself and only re-use it if the current
environment is equal to the saved pointer. Idea from OpenBSD. Avoids
problem of re-allocing a non-allocated pointer if a program resets the
environment after it has been grown.
2005-02-17 02:17:43 +00:00
christos 4a16e53162 Remove HAVE_LOGIN_CAP it is not used.
Remove radix.c and kerberos glue; we'll put it in the programs themselves.
from Love.
2005-02-13 22:42:24 +00:00
christos 9233e29e04 Update for OpenSSH-3.9; bump major. 2005-02-13 06:06:48 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
christos b35aef8d4b Default back pthread__concurrency to 1 until we fix the regression test
related to pthread_kill().
2005-02-10 23:42:37 +00:00
tnozaki 7aab8c378d considering huge character set(ucs, gb18030),
use not linear but binary search.
this change derrived from recent FreeBSD's rune.
2005-02-10 19:19:57 +00:00
tnozaki 476f0d92a1 fix typo in _DIAGASSERT 2005-02-10 19:03:51 +00:00
christos 3a610280bb If $PTHREAD_CONCURRENCY is not set, set it to ncpu 2005-02-10 02:20:49 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
kleink 23cad56e0c Use strtoimax(), incidentally removing the only libc-internal use of
strtoq().
2005-02-09 19:32:36 +00:00
christos e816a03a29 Bring back the head versions. Apparently the problem is a pkgsrc issue
unrelated to strings.
2005-02-09 18:15:16 +00:00
drochner f2a3f79f1c work around a prototype conflict by including ioctl.h
before we redefile ioctl()
2005-02-09 18:02:53 +00:00
kleink 4d58969864 Declare rs_initialized static. 2005-02-09 12:09:08 +00:00
christos 122f93c73b Revert everything to 2005-02-03 until the code is properly tested. Building
kde3 breaks with the head code.
2005-02-07 05:22:51 +00:00
christos dbbaa0dafa PR/29248: Geoff C. Wing: memchr broken after latest commit.
Apply fix submitted by jtc: The problem was that his regression tests
never checked for characters with the high bit set. Change movl to movzbl
where it was not done yet. In addition strrchr.S missed a jump to Lzero.
2005-02-06 18:36:32 +00:00
agc f255b51ddc Another fall-out from the de-__Ping round. 2005-02-06 18:00:30 +00:00
perry 4fcf86857c de-__P (really de-P) 2005-02-06 05:53:07 +00:00
perry 0f3d05ee54 remove unneeded definition of "P" macro 2005-02-06 05:52:25 +00:00
perry 252786f3ee de-__P (really de-P), and fix the broken prototype for printsub 2005-02-06 05:48:23 +00:00
yamt 97bb1b498d revert zlib.h rev.1.15 (gzopenfull and gzdopenfull)
as gzio.c counterpart has been reverted.
2005-02-05 16:37:03 +00:00
drochner dfc9e068c7 switch to J.T.Conklin's optimized str* functions
(submitted per PR i386/25263)
2005-02-04 18:12:52 +00:00
perry 7bcd7064be de-__P 2005-02-04 16:14:21 +00:00
perry 8e902846e9 remove a spurious space in a function declaration 2005-02-04 16:13:14 +00:00
perry 9f5c37981e de-__P, slightly KNF, and make a bit of the formatting more consistent. 2005-02-04 16:12:13 +00:00
perry e738b65d24 de-__P, ANSIfy function declarations 2005-02-04 15:52:08 +00:00
perry d806a865f6 de-__P 2005-02-04 15:27:44 +00:00
he dcdc758deb Introduce a few more temporary variables, in order to avoid an ugly
double cast in the pam_get_item() invocations.  The double cast
triggered a "discards qualifier" warning/error from gcc 2.95.3, while
trying to fix that by adding "cost" to the "void *" cast produced
a similar warning from gcc 3.3.  This now compiles without warning
with both compilers.

Approved by christos
2005-02-04 15:11:35 +00:00
dsl 3fd6225eec Pull optimised code from memcpy.S
Maybe bcopy can be killed one day...
2005-02-03 22:35:11 +00:00
dsl 2c19ca7c2b Bring code in from obsolesent bcopy.S
Optimise to avoid mis-predicted braches and 'rep movsb' for small %cx.
2005-02-03 22:31:44 +00:00
dsl 781e1351cd A faster implementation.
'rep stos' is slow to setup on modern processors, so don't use it to
align the transfer.
Also not that 8 byte alignment is faster on Intel processors
2005-02-03 22:05:01 +00:00
christos cca9405683 Add charles' mlock fixes, protected with PTHREAD_MLOCK_KLUDGE and enabled
by default, until we come up with a real fix.
2005-02-03 17:30:33 +00:00
wiz 303329913a We have 2005. 2005-02-02 14:34:25 +00:00
wiz 463db6dc4b Sort SEE ALSO, fix an xref, and s/FreeBSD/.Fx/. 2005-02-02 14:33:20 +00:00
christos 691a62246e Avoid passing in the actual pw field in gettime because it might not
be the type that we think it is. Fixes cross builds.
2005-02-01 23:47:38 +00:00
christos 1d6e3b563a Add a new option "authenticate" that requires the user to enter his own
password to login.
2005-02-01 22:55:11 +00:00
christos 44d1e6097a Re-write to use both utmp and utmpx properly. 2005-02-01 17:54:48 +00:00
drochner d6e66e178c fix pasto from sigignore.3 2005-02-01 13:55:19 +00:00
daniel 760b46e0e9 Document PTHREAD_CONCURRENCY, ack by wiz@. 2005-02-01 11:38:27 +00:00
enami 22e3442eb2 - Modify realpath() not to alter process wide state current working
directory.  Strategy from FreeBSD.  Addess PR#28986.
- Make realpath() to return an error when null string is passed or
  the last component is symlink to null string.  The kernel lookup
  routine returns an error if such path are passed.
2005-01-30 22:37:32 +00:00
jwise 1161efa5da Comment back in cross-references to other man pages, was looking at a non-recent
DESTDIR.  Other half of last change was correct.

Pointed out by wizd.
2005-01-30 18:13:04 +00:00
jwise 449bc64125 <sys/types.h> must be included before <sys/uuid.h>.
Also, while here, remove `SEE ALSO' section which referenced only man pages
which we do not have.
2005-01-30 03:20:17 +00:00
wiz 910da6b63e Add "not" to a sentence so that it makes more sense. 2005-01-29 14:19:43 +00:00
wiz b2d185782d Use In instead of Fd; use \*[Am]\*[Lt]\*[Gt] for html output. Uppercase FREENIX. 2005-01-28 11:04:52 +00:00
itojun cc1dea55c3 title was backwards. djm@openbsd 2005-01-28 01:36:17 +00:00
wrstuden e384a44e9d Extend fsync_range(2) to support the FDISKSYNC flag, which requests
that the sync be propogated out through the disk drive caches.
2005-01-25 23:55:20 +00:00
wiz 93f4ac130d Fix a double word, and improve mark up in FILES section. From jmc@openbsd. 2005-01-25 01:39:57 +00:00
manu 08ad2c449b Set correct default for the nologin file: /etc/nologin
Handle the ignorenologin capability
2005-01-23 09:45:02 +00:00
enami b2ed183e5b - Remove macros used only by old getcwd() implementation.
- Fix memory leak on error. (I guess the loop isn't necessary but
  it is different matter).
- Remove knowledge about old malloc implementation.
2005-01-23 01:00:51 +00:00
briggs a665897c6f Bring in sem_open (& sem_close & sem_unlink) man page from FreeBSD.
These functions are actually implemented, but the old man page said that
they simply returned with errors--it was apparently out of date at the
time of import.
2005-01-22 03:16:33 +00:00
christos a10b4794fd change long -> unsigned long 2005-01-20 21:53:23 +00:00
christos 8817e95118 remove debugging printf. 2005-01-20 21:11:56 +00:00
kleink 774c973096 Note ENOATTR; from FreeBSD. 2005-01-20 13:23:57 +00:00
kleink b2f3ea1a33 Add ENOATTR (and a missing comma); noted by Takehiko NOZAKI. 2005-01-20 13:14:09 +00:00
christos b1c3c94911 Improve error messages. 2005-01-19 22:59:24 +00:00
christos b51e7f1581 - fix initialization of dowarn [use before set, thanks luke]
- always initialize flags so that we don't have to check for it.
- use the consistent variable names in functions.
2005-01-19 22:40:37 +00:00
christos a31e08fdfc - test for too long username (from Greg Woods)
- centralize id and time_t parsing, providing better error checking of
  numeric values; previously the code would accept 12foo as an expiration
  or change time.
- fix issue with dereferencing null flags in compat code.
- ansify, KNF
2005-01-19 19:13:38 +00:00
mycroft ebfdf0c012 If TIOCPTMGET fails, close /dev/ptm. 2005-01-19 01:54:09 +00:00
mycroft e638979d5c Use FD_CLOEXEC. 2005-01-19 00:59:48 +00:00
mycroft ffa0d5e7ac Also set FD_CLOEXEC in the union re-open case. 2005-01-19 00:53:33 +00:00
mycroft ffcb3c5a45 Use FD_CLOEXEC. 2005-01-19 00:52:37 +00:00
mycroft b7e6351cc4 hash already uses FD_CLOEXEC -- pay attention to the return value and make it
a hard failure.

Also make btree and recno uses FD_CLOEXEC.
2005-01-19 00:23:44 +00:00
lukem 58804647b6 Reference RFC1738 instead of RFC1808 for '%xx' encoding. 2005-01-15 21:02:51 +00:00
christos 163d05f57d PR/28792: FUKAUMI Naoki: passwd: Couldn't generate salt: Invalid argument
I broke the case where /etc/passwd.conf was empty.
2005-01-15 03:07:56 +00:00
dyoung 4d24861fc9 For consistency of sockaddr_snprintf(3) with snprintf(3) and
snprintb(3), do not count the terminating NUL in the return value.
Update the regression tests to match.  Approved by christos@.
2005-01-13 00:44:25 +00:00
wiz 379e07e3ac Use \*[Am] and \*[Gt], like before the previous revision; use .In; minor other changes. 2005-01-12 14:44:11 +00:00
wiz c3005f5671 Use .In for including header files, remove some unnecessary quotes. 2005-01-12 14:35:55 +00:00
christos d1ac9947b2 fix compile issue. 2005-01-12 05:27:48 +00:00
christos d205f30a4b fix compile issue and de-lint 2005-01-12 05:27:35 +00:00
christos c9cb0c3bbd adapt to pw_gensalt() change. 2005-01-12 03:36:12 +00:00
christos 4c3e77eff3 add pw_getpwconf(), bump. 2005-01-12 03:34:33 +00:00
christos 3131ddcccc - change the gensalt functions to take an optional string instead of
the number of rounds.
- make pw_gensalt() more generic, so that it does not depend in libutil.
2005-01-12 03:32:52 +00:00
christos 1a791fa81d eliminate the third copy of pwd_gensalt. 2005-01-11 23:23:33 +00:00
christos 6252af1a9f sprinkle ARGSUSED and include "crypt.h" 2005-01-11 23:21:31 +00:00
christos b181dae89f only get the rounds if we have them. 2005-01-11 23:02:30 +00:00
christos 7724b89cd5 add local prototype for old salt function 2005-01-11 23:02:16 +00:00
christos 8cfd209e8e Add pw_gensalt, which was taken from pwd_gensalt. This now is used in 3
places, so it might as well be part of libcrypt.
2005-01-11 22:41:07 +00:00
christos 21356b2c66 use the standard __UNCONST 2005-01-11 22:40:22 +00:00
christos 0fc4f2b291 - remove local UNCONST
- add new __gensalt functions
2005-01-11 22:40:00 +00:00
christos 2c53ed1484 Write __gensalt_blowfish function that does not use static storage and
can return an error. Make the old bcrypt_gensalt() function use that.
XXX: should gc bcrypt_gensalt(). What uses it?
2005-01-11 22:39:21 +00:00
itojun f6b6f2cd66 written-from-scratch manpage (fixes ISOC copyright violation) 2005-01-11 07:26:57 +00:00
itojun 2537b08b16 replace with written-from-scratch manpage. (fixes ISOC copyright issue) 2005-01-11 06:01:41 +00:00
lukem 1e281ed227 Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
lukem 9505ced464 minor whitespace consistency 2005-01-10 02:32:46 +00:00
he 67d66c86bb Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no.  Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.
2005-01-10 00:20:21 +00:00
christos 8ef68a6575 document PT_DUMPCORE. 2005-01-09 17:41:19 +00:00
dyoung 81e590905d Bump minor version for libpcap 0.8.3 import.
Thanks Julian Coleman for pointing out my oversight.
2005-01-09 11:57:34 +00:00
christos b725a0a1fa add a cast and remove another. 2005-01-09 05:04:02 +00:00
nathanw efffd0e96a pthread_rwlock_timedrdlock() and pthread_rwlock_timedwrlock():
After exiting the try-again loop, make one more test of the lock
conditions, in case it was released while a signal handler kept the
thread busy past the alarm expiration.
2005-01-09 01:57:38 +00:00
nathanw 6a562a3a84 pthread_rwlock_timedrdlock() and pthread_rwlock_timedwrlock():
Expand the test for valid values of abs_timeout to check for negative
values of tv_sec and tv_nsec.
2005-01-09 01:47:20 +00:00
manu d26d1599e6 Missing man page: login.access(5) 2005-01-08 22:56:21 +00:00
lukem b91c938d5f delint -UINET6 2005-01-08 22:48:42 +00:00
lukem 6463b925a7 Build librpcsvc as a shared library, since pam_unix.so needs it. 2005-01-08 10:02:36 +00:00
christos a72527f7ce add -DDEBUG to the build for now 2005-01-08 08:39:48 +00:00
christos ca7489bf5c Avoid spinning if writing to a pty returns 0. This happened to me when
I had a pty with a suspended sshd (why?).
2005-01-08 06:43:16 +00:00
mycroft f38bfebb8e Throw in mutex stubs to serialize access to the legacy global structures. 2005-01-07 22:22:49 +00:00
simonb f2cd0bb8b0 Remove the old userland version of getcwd(): it's been #ifdef'd out
since 1999 when we switched to a (faster) system call based getcwd(),
and as shown recently has had some buffer size problems anyway (although
they have since been fixed).
2005-01-06 23:43:32 +00:00
jmmv 3b31a140fa Fix a typo and add a missing blank line. 2005-01-06 20:31:12 +00:00
mycroft 6951dd53b1 Fix a pasto. 2005-01-06 17:42:31 +00:00
mycroft 077972bfb2 Replace the even-odd test for incrementing unblockgen with a simple
blockgen!=unblockgen.  I'm not sure this is 100% correct, but it partly
alleviates a problem with multiple unblocks for the same thread getting
stacked up.
2005-01-06 17:40:22 +00:00
mycroft 75a9478818 Add some additional assertions and debugging printf()s. 2005-01-06 17:38:29 +00:00
mycroft e890aef258 Use TIMER_RELTIME rather than the constant 0 in one place. 2005-01-06 17:34:52 +00:00
mycroft 8fa85b4a65 gettimeofday();TIMEVAL_TO_TIMESPEC(); is exactly equivalent to
clock_gettime(CLOCK_REALTIME), except the latter may have more preicison
some day.  So, use that.
2005-01-06 17:33:36 +00:00
ginsbach 9d30c15dda Add EPERM to fchmod() failure list. 2005-01-06 16:30:52 +00:00
lukem b351350a6f document getgroupmembership(3) 2005-01-06 15:29:35 +00:00
lukem a3665ef9cf Implement getgroupmembership(3). This is similar to getgrouplist(3), except
that the "int maxgroups" and "int *ngroups" parameters are separated into
two separate parameters which makes it possible to call multiple nsswitch
back-ends and have the results correctly merged.
getgrouplist(3) is now implemented using getgroupmembership(3).

Proposed on tech-userlevel on December 1, 2004.
2005-01-06 15:10:45 +00:00
lukem 337d8d731d Rename various "internal" variables and functions and make non-static so other
internal libc source files can use these (including getgroupmembership(3)).

Be more consistent in the API that the __grscan_<source>() methods use.

In __grscan_compat() support an optional custom 'search' function used when a
"+" lookup is required.  Normally this will be getgrent() from group_compat,
but getgroupmembership(3) will use a tailored compat search routine for
efficiency.
2005-01-06 15:00:45 +00:00
christos 59f1050586 Fix handling of memory allocation. From OpenBSD. 2005-01-06 00:07:41 +00:00
bouyer 2acdd6193e Translate messages 86 -> 93. Thanks to Marc Baudoin for review. 2005-01-03 22:00:37 +00:00
salo f1b6ac43ff Add ENOATTR translation. 2005-01-03 19:52:35 +00:00
peter 4e256ea1c5 Translate errors 80 to 93 in set 1. Fix typo's and improve some messages.
Reviewed by daniel.
2005-01-03 15:21:48 +00:00
lukem 27313362b5 Build & install pam_ssh.so.0 now that libssh is available for use. 2005-01-03 06:15:42 +00:00
lukem 157353df26 Set NOxxx before including <bsd.own.mk>; we can't rely upon ../mod.mk
in this situation.
2005-01-03 06:15:02 +00:00
lukem 98a04f5390 Implement libssh as a public library, as pam_ssh needs it. 2005-01-03 06:00:12 +00:00
lukem 474dd6daf5 s/ifndef/ifdef/ for __FreeBSD__ 2005-01-03 03:08:40 +00:00
jmmv 8f037de0f8 Remove a trailing dot to match all other items in the same list. 2005-01-02 19:39:43 +00:00
jmmv 0d9171e5fe Add ETIME and ENOATTR translations. 2005-01-02 19:38:49 +00:00
wiz f95f6051ed Add German ENOATTR translation. 2005-01-02 19:08:35 +00:00
jdolecek be801db792 add czech ENOATTR translation 2005-01-02 19:03:41 +00:00
thorpej 6593d72e33 Add ENOATTR ("Attribute not found"). From FreeBSD. 2005-01-02 18:54:51 +00:00
wiz f5c79d74cd Sort sections and SEE ALSO. Remove superfluous comma. 2005-01-02 18:28:48 +00:00
wiz 4e8eec4d14 Sort SEE ALSO. 2005-01-02 18:25:09 +00:00
wiz 7d9d90dc9d Fix date string. 2005-01-02 18:23:25 +00:00
thorpej 4cc9b402ea Remove VOP_*() references. 2005-01-02 16:48:18 +00:00
thorpej c165c2b31d System calls and support routines for file system extended attributes. Libc
version is bumped to 12.125.

From FreeBSD.
2005-01-02 16:43:26 +00:00
christos 1466914ff3 add size_t casts. 2004-12-30 05:11:50 +00:00
christos bd66ab4a14 cast to size_t
remove unneeded casts.
2004-12-30 05:08:37 +00:00
christos 1c5c5f5ad5 cast to size_t/socklen_t 2004-12-30 05:07:43 +00:00
christos 1b235e3efc cast to socklen_t/size_t 2004-12-30 05:06:33 +00:00
christos 3fd676b16c cast to size_t 2004-12-30 05:01:50 +00:00
christos 1f3a2bf23d sz should be size_t 2004-12-30 05:01:19 +00:00
christos 70c807f499 - cast to size_t
- sz should be size_t
2004-12-30 05:00:42 +00:00
lukem 884b4146ae re-add inclusion of <bsd.lib.mk> for LIBDPLIBS optimization, with an
empty libinstall rule so Things Work.
2004-12-30 00:11:50 +00:00
simonb 54e42386be Remove the inclusion of <bsd.lib.mk>. There are no libraries in this
directory, only its subdirectories.
2004-12-29 22:35:35 +00:00
nathanw 74718675cc Avoid passing zero-valued timespecs to timer_settime() when we want to set
a timer, as that will clear the timer instead. Pass in a safely in-the-past
value instead.
Addresses PR lib/28700.

(XXX passing in values between 0 and 1000 nanoseconds will still fail, but
 that bug needs to be fixed in timer_settime(), not here)
2004-12-29 20:47:39 +00:00
lukem fddd5ca989 Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.
2004-12-29 15:49:42 +00:00
lukem 178fb7b023 Use LIBDPLIBS to provide the list of libraries for the modules to depend
upon, because:
 * it's MUCH quicker; no need to calculate the OBJDIRS of every library
   we might require in every subdir.
   (make obj drops from 21s to 3s on my system.)
 * it's more robust when building to a fresh DESTDIR.
2004-12-29 15:04:06 +00:00
christos bc6fc4a390 Build libpam last because the modules need to access other libraries. 2004-12-29 04:16:46 +00:00
christos bfc0dd3a06 Link with libraries from the source build directory. 2004-12-29 04:16:17 +00:00
nathanw fae5965c52 Implement pthread_attr_{set,get}schedpolicy() at the same level as the other
scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling
stuff, this is for the benefit of code that can't be bothered to test against
_POSIX_THREAD_PRIORITY_SCHEDULING.
2004-12-29 00:59:57 +00:00
thorpej 0c386f944e Back out previous, now that make is fixed. 2004-12-29 00:47:56 +00:00
thorpej 05b129326d Descend into libpam. 2004-12-29 00:11:27 +00:00
thorpej 62953ecba5 Install modules into /usr/lib/security 2004-12-29 00:08:14 +00:00
thorpej 4e24c365b9 Work around a suffix search problem with .MADE. Work-around suggested
by Christos.
2004-12-28 23:37:50 +00:00
thorpej 8fca42fd9c More ELF_ST_BIND()/ELF_ST_TYPE() cleanup. 2004-12-28 00:08:08 +00:00
thorpej fe14527c00 Use ELF_ST_BIND() and ELF_ST_TYPE(). 2004-12-27 20:07:09 +00:00
christos 12fc8404b0 RTC_OFFSET is writable; sync with sysctl.8 2004-12-27 13:35:47 +00:00
wiz 6362e2f527 Add CAVEATS section similar to is*(3) ones. Bump date.
Fix typo in toascii.3 while here.
kleink says "ok".
2004-12-24 02:47:16 +00:00
yamt 5b3d234201 constify. 2004-12-21 11:25:43 +00:00
yamt acdc3d1e0f constify. 2004-12-21 09:29:04 +00:00
yamt 824b77d67e _citrus_find_getops: use _C_LABEL_STRING. 2004-12-21 09:00:01 +00:00
yamt 8a0e62d02d open_shared: correct a buffer size. 2004-12-21 08:07:41 +00:00
christos f1a325d103 Unbreak setuserpath(); from Nick Hudson. 2004-12-20 18:42:03 +00:00
christos da6f1ded1d revert previous change while discussion is in progress. 2004-12-20 18:30:26 +00:00
itojun 2fdfeb359f RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.
2004-12-20 03:50:04 +00:00
wiz c54f10d8b4 Use more markup. Sort sections. 2004-12-16 17:29:55 +00:00
kleink 9508efa066 Internally rename getdevmajor(); noted by Geoff Wing. 2004-12-16 12:30:04 +00:00
atatat 817b002242 Fix a whitespace nit and make this compile again. So there. 2004-12-16 04:37:25 +00:00
atatat d91a4a5990 Put caching back on the pts major number. It's worth the code
overhead not to go look it up a zillion times when running fstat or ps
on a machine with a billion people logged in.  fstat mostly.
2004-12-16 04:33:03 +00:00
atatat 4e04a6f62d Get rid of the private getptsname() function and use getdevmajor()
instead.  It's really much better that way, you'll see.
2004-12-16 04:15:19 +00:00
christos 29fb313de0 document properly the return value and the errno settings. 2004-12-16 04:07:22 +00:00
christos d15ecb98a9 knf fixes. 2004-12-16 04:07:01 +00:00
atatat fe13117c07 Bump to minor 124 since getdevmajor(3) was added 2004-12-16 04:05:51 +00:00
atatat 2803cf768c Add a function called getdevmajor().
It tells you the major device number for whatever character or block
device you ask it.  This is sort of the inverse of devname(3) but not
quite, since it's backed by the kernel (sysctl's kern.drivers
information) and not a database cobbled together from the contents of
the filesystem.
2004-12-16 03:54:56 +00:00
wiz c53d75fdd8 Grammar improvements. 2004-12-15 16:37:58 +00:00
wiz dd4b29f9a3 Fix typo in comment. 2004-12-15 16:29:53 +00:00
simonb 43cfce7a27 Remove trailing blank lines. 2004-12-14 11:14:45 +00:00
atatat 1cb09b336b Properly return the constructed name for ptyfs nodes. Otherwise we
accidentally return NULL on the first call and find it in the cache on
all subsequent calls.
2004-12-14 03:08:01 +00:00
yamt e19f3f9976 document sched_yield. 2004-12-14 01:47:13 +00:00
nathanw 5229c9f993 Nuke threadlib.h. Library defensive threading is now provided through the
normal pthread.h interface.
Move stubs for libc back into a libc-internal header.
2004-12-14 00:23:19 +00:00
nathanw 9ae878eb94 Fix the __libc_thr_yield_stub() signature. 2004-12-14 00:21:40 +00:00
yamt 98a0fd8d54 fix mvgetch prototype. 2004-12-13 23:51:11 +00:00
nathanw 50df45f4e5 The __libc_thr_yield_stub() for scched_yield() should return int (and
a 0), not void.
2004-12-13 16:07:13 +00:00
nathanw 480a2816f2 Add #defines to make use of libc stubs for pthread_cond_wait() and
pthread_cond_timedwait().

XXX as noted in the comments, in the situations where these are
useful, they should never be called in a single-threaded
process. Perhaps they should die rather than return 0.

Addresses xsrc/28630.
2004-12-13 03:10:52 +00:00
christos 980de1e92d s/__function__/__func__/ 2004-12-12 08:29:56 +00:00
christos e7d22a2e64 - NetBSD build glue
- Warning fixes
- RCSID's
2004-12-12 08:18:42 +00:00
christos bb62ec41f1 - NetBSD specific fixes.
- Changes from Jason to use our YP stuff.
2004-12-12 08:17:56 +00:00
christos 6f11bdf15c - Import freebsd's version of libpam as of today (20041212).
- Did not import opie, passwdqc, tacplus. We need to decide what to do
  with them.
- Imported radius and ssh, although they will not work until we
  import libradius and re-structure our tree to install libssh.
2004-12-12 06:45:21 +00:00
snj 316a956c56 Bump date for last. 2004-12-12 05:56:45 +00:00
yamt ebf187e60c document correct return value. PR/28571 from ITOH Yasufumi. 2004-12-12 01:09:44 +00:00
wiz ff7ab08a15 Mmm, API changes without date bumps... bump date for constification. 2004-12-11 16:50:56 +00:00
christos 7462bd3e7c fix cast-qual issue. 2004-12-11 06:41:40 +00:00
christos a5c1a01ed9 WARNS=3; fix cast-qual issues. 2004-12-11 06:41:15 +00:00
christos 70756f97e8 Constify; the api was completely broken before. 2004-12-11 06:40:42 +00:00
nathanw cb9ebec1e2 Correctly return ETIMEDOUT when the absolute time is in the past, in
the nonthreaded case. Fixes, and fix from, PR lib/25961.
2004-12-10 17:11:53 +00:00
nathanw 0eaa8971b7 Use CPP macros to cause many libpthread functions used by applications
to be transformed into the do-nothing-when-libpthread-isn't-linked libc
stub names. This will permit library code that uses <pthread.h> and pthread
functions "defensively" to not need to link against libpthread and not need
to be patched to the threadlib.h API.
2004-12-10 16:40:40 +00:00
simonb 23a85fb5b0 libgcc has __fixunsdfsi and __fixunssfsi, so don't build
the softfloat versions of these.

Fixes PR toolchain/24509 from Masao Uebayashi.
2004-12-09 00:39:41 +00:00
martin 528e949b20 Replace the stack unwinding by a much simpler solution taken from
../../arch/sparc/gen/_setjmp.S rev. 1.6. This ended up to be ~identical
to the OpenBSD change triggered by the same sparc change.
Thanks to Stoned Elipot for pointing out the problem.
2004-12-07 08:20:07 +00:00
nathanw 08c663a3c0 Implement __libc_thr_sigsetmask_stub() in terms of sigprocmask(),
instead of having a dummy function.
2004-12-06 18:58:12 +00:00
wiz d768695880 Add RCS Id. 2004-12-06 13:16:36 +00:00
christos 8d79e1b130 Use /dev/bpf. 2004-12-02 00:05:02 +00:00
dsl 4eaada98f4 Change a returned value of -1 (NO_PGID) to (uint)(pid_t)~0u >> 1 (0x7fffffff)
to satisfy the SuSv3/POSIX-2004/etc requirement that "If there is no
foreground process group, tcgetpgrp() shall return a value greater than 1
that does not match the process group ID of any existing process group."
Should fix PR standards/28493 and zsh.
2004-12-01 21:37:15 +00:00
skrll 32069ca6a3 pt_sleepuc was removed a long time ago. 2004-12-01 14:27:01 +00:00
ws 4aa5370862 Use correct stack offsets after pushing values onto it. 2004-12-01 01:08:18 +00:00
peter 192aae95b5 Add missing LIBRARY section.
ok wiz@
2004-12-01 00:06:46 +00:00
nathanw 45204d9ceb Punt to setcontext() system call if the PSL_T bit (single-step trap)
is set, so that the single-step trap happens in the thread's context
and not in the middle of _setcontext_u.

XXX might be able to do something here with iret, too, but it needs
more testing.
2004-11-30 21:05:01 +00:00
ginsbach e9042901ff rresvport_af() should return -1 when the address family is unsupported
and set errno accordingly.
2004-11-29 17:00:06 +00:00
jmc 9da9dc64b7 Add heapsort to libnbcompat 2004-11-28 06:57:14 +00:00
christos 3bca82ec33 PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure 2004-11-27 18:31:45 +00:00
christos 5a55e0c902 Don't give write privileges at all if the tty group is missing. 2004-11-25 02:49:46 +00:00
christos db5d4e2d6a I really want to kill the hard-coding of _TTY_GID. Set the group to the
primary group of the user if the group tty does not exist.
2004-11-24 22:17:19 +00:00
wiz b86a72cb8b Improve RETURN VALUES section. 2004-11-24 12:47:20 +00:00
wiz 20a78941e4 Mark up TRUE and FALSE. 2004-11-24 12:42:51 +00:00
wiz f039f78c3f \-1, not -1. 2004-11-24 12:40:54 +00:00
wiz f91573afd7 Mark up NULL. 2004-11-24 12:26:23 +00:00
wiz 7b09170529 Use Aq instead of \*[Lt]\*[Gt]. 2004-11-24 12:12:19 +00:00
wiz a7804596c1 Bump date for previous; mark up defined values with Dv;
use Aq instead of \*[Lt]\*[Gt].
2004-11-24 12:09:13 +00:00