Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
OPENDEV(3) OpenBSD Programmer's Manual OPENDEV(3)
NAME
opendev - short form device open routine
SYNOPSIS
#include <util.h>
int
opendev(char *path, int oflags, int dflags, char **realpath);
DESCRIPTION
The opendev() function opens a device using the ``short form'' name.
This is typically ``sd0'' or ``sd0c'', for instance, which will be ex-
panded to /dev/rsd0c on most architectures.
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_DRCT attempt to open the device itself during expansion
If realpath is not NULL, it is modified to point at the fully expanded
device name.
RETURN VALUES
The opendev() return value and errors are the same as the return value
and errors of open(2).
SEE ALSO
open(2)
HISTORY
The opendev() function first appeared in OpenBSD 1.2.
OpenBSD 2.6 June 17, 1996 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
OpenBSD sources for opendev(3)
Up to: Hardware Access
RocketLink!--> Man page versions:
OpenBSD
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
opendev.3/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|