The NetBSD Project

CVS log for src/sbin/init/init.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / init

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.109 / (download) - annotate - [select for diffs], Mon Oct 11 20:23:25 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.108: +18 -4 lines
Diff to previous 1.108 (colored) to selected 1.36 (colored)

Allow getty to exit quickly a few times before deciding that it is exiting
too quickly. Based on a FreeBSD change from 1994.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jun 22 07:50:53 2020 UTC (3 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.36 (colored)

s/successfuly/successfully/ in comment. No functional change.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Oct 14 15:53:24 2015 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored) to selected 1.36 (colored)

these are syslog-like

Revision 1.106 / (download) - annotate - [select for diffs], Tue Jun 16 23:18:55 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.36 (colored)

fix error messages containing \n

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:33 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.102.2.1: +11 -3 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.36 (colored)

sync with (a bit old) head

Revision 1.102.4.1 / (download) - annotate - [select for diffs], Fri Nov 23 16:37:21 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.102: +5 -3 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.36 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #698):
	sbin/init/init.c: revision 1.105
Add missing free() in error path.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:48 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.103: +11 -3 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.36 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.105 / (download) - annotate - [select for diffs], Fri Nov 9 06:27:17 2012 UTC (11 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.104: +5 -3 lines
Diff to previous 1.104 (colored) to selected 1.36 (colored)

Add missing free() in error path.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Nov 4 22:20:03 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.103: +8 -2 lines
Diff to previous 1.103 (colored) to selected 1.36 (colored)

include the needed headers

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:40 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.36 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Tue Mar 20 18:50:31 2012 UTC (12 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.36 (colored)

Convert to C89 function definitions

Revision 1.102 / (download) - annotate - [select for diffs], Sun Aug 28 10:13:03 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.101: +18 -17 lines
Diff to previous 1.101 (colored) to selected 1.36 (colored)

make it compile with SMALLPROG

Revision 1.101 / (download) - annotate - [select for diffs], Sat Aug 27 17:43:42 2011 UTC (12 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.100: +90 -95 lines
Diff to previous 1.100 (colored) to selected 1.36 (colored)

Be more static

Revision 1.100 / (download) - annotate - [select for diffs], Tue Dec 29 17:07:17 2009 UTC (14 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.99: +41 -2 lines
Diff to previous 1.99 (colored) to selected 1.36 (colored)

Keep an internal variable indicating whether securelevel is present, and
don't blindly try to get/set it. Prevents error messages that don't make
sense if securelevel isn't supported by the kernel.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Nov 22 18:40:26 2009 UTC (14 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.36 (colored)

s/the the/the/

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:02 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.97: +8 -7 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.36 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.98 / (download) - annotate - [select for diffs], Sun Apr 12 09:31:32 2009 UTC (14 years, 11 months ago) by apb
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.97: +8 -7 lines
Diff to previous 1.97 (colored) to selected 1.36 (colored)

If MAKEDEV exits non-zero, but was nevertheless able to create
/dev/console, then have init(8) just print a warning instead of
exiting.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jan 18 00:25:13 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.36 (colored)

fix -Wsign-compare issues

Revision 1.94.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:12 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.3: +4 -4 lines
Diff to previous 1.94.6.3 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.36 (colored)

Sync with HEAD.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:25 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.36 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:22 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) to selected 1.36 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.94.6.3 / (download) - annotate - [select for diffs], Fri Apr 4 21:21:10 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.2: +3 -11 lines
Diff to previous 1.94.6.2 (colored) to branchpoint 1.94 (colored) to selected 1.36 (colored)

* Catch up with selnotify() changes.

* Catch up with some softc changes in HEAD.

* More s/dctl/devfsctl/ changes.

* Remove debugging printfs from init(8) that slipped in by mistake.

* Cosmetic changes in devfsd, allow multiple attributes to be set in
  one rule. Switch from err() to syslog() messages.

* Fix etc/devfsd.conf, I'd made some changes previously that had syntax
  errors.

Revision 1.94.6.2 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:11 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.1: +8 -9 lines
Diff to previous 1.94.6.1 (colored) to branchpoint 1.94 (colored) to selected 1.36 (colored)

Sync with HEAD.

Revision 1.94.6.1 / (download) - annotate - [select for diffs], Sat Mar 29 16:17:56 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.94: +53 -2 lines
Diff to previous 1.94 (colored) to selected 1.36 (colored)

- etc/devfsd.conf: Add some rules to give nodes like /dev/tty and
  		   /dev/null better default modes, i.e. 0666.

- sbin/init: Run devfsd -s before going to multiuser.

- sys/arch: Provide arm32, i386, sparc with a mem_init() function to request
  	    device nodes for /dev/null, /dev/zero, etc.

- sys/dev: Convert rnd, wd, agp, raid, cd, sd, wsdisplay, wskbd, wsmouse,
	   wsmux, tty, bpf, swap to devfs New World Order.

- sys/fs/devfs: Make the visibility attribute of device nodes configurable.
	        Also provide a function to mount a devfs on boot.

- sys/kern: Add a new boot flag, -n. This disables devfs support. Unless
	    the -n flag is specified the kernel will mount a devfs file
	    system on boot.

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:49 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.94: +8 -9 lines
Diff to previous 1.94 (colored) next main 1.95 (colored) to selected 1.36 (colored)

sync with head.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:24 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.93.4.1: +8 -9 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.36 (colored)

sync with HEAD

Revision 1.95 / (download) - annotate - [select for diffs], Tue Mar 18 15:38:57 2008 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.94: +8 -9 lines
Diff to previous 1.94 (colored) to selected 1.36 (colored)

un-bitrot #if 0 testing code.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:38:09 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.36 (colored)

sync with HEAD

Revision 1.93.6.1 / (download) - annotate - [select for diffs], Thu Dec 27 00:47:00 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.36 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Dec 9 09:16:28 2007 UTC (16 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.36 (colored)

No need to pass "-ppax" to MAKEDEV now that MAKEDEV internally defaults
to using pax.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Mar 21 03:51:30 2007 UTC (17 years ago) by dyoung
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: mjf-devfs, matt-armv6
Changes since 1.92: +34 -34 lines
Diff to previous 1.92 (colored) to selected 1.36 (colored)

KNF.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Mar 11 19:02:04 2007 UTC (17 years ago) by apb
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.36 (colored)

Adapt to the new MAKEDEV interpretation of -M by passing -MM.

Also pass "-ppax" in an attempt to get improved performance,
but this doesn't really work in the typical case, because the
install ramdisk image contains a version of pax(1) that doesn't
support the -M flag.  (MAKEDEV detects the failure and falls back
to using mknod(8) as usual.)

Revision 1.91 / (download) - annotate - [select for diffs], Fri Mar 2 22:43:24 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.90: +66 -144 lines
Diff to previous 1.90 (colored) to selected 1.36 (colored)

Instead of creating the mfs /dev here, get MAKEDEV to do it.
Removes a load of code that is easier done as a script.
Whenever init exits, use a different error number. Since it is difficult
for init to output messages when /dev/console is absent, having the exit
code reported by the kernel panic gives a chance of identifying the fault.
Also exit if MAKEDEV fails to create /dev/console.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Mar 1 18:25:58 2007 UTC (17 years, 1 month ago) by apb
Branch: MAIN
Changes since 1.89: +7 -5 lines
Diff to previous 1.89 (colored) to selected 1.36 (colored)

When calculating the size of the MFS /dev file system, round file sizes
up to a multiple of 512.  (Not doing this before was wrong but probably
asymptomatic, because there was enough slack space to cope with the
error).

Revision 1.89 / (download) - annotate - [select for diffs], Thu Mar 1 07:18:07 2007 UTC (17 years, 1 month ago) by apb
Branch: MAIN
Changes since 1.88: +17 -17 lines
Diff to previous 1.88 (colored) to selected 1.36 (colored)

When creating /dev in a memory file system, include all three of
MAKEDEV, MAKEDEV.subr and MAKEDEV.local in the set of files that are
copied if they exist.

Now booting an INSTALL kernel with an embedded ramdisk correctly creates
/dev again, fixing a problem introduced when MAKEDEV.subr was created a
few days ago.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Fri Feb 16 20:31:20 2007 UTC (17 years, 1 month ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.36 (colored)

Pull up following revision(s) (requested by tron in ticket #441):
	sbin/init/init.c: revision 1.88
Increase the numbers of inodes available on the "/dev" MFS to 1280.
This should fix the "sysinst" problems caused by adding more devices
node to resolve PR port-amd64/35532.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Feb 15 22:39:12 2007 UTC (17 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.36 (colored)

Increase the numbers of inodes available on the "/dev" MFS to 1280.
This should fix the "sysinst" problems caused by adding more devices
node to resolve PR port-amd64/35532.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Feb 6 20:24:19 2007 UTC (17 years, 1 month ago) by cbiere
Branch: MAIN
Changes since 1.86: +46 -57 lines
Diff to previous 1.86 (colored) to selected 1.36 (colored)

Revert previous commit.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Feb 5 22:36:18 2007 UTC (17 years, 1 month ago) by cbiere
Branch: MAIN
Changes since 1.85: +59 -48 lines
Diff to previous 1.85 (colored) to selected 1.36 (colored)

 * 0/1 -> EXIT_{SUCCESS,FAILURE}
 * make_utmpx(): Added comment and slightly simpler construct.
 * alrm_handler(): Suppress "unused parameter" warning.
 * mapfile():
   * Handle st.st_size correctly.
   * Avoid unnecessary return statements.
   * Removed unnecessary MAP_FILE flag.
   * Use S_ISLNK() and check S_ISREG() too.
   * Add the terminating NUL rather after readlink() than
     before, just in case.
 * writefile():
   * Avoid unnecessary return statements.
 * read_ttys():
   * Check S_ISREG() as well.
   * Check for st.st_size > 0 rather than != 0.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Feb 5 15:37:20 2007 UTC (17 years, 1 month ago) by njoly
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored) to selected 1.36 (colored)

Fix compilation on 64bit platforms.
ok by elad.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Feb 4 20:53:19 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.83: +40 -37 lines
Diff to previous 1.83 (colored) to selected 1.36 (colored)

- close the utmpx file.
- sprinkle void
- use size_t consistently.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jan 20 13:25:28 2007 UTC (17 years, 2 months ago) by isaki
Branch: MAIN
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored) to selected 1.36 (colored)

Make it compile without SUPPORT_UTMP nor SUPPORT_UTMPX.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jan 17 21:59:49 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored) to selected 1.36 (colored)

Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>

Revision 1.81 / (download) - annotate - [select for diffs], Thu Sep 28 15:20:14 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.80: +10 -2 lines
Diff to previous 1.80 (colored) to selected 1.36 (colored)

Don't record runlvl transitions before we have a read-write /var. Noticed
by lrou at x dot ua.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Sep 25 19:42:04 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.79: +33 -32 lines
Diff to previous 1.79 (colored) to selected 1.36 (colored)

Error message consistency:
1. don't print the program name in the message [syslog does it]
2. no extraneous \n [syslog takes care of it]
3. quote strings as `%s' [we are using syslog]
4. use %m instead of error = %d

Revision 1.79 / (download) - annotate - [select for diffs], Sat Sep 23 18:57:26 2006 UTC (17 years, 6 months ago) by he
Branch: MAIN
Changes since 1.78: +1 -1 lines
Diff to previous 1.78 (colored) to selected 1.36 (colored)

Um, correct previous, so that current_state def/use is consistent.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 23 14:04:26 2006 UTC (17 years, 6 months ago) by he
Branch: MAIN
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.36 (colored)

Since current_state is conditionally defined, make sure its uses are as well.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Sep 22 21:49:21 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.76: +135 -8 lines
Diff to previous 1.76 (colored) to selected 1.36 (colored)

Try entertain who(1) because it has been sad since it was swallowed by the
Death Star: add utmpx entries for boot time, down time, run level, login
process.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jul 30 20:01:26 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.75: +3 -4 lines
Diff to previous 1.75 (colored) to selected 1.36 (colored)

update comment, thanks freza@.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jul 30 19:53:20 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.36 (colored)

CTLFLAG_READONLY1 was deprecated in earlier commit, remove it here too

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jul 30 19:46:33 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.36 (colored)

remove CTLFLAG_READONLY1 usage. pointed out by cube@, thanks..

Revision 1.73 / (download) - annotate - [select for diffs], Tue Apr 18 11:40:26 2006 UTC (17 years, 11 months ago) by salo
Branch: MAIN
Changes since 1.72: +242 -20 lines
Diff to previous 1.72 (colored) to selected 1.36 (colored)

Add support for running multi-user in a chroot() environment.

How it works:

- after successful execution of /etc/rc, check the value of "init.root"
  sysctl node, if it's different than "/", chroot() into its value and run
  /etc/rc inside the chroot(),

- in single-user, return back to the original / file system.

Allows running with / file system on e.g., cgd(4), vnd(4) or ccd(4) volumes.

Idea first discussed with Matt Thomas, implemented by Jachym Holecek <freza
(at) liberouter.org> with some nitpicks by me.  Successfully used by me for
almost a year with / on a cgd(4) volume (for more information about the setup
check ftp://ftp.NetBSD.org/pub/NetBSD/misc/salo/init-chroot/ ).

Revision 1.72 / (download) - annotate - [select for diffs], Fri Mar 17 15:53:46 2006 UTC (18 years ago) by rumble
Branch: MAIN
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored) to selected 1.36 (colored)

Check for allocation failures in malloc, calloc, realloc, asprintf, and
vasprintf and try to handle them.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Mar 17 02:48:29 2006 UTC (18 years ago) by chris
Branch: MAIN
Changes since 1.70: +8 -3 lines
Diff to previous 1.70 (colored) to selected 1.36 (colored)

Fix case where argv wasn't returned or freed.

This fixes Coverity CID 2023.

While here also return NULL if the malloc fails.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jun 27 01:00:05 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.69: +7 -7 lines
Diff to previous 1.69 (colored) to selected 1.36 (colored)

Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.

Revision 1.63.2.1.2.1 / (download) - annotate - [select for diffs], Tue May 10 17:23:51 2005 UTC (18 years, 10 months ago) by riz
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.63.2.1: +3 -3 lines
Diff to previous 1.63.2.1 (colored) next main 1.64 (colored) to selected 1.36 (colored)

Pull up revision 1.69 (requested by martin in ticket #1331):
Bump the number of inodes to 1024 in the MFS case, needed to
create more devices in the ramdisk images, ok'ed by thorpej@.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Mar 15 23:43:50 2005 UTC (19 years ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.36 (colored)

Bump the number of inodes to 1024 in the MFS case, needed to
create more devices in the ramdisk images, ok'ed by thorpej@.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Nov 12 04:43:29 2004 UTC (19 years, 4 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.36 (colored)

Pullup rev 1.68 (requested by dan in ticket #914)

Be explicit about the perms of mfs /dev.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Oct 12 10:08:09 2004 UTC (19 years, 5 months ago) by dan
Branch: MAIN
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored) to selected 1.36 (colored)

be explicit about the perms of mfs /dev

Revision 1.67 / (download) - annotate - [select for diffs], Fri Aug 13 17:22:39 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored) to selected 1.36 (colored)

Put back one of the sleep()s -- it doesn't affect us in the usual case.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 13 17:19:15 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored) to selected 1.36 (colored)

Replace the sleep(2) in setctty() with a nanosleep(), with a default value of
250ms.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Aug 13 17:11:49 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.64: +2 -3 lines
Diff to previous 1.64 (colored) to selected 1.36 (colored)

Remove a completely gratuitous 30 delay if you enter the wrong shell path.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 6 01:42:20 2004 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.63: +8 -2 lines
Diff to previous 1.63 (colored) to selected 1.36 (colored)

clear_session_logs is not needed when we are small.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 3 13:31:32 2003 UTC (20 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-0-base, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Branch point for: netbsd-2-0
Changes since 1.62: +6 -3 lines
Diff to previous 1.62 (colored) to selected 1.36 (colored)

If /dev/constty exists, use it instead of /dev/console for single user shell.
I'm not 100% certain it should call login_tty() for anything else.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Sep 11 12:51:51 2003 UTC (20 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.61: +58 -23 lines
Diff to previous 1.61 (colored) to selected 1.36 (colored)

If /dev/MAKEDEV is a symlink then preserve the symlink in the mfs /dev.
If /dev/MAKEDEV doesn't exist then try to run /etc/MAKEDEV instead.
Use the (new) '-n inodes' option to mount_mfs and base the size on the number
of inodes and the size of the MAKEDEV script.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:25 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.60: +3 -7 lines
Diff to previous 1.60 (colored) to selected 1.36 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Aug 5 09:31:48 2003 UTC (20 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.59: +11 -13 lines
Diff to previous 1.59 (colored) to selected 1.36 (colored)

Exit child process if we fail to 'cd /dev' or 'execl sh MAKEDEV'.
Don't really want two processes in the rest of init!

Revision 1.59 / (download) - annotate - [select for diffs], Sat Jul 12 14:46:41 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.58: +8 -6 lines
Diff to previous 1.58 (colored) to selected 1.36 (colored)

use asprintf, which is easier

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jul 1 16:44:48 2003 UTC (20 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.57: +49 -39 lines
Diff to previous 1.57 (colored) to selected 1.36 (colored)

Avoid code duplication by factoring out the open/map open/write/unmap functions.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jul 1 15:24:22 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.56: +2 -4 lines
Diff to previous 1.56 (colored) to selected 1.36 (colored)

Always compile in support for attempting to obtain the major device
number of the console from sysctl("machdep.console_device"), rather
than making in optional on the (unused) #ifdef DEBUG.
Certain platforms do not have the console at makedev(0,0) (including
many arm32 and some sh3 platforms), so the "mfs MAKEDEV" hack would
have failed on those.

Noted in private discussion with Quentin Barnes.

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 26 09:34:55 2003 UTC (20 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.55: +23 -18 lines
Diff to previous 1.55 (colored) to selected 1.36 (colored)

If RESCUEDIR is defined, use that as an alternate path to sh and mount_mfs,
and prepend RESCUEDIR to the default PATH.
(This replaces my _PATH_ALTSHELL mods from rev 1.52 of init.c)

Revision 1.55 / (download) - annotate - [select for diffs], Sun Apr 20 17:16:31 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.54: +35 -6 lines
Diff to previous 1.54 (colored) to selected 1.36 (colored)

PR/5544: Anders Magnusson: Init segfaults when hupped in single user.
- fix so that session_db is not de-referenced when null, and other
  possible null pointer dereferences.
- ignore hup and tstp in single user mode.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Apr 17 18:04:47 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.36 (colored)

Call MAKEDEV with "init"

Revision 1.53 / (download) - annotate - [select for diffs], Fri Oct 4 13:19:05 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.36 (colored)

White space nit.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 24 01:02:51 2002 UTC (21 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.51: +10 -4 lines
Diff to previous 1.51 (colored) to selected 1.36 (colored)

- use _PATH_ALTSHELL (which defaults to _PATH_BSHELL) as the default ALTSHELL
  (as opposed to _PATH_BSHELL), to allow the ALTSHELL to be changed.
- print the full path to the default shell in the ALTSHELL prompt.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Aug 2 14:03:22 2002 UTC (21 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.50: +5 -5 lines
Diff to previous 1.50 (colored) to selected 1.36 (colored)

fix typos that prevented us from cleaning utmpx. Noted by wiz

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jul 27 23:49:47 2002 UTC (21 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.49: +32 -16 lines
Diff to previous 1.49 (colored) to selected 1.36 (colored)

add utmpx/wtmpx processing support.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Apr 16 01:59:37 2002 UTC (21 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.48: +10 -10 lines
Diff to previous 1.48 (colored) to selected 1.36 (colored)

In single-user, after taking a signal and having the `shell' die with
SIGKILL, go into an infinite loop (like in the runcom SIGTERM case), on the
assumption that reboot(8) is in the middle of taking the system down.
This fixes `panic: init died' from sysinst.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sat Feb 9 19:41:22 2002 UTC (22 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.37: +269 -337 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.36 (colored)

Pull up revisions 1.38-1.48 (requested by abs):
  Add optional support to try to set up an MFS based /dev file
  system if /dev/console is missing.  Also fix PR#11847 -- handling
  of EOF at altshell prompt, and convert to ANSI C code style.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 3 12:55:26 2002 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.36 (colored)

crank size of mfs from 512 sectors to 768 sectors (large i386 MAKEDEV)

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jan 26 19:50:25 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.46: +137 -130 lines
Diff to previous 1.46 (colored) to selected 1.36 (colored)

KNF: - use %m always instead of sometimes using strerror()
     - space problems in casts
     - don't cast 0, use NULL
     - don't have long lines
     - don't cast malloc
     - use warn/warnx instead of fprintf
     - fix bug where a failed mount_mfs would cause the program to continue.
     - pass lint

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jan 23 01:45:41 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.45: +10 -9 lines
Diff to previous 1.45 (colored) to selected 1.36 (colored)

fix compilation problems on my alpha

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 21 15:57:40 2002 UTC (22 years, 2 months ago) by abs
Branch: MAIN
Changes since 1.44: +76 -70 lines
Diff to previous 1.44 (colored) to selected 1.36 (colored)

Rename MSDOSFS_ROOT to MFS_DEV_IF_NO_CONSOLE, and rework:
    - Always attempt mfs dev if missing /dev/console
    - Save and run both MAKEDEV and MAKEDEV.local
    - After creating the mfs dev, mknod() and freopen() /dev/console.
    - If MAKEDEV is missing do not fail out early, but still create the mfs,
      /dev/console.
    - If we hit any errors fail out to single user.
This change _only_ affects systems booting without /dev/console.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jan 16 18:30:57 2002 UTC (22 years, 2 months ago) by abs
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored) to selected 1.36 (colored)

Increase the size of the dev mfs to at least enough for 1.5.2 i386.
bin/15235 by Gavan Fantom.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jun 18 01:38:05 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.42: +8 -77 lines
Diff to previous 1.42 (colored) to selected 1.36 (colored)

complete conversion to ANSI C

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 10 03:01:41 2001 UTC (23 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.36 (colored)

deprecate LOG_ODELAY; it's the default

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 30 15:32:19 2000 UTC (23 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.36 (colored)

Fix typo in v1.38.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 30 15:03:23 2000 UTC (23 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.39: +5 -5 lines
Diff to previous 1.39 (colored) to selected 1.36 (colored)

sprinkle some const's

Revision 1.39 / (download) - annotate - [select for diffs], Sat Dec 30 15:01:42 2000 UTC (23 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.38: +64 -83 lines
Diff to previous 1.38 (colored) to selected 1.36 (colored)

ANSIfy and de-__P()

Revision 1.38 / (download) - annotate - [select for diffs], Sat Dec 30 14:46:21 2000 UTC (23 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.37: +11 -5 lines
Diff to previous 1.37 (colored) to selected 1.36 (colored)

Handle NULL return value by fgets after shell prompt better. Also
improve '\n' slightly. Addresses bin/11847.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Mar 19 23:21:46 2000 UTC (24 years ago) by soren
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Unbreak compilation with -DLETS_GET_SMALL as in PR bin/9639 by Patrick Welche.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Sun Jan 23 12:01:51 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.34: +2 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.36 (colored)

Pull up revision 1.36 (requested by mycroft):
  Always do the errno indirection hack, so that non-threaded
  libraries get the right errno value when linked with -lpthread.
  This means "always include <errno.h> and never declare errno
  yourself".

Revision 1.36 / (download) - annotate - [selected], Fri Jan 21 17:08:34 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +2 -4 lines
Diff to previous 1.35 (colored)

Nuke `extern int errno;' in code we compile with -Wstrict-prototypes.  We get
the correct definition from errno.h.

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:25 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.36 (colored)

Pull up to last week's -current.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 9 15:06:33 1999 UTC (24 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.36 (colored)

Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Nov 14 07:17:58 1998 UTC (25 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, netbsd-1-4
Changes since 1.33: +7 -5 lines
Diff to previous 1.33 (colored) to selected 1.36 (colored)

When downgrading from 'highly secure' mode (securelevel >= 2) to 'insecure' mode (securelevel 0) and the root password is set, always require it before giving a shell on the console.  Reasoning: if an attacker has access to the machine console, he doesn't necessarily have access to the hardware itself; on a 'highly secure' machine, we may as well make his life hard.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 18 22:00:46 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.36 (colored)

Use sigset_t for signal masks.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Feb 20 09:27:20 1998 UTC (26 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored) to selected 1.36 (colored)

Fill in missing (default) mmap(2) flags.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Feb 6 19:30:14 1998 UTC (26 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored) to selected 1.36 (colored)

fix pr4766 from greywolf -- couldn't build without -DALTSHELL

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sun Nov 2 00:19:50 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.28: +5 -15 lines
Diff to previous 1.28 (colored) next main 1.29 (colored) to selected 1.36 (colored)

Pull rev 1.29 and 1.30 up from trunk (drochner)

Revision 1.30 / (download) - annotate - [select for diffs], Sat Nov 1 22:15:54 1997 UTC (26 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.29: +3 -13 lines
Diff to previous 1.29 (colored) to selected 1.36 (colored)

Remove the "wait for mfs to be mounted" hack; this is solved in mount_mfs
now.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Oct 28 22:52:52 1997 UTC (26 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.36 (colored)

PR/4372: Andread Wrede: increase number of inodes in mfs

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jul 30 03:43:21 1997 UTC (26 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.27: +170 -24 lines
Diff to previous 1.27 (colored) to selected 1.36 (colored)

Support root on msdos filesystems by creating an mfs on /dev and running
MAKEDEV all to create the devices. Idea by Chris Demetriou.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jul 19 19:00:44 1997 UTC (26 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.26: +43 -41 lines
Diff to previous 1.26 (colored) to selected 1.36 (colored)

get rid of "register" declarations.
turn 0 pointers into NULLs
Fix WARN=1 warnings

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 19 18:11:59 1997 UTC (26 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.25: +24 -25 lines
Diff to previous 1.25 (colored) to selected 1.36 (colored)

1) change rcsid[] and copyright[] to use __RCSID and __COPYRIGHT
   macros.
2) Clean up some gratuitous uses of write() instead of fprintf()
3) Clean up some of the alternative shell code in single_user(),
   fixing a couple of bugs in the meanwhile. Also, fix pr-2620 from
   Chris Demetriou -- when an alternative shell is exec'ed, it is now
   not called "-sh" automatically.
4) rename the DEBUGSHELL option ALTSHELL since its almost always used
   in NetBSD.

Notes:
1) It isn't clear that the ALTSHELL code is really ever very useful,
   but we seem to have decided to always enable it anyway.
2) The code in init really needs an overall cleanup, but I just don't
   have time or energy.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jul 19 17:06:29 1997 UTC (26 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored) to selected 1.36 (colored)

merge lite-2 changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sat Jul 19 16:39:01 1997 UTC (26 years, 8 months ago) by perry
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +4 -4 lines
Diff to previous 1.1.1.2 (colored) to selected 1.36 (colored)

imported from 44lite2

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 14 00:44:35 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored) to selected 1.36 (colored)

Insert some closelog()s, so we don't leave the syslog socket
on fd 0.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 22 02:19:51 1997 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored) to selected 1.36 (colored)

If root has no password, don't lock the operator out of single-user
mode if the console is "insecure".

Revision 1.22 / (download) - annotate - [select for diffs], Wed May 15 23:29:33 1996 UTC (27 years, 10 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.21: +3 -9 lines
Diff to previous 1.21 (colored) to selected 1.36 (colored)

Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Oct 5 06:11:24 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.20: +14 -2 lines
Diff to previous 1.20 (colored) to selected 1.36 (colored)

Kill sessions that were deleted when rereading /etc/ttys.

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 28 05:26:32 1995 UTC (28 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored) to selected 1.36 (colored)

sys_siglist[] -> strsignal()

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 18 14:56:33 1995 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.18: +7 -2 lines
Diff to previous 1.18 (colored) to selected 1.36 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:27 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored) to selected 1.36 (colored)

Eliminate uses of some obsolete functions.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 06:34:58 1994 UTC (29 years, 7 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.36 (colored)

update from trunk

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 6 06:26:44 1994 UTC (29 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored) to selected 1.36 (colored)

ensure /sbin is in PATH in single user mode

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Jun 13 23:52:42 1994 UTC (29 years, 9 months ago) by mycroft
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +1200 -310 lines
Diff to previous 1.1.1.1 (colored) to selected 1.36 (colored)

Import 4.4-Lite version.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 11 07:54:04 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.36 (colored)

Fix up RCS ids.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 10 18:06:13 1994 UTC (29 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.14: +7 -9 lines
Diff to previous 1.14 (colored) to selected 1.36 (colored)

Update to 4.4-lite (basically some copyright changes) + local changes.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 26 19:56:22 1994 UTC (29 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.13: +1 -4 lines
Diff to previous 1.13 (colored) to selected 1.36 (colored)

Disabling *all* terminals in /etc/ttys meant disabling them for good:
stuck in `clean tty' => `multi user' => `clean tty' loop.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 18 07:59:40 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.12: +25 -2 lines
Diff to previous 1.12 (colored) to selected 1.36 (colored)

if we want a LETS_GET_SMALL init, allow only single-user

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 1 00:32:20 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.11: +8 -1 lines
Diff to previous 1.11 (colored) to selected 1.36 (colored)

Establish an initial user so that programs running single user
do not freak out and die (like passwd).

Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 1 18:26:40 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.36 (colored)

Add RCS identifiers.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 8 01:47:33 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.9: +5 -15 lines
Diff to previous 1.9 (colored) to selected 1.36 (colored)

get rid of the bogus changes i made to init.  note that /etc/ttys
*must* have an entry for "console", though it should be "off",
prolly.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 18 21:16:26 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +16 -6 lines
Diff to previous 1.8 (colored) to selected 1.36 (colored)

a couple of local mods; always ask for shell in single user, use -lcrypt,
use root's shell rather that /bin/sh when going to single-user, etc.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 18 20:51:49 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: bsdi-1-0
Changes since 1.7: +1188 -358 lines
Diff to previous 1.7 (colored) to selected 1.36 (colored)

incorporate bsdi's version of init; this is their version, w/no local changes
other than adding Id strings as appropriate

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 10 01:03:02 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.6: +15 -3 lines
Diff to previous 1.6 (colored) to selected 1.36 (colored)

add preliminary support for devfs (e.g. MOUNT_DEVFS #define, etc.)

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 26 14:54:43 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -3 lines
Diff to previous 1.5 (colored) to selected 1.36 (colored)

changed to use new libcrypt scheme.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 6 19:33:33 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.4: +36 -1 lines
Diff to previous 1.4 (colored) to selected 1.36 (colored)

added console security, if SECURE_CONSOLE defined in makefile,
and console not secure in ttys

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 23 00:28:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.36 (colored)

changed "Id" to "Header" for rcsids

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -12 lines
Diff to previous 1.2 (colored) to selected 1.36 (colored)

added rcs ids to all files

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +24 -3 lines
Diff to previous 1.1 (colored) to selected 1.36 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.36 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.36 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>