|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1983 The Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution and use in source and binary forms are permitted ! 6: * provided that: (1) source distributions retain this entire copyright ! 7: * notice and comment, and (2) distributions including binaries display ! 8: * the following acknowledgement: ``This product includes software ! 9: * developed by the University of California, Berkeley and its contributors'' ! 10: * in the documentation or other materials provided with the distribution ! 11: * and in all advertising materials mentioning features or use of this ! 12: * software. Neither the name of the University nor the names of its ! 13: * contributors may be used to endorse or promote products derived ! 14: * from this software without specific prior written permission. ! 15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 18: * ! 19: * @(#)disktab.h 5.4 (Berkeley) 6/1/90 ! 20: */ ! 21: ! 22: /* ! 23: * Disk description table, see disktab(5) ! 24: */ ! 25: #define DISKTAB "/etc/disktab" ! 26: ! 27: struct disktab { ! 28: char *d_name; /* drive name */ ! 29: char *d_type; /* drive type */ ! 30: int d_secsize; /* sector size in bytes */ ! 31: int d_ntracks; /* # tracks/cylinder */ ! 32: int d_nsectors; /* # sectors/track */ ! 33: int d_ncylinders; /* # cylinders */ ! 34: int d_rpm; /* revolutions/minute */ ! 35: int d_badsectforw; /* supports DEC bad144 std */ ! 36: int d_sectoffset; /* use sect rather than cyl offsets */ ! 37: struct partition { ! 38: int p_size; /* #sectors in partition */ ! 39: short p_bsize; /* block size in bytes */ ! 40: short p_fsize; /* frag size in bytes */ ! 41: } d_partitions[8]; ! 42: }; ! 43: ! 44: struct disktab *getdiskbyname();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.