bde
589ee87735
isnetworktty -> isnettty. ttyent.h has already gone through 3
...
revisions to match the confusing spelling in getttyent.c (1 to
break it to match the man page and 1 in each of 2 branches to fix
it). This function seems to be orphaned and unused.
1998-08-03 15:35:41 +00:00
bde
aaeb261fcc
Fixed printf format errors.
1998-08-02 14:41:34 +00:00
dt
0a9f242924
Add lockf().
1998-07-08 15:42:57 +00:00
dt
c8a05e725f
Make this look more FreeBSDish.
1998-07-08 15:38:06 +00:00
dt
2bb7c326d9
This commit was generated by cvs2svn to compensate for changes in r37510,
...
which included commits to RCS files with non-trunk default branches.
1998-07-08 15:28:56 +00:00
dt
52870c03da
An implementation of lockf() function call.
...
Obtained from: NetBSD (author: Klaus Klein)
1998-07-08 15:28:56 +00:00
phk
78b02c367e
fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that
...
references sp. The free needs to follow ISSET
PR: 7148
Reviewed by: phk
Submitted by: Ken Mayer <kmayer@freegate.com>
1998-07-03 08:21:05 +00:00
eivind
805c871967
Cross-reference to sysconf(3).
1998-06-30 22:56:39 +00:00
bde
53e5892174
Fixed printf format errors.
1998-06-30 17:30:22 +00:00
peter
7eb39bf3d3
Make nlist() understand elf unconditionally
1998-06-12 15:02:03 +00:00
jdp
0b6b117e6b
Move ftok() from libcompat to libc, so that it can be closer to its
...
friend shmget().
PR: closes misc/6763
1998-06-10 16:20:21 +00:00
jdp
aa1c40519a
This is a null commit to log the fact that I have done a repository
...
copy to bring these files into libc from libcompat. I will enable
them and kill off the libcompat versions on the main branch soon.
PR: step one toward closing misc/6763
1998-06-10 04:24:21 +00:00
jb
05385aab22
Implement compile time debug mode for thread locks.
1998-06-09 08:32:23 +00:00
steve
e6bc8c123a
Fix this so that it compiles in the !__STDC__ case.
...
Also be consistent about usage of #if ...
Pointed out by: bde
1998-06-06 18:52:43 +00:00
jkoshy
9f8f6862d0
Mention that tftpd(8) also uses syslog(3).
1998-06-05 09:20:19 +00:00
jkoshy
903a43c624
Correct wrong claim about `telldir()' cookie lifetimes.
...
PR: 4043
Submitted by: Joe Orthoefer <j_orthoefer@tia.net>
1998-06-03 06:54:24 +00:00
msmith
09e640d1b3
Add a trivial mechanism for returning a useful default value if one is
...
available and the kernel MIB setting is zero.
Return the result from getpagesize() if the p1003_1b.pagesize MIB
value is zero.
Suggested by: Joerg Schilling <schilling@fokus.gmd.de>
1998-06-01 20:58:03 +00:00
steve
ef6b569c26
Several sources including Unix98 say that semctl's fourth
...
parameter is optional except where:
cmd == {IPC_SET || IPC_STAT || GETALL || SETVAL || SETALL}
PR: 2448
Reviewed by: bde
Submitted by: Tim Singletary <tsingle@sunland.gsfc.nasa.gov>
Minor tweaks by: steve
1998-05-31 04:09:09 +00:00
steve
2d93578745
Remove references to getvfsbytype. Also remove getvfsbyname
...
as it has its own manpage.
Discussed with: bde
1998-05-30 18:20:37 +00:00
steve
0f5128a200
Remove a couple style bugs from the code snippet that
...
slipped in on the previous commit.
Submitted by: bde
1998-05-26 02:53:06 +00:00
steve
54a1a03bba
Update code example to reflect current practice.
1998-05-25 21:42:51 +00:00
jb
8760b05d11
NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no'
...
when building libc with NetBSD syscalls.
1998-05-15 11:59:00 +00:00
jb
6efb933327
Remove extern int errno and #include <errno.h> to get the proper definition.
1998-05-05 22:04:13 +00:00
brian
42e084c2b1
Go back to version 1.16 - it was correct the way it was.
...
Pointed out by: bde
1998-05-01 19:41:12 +00:00
brian
2291918271
connect() returns -1 on error - not 0.
1998-05-01 01:16:39 +00:00
jb
fe85f77293
Stubs are required in libc so that it can be used with libpthread
...
(and kernel threads), but weak symbols and non-weak symbols of the
same name built into libc_r result in unpredictable linking.
1998-04-29 09:02:16 +00:00
dg
f42a694aec
Oops, revert part of a diff that wasn't supposed to have been committed.
1998-04-28 07:02:33 +00:00
dg
32d2657828
Cache the results of the ps_strings sysctl so that it doesn't have to be
...
redone for every call of setproctitle().
1998-04-28 06:59:14 +00:00
rnordier
ded4386b97
Improve description.
...
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1998-04-22 19:59:55 +00:00
brian
dc9ddb8fdd
Typo police
1998-04-17 00:59:15 +00:00
jb
43c2287620
Change in name of the static initializer define.
1998-04-04 11:03:07 +00:00
dufault
8ed0defc6e
Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and
...
_KPOSIX_PRIORITY_SCHEDULING options to work. Changes:
Change all "posix4" to "p1003_1b". Misnamed files are left
as "posix4" until I'm told if I can simply delete them and add
new ones;
Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;
Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;
Add options to LINT;
Minor fixes to P1003_1B code during testing.
1998-03-28 11:51:01 +00:00
bde
fb90e5ae68
Fixed bitrot in synopsis. Didn't fix bitrot elsewhere.
1998-03-23 13:02:37 +00:00
charnier
79fc0e5555
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq
1998-03-19 07:34:22 +00:00
jb
b822200d69
Change MACHINE to MACHINE_ARCH.
...
Add _spinlock.c (stubs) to sources.
Nuke tahoe and vax.
1998-03-09 06:48:25 +00:00
jb
8571146da3
Stub functions for thread locking with weak symbols so that they are
...
only linked when not linking an application against libc_r or libpthread.
1998-03-09 06:46:21 +00:00
jb
c2a72d9ed9
NetBSD implements semctl using a __semctl syscall instead of the
...
semsys syscall that FreeBSD kernels use. Grumble. So make the call
dependent on if __NETBSD_SYSCALLS is defined.
1998-03-09 04:39:13 +00:00
jb
716f9dc369
getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiled
...
into a library with __NETBSD_SYSCALLS defined.
1998-03-09 04:36:07 +00:00
jb
632617caf9
Change a variable to type size_t to suit the sysctl prototype.
...
Add #include <string.h> to get prototypes.
1998-03-09 04:34:16 +00:00
jb
e08356d7d1
Cast pointer to a long instead of an int to keep a 64-bit compiler
...
happy. The code works either way, but I like a clean compile.
1998-03-09 04:29:00 +00:00
dufault
d3dd91fcbc
Reviewed by: bde
...
Changes to support building with _POSIX_SOURCE set to 199309L:
1. Add sys/_posix.h to handle those preprocessor defs that POSIX
says have effects when defined before including any header files;
2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE
3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now
defined in POSIX. These show up when:
_POSIX_SOURCE and _POSIX_C_SOURCE are not set or
_POSIX_C_SOURCE is set >= 199309L
and vanish when:
_POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L.
4. Explain these in man 9 posix4;
5. Include _posix.h and conditionalize on new feature test.
1998-03-08 17:25:38 +00:00
jdp
1fd7c195a5
Add support for ELF.
...
Switch to ANSI-style function definitions.
1998-03-07 19:57:05 +00:00
brian
e836f65855
We don't need to NUL terminate our sun_path.
...
Pointed out by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
1998-03-06 03:10:49 +00:00
brian
efc99b1047
Nul terminate sockaddr_un::sun_path
...
Suggested by: Theo de Raadt <deraadt@openbsd.org>
1998-03-06 02:12:02 +00:00
brian
536dbcff68
Make SyslogAddr a sockaddr_un rather than a sockaddr.
...
This wasn't a problem in practice as PATH_LOG and PATH_OLDLOG
are both < sizeof sockaddr::sa_data.
1998-03-05 22:17:59 +00:00
dufault
e28788f2a4
Reviewed by: msmith, bde long ago
...
POSIX.4 headers and sysctl variables. Nothing should change
unless POSIX4 is defined or _POSIX_VERSION is set to 199309.
1998-03-04 10:27:00 +00:00
steve
d3ce45cfa7
Replace previous commit with a check disallowing ptr from running
...
off the end of the list variable.
PR: 5345, 5610
Submitted by: nagao@cs.titech.ac.jp
1998-03-01 18:49:37 +00:00
jraynard
faf593c225
Strings are terminated by NUL, not NULL.
1998-02-28 18:05:42 +00:00
steve
f68a7e4644
Remove the config_* routines with permission from Poul-Henning Kamp,
...
the original author.
PR: 5834
Discussed with: phk, jkh
1998-02-28 03:57:05 +00:00
jb
3369620301
The NetBSD getlogin syscall has a different name.
1998-02-20 08:07:40 +00:00