Commit Graph

590 Commits

Author SHA1 Message Date
dd
9ccc2d828e Assorted mechanical fixes.
PR:		34790
Submitted by:	Mike Makonnen <mike_makonnen@yahoo.com>
2002-03-09 04:38:25 +00:00
phk
20615f7183 Add one.
Submitted by:	jedgar
Reviewed by:	The usual gang of idiots in that IRC channel.
2002-02-25 21:52:34 +00:00
bde
59dc6e7117 #include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Sorted includes.  Removed some unused includes.
2002-02-25 01:50:43 +00:00
billf
8d9a1c219f BDECFLAGS
Reviewed by:	md5(1)
2002-02-23 10:44:04 +00:00
billf
aaab12dab9 KNF -> ANSI function declarations
Reviewed by:	md5(1)
2002-02-23 10:35:25 +00:00
billf
24e49293f0 KNF to ANSI function declaration, silence a warning 2002-02-23 10:21:19 +00:00
billf
adddfd0667 warning fixes, mostly type matching 2002-02-23 09:59:45 +00:00
billf
7ae0a1a66b convert from KNR to ANSI function declarations
Reviewed by:	md5(1)
2002-02-23 09:53:27 +00:00
billf
3e838de946 staticize functions and variables
change function declarations to ANSI
change a variable that stores sizeof() values to size_t
use return to escape the end of main(), not exit(3)
2002-02-21 18:13:31 +00:00
billf
6eb04d494f use the typedef 'ubig' to declare pr_limit, not what ubig is typedef'd
to be.

PR:		misc/35181
Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after:	3 days
2002-02-21 17:33:56 +00:00
mike
b2f3aa6012 o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
imp
11b4b22996 Fix last second botch of adding $FreeBSD$. 2002-02-18 05:40:54 +00:00
imp
8f3a92d2ad Remove __P
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
2002-02-18 05:15:19 +00:00
keramida
7db1380b6b Add a tip about pkg_info and checking for multiple installed versions
of a package/port.
2002-02-11 03:45:29 +00:00
bde
121f825e31 Don't declare our own common version of the library variable `ospeed'.
Include <termcap.h> to get its declaration.  Our initialization of it
is still dubious, but it agrees with ncurses' documentation of it
(none) and with ncurses' recently fixed internals for it (old speeds
from <sys/ttydev.h>) and with the 4.4Lite documentation for it.
2002-02-02 09:50:45 +00:00
bde
e1f2e305e8 Don't declare the library variable `ospeed' without even getting its
type correct.  Include <termcap.h> to get its declaration.  Our
initialization of it is still dubious, but it agrees with ncurses'
documentation of it (none) and with ncurses' recently fixed internals
for it (old speeds from <sys/ttydev.h>) and with the 4.4Lite
documentation for it.
2002-02-02 09:37:20 +00:00
bde
28431348e6 Don't declare our own common version of the library variable `ospeed'
without even getting its type correct.  Include <termcap.h> to get its
declaration.  Our initialization of it is still dubious, but it agrees
with ncurses' documentation of it (none) and with ncurses' recently
fixed internals for it (old speeds from <sys/ttydev.h>) and with the
4.4Lite documentation for it.
2002-02-02 09:32:09 +00:00
tg
ccf1891399 Clean up G. B. Shaw quotes:
- fix missing punctuation,
- remove duplicates in fortunes2,
- don't abbreviate first names.

Remove duplication of Shaw's principle in fortunes2.
2002-01-07 13:47:22 +00:00
grog
0c033b3d2b Correct typo. 2002-01-01 00:50:30 +00:00
roam
9db7a8fbc3 Fix a typo. While 'iff' might make sense in a mathematics-related text,
'if and only iff' does not.

