Garrett Wollman
b3928a066a
Well, it's not quite strxfrm(3) but at least it's honest.
2002-07-13 19:29:44 +00:00
Giorgos Keramidas
079167d6d7
Various typo fixes.
...
PR: docs/39395
Submitted by: Rich Neswold <rneswold@ameritech.net>
2002-07-12 01:30:18 +00:00
Garrett Wollman
4f6799e61e
A simple implementation of statvfs(3) (one step above the trivial one).
...
Not yet connected to the build (awaiting documentation).
2002-07-11 22:54:11 +00:00
Chris Costello
05ddd41b23
Move appropriate information out of DESCRIPTION' and into
SECURITY
...
CONSIDERATIONS'.
Sponsored by: DARPA, NAI Labs
2002-07-03 15:31:47 +00:00
Daniel Eischen
eee80fbd9c
Remove pselect from application namespace and instead use a weak reference
...
to the actual implementation. This is to allow libc_r to override
pselect() making it a cancellation point.
Prompted by: wollman
2002-06-27 13:23:46 +00:00
Daniel Eischen
53154da089
Remove improper use of <namespace.h>.
...
Remove fmtcheck from application name space (fix the weak reference).
2002-06-27 13:20:54 +00:00
Garrett Wollman
50d0eead10
Actually document pselect(3) so that Bruce can mention it in the release
...
notes. :-)
2002-06-17 02:21:17 +00:00
Garrett Wollman
7d0f66cbc3
Add pselect(3) to the build. Need to figure out the most appropriate
...
way to document this interface.
2002-06-15 23:42:59 +00:00
Garrett Wollman
fda2301943
Since POSIX gives us plenary authority to define _t types, change
...
__dlfunc_t to dlfunc_t to match what I have proposed to the Austin
Group. (This also makes it easier for applications to store these
values before they decide what to do with them, e.g., in a wrapper
function.)
2002-05-29 19:35:13 +00:00
Garrett Wollman
2b8a42d55c
Add link dlopen(3) -> dlfunc(3).
...
Reminded by: mike
2002-05-29 17:38:42 +00:00
Garrett Wollman
dc12134a80
Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.
...
Add new dlfunc() interface, which is a version of dlsym() with a
return type that can be cast to a function pointer without turning
your computer into a frog.
Reviewed by: freebsd-standards
2002-05-29 16:25:43 +00:00
Alfred Perlstein
a82bbc730e
Assume __STDC__, remove non-__STDC__ code.
...
Submitted by: keramida
2002-05-28 17:03:12 +00:00
Jake Burkholder
cae52cb693
These files are no longer used.
2002-05-24 04:41:02 +00:00
Jake Burkholder
530622075e
Generate the normal asm stubs for all sysv system calls. Use these instead
...
of C wrappers for the *sys indirect system calls. The indirect system calls
are horribly broken on sparc64.
Submitted by: tmm
2002-05-23 23:51:57 +00:00
Poul-Henning Kamp
77068a7fe2
Retire the bogus uses of the disklabel field d_sbsize and begin to
...
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.
Sponsored by: DARPA & NAI Labs.
2002-05-12 20:49:41 +00:00
Josef Karthauser
1063e12617
Replace /kernel with /boot/kernel/kernel.
...
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
2002-05-09 11:47:42 +00:00
Dag-Erling Smørgrav
719137a64d
Fix bug that causes passwd and friends to fail when the user has a '+' in
...
their passwd file for NIS because _PWF_SOURCE is not set.
Submitted by: amigus (perforce change 10969)
2002-05-07 23:26:00 +00:00
Dag-Erling Smørgrav
73c9eb2fbf
#include <string.h> instead of <strings.h>
2002-04-25 18:14:39 +00:00
Josef Karthauser
d2c0ac28da
Support the snapshot file flag, so that tools like 'ls -ol' work
...
as expected on snapshot files.
PR: bin/37038
Submitted by: Joshua Goodall <joshua@roughtrade.net>
2002-04-16 11:03:22 +00:00
Dag-Erling Smørgrav
00d9b6b8d6
Missed a spot in previous commit.
...
Sponsored by: DARPA, NAI Labs
2002-04-15 00:21:25 +00:00
Dag-Erling Smørgrav
e479b601dd
(ab)use unused bits in the pw_fields member of struct passwd to record
...
the source of the data contained in the structure.
Sponsored by: DARPA, NAI Labs
2002-04-14 22:24:55 +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
Poul-Henning Kamp
674a5ae34f
Catch up with const'ification of <sys/disklabel.h> and quelch warnings.
2002-04-08 08:57:21 +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
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
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
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
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
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
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
1372519b15
Remove multi-line __P() usage.
2002-03-22 09:22:15 +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
David E. O'Brien
c05ac53b8b
Remove __P() usage.
2002-03-21 22:49:10 +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
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
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 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
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
Brian Feldman
9d9737ecb2
Add new errno ``ENOATTR''.
2002-03-07 15:13:44 +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
Warner Losh
576541a9e6
Fixed divots that I created when I moved prototypes of group_from_gid
...
and user_from_uid to grp.h and pwd.h. Update the man pages.
Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00
Warner Losh
63195486ba
Use new-style function declations.
2002-02-13 09:30:47 +00:00
Ruslan Ermilov
2ef702f52a
FreeBSD 4.1 bootstrapping aid (__FBSDID is not there).
2002-02-08 09:34:17 +00:00
Maxim Sobolev
c6de4ce791
Allow ldd(1) be used on shared libraries in addition to executables.
2002-02-04 10:33:48 +00:00
Bruce Evans
49efc51214
Fixed tab lossage in vendor id and nearby style bugs in previous commit.
2002-02-01 23:26:32 +00:00
Bruce Evans
eb0a30f4c1
Fixed syntax error in previous commit. It was non-fatal because it was
...
in conditional code that happens not to be compiled, and because gcc
doesn't complain garbage after #endif by default.
Fixed some style bugs in previous commit, 1.8 and 1.1.
2002-02-01 23:16:39 +00:00
David E. O'Brien
60e104f3f5
Fixed slipage in editor.
2002-02-01 07:26:00 +00:00
David E. O'Brien
26a2df7351
Cut-n-paste in `list' mode considered harmful.
2002-02-01 07:25:07 +00:00
David E. O'Brien
b231cb3945
* Remove __P and convert to ANSI prototypes.
...
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
2002-02-01 01:32:19 +00:00
David E. O'Brien
22626efa0f
* Remove 'register'. (some functions had 7+ register functions...)
...
* Fix SCM ID's.
2002-02-01 01:08:48 +00:00
David E. O'Brien
ea8d448a92
Fix SCM ID's.
2002-02-01 00:57:29 +00:00
David E. O'Brien
ec4c2e3605
Fix minor style nit.
2002-01-31 17:26:37 +00:00
Bruce Evans
56bcbf00e2
Fixed world breakage due to missing include of <sys/cdefs.h> in previous
...
commit.
Fixed related style bugs:
basename.c: misplaced '#if 0'
dirname.c: misplaced '#if 0'
getgrent.c: missing '#if 0', and tab lossage in vendor id (the previous
commit fixed the complete corruption of the vendor id but
lost a tab)
getpwent.c: missing '#if 0'
2002-01-31 12:58:36 +00:00
David E. O'Brien
135b57f906
Fix FreeBSD IDs.
2002-01-30 21:36:57 +00:00
David Malone
ab09ef008f
Use ctime_r to build the timestamp for syslog, so that we don't
...
clobber a ctime buffer which is passed in.
PR: 34022
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
MFC after: 2 weeks
2002-01-25 21:49:34 +00:00
Ruslan Ermilov
0e65089b79
The sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
...
all interfaces, and ifnet.if_index value for a single interface.
2002-01-23 12:48:08 +00:00
Mark Murray
5567b258eb
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
...
with uid_t usage and (user)->pw_uid.
PR: 3242
2002-01-22 17:32:53 +00:00
Ruslan Ermilov
89ac4ecce1
mdoc(7) police: tidy up OpenBSD fixes.
2002-01-16 15:21:39 +00:00
Ruslan Ermilov
491a842962
yp(4) -> yp(8).
...
PR: docs/30797
2002-01-14 16:59:03 +00:00
Crist J. Clark
971730fc67
Merge some updates and markup fixes from OpenBSD. This is mainly
...
motivated by the new "CAVEATS" section.
Inspired by: alfred noting NetBSD's merging OpenBSD's changes
Obtained from: OpenBSD
2002-01-14 02:08:02 +00:00
Daniel Eischen
aee4cebfe7
Include <stddef.h> to fix build problem when namespace pollution
...
by <signal.h> (including <time.h> so that NULL is accidentally defined)
is removed.
Style nits.
Submitted by: bde
2002-01-11 19:46:08 +00:00
Bruce Evans
614acf2fad
Fixed missing backslash in previous commit.
2002-01-11 16:08:49 +00:00
Bruce Evans
b944866c25
Fixed accumulated unsorting and some other style bugs (long lines).
2002-01-11 15:59:30 +00:00
Daniel Eischen
b66b8326e5
Add getcontext, setcontext, makecontext, and swapcontext. These
...
functions are defined in SUSv2 and the latest POSIX spec.
Thanks to Bernd Walter <ticso@cicely8.cicely.de> for helping debug my
alpha assembly.
Approved by: -arch
2002-01-10 02:40:59 +00:00
Ruslan Ermilov
358034bcfe
If the OID is missing, sysctl(3) returns ENOENT, not EOPNOTSUPP.
...
PR: docs/32793
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
2001-12-13 10:59:00 +00:00
Ruslan Ermilov
edd2da71b2
Start using .St macro for POSIX.1-2001.
2001-12-08 19:06:23 +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
Anton Berezin
b9449db117
Fix typos getpeerid -> getpeereid.
...
PR: docs/32442
Reviewed by: dd
2001-12-02 23:50:40 +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
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
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
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
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
d3eb181523
mdoc(7) police: remove whitespace at EOL.
2001-11-20 13:43:58 +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
Bruce Evans
ac8e56a7f9
Fixed namespace pollution related to `err' in libc in the same way as for
...
`warn'. Now a whole 2 members of the err() family don't cause pollution.
This fixes world breakage in awk for NOSHARED worlds. contrib/awk/msg.c
has had its own version of err() for a long time, but this somehow
didn't cause problems until the update to awk-3.1.0.
2001-11-11 02:48:09 +00:00
David Malone
7e1b81799d
Add a note explaining why CLOCKS_PER_SEC isn't 1000000.
...
While I'm here, "of a second" does not belong to CLOCKS_PER_SEC.
PR: 30297
Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net>
2001-11-05 21:30:43 +00:00
Poul-Henning Kamp
b4e471b90f
Add notice about early use from malloc.c forbidding malloc use from
...
this function.
2001-11-02 11:30:42 +00:00
Mike Barcroft
762e881bab
Make the output from assert() look more like the example in the C99
...
standard.
Requested by: bde
2001-10-29 07:07:25 +00:00
Mike Barcroft
cb5f460523
Only provide function information in compile environments that support
...
the C99 variable __func__ and never for C++. Provide a more meaningful
example in the assert(3) manual.
Reviewed by: asmodai, bde
2001-10-27 20:11:10 +00:00
Mike Barcroft
c44a27673c
Restore K&R prototype. Fix other style bugs.
...
Reviewed by: asmodai, bde
2001-10-27 19:37:20 +00:00
Peter Wemm
9213df7cda
Explicitly use int32_t for on-disk records for pw_change and pw_expire,
...
since that is what we use now and this insulates us from any time_t
tweaks here. We can define a record format that uses 64 bit times if/when
we need to.
2001-10-27 02:13:41 +00:00
Jeroen Ruigrok van der Werven
6cefb54a32
Add __FBSDID.
...
Change __assert() function to print failing function name.
#if 0 the sccsid block.
This makes us C99 conforming.
2001-10-24 18:12:18 +00:00
Bruce Evans
6eabd84580
Compensate for "Compensate for header dethreading" by backing it out.
2001-10-10 17:48:44 +00:00
Ruslan Ermilov
32eef9aeb1
mdoc(7) police: Use the new .In macro for #include statements.
2001-10-01 16:09:29 +00:00
Ruslan Ermilov
7d8983a292
Document the FTS_ROOTPARENTLEVEL and FTS_ROOTLEVEL constants.
2001-09-20 12:32:45 +00:00
Ruslan Ermilov
d6002fef6f
Use ``.Rv -std'' wherever possible.
...
Submitted by: yar
2001-08-31 09:57:38 +00:00
Bruce Evans
1643f03d5f
Fixed namespace pollution related to `warn' in libc (but not in other
...
libraries or for other members of the err() family).
This fixes world breakage in bc and rcs/* for NOSHARED worlds.
2001-08-29 13:52:27 +00:00