Commit Graph

2168 Commits

Author SHA1 Message Date
Alexander Langer
c32bb532e4 locate(1) is no longer started by /etc/weekly. 1998-02-07 05:30:14 +00:00
Guido van Rooij
e28be89140 Reset SGINT and SIGQUIT handling to default when asking for passwords.
Otherwise, when pressing the INT ke at the password prompt, the password
will be displayed. Now login will be killed.

Probably the same will have to be done for the LOGIN_CAP_AUTH case.
I have not done that.
Reviewed by:	Joerg Wunsch
1998-02-05 18:37:02 +00:00
Philippe Charnier
fb9d8a6886 Convert to mdoc. Move Id to the top. 1998-02-04 07:29:20 +00:00
Paul Traina
5099706acd Don't print garbage when user enters EOF at name prompt.
PR:		5565
Submitted by:	Jens Schweikhardt
1998-02-03 20:53:25 +00:00
Chris Timmons
2801a0cd47 PR: bin/5529
Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net>

Do not misinterpret file names with a digit in the 2nd column as
a tab stop specification.
1998-02-02 07:10:59 +00:00
Philippe Charnier
be6eb0fb17 Convert to mdoc format. Header -> Id. 1998-02-02 07:09:36 +00:00
Wolfgang Helbig
8927843705 Search for proper executables, ignore directories 1998-02-01 20:01:29 +00:00
Steve Price
e258cf49b3 ulimit does not have its own manpage as it is a shell builtin.
PR:		5582
Submitted by:	Craig Leres <leres@ee.lbl.gov>
1998-02-01 06:19:56 +00:00
Philippe Charnier
76cd8d66fe Add rcsid. RU#. Use err(3) instead of local redefinition. Convert man page to
mdoc format. Add usage(). Remove rcs $ Log $ -> use cvs log instead.
1998-01-28 07:36:25 +00:00
Wolfram Schneider
dfe64147d2 Add two new options:
-i     Do not overwrite files.

     -s     Do not strip output pathname to base filename. By default uuencode
	    deletes any prefix ending with the last slash '/' for security
	    purpose.
1998-01-25 19:26:05 +00:00
Steve Price
9e7a1d01b0 Use -literal to make for a more pleasing list.
PR:		5547
Submitted by:	Matthew Hunt <mph@pobox.com>
1998-01-25 16:38:42 +00:00
John Birrell
b0ed821446 Add a sysmk -> /dev/null definition ready for a coming change to
makesyscalls.sh.
1998-01-25 09:09:48 +00:00
Steve Price
86fb910326 Random data is no longer based on the time of day, rather the random
number device.  Also clearly state that sequential data is the default.

PR:		5553
Submitted by:	Jonathan Hanna <pangolin@rogers.wave.ca>
1998-01-24 03:32:33 +00:00
Mike Smith
f5d7bf3c0b Printers under FreeBSD are /dev/lpt* 1998-01-22 02:44:54 +00:00
Jonathan Lemon
462232c223 Fix DOS keyboard handling to use standard pointer addresses instead of
an index into a private array.
Submitted by:	Randall Hopper <rhh@ct.picker.com>
1998-01-21 21:37:02 +00:00
Bruce Evans
8339e4f43d Converted to Lite2 mount interface - don't use numeric filesystem
types.  The NetBSD compatibility cruft was more correct for -current
than FreeBSD's own code.  It just used NetBSD #defines instead of
string literals for the filesystem names.  NetBSD's MOUNT_UFS is
"ffs", so using a literal "ufs" gives wrong results, but this is
unimportant, especially for bootstrapping.

Fixed style bugs in trymmap().