PR:		33242
Submitted by:	Eric Yu <ericyu@mail2000.com.tw>
2001-12-27 13:33:10 +00:00
wilko
9ccc76d605 A case of ninfo (non-info)
Submitted by:	Hans.VanSluis@compaq.com
MFC after:	1 month
2001-12-20 17:25:45 +00:00
ru
fb9cd1d54d Install files via FILES. 2001-12-17 15:23:57 +00:00
ru
d5844d0aa7 FILES support for bsd.prog.mk. See bsd.README for details.
Stolen from:	NetBSD
2001-12-17 13:59:35 +00:00
mikeh
8e7e67079f Modify tip that no longer applies for ftp(1). 2001-12-17 08:16:14 +00:00
wilko
124c284320 Unix: Just Say No..
Obtained from:	Jan.Hendriks@Compaq.com
MFC after:	3 days
2001-12-12 09:49:02 +00:00
keramida
44bb02014a Be more specific in an example of fortune's -e option.
PR:		32085
Submitted by:	setantae@submonkey.net <setantae@submonkey.net>
2001-12-08 04:54:55 +00:00
jhb
5def684c36 Trim yet another duplicate fortune. 2001-12-05 22:40:44 +00:00
jhb
5f5aa2335a Properly sort the last two fortunes alphabetically. 2001-12-05 22:39:00 +00:00
jhb
98a9703024 Add a short commentary on libdialog by jkh. 2001-12-05 22:13:53 +00:00
jhb
b1c4bfcba9 Remove an incorrect duplicate Douglas Adam quote and properly format and
the correct duplicate.  Both versions also attributed the quote to the
wrong book.
2001-12-05 22:09:39 +00:00
jhb
22ab467d54 Fix a typo and add a missing period. 2001-12-05 21:36:14 +00:00
jhb
913208eb1c Remove some duplicate fortunes. 2001-12-05 21:06:30 +00:00
phk
e1f2318f3a s/Kenned y/Kennedy/
Pointed out by: $a_lot_of_people
2001-11-27 17:10:54 +00:00
phk
f7bf7fe389 This string of coincidences was too good to let pass.
Obtained from:	BBC World Service on 9410kHz
2001-11-27 16:53:43 +00:00
peter
185338268a Fix some duplicate quotes and tidy up some Dr. Who quotes. 2001-11-27 12:02:03 +00:00
keramida
415289f81a Other committers do not mention their personal names and/or email
addresses when adding stuff, so it seems fair to stop ``getting all
the fame'' by having my name displayed on login sessions.

Approved by:	nik
2001-11-19 20:17:19 +00:00
joe
ce9dc0dbb7 Fix a typo:
Flinstone -> Flintstone.

Submitted by:	grog (during the kernel debugging session at BSDConEurope)
2001-11-12 12:21:39 +00:00
dillon
dbbd67f9d9 Add terminating % so the last fortune can be found.
Add a fortune.
2001-11-09 18:24:09 +00:00
phk
186b85e5f1 Separate concatenated fortunes.
Remove unattributed duplicate of Frederick Brooks eternal words
about the danger of second systems.
2001-11-03 16:43:13 +00:00
phk
ff1193f3a6 Correct attribution and fix translation from Danish. 2001-11-03 16:38:06 +00:00
asmodai
f0043f77c1 Correct attribution.
PR:		30500
Submitted by:	Drew Derbyshire <ahd@kew.org>
2001-10-28 13:23:39 +00:00
roam
addd3a5be5 Correct a typo: numtiple -> multiple.
PR:		31474
Submitted by:	Eric Yu <ericyu@mail2000.com.tw>
MFC after:	1 week
2001-10-24 12:51:23 +00:00
dd
0eca860437 Slightly improve wording in the opening paragraph.
PR:		31202
Submitted by:	Jasmin Blanchette <jasmin@troll.no>
2001-10-14 23:13:01 +00:00
kris
abc31cc7de Add some important advice for young optical physicists. 2001-10-05 08:27:21 +00:00
kris
ce0abd5eb0 Add a brief comparative analysis of 3 popular religions.
Approved by:	maintainer
2001-10-01 01:10:15 +00:00
jhb
fcbd12cd2a Borrow Peter's peril-sensitive sunglasses and add a short parody quoted in
the unnamed IRC channel.
2001-09-27 22:04:42 +00:00
murray
4e88440bcf Tip Correction : s/seconds/minutes/
PR:		docs/30844
Submitted by:	Andrew <andrew@ugh.net.au>
2001-09-27 00:43:28 +00:00
ru
b99e1fca14 - Only use sig_atomic_t objects in signal handlers.
- Use getopt() to parse command line.
- Add usage().
- WARNSify.
- Convert manpage to mdoc(7).

PR:		bin/30641
Submitted by:	Andrey Simonenko <simon@simon.org.ua>, ru
MFC after:	1 week
2001-09-25 13:45:46 +00:00
dd
c2ce63ecc4 list' should be an extern'd char **', not a local `char *' which we
never set.  Ideally, we'd get the extern from tutor.h, but that
defines a number of other variables that conflict with ours.

This fixes a segmentation fault when trying to return to the main menu.

PR:		30172
2001-09-03 14:19:46 +00:00
kris
cfb188fa6f Update a duplicate quotation.
PR:		30228
MFC after:	2 weeks
2001-09-01 08:01:06 +00:00