summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkswapconf.c
Commit message (Collapse)AuthorAgeFilesLines
* Part #2 of the config cleanup. More aggressive, replaced an NIHjoerg1996-12-141-0/+3
| | | | | | | | | | version of strdup() by a macro, killed many calls to strdup(), thus potentially wasting less malloc'ed space (their args were never be free()ed desptie despite of being malloc'ed). Probably still a huge memory leak at all... Also killed two totally useless variables. I've tested it as i could, but wouldn't be surprised if unexpected problems showed up. So watch out this space!
* Make a little more effort to avoid touching certain generated files ifpeter1996-01-121-3/+6
| | | | they were not changed. This makes 'make depend' more useful.
* Implement support for conf/options and i386/conf/options.i386peter1995-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Note that this code is dormant unless the options files exist. Also, parsing of quoted options in the config files is improved. What this allows, is all the options in LINT to be specified to be configured as #defines in a file rather than on the CC command line at kernel build time. This means that 'make depend' will catch dependencies on actual *options*, meaning that you can run 'config' and 'make depend' in complete safety WITHOUT removing the compile directory each time. Unfortunately, this requires a pass over the source to get the individual files to #include the new .h files that would be generated by config. This has a small compile time penalty (appears up to about 2% slower) from a "fresh" build. Of course, you should not be needing to do complete rebuilds very often once this was completed, so it would be an overall win for most people. Since this code is dormant and we've got a lot of other things happening on the kernel tree at the moment (prototypes, devfs, static declarations etc) I am not planning on doing any changes to activate this feature just yet.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Updated to work with Poul-Henning's recent kernel changes in the swapdg1995-05-141-12/+0
| | | | | | | | device table layout...basically, don't output the cruft anymore - it is now dynamic. Reviewed by: John Dyson and David Greenman Submitted by: Poul-Henning Kamp
* Don't automatically default dumps to be on a swap device; if the userwollman1995-05-121-3/+7
| | | | | wants dumps, he can either configure it explicitly (`dumps on' whatever) or use the dumpon(8) utility.
* Write setconf() in KNF, in K&R C, and in Standard C.Standard C.bde1995-02-181-1/+1
|
* Do away with 'options SWAP_GENERIC' once and for all: I get illwpaul1995-02-181-1/+3
| | | | | | | | | | | | | | | | | | | just thinking about it. Two changes need to be made to allow 'config kernel swap generic' to work properly without requiring any compile-time flags: /usr/src/usr.sbin/config/mkswapconf.c: we need to define a dummy stub for the setconf() function to replace the one in swapgeneric.c that isn't available in non-generic configurations. /usr/src/sys/i386/i386/autoconf.c: the -a boot flag causes setroot() to be skipped and lets setconf() prompt the user for a root device. If you skip setroot() in a non-generic kernel, you could get severely hosed. To avoid this, we silently ignore the -a flag if rootdev != NODEV. (rootdev is always initialized to NODEV in swapgeneric.c, so if we find that rootdev is something other than NODEV, we know we're not using a generic configuration.)
* config.y:bde1995-02-161-13/+50
| | | | | | | | | | | | | | | | Support slice numbers in device names. The syntax is `<driver name> [<unit number>] ['s' <slice number>] [<partition letter>]'. Only `['s' <slice number>]' is new here. The slice number defaults to 0 so that there is no change in the output from config if this new feature is not used. Replace some magic disk numbers by `dk' slice and label macros. mkswapconf.c: Improve the output formatting: Generate <> style includes. Print minor numbers in hex so that slice numbers are easy to see and edit. Print the rootdev and dumpdev names in comments like the swapdev names.
* Added a slot in the swap-dev-table for NFS-diskless to abuse.phk1994-10-181-0/+1
|
* Upgrade config to be compatible with our i386 port, pull in 95% of thergrimes1994-05-261-5/+16
| | | | | changes that have been made in FreeBSD 1.x, except for possibly the nfs diskless support this is a completed config.
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+216
OpenPOWER on IntegriCloud