Dag-Erling Smørgrav
a45af0e2b0
We need pam_client.h from libpamc. This unbreaks world
...
Pointed out by: jhay
Pointy hat to: des
2001-12-06 12:35:18 +00:00
Wes Peters
f61a2ede84
New, improved, more Posix-compliant strerror_r implementation,
...
complete with documentation.
Reviewed by: mike@ gad@
MFC after: 1 week
2001-12-06 04:53:31 +00:00
Dag-Erling Smørgrav
87316434d1
Define PAM_READ_BOTH_CONFS. We can now have both /etc/pam.d and
...
/etc/pam.conf.
Sponsored by: DARPA, NAI Labs
2001-12-05 17:06:16 +00:00
Andrey A. Chernov
8ede26d773
Clarify ' ' space issue
2001-12-05 16:33:11 +00:00
Dag-Erling Smørgrav
bda74fe925
Install the correct version of pam_misc.h.
...
Sponsored by: DARPA, NAI Labs
2001-12-05 16:27:41 +00:00
Dag-Erling Smørgrav
8d3978c115
Add dummy functions for all module types. These dummies return PAM_IGNORE
...
rather than PAM_SUCCESS, so you'll get a failure if you list dummies but
no real modules for a particular module chain.
Sponsored by: DARPA, NAI Labs
2001-12-05 16:06:35 +00:00
Dag-Erling Smørgrav
d5a8dd3fb5
Connect the man page to the build.
...
Sponsored by: DARPA, NAI Labs
2001-12-05 16:02:50 +00:00
Dag-Erling Smørgrav
e2c8459e85
Add a pam_self authentication module that succeeds if and only if the local
...
and remote user names are the same.
Sponsored by: DARPA, NAI Labs
2001-12-05 15:55:14 +00:00
Ruslan Ermilov
dd98d57b45
mdoc(7) police: markup the previous delta.
2001-12-04 16:09:27 +00:00
Dag-Erling Smørgrav
6478822fba
Correct some egregious style bugs.
2001-12-04 12:32:35 +00:00
Dag-Erling Smørgrav
a8adfe18ce
Add a missing error check. This fixes a bug that would cause pwd_mkdb to
...
dump core if invoked with an input file that looks like a password file
but isn't (e.g. /etc/group).
PR: 32378
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
MFC after: 1 week
2001-12-04 12:31:02 +00:00
Dag-Erling Smørgrav
6598654546
Properly handle being redirected to an FTP URL.
...
Also fix a couple of not-so-minor bugs:
- missing case for HTTP_SEE_OTHER
- incorrect definition of HTTP_NEED_PROXY_AUTH
PR: 20259
MFC after: 2 weeks
2001-12-04 01:12:51 +00:00
Dag-Erling Smørgrav
89db7b8c6d
Add prototype for _ftp_request().
2001-12-04 01:10:34 +00:00
Dag-Erling Smørgrav
102a87c1e1
Reorganize to reduce code duplication.
2001-12-04 01:09:19 +00:00
Anton Berezin
b9449db117
Fix typos getpeerid -> getpeereid.
...
PR: docs/32442
Reviewed by: dd
2001-12-02 23:50:40 +00:00
Mark Murray
1a8b24c257
Use __FBSDID(). Also do a bit of cosmetic #if and header-order
...
cleaning-up.
2001-12-02 20:54:57 +00:00
Peter Wemm
6464bbfa03
Use the merged strtod.c everywhere. This has been tested on alpha and
...
ia64.
2001-12-02 18:27:40 +00:00
Andrey A. Chernov
e3a3c468a5
Remove specific reference to ASCII space (' '), it is true for localized
...
spaces too
2001-12-02 12:31:44 +00:00
Andrey A. Chernov
4bd71a3c89
Make it works for non ASCII compatible encodings too.
...
The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
2001-12-02 09:15:54 +00:00
Mark Murray
d2f6cd8fd5
Style fixups.
...
Sort function declarations, includes. Make consistent WRT use of _P()
macro (ugh!)
Inspired by: bde
2001-12-01 21:12:04 +00:00
Mark Murray
e317b97026
WARNS=2 fixes.
...
Reviewed by: bde (a while back)
2001-12-01 17:46:46 +00:00
Joseph Koshy
4d44f0b5a3
Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).
...
This API is supported in SVR4.0MP, Solaris, Linux, AIX and Tru64 Unix.
PR: bin/27489
Submitted by: Arun Sharma <arun@sharma-home.net>
Reviewed by: bde (prior version)
2001-12-01 12:07:42 +00:00
Mike Barcroft
de2656d0ed
o Stop abusing MD headers with non-MD types.
...
o Hide nonstandard functions and types in <netinet/in.h> when
_POSIX_SOURCE is defined.
o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>.
o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new
__FBSDID() macro.
o Fix some miscellaneous issues in <arpa/inet.h>.
o Correct final argument for the inet_ntop() function (POSIX.1-200x).
o Get rid of the namespace pollution from <sys/types.h> in
<arpa/inet.h>.
Reviewed by: fenner
Partially submitted by: bde
2001-12-01 03:43:01 +00:00
Mark Murray
33cc94ddaf
Merge the (in)complete ANSIfication work from src/crypto/telnet.
2001-11-30 22:37:28 +00:00
Mark Murray
018925b883
Invoke the new 'unifdef:' target, and make this lib a complete subset
...
of the crypto (master) code.
2001-11-30 21:55:10 +00:00
Mark Murray
b3c1c587b6
Diff-reduce WRT src/secure/*telnet*/Makefile.
...
Also, add an "unifdef:" target, so that the telnet sources can
be remade from the crypto sources in src/crypto/telnet.
2001-11-30 21:34:51 +00:00
Alexey Zelkin
4a57e677c7
Merge NetBSD's changes from netbsd_strtod.c in preparation of
...
removing it from our source tree in order to have one version
of strtod() for all arches. netbsd_strtod.c still left in source
tree until alpha folks make sure that our native strtod() works
as well as NetBSD's one.
Reviewed by: peter, bde (some time ago)
2001-11-30 12:48:30 +00:00
Alfred Perlstein
25993d3a47
Back out my 'fix', resid is different for strategy than for write
2001-11-30 06:24:34 +00:00
Bill Fenner
7735bb0f64
Implement several of the c99 updates to printf(3):
...
- New length modifiers: hh, j, t, z.
- New flag: '. Note that %'f is not yet implemented.
- Use "inf"/"nan" for efg formats, "INF"/"NAN" for EFG formats.
- Implemented %q in terms of %ll; if "quad_t" is not "long long"
%q will break.
Still to do:
- %C, %S, %lc, %ls (wide character support)
- %'f (thousands in integer portion of %f)
- %a/%A (exact hex representation of floating-point numbers)
Garrett Wollman wrote the first version of the vfprintf.c update;
Mike Barcroft wrote the first version of the printf.3 changes.
2001-11-30 06:12:15 +00:00
Alfred Perlstein
58cbb07307
Make the same fix for writes to RAW objects.
2001-11-30 05:59:47 +00:00
Alfred Perlstein
fd19a949b4
write should return the number of bytes written, not 0 on success.
...
Submitted by: Jonathan Mini <mini@haikugeek.com>
PR: kern/32350
2001-11-30 05:54:30 +00:00
Andrey A. Chernov
f2f94c9675
Clarify isblank range
2001-11-30 05:39:08 +00:00
Andrey A. Chernov
a72d401cce
Clarify valid isspace() range
2001-11-30 02:01:32 +00:00
Brian Feldman
7d8cee925b
Fix pam_ssh by adding an IPv4or6 (evidently, this was broken by my last
...
OpenSSH import) declaration and strdup(3)ing a value which is later
free(3)d, rather than letting the system try to free it invalidly.
2001-11-29 21:16:11 +00:00
Andrey A. Chernov
307b922e38
Clarify that is[x]digit() class is the same in any locale
2001-11-29 15:23:46 +00:00
Crist J. Clark
2d69bc9b8e
Duh. Back out most of my previous commit. It was mostly covered in the
...
STANDARDS section of the page. Add one remark there about inet_pton(3)
only understanding decimal values (in contrast to inet_aton(3) and
friends who are happy with 0ac.020.25 for 172.16.0.25).
Caught by: ru
MFC after: 2 days
2001-11-29 09:44:33 +00:00
Brian Feldman
017e11668f
Bump p1003.1-90 to p1003.1-96.
2001-11-29 03:21:16 +00:00
Gregory Neil Shapiro
48343ec717
rename() can't guarantee "to" always exists if it didn't exist in the first
...
place -- for example, rename("existing", "newfile"); on a read-only file
system.
Reviewed by: green
MFC after: 3 days
2001-11-29 03:17:12 +00:00
Andrey A. Chernov
2209d8a27c
Back out national digits support, POSIX explicetely disallows it:
...
The definition of character class digit requires that only ten characters
-the ones defining digits- can be specified; alternate digits (for
example, Hindi or Kanji) cannot be specified here. However, the encoding
may vary if an implementation supports more than one encoding.
The definition of character class xdigit requires that the characters
included in character class digit are included here also and allows for
different symbols for the hexadecimal digits 10 through 15.
2001-11-29 03:03:55 +00:00
Crist J. Clark
e1a5ca24ca
After the long explanaition of how the inet_* functions interpret
...
Internet addresses, point out that inet_pton(3) only understands
dotted quads with decimal values.
MFC after: 2 days
2001-11-29 00:56:45 +00:00
Anton Berezin
7d3346ca1f
Do not write warning messages on stderr - a caller is expected to check
...
the return code and errno instead. Those warnings did not do any good
for daemonized users of initgroups(3), and confused cvs clients that
communicated with non-root cvs pserver.
The committed fix differs from the one suggested in the PR, and was
submitted by ru.
PR: 15421
Approved by: markm
Discussed on: -stable, -current at various times
2001-11-28 10:55:02 +00:00
Dag-Erling Smørgrav
ca7e26e312
Mdoc police.
...
Submitted by: ru
2001-11-28 10:07:21 +00:00
Ruslan Ermilov
60c6736148
mdoc(7) police: fix one pam_unix(8) left-over, sort xrefs.
2001-11-28 09:25:03 +00:00
Andrey A. Chernov
87c25490c8
Don't ever assume that isdigit() is always subset of isxdigit()
2001-11-28 06:06:27 +00:00
Andrey A. Chernov
7bbd0c8b5b
Fix typo
2001-11-28 05:43:24 +00:00
Andrey A. Chernov
76604b47c1
Use stricter tests to disallow national digits > 9
...
Optimize national digits code a bit
2001-11-28 05:39:21 +00:00
Andrey A. Chernov
997aec5b67
Allow national (non-ASCII) digits
2001-11-28 04:57:48 +00:00
Andrey A. Chernov
01a0db1367
Allow national (non-ASCII) digits
2001-11-28 03:57:12 +00:00
Bill Fenner
9c5cbc30e7
Implement strtoimax() and strtoumax()
2001-11-28 03:37:06 +00:00
Bill Fenner
3b175d881c
Also mention "long long" in synopsis.
2001-11-28 03:36:05 +00:00
John W. De Boskey
a5f75648d8
Return a more meaningful errno when the length of the interpreter
...
exceeds MAXSHELLCMDLEN to avoid secondary /bin/sh execution.
Update execve man page to reflect change.
Increase MAXSHELLCMDLEN to a slightly more meaningful value.
PR: kern/32106
Submitted by: b@etek.chalmers.se
Reviewed by: bsd
MFC after: 2 weeks
2001-11-28 03:26:58 +00:00
Bill Fenner
b9004c1158
Base 36 is allowed.
2001-11-28 02:35:35 +00:00
Andrey A. Chernov
649ffc6d4b
Put back base > 35 check. If someone dislike it, plese discuss it with
...
standards group first.
2001-11-28 02:17:22 +00:00
Andrey A. Chernov
59d01330c4
Add atoll(3) to conform POSIX and C99
2001-11-28 01:22:08 +00:00
Andrey A. Chernov
7e302fc7a2
Understand national (non-ASCII) digits now
...
Allow bases >=36 again
Misc cleanup
2001-11-28 00:48:11 +00:00
John Baldwin
a1d8094b9e
Use 'mov' instead of 'lea' for setting the syscall number in %eax as that
...
is clearer about what we are actually doing.
Requested by: bde
2001-11-27 20:51:26 +00:00
Dag-Erling Smørgrav
6a13dede6c
Add a pam_set_item(3) man page with an MLINK to pam_get_item(3).
...
PR: docs/32294
Sponsored by: DARPA, NAI Labs
MFC after: 3 days
2001-11-27 15:36:35 +00:00
Ruslan Ermilov
8573e68110
When servicing an internal FTP server, punch ipfirewall(4) holes
...
for passive mode data connections (PASV/EPSV -> 227/229). Well,
the actual punching happens a bit later, when the aliasing link
becomes fully specified.
Prodded by: Danny Carroll <dannycarroll@hotmail.com>
MFC after: 1 week
2001-11-27 10:50:23 +00:00
Wes Peters
4f7d6d65dc
Must link strerror manpage to strerror_r.
...
Thanks for the review, Mike.
Submitted by: Mike Barcroft <mike@FreeBSD.org>
2001-11-27 07:57:31 +00:00
Wes Peters
9c324dc0c0
Add strerror_r function per Posix prototype.
...
Reviewed by: Mike Barcroft <mike@FreeBSD.org>
MFC after: 2 weeks
2001-11-27 07:39:46 +00:00
Dag-Erling Smørgrav
b4a475937b
Create a pam_ssh(8) man page, based on a repo-copy of pam_unix(8).
...
License modified with original author's permission.
Sponsored by: DARPA, NAI Labs
2001-11-27 00:57:50 +00:00
Dag-Erling Smørgrav
d65e5dfa59
Document the local_pass and nis_pass options, add a few xrefs, and reorder
...
the SEE ALSO section. License modified with original author's permission.
Sponsored by: DARPA, NAI Labs
2001-11-27 00:53:10 +00:00
Dima Dorfman
a48060a2f7
Spelling police: sucessful -> successful.
2001-11-24 23:41:32 +00:00
Ruslan Ermilov
e6cb3c3608
s/processes/files/ inherited from kvm_getprocs(3).
...
PR: docs/32252
Submitted by: tobez
2001-11-24 15:38:28 +00:00
Giorgos Keramidas
fe1b3cedf9
Be more explicit about the fact that realloc() might return a
...
different pointer than the one passed to it.
PR: docs/31925
Submitted by: Andrew <andrew@ugh.net.au>
2001-11-24 03:05:40 +00:00
Ruslan Ermilov
88961d09b1
mdoc(7) police: markup cleanup.
2001-11-22 11:17:58 +00:00
Ruslan Ermilov
1f41435506
mdoc(7) police: add missing comma.
2001-11-22 09:48:54 +00:00
Max Khon
1e45081335
fix compilation (include -> #include)
2001-11-21 20:40:21 +00:00
Ruslan Ermilov
b18f229930
mdoc(7) police: fixed typos and minor markup nits.
2001-11-21 16:19:50 +00:00
Ruslan Ermilov
224049f515
mdoc(7) police: markup nit in the actual rev. 1.13 changes.
2001-11-21 15:56:45 +00:00
Ruslan Ermilov
7b3fbdf9b4
mdoc(7) police: restore all FreeBSD fixes to this file that got
...
clobbered by previous commit.
2001-11-21 15:50:57 +00:00
Ruslan Ermilov
5e9a6d9d2b
mdoc(7) police: general cleanup.
2001-11-21 15:41:49 +00:00
Brian Feldman
70d2a9e100
Should also include namespace.h
...
Submitted by: ru
2001-11-21 15:33:40 +00:00
Brian Feldman
a939ced805
Change certain syscalls from x to _x.
...
Prodded by: bde
2001-11-21 14:44:52 +00:00
Ruslan Ermilov
f598d0519c
Grammar nit.
2001-11-21 09:25:14 +00:00
Ruslan Ermilov
487d13c0e7
mdoc(7) police: fixed bugs from rev. 1.15.
2001-11-20 16:40:04 +00:00
Brian Feldman
13d98e8c66
Introduce readpassphrase(3), a superset of getpass(3). This
...
comes originally from Todd Miller.
Obtained from: OpenBSD
2001-11-20 15:15:42 +00:00
Ruslan Ermilov
1ddfc2e3aa
mdoc(7) police: minor markup and spelling fixes.
2001-11-20 14:11:07 +00:00
Ruslan Ermilov
2f52231c66
mdoc(7) police: sort xrefs.
2001-11-20 13:58:21 +00:00
Ruslan Ermilov
872013cb2a
mdoc(7) police: consistently use the .Ux macro.
2001-11-20 13:54:11 +00:00
Ruslan Ermilov
d3eb181523
mdoc(7) police: remove whitespace at EOL.
2001-11-20 13:43:58 +00:00
John Baldwin
9c9c290361
Include sys/param.h instead of sys/types.h to get the definition of the
...
MIN() macro.
Pointy hat to: rwatson
2001-11-20 08:26:37 +00:00
Robert Watson
b5dfbbe3f3
o Cleanup of includes: user.h may be a catch-all, but that's not
...
entirely desirable. Back out previous commit, and clean up includes
to be more minimal.
Submitted by: bde
2001-11-19 21:14:50 +00:00
Robert Watson
123f65b0e9
#include <sys/user.h> rather than individually including a plethora
...
of kernel include files, reducing the replication of kernel include
dependency information in userland.
Obtained from: TrustedBSD Project
2001-11-19 15:26:36 +00:00
Jake Burkholder
125ccd2e6d
Actually build new files.
...
Forgotten by: jake
2001-11-19 00:19:49 +00:00
Jake Burkholder
a967158a85
libkvm for sparc64. Only works for kernel memory so far.
2001-11-18 21:01:09 +00:00
Jake Burkholder
b6d97b0c52
Need .type and .size here too.
2001-11-18 04:48:34 +00:00
Jake Burkholder
84a23d72a0
Add more libc stuff.
...
Obtained from: netbsd
2001-11-18 04:40:30 +00:00
Jake Burkholder
c8efb16966
Catch up to jmpbuf changes. Define offsets used from assmebly language
...
in another file so that it is easy to see what they are and keep them in
sync with the headers (grafted from the kernel generated assym.s).
2001-11-18 04:35:09 +00:00
Jake Burkholder
29e5109c5f
Remove fork and vfork wrappers. The kernel does the right thing.
2001-11-18 04:31:36 +00:00
Jake Burkholder
3b3cc5736a
Add .type and .size pseudo-ops to system call macros so that dynamic binaries
...
will link. They must be used for weak symbols as well as strong ones.
2001-11-18 04:29:20 +00:00
Ian Dowse
946708bbea
Remove a sentence from the BUGS section that claims non page-aligned
...
offsets don't work. It should really be documented that the returned
pointer can be in the middle of a fully-valid page when the offset
is not page-aligned, but I couldn't come up with suitable wording.
PR: kern/22754
2001-11-18 00:47:45 +00:00
Daniel Eischen
ccc7b69205
Fix pthread_join so that it works if the target thread exits while
...
the joining thread is in a signal handler.
Reported by: Loren James Rittle <rittle@labs.mot.com>
MFC after: 1 week
2001-11-17 14:28:39 +00:00
Poul-Henning Kamp
7224d02a0d
If 'VX' is given, realloc(foo,0) will bail, it shouldn't.
...
PR: 29376
Submitted by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
2001-11-17 10:57:04 +00:00
Poul-Henning Kamp
4b9a9ef10b
Correctly call THREAD_UNLOCK() if the recursive call trap is sprung.
...
Pointed out by: knu
2001-11-16 18:15:33 +00:00
Dima Dorfman
0157de9706
Create link from directory.3 to readdir_r.3.
...
PR: 32028
Submitted by: andrew@ugh.net.au
2001-11-16 15:49:38 +00:00
Robert Watson
5acb7446b0
o Reflect repo-copy of extattr.[c3] from libutil to libc, moving
...
extattr namespace routines to the libc/posix1e directory. While
the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't
strictly ever approved, so I think that's OK.
Obtained from: TrustedBSD Project
2001-11-16 05:09:45 +00:00
Robert Watson
9d58ead2eb
o Document 'nocheckmail' login capability.
2001-11-16 04:39:43 +00:00
Robert Watson
22524ffbb2
Although the 'bool' type is referenced in the list of capabilities, it
...
is not defined in the capability type list. Provide a definition for
'bool', if a slightly less than elegant one. Note that this definition
does not include the complete scope of available behavior defined
in cgetcap(3), and could probably be improved.
2001-11-16 02:40:09 +00:00
Mike Barcroft
7a4a63270f
o Implement imaxabs(), imaxdiv(), llabs(), lldiv().
...
o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards
conformance and add additional references.
Reviewed by: bde, wollman
2001-11-15 02:05:03 +00:00