*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: dbtob | Section: 9 | Source: NetBSD | File: dbtob.9
CTOD(9) FreeBSD Kernel Developer's Manual CTOD(9) NAME ctod - macros related to bytes, pages, and disk blocks SYNOPSIS #include <sys/param.h> size ctod(size x); size dtoc(size x); size ctob(size x); size btoc(size x); size dbtob(size x); size btodb(size x); DESCRIPTION The ctod family of macros can be used to convert between bytes, pages ("clicks"), and disk blocks. The following table lists the possible conversions: Macro From To ctod() pages disk blocks dtoc() disk blocks pages ctob() pages bytes btoc() bytes pages dbtob() disk blocks bytes btodb() bytes disk blocks These are typical macros that may appear with different names in other operating systems. Examples include btop() and btopr() in Solaris. SEE ALSO param(3) HISTORY Some of these macros appeared in Version 7 AT&T UNIX. CAVEATS The described macros make no assumptions about the type of the input parameter. A caller should ensure that neither integer overflow nor integer underflow are possible. FreeBSD 14.1-RELEASE-p8 April 8, 2011 FreeBSD 14.1-RELEASE-p8

Navigation Options