Commit Graph

9954 Commits

Author SHA1 Message Date
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