Query: opendev
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OPENDEV(3) BSD Library Functions Manual OPENDEV(3)NAMEopendev -- short form device open routineSYNOPSIS#include <util.h> int opendev(char *path, int oflags, int dflags, char **realpath);DESCRIPTIONThe opendev() function opens a device using the ``short form'' name. This is typically ``disk0s3'', for instance, which will be expanded to /dev/rdisk0s3 on most architectures. Device name lookup is done by first checking path for a ``/'' and if one is found attempting to open that file. Otherwise /dev is searched for a matching device. The oflags are the same as the flags passed to open(2). The dflags are specified by OR'ing the following values: OPENDEV_PART attempt to open the raw partition during expansion OPENDEV_BLCK open the block device (default is character device) The ``raw'' partition is defined as the partition which provides access to the entire disk, regardless of the disk's partition map. If realpath is not NULL, it is modified to point at the fully expanded device name.RETURN VALUESThe opendev() return value and errors are the same as the return value and errors of open(2).WARNINGSIf realpath is not NULL, on return it will point to internal static storage space that will be overwritten by subsequent calls.SEE ALSOopen(2)HISTORYThe opendev() function first appeared in OpenBSD 1.2.BSDDecember 12, 2002 BSD
Related Man Pages |
---|
kpartx(8) - debian |
repartit(8) - minix |
opendisk(3) - netbsd |
realpath(3) - netbsd |
kpartx(8) - linux |
Similar Topics in the Unix Linux Community |
---|
problem knowing disk space |
my sgi system doesn't come up |