Commit Graph

81 Commits

Author SHA1 Message Date
mlelstv 3ce6ce8d42 Use raw device for configuring units. This is necessary as
having a block device opened prevents autodiscovery of wedges.
2020-10-06 18:47:07 +00:00
mrg 30b1a162d1 rework error message to never call printf() %s with NULL. 2020-09-06 02:34:30 +00:00
mlelstv 490457d5da Make ccdconfig resolve wedge names. 2014-12-07 10:44:34 +00:00
apb b41d70db45 Don't print ccd_size with %zu; it no longer has type size_t.
Instead, cast to uintmax_t and print with %ju.
2014-08-17 07:05:44 +00:00
sborrill 7d706cf73d Switch size_t to uint64_t in appropriate places to ensure that ccd(4) works
with component and total sizes of > 2TB.
Add COMPAT_60 code for platforms where this alters userland-accessible
structures.
Make kernel print device information when a ccd configured.
Fix some typos in comments.
2014-08-16 19:27:27 +00:00
apb 3c11b029a5 Interleave 0 means concatenate serially, do not interleave.
This information was in the ccd(4) man page, but not
in ccdconfig(8) or ccd.conf(5).
2014-08-13 14:13:04 +00:00
apb 31ea3cc275 Interleave 0 means concatenate serially, do not interleave.
This information was in the ccd(4) man page, but not
in ccdconfig(8) or ccd.conf(5).
2014-08-13 13:14:35 +00:00
christos c1bdad31a0 avoid initialization bug in vax gcc: int i; foo(&i); 2013-05-03 00:01:15 +00:00
christos c673655ecf one less kvm groveller. Use sysctl to get ccd info. 2013-04-27 17:12:36 +00:00
joerg fbefc91819 static. __dead. 2011-08-27 16:29:51 +00:00
wiz 23f77c56dc Fix file descriptor leak. Found by cppcheck. 2011-01-04 23:31:29 +00:00
joerg 350a39e662 Fix markup 2009-08-22 00:14:21 +00:00
lukem c1237301b3 fix sign-compare issues 2009-03-16 12:52:07 +00:00
lukem 6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos 457d135620 c99 initializers 2006-10-16 02:42:42 +00:00
christos db80529cf2 Delete an obvious free(NULL) pointed out by erh. 2006-03-20 22:44:25 +00:00
christos 9871eb575d Coverity CID's 1853, 1852, 1851: Plug memory leaks. 2006-03-20 01:00:34 +00:00
hubertf 2b40d43066 Fix minor ressource leak
Coverity CID 1855
OK'd by thorpej
2006-03-17 16:14:48 +00:00
lukem 8c09644630 * The kernel's struct ccd_softc has extra structure members over the
userland version; provide another ccd global variable (ccd_softc_elemsize)
  containing the kernel's size, and use that it ccdconfig(8) to convert the
  kernel's ccd_softc into userland versions.
  Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
  Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().

XXX: ccd could be converted from nlist to sysctl.  "Someone else's yak shave".
2006-02-16 23:25:18 +00:00
drochner 36439c322f namespace sanity: no need to include <sys/device.h> 2005-09-08 14:50:02 +00:00
grant 0f1a2ceee9 move to my now standard 3-clause BSD license (remove advertising clause) 2005-05-17 11:46:15 +00:00
xtraeme 76500fc2f9 WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
xtraeme e3529b263e Kill __P(), ANSIfy, remove main() prototype; WARNS=2 2005-01-20 15:49:24 +00:00
dsl 7e4021e835 Add (unsigned char) to isdigit() 2004-10-28 19:43:29 +00:00
lukem 3f580214e5 Support CCDF_NOLABEL. Document what CCDF_UNIFORM actually does. 2003-10-17 05:23:56 +00:00
itojun 8612aa8b30 use asprintf David Hill 2003-10-08 20:39:07 +00:00
itojun eb48d1d3cb plug memory leak. David Hill 2003-10-08 20:36:25 +00:00
itojun 731ae88ecd realloc pedant 2003-09-19 08:35:15 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
wiz 3443a24794 Seems I was overzealous. Undo part of last, noted by grant. 2002-06-11 13:58:09 +00:00
wiz d354ad6e04 Fix copyright, and some minor mdoc improvements. 2002-06-11 13:45:35 +00:00
grant 39541f4926 add ccd.conf(5) 2002-06-11 13:33:48 +00:00
wiz 875bfce8db Sort sections, use standard section headers. 2001-11-16 11:26:53 +00:00
wiz 4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
wiz f705e892e5 concatinate -> concatenate 2001-07-26 22:49:09 +00:00
wiz 73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
thorpej cab4d17202 Sprinkle some const. 2001-01-28 00:59:26 +00:00
is 9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
itojun ddf8cb2acb warnx?/errx? audit. don't pass variable/function return value alone.
use with "%s".  from openbsd.
2000-07-07 12:29:09 +00:00
enami 4582a90f6d Sync with rev. 1.19 of vnconfig.c. 2000-06-09 15:06:31 +00:00
enami 24d448f70e Define __POOL_EXPOSE almost at the beginning, instead of just before
dev/vndvar.h or dev/ccdvar.h so that struct pool is always available
regardless of multiple inclusion.  Actually, ccdconfig.c compiles without
this change but ...
2000-02-16 06:52:31 +00:00
thorpej ae6f518821 Garbage-collect CCDF_SWAP; no longer used, and doesn't make any sense
with the UVM swap code.
1999-08-11 02:44:35 +00:00
ross 8d5d550e54 Define __POOL_EXPOSE for this nlist-groveling program. 1999-04-01 09:12:21 +00:00
thorpej dbba3dce54 update for changes to the ccd_softc. 1999-01-21 08:48:46 +00:00