Eivind Eklund
630dc76f4e
Restore old semantics (broken in rev 1.47's buffer overflow fix).
1998-12-17 16:31:02 +00:00
Bruce Evans
bc701368b4
<sys/types.h> isn't a prerequisite for <kvm.h>.
1998-12-16 19:12:14 +00:00
Bruce Evans
424a876474
The previous commit was bogus. <stdlib.h> was never a prerequisite
...
for <kvm.h> or kvm_getloadavg(), and <sys/types.h> was only a
prerequisite for <kvm.h> when <kvm.h> was broken.
1998-12-16 19:04:54 +00:00
Bruce Evans
b245b90a64
Declare size_t and ssize_t if they are not already declared, so that
...
<kvm.h> is self-sufficient again.
Moved typedefs and forward struct declarations out of __BEGIN_DECLS/
__END_DECLS.
Don't comment out the prototype for kvm_uread(). This was a 4 year
old kludge for previous breakage of self-sufficiency. The prototypwe
was broken instead.
Fixed bitrot (const poisoning) in the type of kvm_uread().
Fixed order of the declaration of kvm_uread().
1998-12-16 18:59:47 +00:00
Bruce Evans
60160c5e50
Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This
...
fixes a type mismatch in the call to kvm_uread(). The bug has gone
undetected for almost 3 years because kvm_uproc()'s protoype has been
disabled for almost 4 years.
Trust sysctlbyname() to work properly if it succeeds.
Fixed style bugs in revs. 1.19 and 1.22.
1998-12-16 18:31:51 +00:00
Bruce Evans
8495e302f6
Declare setproctitle() as printf0-like.
1998-12-16 17:52:15 +00:00
Bruce Evans
d529713846
Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This is
...
an unimprovement here. I thought it would be an improvement, as in libkvm,
but here we can access the strings directly.
Use sysctlbyname() instead of sysctl() and trust it to give a nonzero
address if it succeeds.
1998-12-16 17:34:05 +00:00
Dag-Erling Smørgrav
5aea254ff0
Implement and document fetchStatFTP.
...
Update description of struct url_stat in the man page.
Clean up error handling in ftp.c.
1998-12-16 15:29:03 +00:00
Dag-Erling Smørgrav
3b7a67401b
Remove unused header files. Fix a few shadowing bugs. Improve error reporting.
1998-12-16 11:44:31 +00:00
Dag-Erling Smørgrav
0fba3a0005
Add verbose flag, and support functions.
...
Brucify the Makefile.
Differentiate atime and mtime in fetch*Stat().
Fix a few pointer bugs.
Tweak some error messages.
Don't #include sys/param.h and stdio.h in fetch.h.
Document that sys/param.h and stdio.h must be #included before fetch.h.
1998-12-16 10:24:55 +00:00
Peter Wemm
3cc1b1bf9c
Old stuff laying around: Don't use a function called getstr(), that has
...
nasty consequences when the system curses is ncurses as this conflicts
with a ncurses funciton and causes recursion.
1998-12-16 06:04:29 +00:00
Warner Losh
81e4e6a2d6
Add reminder to return memory allocated by this call.
...
Obtained from: OpenBSD
1998-12-16 04:39:23 +00:00
Dag-Erling Smørgrav
2878b30827
Fix the "Unknown HTTP error" message.
...
Make compile_et generate prototypes.
1998-12-15 12:24:26 +00:00
Wes Peters
b1e12513fa
Reviewed by: JKH
...
Submitted by: Wes Peters
Added strtok_r (reentrant) function and man page.
1998-12-14 05:11:26 +00:00
Matthew Dillon
374fad8b17
Reviewed by: freebsd-current
...
Add bounds checking to netbios NS packet resolving code. This should
prevent natd from crashing on badly formed netbios packets (as might be
heard when the machine is sitting on a cable modem or certain DSL
networks), and also closes potential security holes that might have
exploited the lack of bounds checking in the previous version of the
code.
1998-12-14 02:25:32 +00:00
Steve Price
4c1a815f94
Commit out caveat about hardlinks to directories since they are
...
no longer possible.
PR: 8337
1998-12-13 23:35:01 +00:00
Matthew Dillon
9a0d08d599
PR: docs/9050
...
Add reference to required include file #include <stdlib.h> for
getloadavg(3) function call.
1998-12-13 02:34:56 +00:00
Matthew Dillon
36058b68da
Add required #include references to manual page
1998-12-13 02:32:59 +00:00
Matthew Dillon
0e31b6b580
oops. Fix indentation of the 'for' loop I just added.
1998-12-13 01:39:32 +00:00
Matthew Dillon
f16d2ab2d3
Handle the race condition where vipw may lock a password file which has
...
just been replaced. After our lock succeeds we check if st_nlink is 0
and if it is we close the descriptor and retry our open/lock sequence.
1998-12-13 01:36:45 +00:00
Doug Rabson
25b30a3ebb
Add a simple library for accessing i/o ports and memory on the alpha.
...
This is only intended for use by the X server.
1998-12-12 18:05:06 +00:00
John Birrell
b6776b7488
CALL -> PCALL for sigaltstack for libc_r.
1998-12-10 20:36:24 +00:00
John Birrell
7897c2a418
Don't hide mknod, it doesn't need a wrapper and never has had one.
1998-12-10 20:27:52 +00:00
Steve Price
7b505024ed
Add missing int to prototypes of mvaddstr and mvaddnstr.
...
PR: 8110
Submitted by: Stephen J. Roznowski <sjr@home.net>
1998-12-10 02:35:24 +00:00
Bruce Evans
0fe8d9f3dd
Removed unused include of <kvm.h>. It was alarming for libc to apparently
...
depend on libkvm.
Removed obsolete `#define _NEW_VFSCONF'.
1998-12-07 11:26:28 +00:00
Matthew Dillon
4bc34f94d6
Obtained from: "Jan B. Koum " <jkb@best.com>
...
Add a reference to pam(8) in the login(1) and login.access(5) manual
pages.
1998-12-01 17:05:08 +00:00
Nate Williams
738006fa2c
- Fix modulo bug that was masked by the correct code in libgcc.a which is
...
used in almost all programs unless a shared library specifically
ignores libgcc.a.
1998-11-30 20:25:37 +00:00
Doug Rabson
3e0f4b28d6
On the alpha, sizeof(char*) != sizeof(int) which was assumed in
...
term_init(). This is the cause of /usr/bin/ftp faulting on the alpha.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-11-30 10:12:03 +00:00
Bruce Evans
d14e80a4d3
Fixed SUBDIR order.
1998-11-29 02:47:52 +00:00
Eivind Eklund
07bab7c6a4
Add support for pthread_mutexattr_settype(). As a side effect of
...
testing this, fix MUTEX_TYPE_COUNTING_FAST. Recursive locks now work.
1998-11-28 23:52:58 +00:00
Joseph Koshy
2d08e623c1
Enable aio_read(2).
1998-11-24 08:15:08 +00:00
Joseph Koshy
5f67a9c8a1
Don't mention exit(3) in explanation; _exit(2) is a better choice.
1998-11-23 03:23:14 +00:00
John Polstra
c273f24b99
Install PAM modules into ${SHLIBDIR}, not ${LIBDIR}.
...
Noticed by: bde
1998-11-22 19:33:27 +00:00
John Polstra
1fc5cffd7b
Explicitly depend on libcrypt and libmd for a.out too. Fixes a PAM
...
related problem on a.out systems.
1998-11-22 19:26:39 +00:00
Jordan K. Hubbard
efbcb4ae03
Better document the file format, add in support for nested {}'s in multi-line
...
property values.
1998-11-22 13:20:09 +00:00
John Polstra
60da54eec3
Make sure libskey is built before libpam. It is required for one of
...
the PAM modules.
Fix the comments describing the PAM dependencies to be consistent
with other related comments.
Restructure the library-building loop slightly, per suggestion from
bde.
1998-11-20 02:03:45 +00:00
John Polstra
b2052ac8cf
Fix a couple of typos.
1998-11-19 18:07:28 +00:00
Joseph Koshy
cbffe59841
Man page for aio_read(2).
...
Submitted by: Terry Lambert <terry@whistle.com> on the -doc lists.
1998-11-19 04:07:55 +00:00
John Polstra
4820dc85d6
Enable the building of libpam. Move libradius and libtacplus up in
...
the list, because they are prerequisites for libpam.
1998-11-18 02:02:27 +00:00
John Polstra
9a10bb17e1
Build structure for contribified Linux-PAM, plus some home-grown
...
modules for FreeBSD's standard authentication methods. Although
the Linux-PAM modules are present in the contrib tree, we don't
use any of them.
The main library "libpam" is composed of sources taken from three
places. First are the standard Linux-PAM libpam sources from the
contrib tree. Second are the Linux-PAM "libpam_misc" sources, also
from the contrib tree. In Linux these form a separate library.
But as Mike Smith pointed out to me, that seems pointless, so I
have combined them into the libpam library. Third are some additional
sources from the "src/lib/libpam" tree with some common functions
that make it easier to write modules. Those I wrote myself.
This work has been donated to FreeBSD by Juniper Networks, Inc.
1998-11-18 01:44:37 +00:00
Jean-Marc Zucconi
9ba91dd44b
Add an emply MAIN__() function. This avoid an unresolved reference error
...
during link phase when using fortran subroutines with non-fortran 'main()'.
1998-11-16 23:51:14 +00:00
Jacques Vidrine
90d1ac3b67
Update to reflect reality.
...
PR: kern/8629
1998-11-16 03:49:39 +00:00
Kenneth D. Merry
b735c71405
Use snprintf to make sure we don't overflow a buffer.
1998-11-15 23:17:39 +00:00
Kenneth D. Merry
2327ec3a76
Fix an error message. (it was using an uninitialized variable)
...
Reported by: dan@math.berkeley.edu (Dan Strick)
1998-11-15 23:12:42 +00:00
John Birrell
4896148e72
Interrupt threads waiting in select etc.
...
Submitted by: Alec Wolman <wolman@cs.washington.edu>
1998-11-15 10:01:34 +00:00
John Birrell
e7b7b3f3de
Close a window between unlocking a spinlock and changing the thread state.
1998-11-15 09:58:26 +00:00
John Polstra
468662e864
Enable libradius and libtacplus.
1998-11-13 01:01:37 +00:00
John Polstra
2c195535b5
Initial import of TACACS+ client library donated by Juniper Networks, Inc.
1998-11-13 00:54:26 +00:00
John Polstra
082bfe6741
Initial import of RADIUS client library donated by Juniper Networks, Inc.
1998-11-13 00:53:01 +00:00
John Polstra
d3b89ae3a4
Build libmd shared for a.out too. Required for some PAM modules.
1998-11-12 04:08:10 +00:00