Dima Dorfman
6b663fd674
Correct a typo.
...
Submitted by: peter.kusenda@accenture.com
2002-03-09 07:05:22 +00:00
Dima Dorfman
ca4b6b3910
This API will appear in FreeBSD 4.6.
2002-03-09 05:19:21 +00:00
Dima Dorfman
235d6772d5
Bring a comment in line with the code, and fix some spelling errors
...
while I'm here.
PR: 35394
Submitted by: andrew@ugh.net.au
2002-03-09 04:00:53 +00:00
Brian Feldman
44f7d6af24
Fix build. I commented out getpass() in readpassphrase.c because the
...
implementation did not match our manpage description (i.e., it could
return NULL). I mistakenly thought we were still using getpass.c
because, for some reason, CVS never removed it from the tree.
Pointy hat received from: alfred
Kick in the groin to: CVS
2002-03-09 03:16:41 +00:00
Brian Feldman
a7a8a766e7
Update readpassphrase(3)to the latest revisions. Changes are mainly due
...
to return value constraints now changing as well as more intelligent
handling of signals.
Obtained from: OpenBSD
2002-03-08 21:14:00 +00:00
Robert Watson
147273e8ca
Improve punctuation consistency: all errors had a '.' after them
...
except ENOATTR.
2002-03-08 21:00:27 +00:00
Maxim Sobolev
f651c1533c
Don't ignore system CFLAGS.
2002-03-07 16:56:19 +00:00
Mark Murray
3556489a52
Fix build for OpenPAM. The directories needed tweeking.
2002-03-07 16:03:56 +00:00
Brian Feldman
9d9737ecb2
Add new errno ``ENOATTR''.
2002-03-07 15:13:44 +00:00
Dag-Erling Smørgrav
38ca451d39
This file is not needed any more
2002-03-07 12:03:50 +00:00
Mark Murray
bbf177c2a9
Darn. There is (now was) a signed/unsigned issue that resulted in a
...
very long loop.
Reported by: nnd@mail.nsk.ru (Nickolay Dudorov)
2002-03-07 10:41:11 +00:00
Brian Feldman
30da7e6299
Now pam_alreadyloggedin lives in the ports.
2002-03-07 02:23:19 +00:00
Daniel Eischen
ca4b2c1a79
Properly clear the status of a join operation if the joining thread is
...
canceled or the joinee is detached.
2002-03-06 19:28:41 +00:00
Brian Feldman
c53dd30bb3
Add the pam_alreadyloggedin(8) module, which allows for authentication
...
based on information that the user is already logged in.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-03-06 18:21:28 +00:00
Mark Murray
f2ac424af7
No functional change, but big code cleanup. WARNS, lint(1) and style(9).
2002-03-06 17:18:09 +00:00
Peter Pentchev
8a177c636f
Unbreak the pam_krb5 build: cast a couple of const pointers
...
to normal char *. A better fix might be some const'ifying
of the Heimdal code, but this will do to fix the build
for the present.
Approved by: des
2002-03-06 16:49:02 +00:00
Dag-Erling Smørgrav
40e0f7deed
Remove a bogus cast.
2002-03-06 15:24:51 +00:00
Maxim Konovalov
e98c156beb
Add GETPID to the list of operations for which semctl(2) returns the value.
...
Reviewed by: alfred, ru
Approved by: ru
MFC after: 3 days
2002-03-06 14:14:36 +00:00
Dag-Erling Smørgrav
e0dd4a7813
Add forgotten NOPROFILE that broke world.
2002-03-06 12:11:05 +00:00
Eric Melville
ee6c974de4
Add a carriage return to each function declaration, and make use of ID tag
...
macros.
MFC after: 1 day
2002-03-06 03:26:11 +00:00
Dag-Erling Smørgrav
519b6a4c8f
Switch to OpenPAM. Bump library version. Modules are now versioned, so
...
applications linked with Linux-PAM will still work.
Remove pam_get_pass(); OpenPAM has pam_get_authtok().
Remove pam_prompt(); OpenPAM has pam_{,v}{error,info,prompt}().
Remove pam_set_item(3) man page as OpenPAM has its own.
Sponsored by: DARPA, NAI Labs
2002-03-05 21:56:25 +00:00
Tor Egge
df140f7277
When multiple threads call atexit at the same time, some operations must
...
be serialized. A mutex is used to protect the critical regions.
sbrk() and brk() are not thread safe. Replace use of sbrk() with
a call to malloc to avoid race when one thread calls atexit
while another thread calls malloc.
Reviewed by: deischen
2002-03-05 17:34:37 +00:00
Dag-Erling Smørgrav
e3cd129613
Add missing dependency on libutil.
2002-03-05 12:52:03 +00:00
Jake Burkholder
3ff2c61db8
Add fpsetmask(). Needed to build miniperl.
...
Obtained from: netbsd
2002-03-05 04:03:57 +00:00
Jake Burkholder
f496405572
Fix a bug where siglongjmp would clobber the argument to return from
...
sigsetjmp. It would return the value of the signal flag, instead.
Pointy hat to: jake
2002-03-05 04:02:04 +00:00
Thomas Moestl
49a64cb475
Connect the sparc64 userland fp emulator to the build.
2002-03-05 00:00:40 +00:00
Dima Dorfman
246b0f8487
Correct a typo.
...
PR: 35273
Submitted by: Nicola Vitale <nivit@libero.it>
2002-03-03 01:13:47 +00:00
David E. O'Brien
118ce04e39
We need an frexp() function.
2002-03-01 01:58:20 +00:00
David E. O'Brien
2e6f61b9bc
Minor style(9) nit + utilize ELF features for the FreeBSD ID.
2002-02-28 19:45:34 +00:00
David E. O'Brien
1e23f97e5c
Minor style(9) nit + utilize ELF features for the FreeBSD ID.
2002-02-27 22:13:02 +00:00
Brian Feldman
92369d84a9
Check if string is not NULL, not *string, before setting *string.
2002-02-27 22:00:44 +00:00
David E. O'Brien
7f524f1fe9
We do not support the sparc platform.
2002-02-27 21:59:16 +00:00
David E. O'Brien
fc6e9db154
Minor WS change to improve readability.
2002-02-27 21:53:27 +00:00
Thomas Moestl
90ce56c287
Add the following functions/macros to support byte order conversions and
...
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):
- bwap16() and bswap32(). These have optimized implementations on some
architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
versa, using a naming scheme like le16toh(), htole16().
These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
conversion (while the normal access functions would if the bus endianess
differs from the CPU endianess).
htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.
Make use of the new functions in a few places where local implementations
of the same functionality existed.
Reviewed by: mike, bde
Tested on alpha by: mike
2002-02-27 17:16:18 +00:00
Dima Dorfman
76183f3453
Introduce a version field to `struct xucred' in place of one of the
...
spares (the size of the field was changed from u_short to u_int to
reflect what it really ends up being). Accordingly, change users of
xucred to set and check this field as appropriate. In the kernel,
this is being done inside the new cru2x() routine which takes a
`struct ucred' and fills out a `struct xucred' according to the
former. This also has the pleasant sideaffect of removing some
duplicate code.
Reviewed by: rwatson
2002-02-27 04:45:37 +00:00
Alfred Perlstein
ef18a7a841
use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over
...
the user supplied buffer. this can be a problem when the user doesn't
supply a full dirent and we corrupt their memory.
2002-02-26 21:39:32 +00:00
Maxim Sobolev
b73aa6457c
Per POSIX <grp.h> doesn't require <sys/types.h>.
...
Submitted by: ache
2002-02-25 17:20:40 +00:00
Bruce Evans
3798cf8a70
#include <time.h> for the definition of time functions instead of
...
depending on namespace pollution 2 layers deep in <sys/stat.h>.
Sorted includes.
2002-02-25 12:02:03 +00:00
Bruce Evans
163ae6707c
#include <stddef.h> for the definition of NULL instead of depending on
...
namespace pollution 2 layers deep in <sys/stat.h>.
Sorted includes.
2002-02-25 01:25:30 +00:00
Thomas Moestl
30d514918a
Initialize the libc user trap handlers before passing control non-startup
...
code, so that the userland fp emulator will work.
2002-02-23 21:47:20 +00:00
Thomas Moestl
4895e965c3
Add userland floating point emulator code for sparc64. This is a port
...
of the (never committed) in-kernel version (with some optimizations and
cleanups), which in turn was ported from NetBSD.
2002-02-23 21:37:18 +00:00
Jake Burkholder
dfca860bfc
Add ifdefs for sparc64.
2002-02-23 19:05:26 +00:00
Jake Burkholder
3b16ee2c6c
Fix wrong offsets. Add offsets for %fsr and %tstate.
...
Submitted by: tmm
2002-02-23 19:01:22 +00:00
Jake Burkholder
d1497824f0
Add space for %fsr and %tstate to utrapframe. Save them in the generic
...
user trap entry code. Restore %asi and %ccr from the saved %tstate before
returning to the trapping user code.
Submitted by: tmm
2002-02-23 19:00:30 +00:00
Brian Feldman
49b33de841
Also blindly attempt to fix broken world with respect to proc.p_runtime
...
changes.
2002-02-22 19:10:09 +00:00
John Birrell
9db56888ee
Fix a bug where a short write to a non-blocking socket would
...
leave the descriptor locked, causing other threads to hang
if they happened to access the socket.
MFC after: 5 days
2002-02-22 04:26:54 +00:00
Chris D. Faulhaber
a82f127b41
o style(9) and consistency fix:
...
- if (!var) -> if (var == NULL)
o spelling fix (althouh -> although)
Reviewed by: rwatson
Obtained from: TrustedBSD Project
2002-02-21 23:18:04 +00:00
Chris D. Faulhaber
9fd46b0237
o style(9) and consistency fixes:
...
- if (!var) -> if (var == NULL)
- return val; -> return (val);
Reviewed by: rwatson
Obtained from: TrustedBSD Project
2002-02-21 23:17:19 +00:00
Chris D. Faulhaber
e146d0bc6a
Add more argument checking
...
Reviewed by: rwatson
Obtained from: TrustedBSD Project
2002-02-21 23:13:06 +00:00
Chris D. Faulhaber
c61eb011c4
static'ize and declare functions
...
Reviewed by: rwatson
Obtained from: TrustedBSD Project
2002-02-21 23:12:25 +00:00