NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | RESTRICTIONS
$(OS_DIR)/lib/libc.a #include <sys/types.h> #include <sys/disklabel.h>struct disklabel *getdiskbyname(const char *name);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
UFS
The getdiskbyname() function takes a disk name (for example,. rm03 ) and returns a prototype disk label describing its geometry information and the standard disk partition tables. All information is obtained from the disktab(4CC) file.
getdiskbyname() returns a null pointer if the entry is not found in the current disktab file.
setdisktab() returns 0 on success and -1 if name is a null pointer or points to an empty string.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
This library call does not support multi-threaded applications.
NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | RESTRICTIONS