]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd the prototypes for pthread_suspend_all_np and pthread_resume_all_np.
deischen [Fri, 24 May 2002 04:33:07 +0000 (04:33 +0000)]
Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.

22 years agoRevamp suspend and resume. While I'm here add pthread_suspend_all_np()
deischen [Fri, 24 May 2002 04:32:28 +0000 (04:32 +0000)]
Revamp suspend and resume.  While I'm here add pthread_suspend_all_np()
and pthread_resume_all_np().  These suspend and resume all threads except
the current thread, respectively.  The existing functions pthread_single_np()
and pthread_multi_np(), which formerly had no effect, now exhibit the same
behaviour and pthread_suspend_all_np() and pthread_resume_all_np().  These
functions have been added mostly for the native java port.

Don't allow the uthread kernel pipe to use the same descriptors as
stdio.  Mostily submitted by Oswald Buddenhagen <ossi@kde.org>.

Correct some minor style nits.

22 years agoAdd a nextboot script to make it easier to control the loader nextboot
gordon [Fri, 24 May 2002 04:06:03 +0000 (04:06 +0000)]
Add a nextboot script to make it easier to control the loader nextboot
support. Also, hook it up to the build.

Approved by: jake (mentor)

22 years agoRemove /usr/share/perl/man
ache [Fri, 24 May 2002 03:21:11 +0000 (03:21 +0000)]
Remove /usr/share/perl/man

22 years agoAdd support for reading an additional loader configuration file. By default,
gordon [Fri, 24 May 2002 02:28:58 +0000 (02:28 +0000)]
Add support for reading an additional loader configuration file. By default,
this is called /boot/nextboot.conf. This file is required to have it's first
line be nextboot_enable="YES" for it to be read. Also, this file is
rewritten by the loader to nextboot_enable="NO"<space> after it is read.
This makes it so the file is read exactly once. Finally, the nextboot.conf
is removed shortly after the filesystems are mounted r/w.

Caution should be taken as you can shoot yourself in the foot. This is only
the loader piece. There will be a tool called nextboot(8) that will manage
the nextboot.conf file for you. It is coming shortly.

Reviewed by: dcs
Approved by: jake (mentor)

22 years agoAdd a new make.conf knob, SENDMAIL_MAP_PERMS, which specifies the
gshapiro [Fri, 24 May 2002 01:46:39 +0000 (01:46 +0000)]
Add a new make.conf knob, SENDMAIL_MAP_PERMS, which specifies the
permissions to use for alias and map database files built by
/etc/mail/Makefile.  The default is 0640 to assist users in avoiding
a file locking local denial of service.

MFC after: 1 day
pending RE approval

22 years agoChange the default permissions for the sendmail statistics file to 0640
gshapiro [Fri, 24 May 2002 01:44:53 +0000 (01:44 +0000)]
Change the default permissions for the sendmail statistics file to 0640
instead of 0644 to help protect users against a file locking local
denial of service.

MFC after: 1 day
pending RE approval

22 years ago o Replace the vm_map's hint by the root of a splay tree. By design,
alc [Fri, 24 May 2002 01:33:24 +0000 (01:33 +0000)]
 o Replace the vm_map's hint by the root of a splay tree.  By design,
   the last accessed datum is moved to the root of the splay tree.
   Therefore, on lookups in which the hint resulted in O(1) access,
   the splay tree still achieves O(1) access.  In contrast, on lookups
   in which the hint failed miserably, the splay tree achieves amortized
   logarithmic complexity, resulting in dramatic improvements on vm_maps
   with a large number of entries.  For example, the execution time
   for replaying an access log from www.cs.rice.edu against the thttpd
   web server was reduced by 23.5% due to the large number of files
   simultaneously mmap()ed by this server.  (The machine in question has
   enough memory to cache most of this workload.)

   Nothing comes for free: At present, I see a 0.2% slowdown on "buildworld"
   due to the overhead of maintaining the splay tree.  I believe that
   some or all of this can be eliminated through optimizations
   to the code.

Developed in collaboration with: Juan E Navarro <jnavarro@cs.rice.edu>
Reviewed by: jeff

