Joerg Wunsch
a098bfd775
Fix a potential memory leak i've introduced with my recent patch.
...
Reviewed by: bde
1996-10-21 23:56:23 +00:00
Wolfram Schneider
95e4966c47
add flag FNM_ICASE for case insensitve search
...
Reviewed by: ache
1996-10-20 15:15:59 +00:00
Poul-Henning Kamp
2e7c91ff16
malloc_pages should be static.
...
Add progname to warning/error message layout. (joerg)
Remove inline assembler, no speed impact, not need for the obfuscation (bde)
Remove on the fly calculation of parameters, no longer critical.
Make D & U flags valid even if we don't support them.
Don't call imalloc until we're done initializing.
Zap contents on free() if we have "Junk" set. [*]
Various nitpicking.
[*] As a sideeffect of this change, if you are worried about
sensitive data lingering in memory, you can use the 'Junk' option
now to make sure phkmalloc zaps memory when it is returned. add
char * malloc_options = "J";
to your source. Obviously there is a performance impact.
1996-10-20 13:20:57 +00:00
Joerg Wunsch
5fae0297db
Remove the arbitrary limit for the line length in /etc/ttys, and make
...
the buffer dynamic.
Closes PR # misc/1838: getttyent() arbitrary 100...
1996-10-19 16:29:10 +00:00
Peter Wemm
ba8f828b88
Back out most of the last backout. :-) Guido removed the 1.1.1.1->1.1.1.2
...
changes from the vendor branch as well, backing the db-1.82 changes.
This file should now be the same as it was in rev 1.1.1.2.
1996-10-19 01:34:25 +00:00
Guido van Rooij
c3449f0d2b
Backout bzero patch.
...
Somehow, I also managed to get quite some other changes in this file at
the same time. All I did was checkout the file and made a single change.
If someone has an explanation how these PURIFFY defines got in...
1996-10-18 19:56:51 +00:00
Guido van Rooij
102b3fa4c8
When freeing buffers in the db routines, also zeroize them
...
This should solve the bug where a coredumping ftpd reveals
encrypted passwords.
Obtained from: OpenBSD
1996-10-17 18:27:58 +00:00
Peter Wemm
0d4453d303
Corrently null-terminate the path being passed to the opendir() calls,
...
malloc() does is not defined to return a zeroed buffer leading to
"strange" problems.
Submitted by: Karl Denninger <karl@mcs.com>, PR#1826
1996-10-17 00:40:04 +00:00
Jordan K. Hubbard
a0735deb48
Bring back ns_* routines; we need them for ifconfig and route.
1996-10-16 19:38:51 +00:00
Andrey A. Chernov
1642f84deb
Save half of space in LC_COLLATE and remove unneded code.
...
This change is not compatible with previous variant, however proper
error code returned in both cases.
Colldef changes will follows.
1996-10-15 21:53:23 +00:00
Garrett Wollman
318a4f9fc3
Require that a timezone specified via the TZ envariable be a regular
...
file (and not a directory or a device which might also be readable).
Closes PR#1740.
1996-10-09 17:39:37 +00:00
Andrey A. Chernov
40f8b70da6
Improve seeding, the random sequence did not vary match
...
with the seed. Old variant will be available via libcompat soon.
1996-10-09 15:59:04 +00:00
John Polstra
d3281e16c2
Fix an error in the description of "h_errno". Add "const" to a few
...
declarations to make them agree with the actual prototypes in <netdb.h>.
1996-10-08 22:30:08 +00:00
Wolfram Schneider
e83201b43a
delete doubled words, e.g.: "the the" -> "the"
1996-10-05 22:27:30 +00:00
Paul Traina
beddb20c7a
Skip results that have unexpected lengths
1996-10-01 03:45:06 +00:00
Wolfram Schneider
4347915c16
perror () does not prepend ": " for the non-NULL argument "". close PR 1492
...
Submitted by: Kent Vander Velden <graphix@iastate.edu>
Reviewed by:
Submitted by:
Obtained from:
1996-09-30 15:39:18 +00:00
Bruce Evans
38c429d5bc
Made this about as (in)complete as sysctl.8.
...
- removed references to nonexistent pathconf-related variables.
- document everything in CTL_MACHDEP(more than in sysctl.8) and
80% of the things in CTL_KERN (same as in sysctl.8).
1996-09-29 18:12:52 +00:00
Bruce Evans
b027a2a70d
Updated the descriptions of the limits related to EAGAIN.
...
Changed the error name width for rfork to match fork.
1996-09-29 17:47:46 +00:00
Wolfram Schneider
ac8ef33789
.Os NetBSD -> .Os FreeBSD.
...
The pages are not NetBSD specific and FreeBSD is not a child of NetBSD.
1996-09-28 22:46:35 +00:00
Bruce Evans
35ecc2f917
.DV -> .Dv (SOCK_STREAM was invisible).
1996-09-28 13:32:35 +00:00
Bruce Evans
246537139a
.DV -> .Dv (FOPEN_MAX was invisible).
1996-09-28 13:18:12 +00:00
Poul-Henning Kamp
fab94ac15b
Don't use malloc, pessimize to use sbrk.
...
fix sbrk manpage while we're at it.
1996-09-27 15:34:19 +00:00
Søren Schmidt
fa19f8481a
Fix a typo.
...
Reviewed by: phk
1996-09-25 16:29:15 +00:00
Poul-Henning Kamp
ed3d429586
A number of minor bogons and portability things from jdp.
...
Submitted by: jdp
1996-09-25 08:30:46 +00:00
Wolfram Schneider
e0e5145ce6
add missing comma(s) in .Xr macros
1996-09-23 22:24:39 +00:00
Poul-Henning Kamp
1f05a9e73a
phkmalloc/3
...
Various neat features added. More documentation in the manpage.
If your machine has very little RAM, I guess that would be < 16M
these days :-(, you may want to try this:
ln -fs 'H<' /etc/malloc.conf
check the manpage.
1996-09-23 19:26:39 +00:00
Alexander Langer
97ea6d475a
Fix typo from previous commit (tsvsec --> tv_sec).
1996-09-23 03:54:53 +00:00
Wolfram Schneider
374fc79d70
fix .Xr macro
1996-09-21 15:08:10 +00:00
Peter Wemm
a4f6eb33dd
".Xr chflags 1," -> ".Xr chflags 1 ,"
1996-09-21 06:28:55 +00:00
Poul-Henning Kamp
5767b83cd3
Add the utrace syscall.
1996-09-20 13:55:25 +00:00
Nate Williams
34eeb76411
ts_sec -> tv_sec
...
ts_nsec -> tv_nsec
1996-09-20 06:06:28 +00:00
Poul-Henning Kamp
89e3b80fa2
Fix a very rare error condition: The code to free VM back to the kernel
...
as done after a quasi-recursive call to free() had modified what we
thought we knew about the last chunk of pages.
This bug manifested itself when I did a "make obj" from src/usr.sbin/lpr,
then make would coredump in the lpd directory.
1996-09-17 19:50:23 +00:00
Andrey A. Chernov
cb07d7668c
Add comment explaining what function does
...
Cover strcoll return 0 case too
1996-09-17 19:27:06 +00:00
Bruce Evans
eaa86f9d7f
Don't use __dead or __pure in user code. They were obfuscations
...
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
1996-09-14 03:00:32 +00:00
Paul Traina
e295af15d1
fwopen() argument type mis-described
...
Obtained from: NetBSD lib/2751 (der Mouse)
1996-09-13 19:14:12 +00:00
Peter Wemm
863a1dba3a
Resync statfs struct with sys/mount.h.
1996-09-07 21:50:31 +00:00
Bill Paul
78cf917e3d
Apply patch to fix +group YP overrides and prevent SEGV on badly
...
formatted groups (foo:*).
1996-09-05 12:27:24 +00:00
Andrey A. Chernov
98d7138100
Describe POSIX saved IDs behaviour better
1996-09-03 11:32:01 +00:00
Andrey A. Chernov
64839956f6
Describe current behaviour (_POSIX_SAVED_IDS are ON),
...
traditional BSD4.4 behavior (_POSIX_SAVED_IDS are OFF) was described
before.
Add some hooks to easily change this text when
POSIX_SAVED_IDS model will be changed.
1996-09-01 22:42:13 +00:00
Bruce Evans
e0c95ed947
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
1996-08-31 16:52:44 +00:00
Bruce Evans
09a8dfa260
Don't depend in the kernel on the gcc feature of doing arithmetic on
...
pointers of type `void *'. Warn about this in future.
1996-08-31 14:48:13 +00:00
Peter Wemm
f991bb5181
Sigh, back out the last bright idea I had here about compiling the res_*
...
routines from contrib/bind directly. There were too many problems,
including having to add -DUSE_OPTIONS_H to the entire libc source in
order for the contrib code to pick up it's options, and so on.
Instead, I've merged the changes, libc is now self contained again.
1996-08-30 21:13:42 +00:00
Peter Wemm
bc7413d0a3
back out last two changes, this caused the mandoc pages to be replaced by
...
man pages. I'll fold in the real changes in a seperate commit.
1996-08-30 19:40:05 +00:00
Peter Wemm
a4c5661fb7
oops, brain-lapse caused undefined symbol
1996-08-30 00:26:49 +00:00
Peter Wemm
fdf4c7af04
The last commit failed part-way through, re-add the generated
...
resolver man pages.
1996-08-29 22:13:00 +00:00
Peter Wemm
d72ca8598d
Revert change to build the reolver man pages on the fly, install the
...
machine-generated versions
1996-08-29 22:06:51 +00:00
Wolfram Schneider
28eac3d225
function appeared in Version 7 AT&T UNIX
...
Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2
1996-08-29 21:24:19 +00:00
Peter Wemm
5ce1c533c7
Merge in bind-4.9.4-P1 resolver...
1996-08-29 20:08:19 +00:00
Bruce Evans
1f403fcfbf
Cleaned up interrupt masking by declaring the state variable in a
...
machine-dependent macro and passing it to all machine-dependent
macros.
Eliminated the state variable for the GUPROF case.
1996-08-28 20:15:32 +00:00
Mike Pritchard
6c65d95969
Some minor man page cleanup.
1996-08-23 20:52:53 +00:00