Fixed some disordered declarations.
1998-01-20 13:52:32 +00:00
Bruce Evans
d63b9ba46a Converted to Lite2 mount interface - decide filesystem types by name
instead of by number.
1998-01-20 12:53:43 +00:00
Bruce Evans
eae79dd1c0 Merged from Lite2. This was mostly already done, mostly indirectly
via wollman's changes in rev.1.2 being adopted by Lite2 and the
nfsv3 changes in rev.1.3 being adopted by both FreeBSD and Lite2.
We were only missing lookup of the type number for nfs (MOUNT_NFS
doesn't exist in Lite2).
1998-01-20 12:27:38 +00:00
Bruce Evans
87f01287d2 Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.
1998-01-20 10:40:18 +00:00
Bruce Evans
10abc80013 Started getting rid of the compatibility cruft for the Lite1 mount()
and the pre-Lite2 vfsconf interfaces.

For lsvfs, use the new interface for getvfsbyname(), and use the
old interface for getvfsent() explicitly instead of depending on
macro hacks in <sys/mount.h>.  This is an intermediate step.
1998-01-17 16:24:27 +00:00
Wolfgang Helbig
630d15bbf9 Handle option -j correctly.
Synchronize usage message with man page.
PR:	bin/5488
1998-01-15 10:23:34 +00:00
John Birrell
02de434c29 Add #ifdefs for __NetBSD__ in the rest of the places where __FreeBSD__
is defined so that this program behaves the same when built with
either set of tools. The only difference is where the pre-processor
is found. And that is a bug - it should check the CPP environment
variable and the path before just assuming that the compiled in
path is OK. I guess we should be using -Y ${WORLDPATH}/usr/bin/cpp
during a bootstrap build.
1998-01-15 08:46:58 +00:00
Philippe Charnier
20868061ee Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) and
add usage().
1998-01-14 07:21:14 +00:00
Philippe Charnier
8659113475 Add rcsid, remove unused #includes, change exit(-1). 1998-01-14 07:14:11 +00:00
Alexander Langer
01b67e0e07 Change MAP_FAILED to type void *.
Typo fix.
1998-01-13 02:12:43 +00:00
Philippe Charnier
029cde2cd7 Change message 103, trailing \n is not needed when using errx(3). 1998-01-12 07:53:17 +00:00
Philippe Charnier
20f99d2a62 Use Id instead of Header. Change message 103, trailing \n is not needed
when using errx(3).
1998-01-12 07:52:15 +00:00
Philippe Charnier
8e64a8bfed Use Id instead of Header. Sort #includes. Use err(3) and change exit(-1). 1998-01-12 07:51:07 +00:00
David E. O'Brien
81b199e2f1 changed 1st appeared in clause -- about to import into -stable 1998-01-12 05:02:57 +00:00
Steve Price
fa15c4ed1b Update for new common calendar.
Submitted by:	Josef Grosch <jgrosch@superior.mooseriver.com>
1998-01-12 03:31:17 +00:00
Steve Price
de48a0f797 Reword the synopsis line so that it makes sense. 1998-01-12 00:47:52 +00:00
Peter Wemm
ff8962446b Add an option (-M) to install to disable use of mmap(2). This is kinda
handy at the moment with -current's mmap+unlink interactions..  The
problems seem worst when using INSTALL="install -C" in /etc/make.conf.
This could well come in handy in the future too.
1998-01-11 11:43:36 +00:00
John Birrell
94aacc4fb8 A partial frontal lobotomy for find if using the NetBSD libc which
doesn't know about getvfsbyname() and the vfsconf structure. This
disables the -fstype option if compiled with a pre-processor that
defines __NetBSD__. With the FreeBSD built pre-processor, find can only
be built with the FreeBSD libc. So when running with a NetBSD kernel,
FreeBSD's libc will have to return ENOSYS for things that NetBSD
doesn't support. That's life in a hybrid world.
1998-01-10 21:36:34 +00:00
Mike Smith
51151497c8 Revert to previous behaviour, only generate NLST for explicit "nlist"
command.
Submitted by:	wollman
1998-01-09 13:45:11 +00:00
Sean Eric Fagan
e46b99366d Revert the changes yet again, after some email from Bruce. Sorry. 1998-01-09 09:31:42 +00:00
John Birrell
d7c089b7a9 Add __NetBSD__ in a couple of places to allow this program to
compile under NetBSD, but behave like FreeBSD. For the time being,
look for NetBSD's cpp in /usr/bin.
1998-01-09 06:32:54 +00:00
John Birrell
d9b8124d7d Allow install to build from FreeBSD source using NetBSD tools and
headers during the port of FreeBSD to a NetBSD supported architecture.
FreeBSD needs to be able to install itself from very early on.
1998-01-09 06:05:13 +00:00
Sean Eric Fagan
19db2a3c0b Proper way to do the previous mis-commit. Still not quite right, because
some header files (e.g., <err.h>) include <machine/something.h>, and this
will not pick up the right header files, so it may be removed eventually
anyway.  But some people who are not willing to build the right way
apparantly want this, so this is for them.
1998-01-09 00:39:10 +00:00
Sean Eric Fagan
41ccb63223 Get rid of the bogus include -- it is incomplete (as it doesn't handle
anything other than <sys/*.h>), and unnecessary in most cases.  (The
situations where it is necesary can be dealt with by manually-made symlinks,
which is acceptable since they should only occur during testing.  Remember:
the tree does not compile well if you do not have matching header files
installed.  Half-baked -I directives don't cover enough of the cases.)
1998-01-09 00:22:50 +00:00
David E. O'Brien
0cd829f2f9 Mention S/key and the skey /etc files. 1998-01-07 10:42:57 +00:00
Philippe Charnier
a99e456443 Sync usage and synopsis. Add rcsid. 1998-01-07 07:46:33 +00:00
Philippe Charnier
8e59a4734d Something important happened last year. And this file was last updated
in 82.
PR:		misc/5416
1998-01-07 07:40:54 +00:00
John-Mark Gurney
ad6af66e58 include sys so it builds on 2.2.x
also, fix misspelling of -1 (as EOF for getopt)
1998-01-07 06:19:50 +00:00
Warner Losh
545b0f4db7 Wait for job to finish and exit if exec fails.
Obtained from:	OpenBSD (Theo de Raadt)
1998-01-07 00:05:20 +00:00
Wolfgang Helbig
2d3b8b64a8 1. Don't reject 0145 if started at 22XX.
Applied suggested fix from Andrew Andrew <andrew@ugh.net.au> with
   some stylistic changes. Thanks.
2. #include <sys/time.h> -> #include <time.h>
3. Removed #include <sys/param.h>
4. Use setlocale(3) and strftime(3) instead of ctime(3).
5. Clean up -Wall warnings.
6. Make sure, time to leave are integral minutes if the argument
   is absolute. (i. e. without "+"). If started at 10:10:55 with
   argument "1020" it computed time to leave as 10:20:55 instead of
   10:20:00.

PR:		5395
1998-01-06 17:27:09 +00:00
Wolfgang Helbig
f8a0edba2c 1. Don't be confused if the first day of a month is dropped due to
Gregorian Reformation. E. G. in Albania December 1, 1912 doesn't exist.
2. Add some countries in the switch table (BE, FI, LN, LU)
3. Correct some entries from the new found source of calendar knowledge:
   http://www.pip.dknet.dk/~c-t/calendar.html,
   That is Claus Tondering's Calendar FAQ.
1998-01-06 00:46:11 +00:00
Philippe Charnier
3cf51049e0 Sort Xrefs. Use err(3). Remove uneeded #include.
Correct usage: one of {-p pid, command} is required.
Open output file when command line is fully analyzed: incorrect `truss -o f'
command does not create an empty file anymore.
1998-01-05 07:30:26 +00:00
Philippe Charnier
d3173ea71c Add SEE ALSO section including ref to gzip. Add .An. 1998-01-05 07:14:54 +00:00
Joerg Wunsch
57392071e8 Fix a style bug, and a real bug (&& vs. & misused).
Submitted by:	bde
1998-01-04 10:08:26 +00:00
Steve Price
5f2833ea5e Type fix: when -> with
PR:		5420
Submitted by:	Jonathan Hanna <jh@pc-21490.bc.rogers.wave.ca>
1998-01-03 19:14:02 +00:00
Wolfgang Helbig
cde26ed2a0 Use locale to guess the switch date.
Localize formatting of date of easter.
Suggested by:	ache
1998-01-03 15:10:11 +00:00
Joerg Wunsch
99bd6601d7 Teach boring old mail(1) about the use of the REPLYTO environment
variable which is de-facto standard for MUAs.

Teach bomail to generate an in-reply-to header so threading MUAs and
mail->news gateways won't lose context.

While i was at it, removed two gratuitous standard violations for
functions starting with an underscore.
1998-01-02 16:44:13 +00:00
Wolfgang Helbig
9fe1b8ebb8 Don't ignore empty components of $PATH, i. e. colon at the beginning,
the end or two successive colons.

Reviewed and improved by wosch.
1998-01-02 13:46:25 +00:00
Wolfram Schneider
069db8db47 Re-order the for loop for multiple procnames. This decrease the
system load and makes a

      killall ppp rlogin ftp ssh ping traceroute telnet

a lot faster.

Remove duplicated pid's before killing (killall lynx lynx).
1998-01-01 17:24:43 +00:00
Alexander Langer
914e5c17bc Typo fix. 1998-01-01 02:34:14 +00:00
Wolfgang Helbig
a4264dce8c Ensure 2 letter abbreviations of weekdays (even if LANG=C
and invoked as "cal").
1997-12-31 15:55:08 +00:00
Peter Wemm
0e604e984a Fix typo while copying patch from the 2.2 system that it came from
Use execvp rather than execv so that full paths are not needed.
1997-12-30 01:20:08 +00:00
Jordan K. Hubbard
1aa8a0a95b * add a -c option which displays the grand total of all files
counted.

 * re-word parts of the man page which I felt were badly worded
   or ambiguous.

 * change the behaviour of argument processing so that when more
   than one of the -P, -H and -L options are specified it will
   print an error message, rather than choosing the last option
   specified, this behaviour is more logical and consistent with
   other utilities.

 * change the behaviour of argument processing so that negative
   arguments to the -d option are not allowed.

PR:		5388
Submitted by:	Niall Smart <rotel@indigo.ie>
1997-12-29 20:56:21 +00:00
Peter Wemm
51afb8df2c script(1) has annoyed me with it's inflexable command argument parsing
since I first saw it.  I finally needed to pass arguments through to
the spawned command badly enough (and urgently) that I threw this together.
1997-12-29 13:31:46 +00:00
Alexander Langer
d7d1005304 -Wall cleanup. 1997-12-29 00:09:06 +00:00
Alexander Langer
8109e672e4 -Wall cleanup. 1997-12-28 17:50:10 +00:00
Steve Price
37544815b9 Fix some minor formatting nits.
PR:		5373
Submitted by:	Matthew Hunt <mph@pobox.com>
1997-12-27 18:58:27 +00:00
Tim Vanderhoek
dfb9495b2a Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
	initialise -> initialize
	recognise -> recognize

Merry Christmas! :)
1997-12-25 09:36:42 +00:00
Andrey A. Chernov
0832039284 Fix sysctl path /usr/sbin->/sbin 1997-12-22 19:11:28 +00:00
Chris Timmons
50f69900e8 Remove private install rule in favor of INTERNALLIB and
INTERNALSTATICLIB.

Suggested by: bde
1997-12-21 08:31:50 +00:00
Sean Eric Fagan
09d64da3a4 Add some copyright and license terms, at Jordan's request. Note that
syscall.h just refers to another file for the copyright notice.
1997-12-20 18:40:43 +00:00
Wolfgang Helbig
cb0f03a1a8 Use '.\' and not '/* */' for troff-comments. 1997-12-19 21:41:21 +00:00
Bruce Evans
9b67968db9 Removed extra (non-trailing) arg in a call to warnx(). 1997-12-18 15:27:43 +00:00
Bruce Evans
043e1b65d9 <bsd.prog.mk> has always included ../Makefile.inc, and there are no
complications involving .PATH or dependencies, so don't include it here.
1997-12-17 19:49:09 +00:00
Chris Timmons
d76c045abb DPADD repairs suggested by Bruce Evans <bde@zeta.org.au> 1997-12-17 15:18:54 +00:00
Bruce Evans
53d0e9f018 Fixed DPADD. 1997-12-16 17:43:33 +00:00
Bruce Evans
4adbaec366 Fixed DPADD.
Don't override the (correct) default for SRCS or MAN1.

Replaced bogus Lite1 (?) Id by $Id$.  The key server files were
mis-imported so it is hard to tell where they came from, but at
least in Lite2 they don't have useful Makefiles, and I rewrote
most of the Makefile.
1997-12-16 17:37:23 +00:00
Bruce Evans
c724b81f25 Fixed DPADD. ${LIBGCC} must be added explicitly since the default
linkage rule is overridden.  The -L option must be in ${DPADD} so that
`make checkdpadd' works.  Actually use ${DPADD}.

FIxed missing dependencies for doscmd.  Use ${LIBCRT0} instead of a
hard-coded path in the rule for doscmd.

Added comments about the kludges used to build 2 binaries and 2 data
files in one directory.  It shouldn't be done this way.  The dependencies
on sources took extra work to get right, and the dependencies on objects
are still broken (one set is missing and the other has the wrong libs).

Fixed some style bugs while I'm here:
- don't override the (correct) default for MAN1.
- use `beforeinstall', not `afterinstall' to install auxiliary files.
  `afterinstall' is for fixing messes made by `install'.
1997-12-16 16:36:43 +00:00
Bruce Evans
a791a060f3 Fixed missing DPADD.
Fixed some style bugs while I'm here (don't override the (correct)
default for MAN1).
1997-12-16 14:42:08 +00:00
Andrey A. Chernov
ff07b87482 One more ctype cast 1997-12-16 08:58:15 +00:00
Andrey A. Chernov
8e6f104bf2 Add more (unsigned char) casts to ctype macros 1997-12-16 08:22:37 +00:00
Andrey A. Chernov
244bf2805f Add (unsigned char) cast to ctype macro 1997-12-16 08:17:26 +00:00
Chris Timmons
72cb1a30ed I'd swore I added this on my prior mega-commit. Any chance adds aren't
processed during the recursive swoop?

