tmm
4987a17e74
Fix the error buffer passed to kvm_openfiles to have a correct length
...
of _POSIX2_LINE_MAX.
MFC after: 3 days
2001-05-25 23:36:09 +00:00
kris
2104ae9cf0
Mark error() as __printflike() and fix a non-exploitable format string
...
error.
MFC after: 1 week
2001-05-25 23:15:05 +00:00
tmm
a7f4847946
Fix the error buffer passed to kvm_openfiles to have a length of
...
_POSIX2_LINE_MAX as required.
While being there, wrap an overly long line.
MFC after: 3 days
2001-05-25 23:10:27 +00:00
ru
6662aea4f0
- sys/msdosfs moved to sys/fs/msdosfs
...
- msdos.ko renamed to msdosfs.ko
- /usr/include/msdosfs moved to /usr/include/fs/msdosfs
2001-05-25 08:14:14 +00:00
ru
74c5a70065
Make it clear that -P is the default.
...
PR: docs/27629
2001-05-25 07:32:58 +00:00
phk
a85a42ac0e
If the user exists abruptly, tip's "tipout" child can hang around
...
forever. Since the lock file doesn't get cleaned up, this prevents
other users from accessing the target device.
(phk adds: Man, this has been bugging me for YEARS!)
PR: 12528
Submitted by: Craig Leres leres@ee.lbl.gov
MFC after: 1 week
2001-05-24 09:27:02 +00:00
ru
02083c39f9
Backout rev. 1.22 as the change that caused problems was also backed out.
2001-05-24 08:47:57 +00:00
phk
2f5df4cbb5
define _KERNEL before including <sys/conf.h>
2001-05-23 23:03:00 +00:00
phk
a747584a7e
We don't need to include <sys/conf.h>
2001-05-23 23:01:37 +00:00
dillon
813706710c
A feature to allow one to telnet to a unix domain socket.
...
Obtained from: Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2001-05-23 22:47:16 +00:00
obrien
9f40047244
Note that sys.mk is read before any other file (even Makefile)
2001-05-23 18:21:36 +00:00
pirzyk
cad1f77545
Changed 'blocks' to 'usage' because we may not be getting quotas from
...
a ufs filesystem and it may be reporting in K instead of 512b blocks.
This is true when using a vxfs filesystem (on a solaris box) for instance.
PR: bin/14545
Submitted by: Jim Pirzyk
Reviewed by: jkh
MFC after: 1 week
2001-05-23 17:12:09 +00:00
tg
081b57b542
Update BIOS time.
...
Submitted by: Igor Serikov <bt@turtle.pangeatech.com>
2001-05-22 11:33:38 +00:00
tg
b90dd971eb
Beautify debugging output.
2001-05-22 11:33:17 +00:00
tg
f65f8c8c8c
Fix slice handling. Add 6 (`big' DOS partition) as a legal systemID.
2001-05-22 11:32:38 +00:00
tg
2890c15493
Silence some debugging output when installing Borland's Turbo C.
2001-05-22 11:32:15 +00:00
tg
7d2f72414d
Fix boot order (really try A:, then C:, unless the `boot' option is
...
specified in .doscmdrc).
2001-05-22 11:31:39 +00:00
tg
765bf1cd5b
Implement file truncation (DOS function 0x21, sub 0x40).
...
PR: 20925
Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>
2001-05-22 11:31:08 +00:00
tg
a5530f1983
Correct typo to get DOS function 0x51 (get PSP) to work.
...
PR: 15547
Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:30:22 +00:00
tg
97d0017cb4
DOS function 0x0a (buffered keyboard input) returned immediately.
...
PR: 15531
Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:29:31 +00:00
tg
ea057d75e3
Fix DOS function 4c (exit with return code).
...
PR: 15528
Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:28:28 +00:00
ru
337dc795a5
mdoc(7) police: fix markup.
...
Submitted by: roam, ru
2001-05-22 07:05:39 +00:00
eric
911969bba6
Remove an accidentaly added extra blank line.
...
Approved by: murray
2001-05-22 06:20:27 +00:00
guido
c97bc1ad62
Disable SIGHUP while getting the login name.
...
Reviewed by: security-officer
2001-05-21 20:19:59 +00:00
ru
cac86bffd7
Work around the side effect of src/include/Makefile,v 1.137 changes.
...
(The proper fix is to add missing #include directives.)
2001-05-21 17:06:26 +00:00
dd
86ed377f96
Print commas in the group list in user(). current() already did this.
...
Reviewed by: ru, sheldonh
Inspired by: OpenBSD, NetBSD
2001-05-20 20:32:13 +00:00
kris
bff48195c5
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 06:21:12 +00:00
kris
b5820a495a
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 06:18:37 +00:00
kris
df2130540f
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC After: 1 week
2001-05-20 06:16:53 +00:00
kris
392b646b42
This passes WARNS=2 on alpha and i386
2001-05-20 06:15:09 +00:00
sobomax
1951735361
Move scrshot(1) functionality into vidcontrol(1).
...
Suggested by: many
Not objected to by: nik (scrshot co-author)
2001-05-19 06:47:36 +00:00
gshapiro
2bd097707a
String operations could silently truncate long strings, leaving the output
...
corrupted. Mark's patch fixes this be removing the MAXTOK limitation on
substring operations and allowing the putback buffer size to be the limiting
factor. If the putback buffer size if reached, m4 gives an error instead of
silently truncating the string.
PR: bin/26619
Submitted by: Mark Peek <mark-ml@whistle.com>
MFC after: 5 days
2001-05-18 18:35:34 +00:00
nik
6b85c5b52b
I appear to be badly out of practice. Remember to flush the output stream
...
when mixing printf and write.
2001-05-18 14:07:51 +00:00
ru
136b4e514b
Removed -I${.CURDIR}/.../sys from CFLAGS.
2001-05-18 13:41:42 +00:00
ru
33119c68e1
Remove GCC-ism (-Wall).
2001-05-18 10:40:34 +00:00
ru
bad75aff11
mdoc(7) police: Fix markup and spelling.
2001-05-18 10:39:41 +00:00
ru
e4e77900bb
Don't leak memory when compiling text following the a',
c' or `i' command.
...
Testcase:
echo FOO | sed "/FOO/c\\
`jot -b 'aaaa\' 500`"
Submitted by: Max Khon <fjoe@newst.net>
2001-05-18 09:48:17 +00:00
nik
bd5d06f198
Add scrshot to the i386 specific section. If someone can test this on the
...
Alpha I'd appreciate it.
2001-05-18 09:06:00 +00:00
sobomax
5df06b5298
By default build make(1) as a static binary. It costs only 100k of additional
...
disk space, buf provides measureable speed increase for make-intensive
operations, such as pkg_version(1), `make world' and so on.
MFC after: 1 week
2001-05-18 09:05:56 +00:00
nik
bb43743aad
New scrshot utility, using the CONS_SCRSHOT ioctl. Usage is
...
scrshot /dev/ttyv0 > shot.scr
See the shot2{txt,png} utilities (soon to be) in the ports collection.
Reviewed by: -arch
2001-05-18 09:00:51 +00:00
obrien
bff5f40dc1
Missed a few things.
2001-05-18 05:46:40 +00:00
obrien
372f83e18c
In a word -- style(9).
2001-05-18 05:33:42 +00:00
obrien
4f92660dbc
Add the "prompt" and "passwd_prompt" fields to /etc/login.conf,
...
which makes lgoin more like getty in its ability to be configured.
Submitted by: tlambert (code only)
2001-05-18 04:55:16 +00:00
obrien
7ed43e061d
Fix the rcsid's.
2001-05-17 09:38:49 +00:00
eric
e3a45b11f1
Check for the expiration of an account and its password in the proper
...
order.
Reviewed by: -audit (silence)
Approved by: murray
Obtained from: OpenBSD
MFC after: 5 days
2001-05-17 03:10:04 +00:00
ru
ce0c318edf
mdoc(7) police: fix markup.
2001-05-16 13:53:19 +00:00
phk
4002f7f6d4
Fix an array which was too small.
...
PR: 27380
Submitted by: Samuel Greear <sgreear@vsni.com>
2001-05-16 11:13:16 +00:00
ru
3fc436e57f
mdoc(7) police: fix markup (demonstrates new -xwidth modifier).
2001-05-16 10:18:20 +00:00
dd
25cfc4ac97
Add a -J replstr option that allows the user to tell xargs to insert
...
the data read from standard input at a specific point in the command
line arguments rather than at the end.
Submitted by: dd, gad
Reviewed by: gad, brian
2001-05-15 00:31:19 +00:00
eric
54e6b0dd64
Add some gravitational values.
...
Approved by: murray
2001-05-12 21:21:38 +00:00
dd
bd9c9784b2
Document the -h option.
2001-05-11 23:53:46 +00:00
mikeh
84f7751c4b
Allow mail(1) to be able to read Eudora mailboxes by transforming
...
lines that end in <CR><LF> to just <LF>.
Reviewed by: imp
Obtained from: OpenBSD
2001-05-11 03:07:11 +00:00
sheldonh
dcd8123edb
Handle sbsize as a size, not a number.
...
Submitted by: Paul Herman <pherman@frenchfries.net>
2001-05-10 17:15:06 +00:00
obrien
45396cd9c5
Tell the user what group they must be in to su to root.
...
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
2001-05-10 07:37:25 +00:00
ru
42daaf609f
mdoc(7) police: fix markup.
2001-05-10 07:29:35 +00:00
schweikh
f32c7793db
Here comes the forgotten C source, oopsy.
...
Turned the shell script into a binary fixing several minor buglets.
Mention _POSIX_SOURCE feature test macro in man page.
PR: bin/19337
Submitted by: schweikh
Reviewed by: joerg, bde
MFC after: 2 weeks
2001-05-08 20:27:14 +00:00
schweikh
a959dea049
Turned the shell script into a binary fixing several minor buglets.
...
Mention _POSIX_SOURCE feature test macro in man page.
PR: bin/19337
Submitted by: myself way back when I was a nobody :-) (schweikh)
Reviewed by: joerg, bde
MFC after: 2 weeks
2001-05-08 19:47:01 +00:00
kris
6cbddd2042
When opening the file to broadcast, do it with the user's gid, not the
...
egid (tty).
Obtained from: OpenBSD
Submitted by: Maxime Henrion <mux@qualys.com>
Reviewed by: imp
2001-05-08 11:11:42 +00:00
ru
59bd2fcc24
Restore printing of routes cloned from a RTF_CLONING parent
...
(e.g., ARP table entries) with the default routing display.
PR: bin/26970
Reviewed by: wollman
MFC after: 3 days
2001-05-07 12:29:36 +00:00
brian
034e54d5ca
Fix markup
...
Spotted by: Jens Schweikhardt <schweikh@schweikhardt.net>
2001-05-05 09:02:24 +00:00
brian
ff816c801a
Add nl(1)
...
PR: 27078
Obtained from: NetBSD
2001-05-04 17:25:23 +00:00
phk
616525a24b
They add the following commands:
...
-anewer
-cnewer
-mnewer
-okdir
-newer[acm][acmt]
With it, you can form queries like
find . -newerct '1 minute ago' -print
As an extra bonus, the program is ANSI-fied - the original version
relies on some obscure features of K&R C.
(This PR was submitted in 1999, and the submittor has kept the patch
updated ever since, hats off for him guys, and how about you close a PR ??)
PR: 9374
Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
2001-05-03 18:05:35 +00:00
obrien
6789bcb2e6
Fix minor style issue from previous commit.
2001-05-03 00:35:53 +00:00
obrien
763b25e2e8
Fix $FreeBSD$ style.
2001-05-02 23:57:49 +00:00
obrien
e1f6b578aa
* include/elf.h has been repo copied to include/elf-hints.h, and it no
...
longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.
This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.
2001-05-02 23:56:21 +00:00
dd
71039c7b46
Alphabetize command-line options in the synopsis.
2001-05-02 06:41:46 +00:00
markm
e7b03494ba
Clean out some cruft that has been put in a better (central) place.
2001-05-01 10:30:08 +00:00
markm
6a0497c594
Compensate for header dethreading.
2001-05-01 08:46:02 +00:00
dd
e5b6538f86
mdoc(7) police: remove hard sentence breaks.
2001-04-30 23:20:43 +00:00
peter
836d84ae24
Disable llib. The previous commit does not go anywhere near far enough
...
to enable this.
1: it was running xlint out of the object directory, which is not
safe (ie: run a 5.x binary on a 4.x world - no libc.so.5, or run an
alpha binary on x86).
2: lint has /usr/libexec/lint1 and /usr/libexec/lint2 hard coded in.
This is the same as problem 1.
3: lint has got /usr/bin/cc hard coded in as well. Also, see problem 1.
There are probably more problems, but these are enough of a showstopper.
2001-04-29 03:19:58 +00:00
grog
609bc7e870
Revert consequences of changes to mount.h, part 2.
...
Requested by: bde
2001-04-29 02:45:39 +00:00
markm
9241f5ad8f
Dike out Kerberos(IV) support on the grounds that better kerberos
...
support can be gotten via PAM.
2001-04-28 13:44:14 +00:00
markm
5b21da194a
Dike out the Kerberos(IV) support on the grounds that better kerberos
...
support can be already obtained via PAM.
2001-04-28 13:40:52 +00:00
markm
d6e05c51ce
Enable (optional) static linking.
2001-04-28 08:06:33 +00:00
ache
7a482290d9
Fix wrong (char) cast (instead of unsigned char) causing highlighting of all
...
8bit characters due to famous sign extension bug.
2001-04-27 22:35:44 +00:00
jhb
739417ef69
Check the new kern.smp.active sysctl rather than the non-existent
...
smp.smp_active sysctl to determine if we are running on an SMP machine.
2001-04-27 19:33:50 +00:00
ru
b82c51dbbe
mdoc(7) police: fix markup.
...
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
schweikh
20a90bbd83
Fix a grammar bogon.
2001-04-26 17:16:59 +00:00
asmodai
24d1124088
Remove XXX_BROKEN_GCC from the Makefile.
...
This compiles just fine with recent gcc's.
2001-04-26 09:44:41 +00:00
dd
0e7423501b
mdoc(7) police: remove hard sentence breaks.
2001-04-26 06:10:46 +00:00
fenner
2eab52d4f3
Add missing break when printing IPv6 multicast addresses.
...
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type
a multicast sockaddr_dl is.
2001-04-26 06:02:03 +00:00
will
a614981f98
Remove GCC-ism (-Wall).
...
Submitted by: bde
2001-04-26 04:40:57 +00:00
ru
f3b81dfac8
Add -Wall.
2001-04-25 14:59:16 +00:00
ru
d00b45dac0
-Wall cleanup.
2001-04-25 14:45:36 +00:00
ru
6c9c886999
unifdef -UWANT_ENV_PWD.
...
No one ever going to use this bugfeature.
2001-04-25 14:44:42 +00:00
ru
41d4f9b40a
Make ${.OBJDIR} canonical.
...
Reviewed by: bde
2001-04-25 14:22:38 +00:00
dougb
825c803115
Reverse order of from and to in order to match reality.
...
PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net
2001-04-25 07:43:45 +00:00
dd
828e375813
Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).
...
PR: 26810
Reviewed by: dwmalone
2001-04-25 05:42:53 +00:00
asmodai
eea3567fde
Wrap lint calling in a variable.
...
Set LINT to the obj path, since we need to use the new lint's features
to create .ln files. We do not want to use the installed version for that,
since that might create files according to the old lint.
This is still a work in progress to clean this all up, but it gets
through buildworld, which was the problem at hand.
2001-04-24 20:23:37 +00:00
asmodai
b9778ca9f6
Add build-tools target to the description file, requisite of making
...
lint a build-tool.
Also re-enable llib.
2001-04-24 20:20:41 +00:00
kris
f89499043b
Call usage() if given more than 1 argument.
...
Submitted by: "Andrew R. Reiter" <arr@watson.org>
Obtained from: OpenBSD
2001-04-24 10:39:17 +00:00
asmodai
7574aefa1e
Keep my dirty paws off of the $NetBSD$ id's. They're tabbed and should
...
remain so.
Submitted by: bde/obrien
2001-04-23 20:07:21 +00:00
grog
0cfd6ca402
Include correct header files, in preparation for fixing sys/mount.h.
...
Suggested-by: phk
2001-04-23 08:11:54 +00:00
asmodai
b0efe6e395
Keep my dirty paws off of the $NetBSD$ id's. They're tabbed and should
...
remain so.
Submitted by: bde/obrien
2001-04-22 17:06:12 +00:00
asmodai
639d10d873
Aesthetics: fix placement of $NetBSD$ (use space instead of tab)
2001-04-21 11:17:44 +00:00
knu
0120ca65d5
Correct and update Japanese holidays.
...
PR: misc/26703
Submitted by: SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
2001-04-20 13:44:21 +00:00
asmodai
30b2a5d12a
Properly constify the rcsid[].
2001-04-20 09:43:30 +00:00
asmodai
1cd8533570
Add $FreeBSD$ to the files which didn't have it yet.
...
Fix the .c files, so that the $FreeBSD$ is contained within the rcsid. [bde]
2001-04-20 09:33:57 +00:00
obrien
e68e3d0ea7
Fix damage I did in rev 1.4 that broke formatting this example:
...
void foo(struct bar *bar) { return 0; }
2001-04-20 07:41:23 +00:00
asmodai
e60cb25d65
Change uses of mktemp() to mkstemp().
...
Call cc -E, not cpp, this allows lint to be unaware of any
machine-dependent defines that cc(1) may normally define.
Change fork() to vfork() and exit() to _exit().
Reuse temporary file so that multiple files passed can be processed without
problems.
2001-04-19 15:40:04 +00:00