22 years agoFor now, make the .ifdef GCC3 case default. We should change -Wno-format
peter [Fri, 24 May 2002 01:02:45 +0000 (01:02 +0000)]
For now, make the .ifdef GCC3 case default.  We should change -Wno-format
back to -fformat-extensions (or whatever) when we have the functionality.
We are gaining warnings again that should be fixed but the are being hidden
by NO_WERROR and all the -Wformat noise.

22 years agoConvert mount_unionfs(8) to nmount.
mux [Fri, 24 May 2002 00:45:37 +0000 (00:45 +0000)]
Convert mount_unionfs(8) to nmount.

22 years agoConvert unionfs to nmount.
mux [Fri, 24 May 2002 00:44:44 +0000 (00:44 +0000)]
Convert unionfs to nmount.

22 years ago- Remove a few storage pools and replace them with UMA zones. The spans
arr [Fri, 24 May 2002 00:39:58 +0000 (00:39 +0000)]
- Remove a few storage pools and replace them with UMA zones.  The spans
  code is now storage pool free, so I believe this only leaves the uni
  base not cleaned.

22 years ago- Turn a couple of storage pools into UMA zones and their associated calls
arr [Fri, 24 May 2002 00:38:25 +0000 (00:38 +0000)]
- Turn a couple of storage pools into UMA zones and their associated calls
  to the appropriate UMA api calls.

22 years agoFix comments.
mux [Fri, 24 May 2002 00:16:13 +0000 (00:16 +0000)]
Fix comments.

22 years agoGenerate the normal asm stubs for all sysv system calls. Use these instead
jake [Thu, 23 May 2002 23:51:57 +0000 (23:51 +0000)]
Generate the normal asm stubs for all sysv system calls.  Use these instead
of C wrappers for the *sys indirect system calls.  The indirect system calls
are horribly broken on sparc64.

Submitted by: tmm

22 years agoStyle nit, no functional changes.
mux [Thu, 23 May 2002 23:22:22 +0000 (23:22 +0000)]
Style nit, no functional changes.

22 years ago- Fix uma_zcreate parameters -- don't pass M_* flags here, doh.
arr [Thu, 23 May 2002 23:21:00 +0000 (23:21 +0000)]
- Fix uma_zcreate parameters -- don't pass M_* flags here, doh.

22 years agoUpdate comments to better match reality.
mux [Thu, 23 May 2002 23:18:25 +0000 (23:18 +0000)]
Update comments to better match reality.

22 years agoMake mount_nullfs(8) use nmount(2) rather than mount(2) now
mux [Thu, 23 May 2002 23:08:27 +0000 (23:08 +0000)]
Make mount_nullfs(8) use nmount(2) rather than mount(2) now
that nullfs has been converted to nmount.

22 years agoConvert nullfs to nmount.
mux [Thu, 23 May 2002 23:07:27 +0000 (23:07 +0000)]
Convert nullfs to nmount.

22 years agoSlightly change the way we pass mount options to the filesystem
mux [Thu, 23 May 2002 23:02:19 +0000 (23:02 +0000)]
Slightly change the way we pass mount options to the filesystem
VFS_NMOUNT operations.

Reviewed by: phk

22 years agoJust to show that PAM can do almost anything from the ridiculous to the
des [Thu, 23 May 2002 22:03:06 +0000 (22:03 +0000)]
Just to show that PAM can do almost anything from the ridiculous to the
obscene, or - as they say in New York - sophisticated, add pam_echo(8) and
pam_exec(8) to our ever-lengthening roster of PAM modules.

Sponsored by: DARPA, NAI Labs.

22 years agoo Conditionalize sections for POSIX.1-2001 compatibility.
mike [Thu, 23 May 2002 18:48:27 +0000 (18:48 +0000)]
o Conditionalize sections for POSIX.1-2001 compatibility.
o Use POSIX spelling for types, where possible.
o Define size_t in the __BSD_VISIBLE case (this isn't really needed
  for standards conformance, but follows the tradition of not
  requiring <sys/types.h> as a prerequisite).
o Use _BYTE_ORDER and friends instead of BYTE_ORDER and friends, since
  there may not be enough pollution in order for the latter to work.
o Add an XXX note about the missing IPPROTO_IPV6 macro.

22 years agoANSIfy variable-argument macros.
markm [Thu, 23 May 2002 18:26:23 +0000 (18:26 +0000)]
ANSIfy variable-argument macros.