Makefile for global's private library, complete with null install rule
to keep this private.
1997-12-15 23:40:54 +00:00
Chris Timmons
3f1c262fff Add lib/Makefile and adjust as necessary to build global 2.2.1 from contrib sources. 1997-12-15 23:34:57 +00:00
Wolfgang Helbig
e84b212f83 Remove cal, add ncal. 1997-12-15 20:52:24 +00:00
Wolfgang Helbig
0cb2e609d9 Add new command ncal. 1997-12-15 20:35:22 +00:00
Paul Traina
b62081305a Sync with NetBSD v1.3.
Keep I8N1 and quarantine port code.  Replace our security fix with NetBSD's
(their idea was better).
1997-12-13 20:38:21 +00:00
Sean Eric Fagan
0a2043520a Allow TMPDIR to be set and actually *used*; if it not set, it defaults
to /tmp.
1997-12-13 18:18:12 +00:00
Bruce Evans
30723f90ca Fixed .PATH statement so that minigzip.c can be found when
${.OBJDIR} != ${.CURDIR}.
1997-12-13 15:57:55 +00:00
Mike Smith
cae80f25d3 Add minigzip 1997-12-13 09:59:32 +00:00
Mike Smith
85e55f7ab8 This framework builds the 'minigzip' sample program supplied with
libz.  It is a non-GPL-polluted minimal implementation of the 'gzip'
command, yielding a 12k executable (vs ~100k for gzip).
1997-12-13 09:57:48 +00:00
Daniel O'Callaghan
749f6a2934 Submitted by: Peter Hawkins <peter@clari.net.au>
Spelling police.
1997-12-13 06:34:47 +00:00
Sean Eric Fagan
d7b7dcba41 Change the ioctls for procfs around a bit; in particular, whever possible,
change from

	ioctl(fd, PIOC<foo>, &i);

