Dag-Erling Smørgrav
23d232d73b
Header file for libypclnt.
...
Sponsored by: DARPA, NAI Labs
2002-04-13 06:20:31 +00:00
Dag-Erling Smørgrav
c0f2281edd
NIS client toolbox. This centralizes code which is duplicated all over
...
our tree.
Sponsored by: DARPA, NAI Labs.
2002-04-13 06:20:02 +00:00
Dag-Erling Smørgrav
2f6ee8eb7e
Change || into && (braino in previous commit). Also append \n to the
...
error message.
2002-04-13 06:14:30 +00:00
Dima Dorfman
62538f5a03
This was recently MFC'd, so it will appear in 4.6.
...
PR: 37018
2002-04-13 04:25:56 +00:00
Marcel Moolenaar
2d631dd6fa
Implement _Unwind_FindTableEntry(). This function is part of GCC
...
for some configurations, but not for FreeBSD (yet?). Have one in
libc in the mean time.
2002-04-13 04:06:34 +00:00
Dag-Erling Smørgrav
24fe7ba0d9
Major cleanup:
...
- add __unused where appropriate
- PAM_RETURN -> return since OpenPAM already logs the return value.
- make PAM_LOG use openpam_log()
- make PAM_VERBOSE_ERROR use openpam_get_option() and check flags
for PAM_SILENT
- remove dummy functions since OpenPAM handles missing service
functions
- fix various warnings
Sponsored by: DARPA, NAI Labs
2002-04-12 22:27:25 +00:00
Dag-Erling Smørgrav
95ca4cb3f6
Add a pam_rhosts module, loosely based on code submitted by Danny Braniss.
...
Submitted by: Danny Braniss <danny@cs.huji.ac.il>
Sponsored by: DARPA, NAI Labs
2002-04-12 20:10:18 +00:00
Dag-Erling Smørgrav
fd994fa945
Rename the even_root option to allow_root.
...
Sponsored by: DARPA, NAI Labs
2002-04-12 20:05:27 +00:00
Ruslan Ermilov
a60a1ea33b
Reimplement the hack to put pam_static.o into .depend with some magic.
2002-04-11 12:21:16 +00:00
Tom Rhodes
7d358b9a2a
scanf.3 has an obsolete ``this release''.
...
PR: 35610
MFC after: 2 days
2002-04-10 20:52:49 +00:00
Ruslan Ermilov
90a9863e16
Moved SHLIB_NAME definition into one place.
...
Approved by: des
2002-04-10 18:07:05 +00:00
Ruslan Ermilov
196f4c26f4
Fixed broken "make depend; make clean; make all" sequence.
...
I've looked for this example for a long time, to demonstrate
some people why it's a really BAD idea to use ${.OBJDIR}
instead of ".". I hope these people are reading this. :-)
Approved by: des
2002-04-10 18:00:32 +00:00
Ruslan Ermilov
e348eb5318
Fix broken `checkdpadd'.
...
-lroken is an installable library, there's no need to give an
explicit path to it. In any case, -L paths should be specified
in LDFLAGS if needed.
Approved by: des
2002-04-10 17:53:43 +00:00
Ruslan Ermilov
f5ef4bac45
Don't override standard _EXTRADEPEND actions, add to them.
...
Fix CLEANFILES.
Collapse openpam_static_modules.o generation.
2002-04-10 17:46:59 +00:00
Ruslan Ermilov
11c456c0be
Don't build manuals at inappropriate time.
...
Collapse generation of md[245].3 manpages.
2002-04-10 17:01:55 +00:00
Tom Rhodes
96f68db50b
crypt(3) incorrectly documents md5 salt, fixed.
...
PR: 36782
No objections from: ru
MFC after: 3 days
2002-04-09 22:32:59 +00:00
David E. O'Brien
168ca73831
Use -ffreestanding. It is REQUIRED by GCC 3.1 on all architectures.
...
I don't like putting this very-GCC centric option here; but no one as given
a better idea of handling it.
Reviewed by: jhb
2002-04-09 20:38:29 +00:00
Ruslan Ermilov
357bbe4abe
-ltermcap is spelled -lncurses nowadays.
2002-04-09 13:04:31 +00:00
Ruslan Ermilov
c3e3cbe16e
No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.
2002-04-09 11:39:05 +00:00
Jeroen Ruigrok van der Werven
92d2baa6a2
Return correct number of total bits set in all fd_set's.
...
Change case of POLLNVAL as an error.
Remove POLLHUP and POLLERR from one case, their place is most likely
amongst read events.
PR: 33723
Submitted by: Alexander Litvin <archer@whichever.org>
Reviewed by: deischen [Provided a small change to the PR patch as well]
MFC after: 4 weeks
2002-04-09 05:41:00 +00:00
David E. O'Brien
1c47b73286
Break the sparc64 build. I expect those that complained about this commit
...
to fix the sparc64 case to their liking.
2002-04-09 05:34:22 +00:00
Jake Burkholder
82436f1067
Rename some fields in struct frame to be compatible with NetBSD/OpenBSD,
...
and add some compatibility defines. Add fields for ins and locals to
struct reg also for the same reason; these aren't filled in yet because
getting at those registers sucks and I'd rather not save them in the
trapframe just for this. Reorder struct reg to be ABI compatible as
well. Add needed include of machine/emul.h.
This gets pmdb (poor man's debugger) from OpenBSD mostly compiling but it
doesn't work yet :(
2002-04-09 00:57:23 +00:00
David E. O'Brien
5447d21d05
sparc64 grew _setjmp/_longjmp.
2002-04-08 20:46:07 +00:00
David E. O'Brien
ae9b2dab02
Use -ffreestanding.
2002-04-08 20:45:44 +00:00
David E. O'Brien
f01730b279
For now we are using our old crt{begin,end}.
2002-04-08 20:31:20 +00:00
Dag-Erling Smørgrav
2270ac91b4
Remove debugging code that was inadvertantly brought in by previous commit.
2002-04-08 12:41:08 +00:00
Dag-Erling Smørgrav
eafd17c552
Use OpenPAM's credential switching functions.
...
Sponsored by: DARPA, NAI Labs
2002-04-08 12:38:50 +00:00
Dag-Erling Smørgrav
f6363a1814
Add new files and man pages from OpenPAM Cinchona.
...
Sponsored by: DARPA, NAI Labs
2002-04-08 12:34:53 +00:00
Dag-Erling Smørgrav
2bca1ead9a
Remove commented-out WARNS thingy.
2002-04-08 12:33:48 +00:00
Ruslan Ermilov
f2f306b622
Align for const poisoning in -lutil.
2002-04-08 11:07:51 +00:00
Ruslan Ermilov
b00ba4ccbb
Const poisoning.
2002-04-08 11:04:56 +00:00
Poul-Henning Kamp
674a5ae34f
Catch up with const'ification of <sys/disklabel.h> and quelch warnings.
2002-04-08 08:57:21 +00:00
Ruslan Ermilov
7c1d25d6c2
Fix style of ether_ntoa().
2002-04-08 07:51:10 +00:00
Dag-Erling Smørgrav
50000f00df
Reorganize pam_sm_authenticate() to reduce code duplication.
...
Sponsored by: DARPA, NAI Labs
2002-04-07 21:18:18 +00:00
Dag-Erling Smørgrav
a8b1e59eb2
Fix bug in previous commit that passed the wrong default value to
...
login_getcapstr(3). Also fix a longer-standing bug (login_close(3)
frees the string returned by login_getcapstr(3)) by reorganizing the
code a little, and use login_getpwclass(3) instead of login_getclass(3)
if we already have a struct pwd.
Sponsored by: DARPA, NAI Labs
2002-04-07 20:43:27 +00:00
Jeroen Ruigrok van der Werven
a243e676fe
Fix EUC encoding conversion for codeset 3 and 4 to comply to the specification.
...
PR: 28552
Submitted by: NIIMI Satoshi <sa2c@and.or.jp>
2002-04-07 16:37:15 +00:00
Dag-Erling Smørgrav
9db21c5fd1
This one needs NO_WERROR too.
2002-04-07 12:53:58 +00:00
Dima Dorfman
21687047cf
Fix (for the second time) kvm_getprocs() for the case where no
...
processes match the given criteria. Since revision 1.60 of malloc.c,
malloc() and friends return an invalid pointer when given a size of 0.
kvm_getprocs() uses sysctl() with a NULL oldp argument to get an
initial size, but does not check whether it's 0 before passing it to
realloc() (via _kvm_realloc()). Before the aforementioned malloc()
change, this resulted in a minimal allocation made and a valid poitner
returned, but now results in an invalid, but non-NULL, pointer being
returned. When this is passed to sysctl(), the latter returns EFAULT
(as it should).
2002-04-07 04:47:58 +00:00
Dag-Erling Smørgrav
92c07aa880
Turn on NO_WERROR due to namespace pollution in krb5 headers.
2002-04-07 04:44:16 +00:00
Dag-Erling Smørgrav
111ccd256c
Aggressive cleanup of warnings + authtok-related code in preparation for
...
PAMifying passwd(1).
Sponsored by: DARPA, NAI Labs.
2002-04-06 19:30:04 +00:00
Dag-Erling Smørgrav
18006b1ab8
Disconnect pam_passwdqc for now, it has some issues that need resolving.
2002-04-06 19:25:36 +00:00
Dag-Erling Smørgrav
4004c08e79
Fix some style issues, a const warning, and abuse of PAM_ABORT.
...
Sponsored by: DARPA, NAI Labs
2002-04-06 14:25:04 +00:00
Ruslan Ermilov
dab8ffaac3
Polish previous revision.
2002-04-06 09:54:17 +00:00
Matthew Dillon
87bd4d6ceb
Fix ether_ntoa() to generate the %02x format people expect, instead of %x,
...
for the ethernet address.
MFC after: 1 day
2002-04-06 05:21:57 +00:00
Thomas Moestl
ca31253aa8
htonl() and ntohl() operate on unsinged types, so they must zero-extend,
...
not sign-extend. Fix a comment in the former to that effect, and change
the latter over to do the right conversion.
2002-04-06 00:07:15 +00:00
Dag-Erling Smørgrav
40b93e6278
Remove some duplicate free()s and add some that were missing.
...
Submitted by: tmm
2002-04-05 20:00:05 +00:00
Dag-Erling Smørgrav
f8334e0084
pam_get_pass() -> pam_get_authtok()
2002-04-05 10:49:45 +00:00
Dag-Erling Smørgrav
8f85b6caad
Upgrade to something quite close, but not identical, to version 1.6 of
...
Andrew Korty's pam_ssh. The most notable difference is that this uses
commas rather than colons to separate items in the "keyfiles" option.
Sponsored by: DARPA, NAI Labs
2002-04-04 18:45:21 +00:00
Dag-Erling Smørgrav
2b814c7ea1
Add pam_passwdqc to the build.
...
Sponsored by: DARPA, NAI Labs
2002-04-04 16:08:28 +00:00
Poul-Henning Kamp
6a263fa41d
Initial deorbit burn for the undocumented and unused d_boot[01]
...
fields of struct disklabel.
Sponsored by: DARPA and NAI Labs.
2002-04-03 15:44:53 +00:00
Hajimu UMEMOTO
3d246faa5a
When _kevent() returns with errno = EINTR and timeout is not
...
exceeded, it should be falldown to next_ns.
MFC after: 1 week
2002-04-01 16:09:45 +00:00
Kris Kennaway
3167dde2d5
Work around a gcc bug which causes zlib to dump core in certain
...
situations. This can be removed once gcc is fixed.
Submitted by: bde
2002-03-31 23:47:52 +00:00
Mark Murray
4cd0119367
Do not use __progname directly (except in [gs]etprogname(3)).
...
Also, make an internal _getprogname() that is used only inside
libc. For libc, getprogname(3) is a weak symbol in case a
function of the same name is defined in userland.
2002-03-29 22:43:43 +00:00
Josef Karthauser
7b8cfc5217
Install libusbhid, and use it instead of libusb.
...
MFC after: 6 days
2002-03-28 18:44:25 +00:00
Josef Karthauser
7793e75522
Update the documentation to reflect the change from libusb to libusbhid.
...
MFC after: 6 days
2002-03-28 18:22:33 +00:00
Josef Karthauser
5450b5b0c2
Finish the libusb.h -> libusbhid.h migration.
...
MFC after: 7 days
2002-03-28 11:42:45 +00:00
Josef Karthauser
bd819be9c6
Rename libusb.h to libusbhid.h, via a repocopy.
...
MFC after: 7 days
2002-03-28 01:42:36 +00:00
Josef Karthauser
a6402160b1
Follow NetBSD and rename libusb to libusbhid.
...
MFC after: 7 days
2002-03-27 16:07:20 +00:00
David E. O'Brien
57f8b17ed0
Embellish more.
2002-03-26 23:09:34 +00:00
David E. O'Brien
54a5fb6c94
Embellish the comment.
2002-03-26 23:08:42 +00:00
Bruce Evans
46d7c2979e
Resurrect Lite1's gamma() as C99's tgamma(). Minimal changes.
2002-03-26 11:59:29 +00:00
Bruce Evans
675902aa73
Fixed some bugs in the description of plain gamma() (and gammaf()).
...
Give a more detailed and correct history of when gamma() was actually
the gamma function.
2002-03-26 10:18:20 +00:00
Bruce Evans
6898f8c48e
Fixed some minor style bugs.
2002-03-26 09:18:09 +00:00
Bruce Evans
514a0ae7d2
Fixed some style bugs in the removal of __P(()). Some function parameter
...
lists were outdented to column 0.
2002-03-26 01:35:05 +00:00
Poul-Henning Kamp
fe681e1955
Fix grammer in comment.
...
Submitted by: Engin Gunduz <engin@ripe.net>
2002-03-25 15:55:36 +00:00
Poul-Henning Kamp
42c159fe38
Modernize my email address.
2002-03-25 14:12:49 +00:00
Poul-Henning Kamp
06229ad2af
Modernize my email address
2002-03-25 13:53:46 +00:00
Poul-Henning Kamp
aaead0dfe9
Modernize my email address.
2002-03-25 13:52:45 +00:00
Poul-Henning Kamp
adf75add2d
Modernize my email-address.
2002-03-25 13:48:53 +00:00
Dima Dorfman
e10bdff354
A break after a return is useless.
2002-03-24 08:38:21 +00:00
Dima Dorfman
3afe2c7806
Fix braino.
2002-03-24 06:30:28 +00:00
David E. O'Brien
ecaaecd7a4
Update comments. We uniformly use __FBSDID in libc now.
2002-03-23 20:08:00 +00:00
David E. O'Brien
15164b99cc
W/o __P, the internal declarations will all fit on one line.
2002-03-23 18:22:40 +00:00
David E. O'Brien
327e1e773f
Style nit.
2002-03-23 18:14:20 +00:00
David E. O'Brien
a378c419fe
Remove prototype, no other crt1.c has or needs it.
2002-03-23 18:14:04 +00:00
David E. O'Brien
d9c0a739c5
Remove these abortive MIPS bits.
2002-03-23 17:55:32 +00:00
Warner Losh
bb28f3c29b
Breath deep and take __P out of the system include files.
...
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
2002-03-23 17:24:55 +00:00
David E. O'Brien
c04447ba03
Standardize on our SCM ID style.
2002-03-23 02:44:19 +00:00
David E. O'Brien
0f4f02856d
Restore CSRG ID's lost in January 1995.
2002-03-23 02:10:28 +00:00
David E. O'Brien
1114a754ed
Fix the style of the SCM ID's.
...
I believe have made all of libc .h's as consistent as possible.
2002-03-22 23:42:05 +00:00
David E. O'Brien
d3d20c8267
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 23:18:37 +00:00
David E. O'Brien
74fd44fc19
Fix the style of the SCM ID's.
...
I believe have made all of libc .h's as consistent as possible.
2002-03-22 23:18:17 +00:00
David E. O'Brien
333fc21e3c
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 21:53:29 +00:00
David E. O'Brien
4b74b09895
Back out last commit (rev 1.2). I thought I caught this file in time
...
when deP'ing. But I guess not.
2002-03-22 19:45:43 +00:00
Alfred Perlstein
b275d8fe48
Constify the first arg to callrpc(3).
2002-03-22 19:19:32 +00:00
Ruslan Ermilov
d848d77ad7
This library uses its own versions of some of the system headers.
...
Protect against CFLAGS having -I/usr/include listed explicitly.
The real solution would be to fix the library. XXX
2002-03-22 18:34:52 +00:00
David E. O'Brien
078c6f985a
SCM ID tweak.
2002-03-22 09:27:59 +00:00
David E. O'Brien
1372519b15
Remove multi-line __P() usage.
2002-03-22 09:22:15 +00:00
Mark Murray
b51066a362
Fix for OPIE 2.4.
2002-03-22 09:20:05 +00:00
David E. O'Brien
674c351892
Remove __P() usage.
2002-03-22 09:16:59 +00:00
Warner Losh
80578e902c
const poison just like NetBSD.
2002-03-22 02:43:01 +00:00
Warner Losh
ae10a3fcce
Make user_from_uid and group_from_gid return const char *, just like
...
NetBSD. Update man page to reflect this.
2002-03-22 02:35:47 +00:00
Mark Murray
0696ed0c00
Updates for OPIE 2.4.
2002-03-22 00:12:20 +00:00
David E. O'Brien
69160b1eb7
Remove __P() usage.
2002-03-21 23:54:04 +00:00
David E. O'Brien
4d826ecfbc
Remove __P() usage.
2002-03-21 23:43:04 +00:00
David E. O'Brien
be04b6d190
Remove 'register' keyword.
2002-03-21 23:39:28 +00:00
David E. O'Brien
c05ac53b8b
Remove __P() usage.
2002-03-21 22:49:10 +00:00
David E. O'Brien
8fb3f3f682
Remove 'register' keyword.
2002-03-21 18:49:23 +00:00
David E. O'Brien
84c63a156a
Fix SCM ID's.
2002-03-21 18:06:09 +00:00
Bruce Evans
4bcae9ff30
Removed the last vestiges of libm. These have been repo-copied to
...
msun/bsdsrc. Everything except true gamma() and its support functions
was superseded by msun long ago, at least on IEEE machines.
2002-03-21 11:33:50 +00:00
Maxim Sobolev
0414cddfc8
Kill debugging printf() slipped into my last commit.
...
Noticed by: jhb
Hall of shame entry: sobomax
2002-03-21 07:31:48 +00:00
Peter Wemm
cc2dbb21e5
Move swapcontext.c to the ${MACHINE_ARCH}/gen/Makefile.inc area, otherwise
...
it causes undefined references to getcontext() and setcontext() on
platforms other than i386 and alpha.
2002-03-21 06:45:32 +00:00
Bruce Evans
fef402be9d
Removed all files in libm except README-FREEBSD and files needed to
...
implement tgamma().
2002-03-21 00:42:48 +00:00
Ruslan Ermilov
6dd2704c7a
mdoc(7) police: Fixed the spammage of this file with trailing whitespaces
...
in revisions 1.26-1.28. Fixed two bugs in punctuation cleanup in rev. 1.27.
Removed hard sentence break not killed by rev. 1.26.
2002-03-20 13:40:08 +00:00
Daniel Eischen
3003bdb598
Add the ability to recognize old references to keys, and return NULL
...
when old keys are referenced (after pthread_key_delete()) via
pthread_getspecific().
2002-03-19 22:58:56 +00:00
Peter Wemm
2794bddccf
Add -ffreestanding to CFLAGS for ia64. This should probably be global
...
like on the kernel.
2002-03-19 12:03:05 +00:00
Ruslan Ermilov
7d1f1e9ca8
mdoc(7) police: fix SYNOPSIS, sort xrefs, kill extra whitespace.
2002-03-18 15:59:53 +00:00
Ruslan Ermilov
b6b2be6fbe
mdoc(7) police: nits.
2002-03-18 15:55:53 +00:00
Ruslan Ermilov
8ce6622380
mdoc(7) police: sort xrefs, kill extra whitespace.
2002-03-18 15:52:28 +00:00
Ruslan Ermilov
c8c5079d10
mdoc(7) police: tidy up.
2002-03-18 15:44:27 +00:00
Crist J. Clark
51906f452e
Fix world breakage introduced by my recent modifications to
...
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.
Submitted by: Peter Pentchev <roam@ringlet.net>
2002-03-18 12:55:28 +00:00
Dima Dorfman
1dd9f42a29
mdoc(7) police: bump document date to the date of the last interface
...
change (revision 1.2 of devname.c on 1999/07/18), don't put quotes
around a path, and use .Dv where appropriate.
2002-03-18 02:36:43 +00:00
Dima Dorfman
f04938aa8e
Update to reflect reality; devname(3) hasn't returned NULL on failure
...
since revision 1.2 of devname.c (1999/07/18). While I'm here, note,
in the BUGS section, that the returned pointer is to a static buffer.
2002-03-18 02:32:53 +00:00
Dima Dorfman
8c237a536c
Features are deprecated, not depreciated.
...
PR: 35987
Submitted by: shill@free.fr
2002-03-18 01:52:19 +00:00
Maxim Sobolev
fb74e5f595
Add splitfs vfs layer into libstand, which allows loading big kernels and
...
modules split across several physical medias. Following is how it works:
The splitfs code, when asked to open "foo" looks for a file "foo.split"
which is a text file containing a list of filenames and media names, e.g.
foo.aa "Kernel floppy 1"
foo.ab "Kernel floppy 2"
foo.ac "Kernel and modules floppy"
For each file segment, the process is:
- try to open the file
- prompt "Insert the disk labelled <whatever> and press any key..."
- try to open the file
- return error if file could not be located
RE team is free to use this feature in the upcoming 5.0-DP1.
Reviewed by: msmith, dcs
2002-03-17 12:18:05 +00:00
David E. O'Brien
917356f5f6
Revert part of rev 1.3 -- we need the calls to _init and _fini.
2002-03-16 20:38:46 +00:00
Dag-Erling Smørgrav
042df45ade
Document PT_IO, and move the comment about machine-dependent requests
...
below PT_[GS]ET_{,DB,FP}REGS.
2002-03-16 03:50:32 +00:00
Dag-Erling Smørgrav
8bd8a375a4
Further cleanup (punctuation, genitive)
2002-03-16 03:26:32 +00:00
Dag-Erling Smørgrav
c2912c0369
Insert newlines between sentences and rewrap paragraphs. No changes to
...
the actual text or markup.
2002-03-16 02:54:17 +00:00
Brian S. Dean
b18ae9245d
Fix the return code from pthread_rwlock_try[rw|rd]lock() functions;
...
these should return EBUSY when the calling thread would block.
MFC after: 2 weeks
2002-03-15 18:27:58 +00:00
Ruslan Ermilov
a68af001da
mdoc(7) police: tiny fixes.
2002-03-15 18:09:32 +00:00
Ruslan Ermilov
3e5aa36e12
mdoc(7) police: expand contractions.
2002-03-15 18:06:25 +00:00
Ruslan Ermilov
d78dca323f
mdoc(7) police: hard sentence breaks, whitespace at EOL, contractions.
2002-03-15 18:04:00 +00:00
Ruslan Ermilov
ba8bcff1e8
mdoc(7) police: Fix xref to timeradd(3).
2002-03-15 17:59:46 +00:00
Ruslan Ermilov
d7396394e7
mdoc(7) police: punctuation nit.
2002-03-15 17:57:41 +00:00
Ruslan Ermilov
dab055db89
bde got caught by mdoc(7) police. :-)
2002-03-15 17:53:20 +00:00
Ruslan Ermilov
9a04350e3d
mdoc(7) police: don't you notice the warnings?
2002-03-15 17:50:21 +00:00
Ruslan Ermilov
f3a90e8782
Come on guys, you can't just take OpenBSD manpage and commit it
...
over someone else's fixes; this is at least offensive. If you
have problems doing a proper merge, we are here, your fellow
committers. :-(
Reapply markup fixes from revision 1.2 and fix some more. Also
fix the $OpenBSD$ tag.
2002-03-15 17:46:53 +00:00
David E. O'Brien
68a6b5e1ba
Remove trailing characters from #endif.
...
Actually this #endif is not needed, so remove leading characters also.
2002-03-15 09:58:45 +00:00
Dag-Erling Smørgrav
f03a4b810a
NAI DBA update.
2002-03-14 23:27:59 +00:00
Mark Murray
8c3ea588df
Remove the use of random(3), and encapsulate the salt-generation in
...
its own function. The use of arc4random(3) is hopeless overkill here,
but that does not hurt anything.
Requested by: ache
2002-03-14 16:41:36 +00:00
Maxim Konovalov
999ad26edb
Clarify fcntl(2) and flock(2) interoperability.
...
PR: docs/23353
Reviewed by: ru, dillon
Approved by: ru
MFC after: 3 days
2002-03-14 11:02:35 +00:00
Brian Feldman
5bd33b09b8
Remove some files we don't want.
2002-03-11 22:53:27 +00:00
Brian Feldman
de0a8799ad
s/nilename/filename/
2002-03-11 22:36:45 +00:00
Brian Feldman
4d22b11a56
Fix conflicts.
2002-03-11 22:36:26 +00:00
Brian Feldman
422658d924
This commit was generated by cvs2svn to compensate for changes in r92111,
...
which included commits to RCS files with non-trunk default branches.
2002-03-11 22:30:00 +00:00
Brian Feldman
cdbc2952f3
Import zlib 1.1.4 onto the vendor branch.
2002-03-11 22:30:00 +00:00
Brian Feldman
40b687d4f8
This commit was generated by cvs2svn to compensate for changes in r92109,
...
which included commits to RCS files with non-trunk default branches.
2002-03-11 22:29:59 +00:00
Brian Feldman
4193647780
Import zlib 1.1.4 onto the vendor branch.
2002-03-11 22:29:59 +00:00
Thomas Moestl
d095bc220d
Fix some bugs that would prevent %fsr to be set correctly, and add
...
support for fcmp and fcmpe instructions with a condition code
specification other than %fcc0.
This (primarily the first part) seems to fix a lot of problems that
people were seeing, e.g. perl and gawk failures.
Reported and analyzed by: wollman
2002-03-11 03:18:17 +00:00
Thomas Moestl
61de6bb54c
Account for <machine/fsr.h> no longer being usable for assembler code.
2002-03-11 03:13:02 +00:00
Thomas Moestl
57f31f4714
Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),
...
and make it PIC-aware.
2002-03-11 03:10:55 +00:00
Thomas Moestl
9300cb7db7
Save/restore the %y register around calls to the C user trap handler;
...
gcc emits the deprecated sparc v8 instructions that use this register
when optimizing for UltraSparc machines because they are apparetly
faster then their v9 counterpars there.
2002-03-11 02:53:03 +00:00
David E. O'Brien
8d72757aba
Sync with csu/alpha/Makefile: build crt{i,n}.o.
...
Leave crtbegin* to the compiler vendor.
2002-03-10 23:33:49 +00:00
Bill Fumerola
29ec623730
cosmetic: spell 'cashe' as 'cache'
2002-03-10 12:08:28 +00:00
Dima Dorfman
38261ac8d6
Don't refer the reader to look for a word that doesn't exist anywhere
...
else in the page.
PR: 35623
Submitted by: Gary W. Swearingen <swear@blarg.net>
2002-03-10 09:20:28 +00:00
Mike Barcroft
d846855da8
o Don't require long long support in bswap64() functions.
...
o In i386's <machine/endian.h>, macros have some advantages over
inlines, so change some inlines to macros.
o In i386's <machine/endian.h>, ungarbage collect word_swap_int()
(previously __uint16_swap_uint32), it has some uses on i386's with
PDP endianness.
Submitted by: bde
o Move a comment up in <machine/endian.h> that was accidentially moved
down a few revisions ago.
o Reenable userland's use of optimized inline-asm versions of
byteorder(3) functions.
o Fix ordering of prototypes vs. redefinition of byteorder(3)
functions, so that the non-GCC (libc asm) case has proper
prototypes.
o Add proper prototypes for byteorder(3) functions in <sys/param.h>.
o Prevent redundant duplicate prototypes by making use of the
_BYTEORDER_PROTOTYPED define.
o Move the bswap16(), bswap32(), bswap64() C functions into MD space
for platforms in which asm versions don't exist. This significantly
reduces the complexity of some things at the cost of duplicate code.
Reviewed by: bde
2002-03-09 21:02:16 +00:00
David Malone
94998878b7
If syslog fails to talk to syslogd, then it tries to write a message
...
to the console in a final attempt to log something. Make this final
attempt non-blocking so that a blocking console doesn't end up
blocking process which attempt to syslog something.
In particular, this means you should be able to su and fix the
problem if the console becomes blocking.
MFC after: 3 weeks
2002-03-09 11:38:01 +00:00
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
Alfred Perlstein
5bcd0580d7
Prefix structure members to protect them against clashes with eg.
...
c++ keywords.
This keeps us in sync with NetBSD because they actually committed
my delta first.
Ok'd by: lennard
2002-02-20 20:47:21 +00:00
Maxim Sobolev
c80f5647cb
Create /var/log/lastlog if it doesn't exist.
...
Submitted by: des
2002-02-20 07:47:06 +00:00