22 years agoSync with upstream version:
fanf [Thu, 23 May 2002 16:50:41 +0000 (16:50 +0000)]
Sync with upstream version:
  * Ensure we work within the array bounds when parsing command-line options;
  * Replace h0h0getopt with getopt(3);
  * Use consistent whitespace style in the function declarations.

Revieweded by: dwmalone (mentor)

22 years agoIn m_aux_delete, no need to chase beyond victim.
ume [Thu, 23 May 2002 15:59:48 +0000 (15:59 +0000)]
In m_aux_delete, no need to chase beyond victim.

Submitted by: archie
Obtained from: KAME

22 years agoUn-kmemize. Portions of the tty mode code have been temporarily disabled;
des [Thu, 23 May 2002 15:09:49 +0000 (15:09 +0000)]
Un-kmemize.  Portions of the tty mode code have been temporarily disabled;
everything else, including dead kernel support, works just like before.

Sponsored by: DARPA, NAI Labs

22 years agoHandle numeric keys by checking a "default" file. Handle number-less keys
jmallett [Thu, 23 May 2002 14:58:22 +0000 (14:58 +0000)]
Handle numeric keys by checking a "default" file.  Handle number-less keys
by failing, since comparing up to the length of the key (0) against the
begin line for a key in the help file will always succeed, and print what
is wholly bogus output.

22 years agoNits in previous commits.
des [Thu, 23 May 2002 14:58:07 +0000 (14:58 +0000)]
Nits in previous commits.

Sponsored by: DARPA, NAI Labs

22 years agoCull large amounts of dead code (deprecated since 1997)
des [Thu, 23 May 2002 14:53:04 +0000 (14:53 +0000)]
Cull large amounts of dead code (deprecated since 1997)

Sponsored by: DARPA, NAI Labs

22 years agoANSIfy.
des [Thu, 23 May 2002 14:48:25 +0000 (14:48 +0000)]
ANSIfy.

Sponsored by: DARPA, NAI Labs

22 years agoStaticize.
des [Thu, 23 May 2002 14:44:23 +0000 (14:44 +0000)]
Staticize.

Sponsored by: DARPA, NAI Labs

22 years agoWhitespace cleanup.
des [Thu, 23 May 2002 14:42:17 +0000 (14:42 +0000)]
Whitespace cleanup.

Sponsored by: DARPA, NAI Labs

22 years agoUnbreak tty mode (cons was renamed to constty a while ago)
des [Thu, 23 May 2002 14:41:52 +0000 (14:41 +0000)]
Unbreak tty mode (cons was renamed to constty a while ago)

Sponsored by: DARPA, NAI Labs

22 years agoAvoid wandering over the beginning of the actual buffer
robert [Thu, 23 May 2002 14:21:02 +0000 (14:21 +0000)]
Avoid wandering over the beginning of the actual buffer
if the passed template string contains only 'X' characters.

Submitted by: Mark Andrews <marka@isc.org> (patch modified)
PR: 38402

22 years agoRemoved the ch, sa and ses devices from 'SMALL' boot floppy image.
nyan [Thu, 23 May 2002 14:15:48 +0000 (14:15 +0000)]
Removed the ch, sa and ses devices from 'SMALL' boot floppy image.

22 years agoload_env(), the function that attempts to parse a crontab
roberto [Thu, 23 May 2002 13:16:30 +0000 (13:16 +0000)]
load_env(), the function that attempts to parse a crontab
line as an environment variable assignment, is broken
and not conformant to its description in the manual page.

I think it is worthwhile to have that fix in 4.6.

PR:             bin/38374
Submitted by:   Thomas Quinot <thomas@cuivre.fr.eu.org>
MFC after:      2 days

22 years agoWhitespace only; fix indentation.
markm [Thu, 23 May 2002 12:09:14 +0000 (12:09 +0000)]
Whitespace only; fix indentation.

22 years agoSet the MAKEFILE variable to the value passed to ReadMakefile(), not the full
jmallett [Thu, 23 May 2002 12:01:54 +0000 (12:01 +0000)]
Set the MAKEFILE variable to the value passed to ReadMakefile(), not the full
path to it.  Use the full path only for parsing it.

22 years agoDont panic if only one disk on a channel can do tagged queueing.
sos [Thu, 23 May 2002 08:17:16 +0000 (08:17 +0000)]
Dont panic if only one disk on a channel can do tagged queueing.

MFC: asap

