Commit Graph

9912 Commits

Author SHA1 Message Date
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
blymn
19f07fb20a * Rewrote internal handling of multiline field line data to fix a bug
where a newly opened line would immediately get wrapped out of existence.
  The old method of handling lines in a multiline field did not cope with
  this elegantly.

* Added new field flag O_REFORMAT which, when set, returns the field
  buffer with newlines inserted where the line wrapped.  Previously, there
  was no way of preserving the on screen format of a multiline field.

* Added new file gdbinit which contains a macro to verify and print
  the multiline field line data structure.

* Bumped libform major number due to changes in the _form_field structure.
2004-11-24 11:57:09 +00:00
kleink
504ab89f25 Remove references to the header SIG_* are located in altogether;
<sys/signal.h> exposed too much implementation detail, and <signal.h>
remains the sole header referenced by this page.
2004-11-23 09:38:45 +00:00
lukem
53d1c6b12e document which #include file to use 2004-11-23 04:38:19 +00:00
lukem
98a47ed075 Fix gethostent(3) (which was reenabled in rev 1.63) so that it actually
works by allowing _gethtent() to treat host.h_addrtype==0 && host.h_length==0
as "any address family" when parsing.
2004-11-23 03:42:13 +00:00
jmmv
86ebfff7b8 Minor grammar fixes. 2004-11-21 10:45:08 +00:00
christos
6845cdfbb8 fix the header. 2004-11-21 03:04:14 +00:00
wiz
7a3b0ef281 Formatting fixes, and a typo fix. 2004-11-20 23:29:33 +00:00
christos
1fe49f768f Add a manual page. 2004-11-20 03:06:09 +00:00
christos
09ad64e21f check for getnameinfo error correctly; thanks to Peter Postma. 2004-11-19 22:05:23 +00:00
christos
eb6484700a Add sockaddr_snprintf; XXX: Needs a man page. 2004-11-19 21:37:19 +00:00
kent
b285c03873 getdevinfo():
If a mixer item does not match with AudioNsomething, check whether
it ends with '.' + AudioNsomething.  PR#15441
2004-11-18 14:02:42 +00:00
itojun
da88342476 NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
christos
13c63648cb PR/28324: Takayoshi Kochi: localtime_r(3) returns GMT
Add missing tzset_unlocked(); as suggested.
2004-11-16 04:15:28 +00:00
jmmv
8740cbe236 Add a conditional for proper m68k softfloat operation. It looks like I
forgot to commit this file back when this functionality was added.
Noted by Bruce O'Neel (the original author) in port-mac68k@.
2004-11-13 20:29:47 +00:00
christos
d8edf257eb Don't create the lastlogx file with 0 mode. 2004-11-11 22:14:20 +00:00
dsl
ece723d1ec Add if_media.c, functions for converting media to/from strings.
(from ifconfig.c)
2004-11-11 20:36:28 +00:00