*** 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: getdiskbyname_r | Section: 3 | Source: Digital UNIX | File: getdiskbyname_r.3.gz
getdiskbyname(3) Library Functions Manual getdiskbyname(3) NAME getdiskbyname, getdiskbyname_r - Get the disk description using a disk name LIBRARY Standard C Library (libc.a) SYNOPSIS #include <sys/disklabel.h> #include <sys/types.h> struct disklabel *getdiskbyname( char *name); [Digital] The following function is supported in order to maintain backward compatibility with previous versions of the operating system. int getdiskbyname_r( char *name, struct disklabel *disk, char *boot, int boot_len, PARAMETERS Specifies a common name for the disk drive whose geometry and partition characteristics are sought. Points to the structure that will contain the returned disk description. Points to the buffer that will contain the optional names of the primary and secondary bootstraps. Specifies the length of boot. This should be BUFSIZ. DESCRIPTION Operations supported by the getdiskbyname function are also supported by the createlabel function. See The getdiskbyname function is sup- ported only for backward compatibility with operating system versions earlier that DIGITAL UNIX Version 4.0 and will be retired in a future release of the product. The getdiskbyname() function uses a disk (disk drive) name to return a pointer to a structure that describes the geometry and standard parti- tion characteristics of the named disk drive. Information obtained from the /etc/disktab database file is written to the type disklabel struc- ture space referenced by the returned pointer. NOTES The getdiskbyname_r() function is the reentrant version of getdiskby- name(). It is supported in order to maintain backward compatibility with previous versions of the operating system. Upon successful completion, getdiskbyname_r() returns a value of 0 (zero); the returned structure is pointed at by disk. Upon error, it returns a value of -1, and may set errno to [EINVAL]. RETURN VALUES Upon successful completion, the getdiskbyname() function, returns a pointer to a type disklabel structure. ERRORS Either disk or boot is NULL, or boot_len is not equal to BUFSIZ. RELATED INFORMATION Functions: createlabel(3), Files: disklabel(4), disktab(4). Commands: disklabel(8). delim off getdiskbyname(3)

Navigation Options