head 1.10; access; symbols netbsd-10-0-RC6:1.10 netbsd-10-0-RC5:1.10 netbsd-10-0-RC4:1.10 netbsd-10-0-RC3:1.10 netbsd-10-0-RC2:1.10 netbsd-10-0-RC1:1.10 netbsd-10:1.10.0.106 netbsd-10-base:1.10 netbsd-9-3-RELEASE:1.10 cjep_sun2x-base1:1.10 cjep_sun2x:1.10.0.104 cjep_sun2x-base:1.10 cjep_staticlib_x-base1:1.10 netbsd-9-2-RELEASE:1.10 cjep_staticlib_x:1.10.0.102 cjep_staticlib_x-base:1.10 netbsd-9-1-RELEASE:1.10 phil-wifi-20200421:1.10 phil-wifi-20200411:1.10 is-mlppp:1.10.0.100 is-mlppp-base:1.10 phil-wifi-20200406:1.10 netbsd-8-2-RELEASE:1.10 netbsd-9-0-RELEASE:1.10 netbsd-9-0-RC2:1.10 netbsd-9-0-RC1:1.10 phil-wifi-20191119:1.10 netbsd-9:1.10.0.98 netbsd-9-base:1.10 phil-wifi-20190609:1.10 netbsd-8-1-RELEASE:1.10 netbsd-8-1-RC1:1.10 pgoyette-compat-merge-20190127:1.10 pgoyette-compat-20190127:1.10 pgoyette-compat-20190118:1.10 pgoyette-compat-1226:1.10 pgoyette-compat-1126:1.10 pgoyette-compat-1020:1.10 pgoyette-compat-0930:1.10 pgoyette-compat-0906:1.10 netbsd-7-2-RELEASE:1.10 pgoyette-compat-0728:1.10 netbsd-8-0-RELEASE:1.10 phil-wifi:1.10.0.96 phil-wifi-base:1.10 pgoyette-compat-0625:1.10 netbsd-8-0-RC2:1.10 pgoyette-compat-0521:1.10 pgoyette-compat-0502:1.10 pgoyette-compat-0422:1.10 netbsd-8-0-RC1:1.10 pgoyette-compat-0415:1.10 pgoyette-compat-0407:1.10 pgoyette-compat-0330:1.10 pgoyette-compat-0322:1.10 pgoyette-compat-0315:1.10 netbsd-7-1-2-RELEASE:1.10 pgoyette-compat:1.10.0.94 pgoyette-compat-base:1.10 netbsd-7-1-1-RELEASE:1.10 matt-nb8-mediatek:1.10.0.92 matt-nb8-mediatek-base:1.10 perseant-stdc-iso10646:1.10.0.90 perseant-stdc-iso10646-base:1.10 netbsd-8:1.10.0.88 netbsd-8-base:1.10 prg-localcount2-base3:1.10 prg-localcount2-base2:1.10 prg-localcount2-base1:1.10 prg-localcount2:1.10.0.86 prg-localcount2-base:1.10 pgoyette-localcount-20170426:1.10 bouyer-socketcan-base1:1.10 pgoyette-localcount-20170320:1.10 netbsd-7-1:1.10.0.84 netbsd-7-1-RELEASE:1.10 netbsd-7-1-RC2:1.10 netbsd-7-nhusb-base-20170116:1.10 bouyer-socketcan:1.10.0.82 bouyer-socketcan-base:1.10 pgoyette-localcount-20170107:1.10 netbsd-7-1-RC1:1.10 pgoyette-localcount-20161104:1.10 netbsd-7-0-2-RELEASE:1.10 localcount-20160914:1.10 netbsd-7-nhusb:1.10.0.80 netbsd-7-nhusb-base:1.10 pgoyette-localcount-20160806:1.10 pgoyette-localcount-20160726:1.10 pgoyette-localcount:1.10.0.78 pgoyette-localcount-base:1.10 netbsd-7-0-1-RELEASE:1.10 netbsd-7-0:1.10.0.76 netbsd-7-0-RELEASE:1.10 netbsd-7-0-RC3:1.10 netbsd-7-0-RC2:1.10 netbsd-7-0-RC1:1.10 netbsd-5-2-3-RELEASE:1.10 netbsd-5-1-5-RELEASE:1.10 netbsd-6-0-6-RELEASE:1.10 netbsd-6-1-5-RELEASE:1.10 netbsd-7:1.10.0.74 netbsd-7-base:1.10 yamt-pagecache-base9:1.10 yamt-pagecache-tag8:1.10 netbsd-6-1-4-RELEASE:1.10 netbsd-6-0-5-RELEASE:1.10 tls-earlyentropy:1.10.0.72 tls-earlyentropy-base:1.10 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10 riastradh-drm2-base3:1.10 netbsd-6-1-3-RELEASE:1.10 netbsd-6-0-4-RELEASE:1.10 netbsd-5-2-2-RELEASE:1.10 netbsd-5-1-4-RELEASE:1.10 netbsd-6-1-2-RELEASE:1.10 netbsd-6-0-3-RELEASE:1.10 netbsd-5-2-1-RELEASE:1.10 netbsd-5-1-3-RELEASE:1.10 netbsd-6-1-1-RELEASE:1.10 riastradh-drm2-base2:1.10 riastradh-drm2-base1:1.10 riastradh-drm2:1.10.0.66 riastradh-drm2-base:1.10 netbsd-6-1:1.10.0.70 netbsd-6-0-2-RELEASE:1.10 netbsd-6-1-RELEASE:1.10 netbsd-6-1-RC4:1.10 netbsd-6-1-RC3:1.10 agc-symver:1.10.0.68 agc-symver-base:1.10 netbsd-6-1-RC2:1.10 netbsd-6-1-RC1:1.10 yamt-pagecache-base8:1.10 netbsd-5-2:1.10.0.64 netbsd-6-0-1-RELEASE:1.10 yamt-pagecache-base7:1.10 netbsd-5-2-RELEASE:1.10 netbsd-5-2-RC1:1.10 matt-nb6-plus-nbase:1.10 yamt-pagecache-base6:1.10 netbsd-6-0:1.10.0.62 netbsd-6-0-RELEASE:1.10 netbsd-6-0-RC2:1.10 tls-maxphys:1.10.0.60 tls-maxphys-base:1.10 matt-nb6-plus:1.10.0.58 matt-nb6-plus-base:1.10 netbsd-6-0-RC1:1.10 yamt-pagecache-base5:1.10 yamt-pagecache-base4:1.10 netbsd-6:1.10.0.56 netbsd-6-base:1.10 netbsd-5-1-2-RELEASE:1.10 netbsd-5-1-1-RELEASE:1.10 yamt-pagecache-base3:1.10 yamt-pagecache-base2:1.10 yamt-pagecache:1.10.0.54 yamt-pagecache-base:1.10 cherry-xenmp:1.10.0.52 cherry-xenmp-base:1.10 uebayasi-xip-base7:1.10 bouyer-quota2-nbase:1.10 bouyer-quota2:1.10.0.50 bouyer-quota2-base:1.10 matt-mips64-premerge-20101231:1.10 matt-nb5-mips64-premerge-20101231:1.10 matt-nb5-pq3:1.10.0.48 matt-nb5-pq3-base:1.10 netbsd-5-1:1.10.0.46 uebayasi-xip-base6:1.10 uebayasi-xip-base5:1.10 netbsd-5-1-RELEASE:1.10 uebayasi-xip-base4:1.10 uebayasi-xip-base3:1.10 netbsd-5-1-RC4:1.10 matt-nb5-mips64-k15:1.10 uebayasi-xip-base2:1.10 netbsd-5-1-RC3:1.10 netbsd-5-1-RC2:1.10 uebayasi-xip-base1:1.10 netbsd-5-1-RC1:1.10 uebayasi-xip:1.10.0.44 uebayasi-xip-base:1.10 netbsd-5-0-2-RELEASE:1.10 matt-nb5-mips64-premerge-20091211:1.10 matt-premerge-20091211:1.10 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.10 matt-nb4-mips64-k7-u2a-k9b:1.10 matt-nb5-mips64-u1-k1-k5:1.10 matt-nb5-mips64:1.10.0.42 netbsd-5-0-1-RELEASE:1.10 jym-xensuspend-nbase:1.10 netbsd-5-0:1.10.0.40 netbsd-5-0-RELEASE:1.10 netbsd-5-0-RC4:1.10 netbsd-5-0-RC3:1.10 netbsd-5-0-RC2:1.10 jym-xensuspend:1.10.0.38 jym-xensuspend-base:1.10 netbsd-5-0-RC1:1.10 christos-time_t-nbase:1.10 christos-time_t:1.10.0.36 christos-time_t-base:1.10 netbsd-5:1.10.0.34 netbsd-5-base:1.10 matt-mips64-base2:1.10 matt-mips64:1.10.0.32 mjf-devfs2:1.10.0.30 mjf-devfs2-base:1.10 netbsd-4-0-1-RELEASE:1.10 wrstuden-revivesa-base-3:1.10 wrstuden-revivesa-base-2:1.10 wrstuden-fixsa-newbase:1.10 wrstuden-revivesa-base-1:1.10 simonb-wapbl-nbase:1.10 yamt-pf42-base4:1.10 simonb-wapbl:1.10.0.28 simonb-wapbl-base:1.10 yamt-pf42-base3:1.10 hpcarm-cleanup-nbase:1.10 yamt-pf42-baseX:1.10 yamt-pf42-base2:1.10 wrstuden-revivesa:1.10.0.26 wrstuden-revivesa-base:1.10 yamt-pf42:1.10.0.24 yamt-pf42-base:1.10 keiichi-mipv6:1.10.0.22 keiichi-mipv6-base:1.10 matt-armv6-nbase:1.10 matt-armv6-prevmlocking:1.10 wrstuden-fixsa-base-1:1.10 netbsd-4-0:1.10.0.20 netbsd-4-0-RELEASE:1.10 cube-autoconf:1.10.0.18 cube-autoconf-base:1.10 netbsd-4-0-RC5:1.10 netbsd-4-0-RC4:1.10 netbsd-4-0-RC3:1.10 netbsd-4-0-RC2:1.10 netbsd-4-0-RC1:1.10 matt-armv6:1.10.0.16 matt-armv6-base:1.10 matt-mips64-base:1.10 hpcarm-cleanup:1.10.0.14 hpcarm-cleanup-base:1.10 netbsd-3-1-1-RELEASE:1.10 netbsd-3-0-3-RELEASE:1.10 wrstuden-fixsa:1.10.0.12 wrstuden-fixsa-base:1.10 abandoned-netbsd-4-base:1.10 abandoned-netbsd-4:1.10.0.6 netbsd-3-1:1.10.0.8 netbsd-3-1-RELEASE:1.10 netbsd-3-0-2-RELEASE:1.10 netbsd-3-1-RC4:1.10 netbsd-3-1-RC3:1.10 netbsd-3-1-RC2:1.10 netbsd-3-1-RC1:1.10 netbsd-4:1.10.0.10 netbsd-4-base:1.10 netbsd-3-0-1-RELEASE:1.10 netbsd-3-0:1.10.0.4 netbsd-3-0-RELEASE:1.10 netbsd-3-0-RC6:1.10 netbsd-3-0-RC5:1.10 netbsd-3-0-RC4:1.10 netbsd-3-0-RC3:1.10 netbsd-3-0-RC2:1.10 netbsd-3-0-RC1:1.10 netbsd-2-0-3-RELEASE:1.8 netbsd-2-1:1.8.0.6 netbsd-2-1-RELEASE:1.8 netbsd-2-1-RC6:1.8 netbsd-2-1-RC5:1.8 netbsd-2-1-RC4:1.8 netbsd-2-1-RC3:1.8 netbsd-2-1-RC2:1.8 netbsd-2-1-RC1:1.8 netbsd-2-0-2-RELEASE:1.8 netbsd-3:1.10.0.2 netbsd-3-base:1.10 netbsd-2-0-1-RELEASE:1.8 netbsd-2:1.8.0.4 netbsd-2-base:1.8 netbsd-2-0-RELEASE:1.8 netbsd-2-0-RC5:1.8 netbsd-2-0-RC4:1.8 netbsd-2-0-RC3:1.8 netbsd-2-0-RC2:1.8 netbsd-2-0-RC1:1.8 netbsd-2-0:1.8.0.2 netbsd-2-0-base:1.8 netbsd-1-6-PATCH002-RELEASE:1.7 netbsd-1-6-PATCH002:1.7 netbsd-1-6-PATCH002-RC4:1.7 netbsd-1-6-PATCH002-RC3:1.7 netbsd-1-6-PATCH002-RC2:1.7 netbsd-1-6-PATCH002-RC1:1.7 netbsd-1-6-PATCH001:1.7 netbsd-1-6-PATCH001-RELEASE:1.7 netbsd-1-6-PATCH001-RC3:1.7 netbsd-1-6-PATCH001-RC2:1.7 netbsd-1-6-PATCH001-RC1:1.7 nathanw_sa_before_merge:1.7 nathanw_sa_end:1.7 fvdl_fs64_base:1.7 nathanw_sa_base:1.7 netbsd-1-6-RELEASE:1.7 netbsd-1-6-RC3:1.7 netbsd-1-6-RC2:1.7 netbsd-1-6-RC1:1.7 netbsd-1-6:1.7.0.14 netbsd-1-6-base:1.7 netbsd-1-5-PATCH003:1.7 netbsd-1-5-PATCH002:1.7 netbsd-1-5-PATCH001:1.7 nathanw_sa:1.7.0.12 netbsd-1-5-RELEASE:1.7 netbsd-1-5-BETA2:1.7 netbsd-1-5-BETA:1.7 netbsd-1-4-PATCH003:1.7 netbsd-1-5-ALPHA2:1.7 netbsd-1-5:1.7.0.10 netbsd-1-5-base:1.7 minoura-xpg4dl:1.7.0.8 minoura-xpg4dl-base:1.7 netbsd-1-4-PATCH002:1.7 wrstuden-devbsize-19991221:1.7 wrstuden-devbsize:1.7.0.6 wrstuden-devbsize-base:1.7 comdex-fall-1999:1.7.0.4 comdex-fall-1999-base:1.7 netbsd-1-4-PATCH001:1.7 netbsd-1-4-RELEASE:1.7 netbsd-1-4:1.7.0.2 netbsd-1-4-base:1.7 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH003-CANDIDATE2:1.3 netbsd-1-3-PATCH003-CANDIDATE1:1.3 netbsd-1-3-PATCH003-CANDIDATE0:1.3 netbsd-1-3-PATCH002:1.3 netbsd-1-3-PATCH001:1.3 lite-2:1.1.1.2 CSRG:1.1.1 netbsd-1-3-RELEASE:1.3 netbsd-1-3-BETA:1.3 netbsd-1-3:1.3.0.8 netbsd-1-3-base:1.3 netbsd-1-2-PATCH001:1.3 nsswitch:1.3.0.4 netbsd-1-2-RELEASE:1.3 netbsd-1-2-BETA:1.3 netbsd-1-2-base:1.3 netbsd-1-2:1.3.0.6 netbsd-1-1-PATCH001:1.3 netbsd-1-1-RELEASE:1.3 netbsd-1-1:1.3.0.2 netbsd-1-1-base:1.3 netbsd-1-0-PATCH06:1.2 netbsd-1-0-PATCH05:1.2 netbsd-1-0-PATCH04:1.2 netbsd-1-0-PATCH03:1.2 netbsd-1-0-PATCH02:1.2 netbsd-1-0-PATCH1:1.2 netbsd-1-0-PATCH0:1.2 netbsd-1-0-RELEASE:1.2 netbsd-1-0:1.2.0.2 netbsd-1-0-base:1.2 netbsd-0-9-RELEASE:1.1.1.1 netbsd-0-9-BETA:1.1.1.1 netbsd-0-9-ALPHA2:1.1.1.1 netbsd-0-9-ALPHA:1.1.1.1 netbsd-0-9:1.1.1.1.0.2 netbsd-0-9-base:1.1.1.1 netbsd-0-8:1.1.1.1 netbsd-alpha-1:1.1.1.1 patchkit-0-2-2:1.1.1.1 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @ * @; 1.10 date 2005.02.03.04.39.32; author perry; state Exp; branches; next 1.9; 1.9 date 2004.04.23.14.37.12; author christos; state Exp; branches; next 1.8; 1.8 date 2003.08.07.09.44.10; author agc; state Exp; branches; next 1.7; 1.7 date 99.01.19.06.24.09; author abs; state Exp; branches; next 1.6; 1.6 date 98.07.27.09.09.24; author mycroft; state Exp; branches; next 1.5; 1.5 date 98.07.26.18.29.09; author mycroft; state Exp; branches; next 1.4; 1.4 date 98.02.02.21.07.22; author perry; state Exp; branches; next 1.3; 1.3 date 94.10.26.00.55.51; author cgd; state Exp; branches; next 1.2; 1.2 date 93.08.01.18.44.56; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 98.02.02.07.23.16; author perry; state Exp; branches; next ; desc @@ 1.10 log @de-__P -- the hack is long since useless. Discussed with christos, matt, kleink, others. Approved by christos. @ text @/* $NetBSD: disktab.h,v 1.9 2004/04/23 14:37:12 christos Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @@(#)disktab.h 8.1 (Berkeley) 6/2/93 */ #ifndef _DISKTAB_H_ #define _DISKTAB_H_ #include /* * Disk description table, see disktab(5) */ #define _PATH_DISKTAB "/etc/disktab" __BEGIN_DECLS int setdisktab(const char *); struct disklabel *getdiskbyname(const char *); __END_DECLS #endif /* !_DISKTAB_H_ */ @ 1.9 log @constify setdisktab() @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.8 2003/08/07 09:44:10 agc Exp $ */ d45 2 a46 2 int setdisktab __P((const char *)); struct disklabel *getdiskbyname __P((const char *)); @ 1.8 log @Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22270, verified by myself. @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.7 1999/01/19 06:24:09 abs Exp $ */ d45 1 a45 1 int setdisktab __P((char *)); @ 1.7 log @Add '-f disktab' option to disklabel, via lib/6623 from Greg A. Woods . (Very) slightly tweaked disklabel.8 @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.6 1998/07/27 09:09:24 mycroft Exp $ */ d15 1 a15 5 * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @ 1.6 log @Make many of the new consts dependent on a new `__AUDIT__' flag, to avoid breaking third party software. *sigh* @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.5 1998/07/26 18:29:09 mycroft Exp $ */ d46 1 a46 1 #define DISKTAB "/etc/disktab" d48 4 a51 18 struct partition { int p_size; /* #sectors in partition */ short p_bsize; /* block size in bytes */ short p_fsize; /* frag size in bytes */ }; struct disktab { __aconst char *d_name; /* drive name */ __aconst 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 */ int d_badsectforw; /* supports DEC bad144 std */ int d_sectoffset; /* use sect rather than cyl offsets */ struct partition d_partitions[8]; }; @ 1.5 log @const poisoning. @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.4 1998/02/02 21:07:22 perry Exp $ */ d41 2 d55 10 a64 10 const char *d_name; /* drive name */ const 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 */ int d_badsectforw; /* supports DEC bad144 std */ int d_sectoffset; /* use sect rather than cyl offsets */ struct partition d_partitions[8]; @ 1.4 log @merge lite-2 @ text @d1 1 a1 1 /* $NetBSD: disktab.h,v 1.3 1994/10/26 00:55:51 cgd Exp $ */ d46 6 d53 10 a62 14 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 */ int d_badsectforw; /* supports DEC bad144 std */ int d_sectoffset; /* use sect rather than cyl offsets */ struct partition { int p_size; /* #sectors in partition */ short p_bsize; /* block size in bytes */ short p_fsize; /* frag size in bytes */ } d_partitions[8]; @ 1.3 log @new RCS ID format. @ text @d1 1 a1 1 /* $NetBSD$ */ d4 2 a5 2 * Copyright (c) 1983 The Regents of the University of California. * All rights reserved. d35 1 a35 1 * @@(#)disktab.h 5.6 (Berkeley) 4/20/91 @ 1.2 log @Add RCS identifiers. @ text @d1 2 d35 1 a35 2 * from: @@(#)disktab.h 5.6 (Berkeley) 4/20/91 * $Id: $ @ 1.1 log @Initial revision @ text @d33 2 a34 1 * @@(#)disktab.h 5.6 (Berkeley) 4/20/91 @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@ 1.1.1.2 log @import lite-2 @ text @d2 2 a3 2 * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. d33 1 a33 1 * @@(#)disktab.h 8.1 (Berkeley) 6/2/93 @