getdiskbyname_r man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

getdiskbyname(3C)					     getdiskbyname(3C)

NAME
       getdiskbyname() - get disk description by its name

SYNOPSIS
   Obsolescent Interface
DESCRIPTION
       takes  a	 disk name (such as hp7959B) and returns a pointer to a struc‐
       ture that describes its geometry information and the standard disk par‐
       tition  tables.	 All information is obtained from the disktab database
       file (see disktab(4)).

       The contents of the structure include the following members.  Note that
       there  is not necessarily any correlation between the placement in this
       list and the order in the structure.

	      char    *d_name;		  /* drive name */
	      char    *d_type;		  /* drive type */
	      int     d_secsize;	  /* sector size in bytes */
	      int     d_ntracks;	  /* # tracks/cylinder */
	      int     d_nsectors;	  /* # sectors/track */
	      int     d_ncylinders;	  /* # cylinders */
	      int     d_rpm;		  /* revolutions/minute */
	      struct  partition {
		      int     p_size;	  /* #sectors in partition */
		      short   p_bsize;	  /* block size in bytes */
		      short   p_fsize;	  /* frag size in bytes */
	      } d_partitions[NSECTIONS];

       The constant is defined in

   Obsolescent Interface
       gets disk description by its name.

DIAGNOSTICS
       A NULL pointer is returned in case of an error, or if name is not found
       in the disktab database file.

WARNINGS
       The  return  value  for	points to data whose content is overwritten by
       each call.  is an obsolescent interface supported only for  compatibil‐
       ity  with  existing  DCE	 applications.	New multithreaded applications
       should use

AUTHOR
       was developed by HP and the University of California, Berkeley.

SEE ALSO
       disktab(4), thread_safety(5).

							     getdiskbyname(3C)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net