to

	ioctl(fd, PIOC<foo>, i);

This is going from the _IOW to _IO ioctl macro.  The kernel, procctl, and
truss must be in synch for it all to work (not doing so will get errors about
inappropriate ioctl's, fortunately).  Hopefully I didn't forget anything :).
1997-12-13 03:13:49 +00:00
Andrey A. Chernov
156b574b56 Change select(0, NULL, ...) to usleep() 1997-12-12 11:47:28 +00:00
Wolfgang Helbig
5eb8e42f3e Eleven days were eliminated by the Gregorian Reformation in 1752, not ten.
Submittee by:
1997-12-12 10:25:19 +00:00
Ollivier Robert
af65141672 Mention pftp as an alternative command to enable passive mode. 1997-12-08 22:09:44 +00:00
Gary Jennejohn
e0572d523f change `ingored'' to `ignored'' in two places. I noticed this typo
when I ran tconv to test APE (A Programmer's Editor).
1997-12-08 21:36:25 +00:00
Peter Wemm
f8d795fb89 s/ps/truss/ 1997-12-07 08:19:13 +00:00
Sean Eric Fagan
20fa828fac Use the new PF_LINGER flag -- when this is set in a process' proc structure,
said process will not have its event mask cleared (and be restarted) on
the last close of a procfs/mem file for that pid.  This reduces the chance
that a truss-monitored process will be left hanging with these bits set
and nobody looking for it.

This is the least-tested change of all of these, I'm afraid.
1997-12-07 04:08:48 +00:00
Wolfram Schneider
4be1354301 Delete truss manpage link. We have now a real truss command. 1997-12-06 23:40:13 +00:00
Sean Eric Fagan
ad9e02601c Complain about empty command lines. 1997-12-06 17:13:54 +00:00
Peter Wemm
e09a8fd173 err(3) already includes strerror(errno) and a trailing \n 1997-12-06 14:42:58 +00:00
Peter Wemm
8789393452 recognize "FreeBSD ELF" as an executable type
close() takes a fd, not a char * :-)
1997-12-06 14:41:41 +00:00
Peter Wemm
95c4ef653b #include <unistd.h> to get it to compile
Submitted by: Andreas Klemm <andreas@klemm.gtn.com>
1997-12-06 14:39:30 +00:00
Sean Eric Fagan
fe41f30547 Set the close-on-exec flag in the child; otherwise, it eats up a
file descriptor that it shouldn't.
1997-12-06 08:01:00 +00:00