22 years agoThis manpage is for Alpha only.
ru [Thu, 23 May 2002 07:38:51 +0000 (07:38 +0000)]
This manpage is for Alpha only.

22 years agoFixed broken ``make -jX install''.
ru [Thu, 23 May 2002 07:25:01 +0000 (07:25 +0000)]
Fixed broken ``make -jX install''.

Spotted by: make release TARGET_ARCH=ia64

22 years agoMinor nit: get p pointer in msleep() from td->td_proc (where
jhb [Thu, 23 May 2002 04:14:18 +0000 (04:14 +0000)]
Minor nit: get p pointer in msleep() from td->td_proc (where
td == curthread) rather than from curproc.

22 years agoWhitespace: trim a trailing tab.
jhb [Thu, 23 May 2002 04:12:28 +0000 (04:12 +0000)]
Whitespace: trim a trailing tab.

22 years agoMake the counters uintmax_ts, and use %ju rather than %llu.
des [Thu, 23 May 2002 03:08:42 +0000 (03:08 +0000)]
Make the counters uintmax_ts, and use %ju rather than %llu.

22 years agoMake my style consistent.
jmallett [Thu, 23 May 2002 03:03:44 +0000 (03:03 +0000)]
Make my style consistent.

Remove two includes.

Fix a typo (semicolon instead of period at EOL).

22 years agoComment out extra tokens after #else and #endif.
des [Thu, 23 May 2002 00:38:07 +0000 (00:38 +0000)]
Comment out extra tokens after #else and #endif.

22 years agoFix a panic by allocating the iface structure locally in the attach
joe [Thu, 23 May 2002 00:36:14 +0000 (00:36 +0000)]
Fix a panic by allocating the iface structure locally in the attach
function instead of in usb_probe_and_attach.

22 years ago- Turn two more storage pools into UMA zones and make the related memory
arr [Thu, 23 May 2002 00:34:12 +0000 (00:34 +0000)]
- Turn two more storage pools into UMA zones and make the related memory
  allocations and frees use the UMA api.

22 years agoReflect some changes in the NetBSD code path, and sligh adjustments to ours.
joe [Thu, 23 May 2002 00:26:06 +0000 (00:26 +0000)]
Reflect some changes in the NetBSD code path, and sligh adjustments to ours.
(Non-functional changes).

22 years agoHide a couple of unguarded error returns behind the no_fail test.
des [Thu, 23 May 2002 00:04:14 +0000 (00:04 +0000)]
Hide a couple of unguarded error returns behind the no_fail test.

Sponsored by: DARPA, NAI Labs

22 years agoHide a couple of unguarded error returns behind the no_fail test.
des [Thu, 23 May 2002 00:02:59 +0000 (00:02 +0000)]
Hide a couple of unguarded error returns behind the no_fail test.

22 years agoFree old_pwd only in the code path where it has been allocated.
jmallett [Wed, 22 May 2002 23:18:25 +0000 (23:18 +0000)]
Free old_pwd only in the code path where it has been allocated.

Reviewed by: des

22 years agoTaking a leap of faith, tie the help command in to the build.
jmallett [Wed, 22 May 2002 23:15:58 +0000 (23:15 +0000)]
Taking a leap of faith, tie the help command in to the build.

22 years agoAdd my PD implementation of the SCCS help command, which prints help from
jmallett [Wed, 22 May 2002 23:14:17 +0000 (23:14 +0000)]
Add my PD implementation of the SCCS help command, which prints help from
files in the format used by SCCS, given a key.  It behaves exactly like the
``proper'' SCCS help command, from what testing I can do.

22 years agoNew release notes: asa(1), pathchk(1), sccs(1),
bmah [Wed, 22 May 2002 23:03:43 +0000 (23:03 +0000)]
New release notes:  asa(1), pathchk(1), sccs(1),
uuencode(1)/uudecode(1) base64 synonyms, ptx removal.

Modified release notes:  ncurses 5.2-20020518.

22 years agoSync with NetBSD. (Non functional changes).
joe [Wed, 22 May 2002 23:01:13 +0000 (23:01 +0000)]
Sync with NetBSD. (Non functional changes).

22 years agoFix a bug: Use USBD_DEFAULT_INTERVAL instead of USBD_DEFAULT_TIMEOUT
joe [Wed, 22 May 2002 22:58:38 +0000 (22:58 +0000)]
Fix a bug: Use USBD_DEFAULT_INTERVAL instead of USBD_DEFAULT_TIMEOUT
in a call to usbd_open_pipe_ival.

22 years agoIncrease the maximum FSM option length to 50
brian [Wed, 22 May 2002 21:17:13 +0000 (21:17 +0000)]
Increase the maximum FSM option length to 50

22 years agoAdd some missing #includes that weren't required due to namespace polution
brian [Wed, 22 May 2002 21:08:58 +0000 (21:08 +0000)]
Add some missing #includes that weren't required due to namespace polution
in our headers.

Submitted by: bde

22 years agoRename pause() to ia32_pause() so it doesn't conflict with the pause()
jhb [Wed, 22 May 2002 20:32:39 +0000 (20:32 +0000)]
Rename pause() to ia32_pause() so it doesn't conflict with the pause()
function defined in <unistd.h>.  I didn't #ifdef _KERNEL it because the
mutex implementation in libpthread will probably need this.

22 years agoRestore us back to the rev 1.324 level of having an Intel gigE driver.
obrien [Wed, 22 May 2002 19:00:48 +0000 (19:00 +0000)]
Restore us back to the rev 1.324 level of having an Intel gigE driver.

22 years agoUpdate 164SX section with newly acquired insights.
wilko [Wed, 22 May 2002 18:09:37 +0000 (18:09 +0000)]
Update 164SX section with newly acquired insights.

Submitted by: Sten <sten@blinkenlights.nl>

22 years agoAdd a warning regarding localhost-only listening daemons inside jails.
gshapiro [Wed, 22 May 2002 16:37:32 +0000 (16:37 +0000)]
Add a warning regarding localhost-only listening daemons inside jails.
Apparently binding only to 127.0.0.1 inside of a jail actually binds
to the jail IP address as well (in effect, bind to all available
interfaces in the jail).

Submitted by: Helge Oldach <test-smtp@oldach.net>
MFC after: 1 day
pending RE approval

22 years ago1/2assed reimplementation of c-common.c revs 1.2 (-fformat-extensions)
obrien [Wed, 22 May 2002 16:37:09 +0000 (16:37 +0000)]
1/2assed reimplementation of c-common.c revs 1.2 (-fformat-extensions)
and 1.3 (printf0) for GCC 3.1.

22 years agoTie sccs(1) in to the build, as it now does one thing right: sccs what
jmallett [Wed, 22 May 2002 16:19:31 +0000 (16:19 +0000)]
Tie sccs(1) in to the build, as it now does one thing right: sccs what

22 years agoRemove mention of the GNU version of ptx, it is dead.
jmallett [Wed, 22 May 2002 16:18:14 +0000 (16:18 +0000)]
Remove mention of the GNU version of ptx, it is dead.

22 years agoAdd a usage().
jmallett [Wed, 22 May 2002 16:09:52 +0000 (16:09 +0000)]
Add a usage().

Print usage() if right before executing the specified command, it comes to be
that *argv is NULL (i.e. a flag was specified without a command being given).

22 years agoRemove #ifndef's on V6.
jmallett [Wed, 22 May 2002 16:01:50 +0000 (16:01 +0000)]
Remove #ifndef's on V6.

22 years agoPut braces around the command table properly.
jmallett [Wed, 22 May 2002 15:59:27 +0000 (15:59 +0000)]
Put braces around the command table properly.

22 years agoUse what(1) here, in /usr/bin/what. It doesn't print error 26 correctly, but
jmallett [Wed, 22 May 2002 15:44:29 +0000 (15:44 +0000)]
Use what(1) here, in /usr/bin/what.  It doesn't print error 26 correctly, but
neither does the pd sccs(1) implementation I have around, so there's no loss
for now.

22 years agostr_concat() doesn't really take const arguments.
jmallett [Wed, 22 May 2002 15:34:00 +0000 (15:34 +0000)]
str_concat() doesn't really take const arguments.

Submitted by: bde
Pointy hat to: jmallett

22 years agoDo not run shell from /bin, run it from $PATH.
ru [Wed, 22 May 2002 14:53:18 +0000 (14:53 +0000)]
Do not run shell from /bin, run it from $PATH.
Bump MAKE_VERSION to 5200205221.

22 years agoAdded the MAKE_VERSION global that could be useful in determining
ru [Wed, 22 May 2002 14:35:47 +0000 (14:35 +0000)]
Added the MAKE_VERSION global that could be useful in determining
if a given make(1) is feature-compatible with a set of makefiles.

When merged, this will be used to replace the ugly upgrade_checks
hacks in src/Makefile.

Version has the RYYYYMMDDX format, where R is from RELENG_<R> and
X allows for 10 distinguishable changes per day.

Discussed with: bde

22 years agoRepair a bug where type AAAA answer records were not displayed.
nectar [Wed, 22 May 2002 14:27:35 +0000 (14:27 +0000)]
Repair a bug where type AAAA answer records were not displayed.
Reference ISC BIND issue:
``1279.   [bug]           nslookup: partial coversion to similar style outputs
                          for both -type=aaaa and -type=a.''

Reported by: ume

22 years agoDo not attempt to free static memory.
nectar [Wed, 22 May 2002 14:24:44 +0000 (14:24 +0000)]
Do not attempt to free static memory.
Reference ISC BIND issue:
``1278.   [bug]           free() of non-malloced memory in nslookup.''

Reported by: phkmalloc, Mike Tancsa <mike@sentex.net>

22 years agoFormat internal commands properly.
jmallett [Wed, 22 May 2002 14:17:16 +0000 (14:17 +0000)]
Format internal commands properly.

Kill a bit of trailing whitespace.

Fix a path format.

Submitted by: mdoc(7) police (ru)

22 years agoClean up the manual page by leaps and bounds in terms of formatting.
jmallett [Wed, 22 May 2002 13:59:52 +0000 (13:59 +0000)]
Clean up the manual page by leaps and bounds in terms of formatting.

Ruslan's version took away the '.Nm' for some commands, but not others, so
I chose to go with leaving '.Nm'.

Submitted by: ru

22 years agoMake the guarded string functions take a const "from" addr, and make the
jmallett [Wed, 22 May 2002 13:41:08 +0000 (13:41 +0000)]
Make the guarded string functions take a const "from" addr, and make the
function that prints when a botched guarded string operation occurs take
two const arguments.

XXX Should we use strlcat/strlcpy instead and hope for the best?

22 years agoDebug registers aren't selectors, so use saner names for the variables in
jhb [Wed, 22 May 2002 13:29:18 +0000 (13:29 +0000)]
Debug registers aren't selectors, so use saner names for the variables in
the inline functions for reading and writing the debug registers.

22 years ago- Sort the pause() inline into the appropriate location.
jhb [Wed, 22 May 2002 13:27:05 +0000 (13:27 +0000)]
- Sort the pause() inline into the appropriate location.
- Add many missing prototypes to the non-GCC section.

22 years agoRename cpu_pause() to pause(). Originally I was going to make this an
jhb [Wed, 22 May 2002 13:19:22 +0000 (13:19 +0000)]
Rename cpu_pause() to pause().  Originally I was going to make this an
MI API with empty cpu_pause() functions on other arch's, but this
functionality is definitely unique to IA-32, so I decided to leave it
as i386-only and wrap it in #ifdef's.  I should have dropped the cpu_
prefix when I made that decision.

Requested by: bde

22 years agoRemove register qualifier.
jmallett [Wed, 22 May 2002 12:32:54 +0000 (12:32 +0000)]
Remove register qualifier.

22 years agoUse function prototypes.
jmallett [Wed, 22 May 2002 12:31:40 +0000 (12:31 +0000)]
Use function prototypes.

22 years agoPSD:19 (curses) is long dead.
ru [Wed, 22 May 2002 11:58:34 +0000 (11:58 +0000)]
PSD:19 (curses) is long dead.

22 years agoUnencumber.
ru [Wed, 22 May 2002 11:57:29 +0000 (11:57 +0000)]
Unencumber.

22 years agoBuild sccs(1) docs.
ru [Wed, 22 May 2002 11:55:47 +0000 (11:55 +0000)]
Build sccs(1) docs.

22 years ago19.curses wasn't encumbered, it's just dead.
ru [Wed, 22 May 2002 11:45:23 +0000 (11:45 +0000)]
19.curses wasn't encumbered, it's just dead.

22 years agoClean up formatting.
jmallett [Wed, 22 May 2002 11:29:21 +0000 (11:29 +0000)]
Clean up formatting.

22 years agoReplace the evil that is __DECONST() with (void *). This is one of the least
jmallett [Wed, 22 May 2002 11:16:48 +0000 (11:16 +0000)]
Replace the evil that is __DECONST() with (void *).  This is one of the least
evil things we can do involving the const qualifier and a pointer.

Submitted by: bde, ru

22 years agoMake sccs(1) compile cleanly by fixing syntax errors such as #endif followed
jmallett [Wed, 22 May 2002 11:10:03 +0000 (11:10 +0000)]
Make sccs(1) compile cleanly by fixing syntax errors such as #endif followed
by a token, and by including headers to get prototypes for many things, and
also by spelling the type of structure readdir(3) returns as "dirent".

22 years agoUnroff all forms of \f and \*, and the simplest form of \s.
ru [Wed, 22 May 2002 11:08:41 +0000 (11:08 +0000)]
Unroff all forms of \f and \*, and the simplest form of \s.

Submitted by: fenner, ru
Reviewed by: ru, fenner

22 years agoRevision 1.39 made filtering of CFLAGS unnecessary.
ru [Wed, 22 May 2002 11:03:35 +0000 (11:03 +0000)]
Revision 1.39 made filtering of CFLAGS unnecessary.

22 years agoRevive the SCCS front-end, sccs(1), back from the Attic, since it's something
jmallett [Wed, 22 May 2002 10:43:50 +0000 (10:43 +0000)]
Revive the SCCS front-end, sccs(1), back from the Attic, since it's something
SUS wants (they want the entire suite of SCCS commands, we don't have them,
but we *had* the frontend, so we can have it again, and now).

Add $FreeBSD$ where appropriate, don't revive PSD.doc/spell.ok.

22 years agoFixed build of recently added legacy docs.
ru [Wed, 22 May 2002 10:41:12 +0000 (10:41 +0000)]
Fixed build of recently added legacy docs.

Reviewed by: grog

22 years agoAdded share/doc/[pu]sd entries.
ru [Wed, 22 May 2002 10:38:25 +0000 (10:38 +0000)]
Added share/doc/[pu]sd entries.

Reviewed by: grog

22 years agoEliminate free'ing already freed chunks.
sobomax [Wed, 22 May 2002 10:33:25 +0000 (10:33 +0000)]
Eliminate free'ing already freed chunks.

MFC after: 1 week

22 years agoBuild pathchk(1).
tjr [Wed, 22 May 2002 10:32:24 +0000 (10:32 +0000)]
Build pathchk(1).

22 years agoAdd the pathchk utility, which checks pathnames for validity or
tjr [Wed, 22 May 2002 10:30:16 +0000 (10:30 +0000)]
Add the pathchk utility, which checks pathnames for validity or
portability between POSIX systems.

Submitted by: Chuck Rouillard (manpage, initial implementation)

22 years agoQuick fix for non-unique inode numbers for hard links. We use the
bde [Wed, 22 May 2002 08:50:18 +0000 (08:50 +0000)]
Quick fix for non-unique inode numbers for hard links.  We use the
byte offset of the directory entry for the inode number for all types
of files except directories, although this breaks hard links for
non-directories even if it doesn't cause overflow.  Just ignore this
broken inode number for stat() and readdir() and return a less broken
one (the block offset of the file), so that applications normally can't
see the brokenness.

This leaves at least the following brokenness:
- extra inodes, vnodes and caching for hard links.
- various overflow bugs.  cd9660 supports 64-bit block numbers, but we
  silently ignore the top 32 bits in isonum_733() and then drop another
  10 bits for our broken inode numbers.  We may also have sign extension
  bugs from storing 32-bit extents in ints and longs even if ints are
  32-bits.  These bugs affect DVDs.  mkisofs apparently limits them
  by writing directory entries first.

Inode numbers were broken mainly in 4.4BSD-Lite2.  FreeBSD-1.1.5 seems
to have a correct implementation modulo the overflow bugs.  We need
to look up directory entries from inodes for symlinks only.  FreeBSD-1.1.5
use separate fields (iso_parent_extent, iso_parent) to point to the
directory entry.  4.4BSD-Lite doesn't have these, and abuses i_ino to
point to the directory entry.  Correct pointers are impossible for
hard links, but symlinks can't be hard links.