head 1.8; access; symbols netbsd-10-0-RC6:1.8 netbsd-10-0-RC5:1.8 netbsd-10-0-RC4:1.8 netbsd-10-0-RC3:1.8 netbsd-10-0-RC2:1.8 netbsd-10-0-RC1:1.8 netbsd-10:1.8.0.26 netbsd-10-base:1.8 netbsd-9-3-RELEASE:1.8 cjep_sun2x-base1:1.8 cjep_sun2x:1.8.0.24 cjep_sun2x-base:1.8 cjep_staticlib_x-base1:1.8 netbsd-9-2-RELEASE:1.8 cjep_staticlib_x:1.8.0.22 cjep_staticlib_x-base:1.8 netbsd-9-1-RELEASE:1.8 phil-wifi-20200421:1.8 phil-wifi-20200411:1.8 is-mlppp:1.8.0.20 is-mlppp-base:1.8 phil-wifi-20200406:1.8 netbsd-8-2-RELEASE:1.8 netbsd-9-0-RELEASE:1.8 netbsd-9-0-RC2:1.8 netbsd-9-0-RC1:1.8 phil-wifi-20191119:1.8 netbsd-9:1.8.0.18 netbsd-9-base:1.8 phil-wifi-20190609:1.8 netbsd-8-1-RELEASE:1.8 netbsd-8-1-RC1:1.8 pgoyette-compat-merge-20190127:1.8 pgoyette-compat-20190127:1.8 pgoyette-compat-20190118:1.8 pgoyette-compat-1226:1.8 pgoyette-compat-1126:1.8 pgoyette-compat-1020:1.8 pgoyette-compat-0930:1.8 pgoyette-compat-0906:1.8 netbsd-7-2-RELEASE:1.7 pgoyette-compat-0728:1.8 netbsd-8-0-RELEASE:1.8 phil-wifi:1.8.0.16 phil-wifi-base:1.8 pgoyette-compat-0625:1.8 netbsd-8-0-RC2:1.8 pgoyette-compat-0521:1.8 pgoyette-compat-0502:1.8 pgoyette-compat-0422:1.8 netbsd-8-0-RC1:1.8 pgoyette-compat-0415:1.8 pgoyette-compat-0407:1.8 pgoyette-compat-0330:1.8 pgoyette-compat-0322:1.8 pgoyette-compat-0315:1.8 netbsd-7-1-2-RELEASE:1.7 pgoyette-compat:1.8.0.14 pgoyette-compat-base:1.8 netbsd-7-1-1-RELEASE:1.7 matt-nb8-mediatek:1.8.0.12 matt-nb8-mediatek-base:1.8 perseant-stdc-iso10646:1.8.0.10 perseant-stdc-iso10646-base:1.8 netbsd-8:1.8.0.8 netbsd-8-base:1.8 prg-localcount2-base3:1.8 prg-localcount2-base2:1.8 prg-localcount2-base1:1.8 prg-localcount2:1.8.0.6 prg-localcount2-base:1.8 pgoyette-localcount-20170426:1.8 bouyer-socketcan-base1:1.8 pgoyette-localcount-20170320:1.8 netbsd-7-1:1.7.0.28 netbsd-7-1-RELEASE:1.7 netbsd-7-1-RC2:1.7 netbsd-7-nhusb-base-20170116:1.7 bouyer-socketcan:1.8.0.4 bouyer-socketcan-base:1.8 pgoyette-localcount-20170107:1.8 netbsd-7-1-RC1:1.7 pgoyette-localcount-20161104:1.8 netbsd-7-0-2-RELEASE:1.7 localcount-20160914:1.8 netbsd-7-nhusb:1.7.0.26 netbsd-7-nhusb-base:1.7 pgoyette-localcount-20160806:1.8 pgoyette-localcount-20160726:1.8 pgoyette-localcount:1.8.0.2 pgoyette-localcount-base:1.8 netbsd-7-0-1-RELEASE:1.7 netbsd-7-0:1.7.0.24 netbsd-7-0-RELEASE:1.7 netbsd-7-0-RC3:1.7 netbsd-7-0-RC2:1.7 netbsd-7-0-RC1:1.7 netbsd-5-2-3-RELEASE:1.5 netbsd-5-1-5-RELEASE:1.5 netbsd-6-0-6-RELEASE:1.7 netbsd-6-1-5-RELEASE:1.7 netbsd-7:1.7.0.22 netbsd-7-base:1.7 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.7 netbsd-6-1-4-RELEASE:1.7 netbsd-6-0-5-RELEASE:1.7 tls-earlyentropy:1.7.0.20 tls-earlyentropy-base:1.7 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 netbsd-6-1-3-RELEASE:1.7 netbsd-6-0-4-RELEASE:1.7 netbsd-5-2-2-RELEASE:1.5 netbsd-5-1-4-RELEASE:1.5 netbsd-6-1-2-RELEASE:1.7 netbsd-6-0-3-RELEASE:1.7 netbsd-5-2-1-RELEASE:1.5 netbsd-5-1-3-RELEASE:1.5 netbsd-6-1-1-RELEASE:1.7 riastradh-drm2-base2:1.7 riastradh-drm2-base1:1.7 riastradh-drm2:1.7.0.14 riastradh-drm2-base:1.7 netbsd-6-1:1.7.0.18 netbsd-6-0-2-RELEASE:1.7 netbsd-6-1-RELEASE:1.7 netbsd-6-1-RC4:1.7 netbsd-6-1-RC3:1.7 agc-symver:1.7.0.16 agc-symver-base:1.7 netbsd-6-1-RC2:1.7 netbsd-6-1-RC1:1.7 yamt-pagecache-base8:1.7 netbsd-5-2:1.5.0.50 netbsd-6-0-1-RELEASE:1.7 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.5 netbsd-5-2-RC1:1.5 matt-nb6-plus-nbase:1.7 yamt-pagecache-base6:1.7 netbsd-6-0:1.7.0.12 netbsd-6-0-RELEASE:1.7 netbsd-6-0-RC2:1.7 tls-maxphys:1.7.0.10 tls-maxphys-base:1.7 matt-nb6-plus:1.7.0.8 matt-nb6-plus-base:1.7 netbsd-6-0-RC1:1.7 yamt-pagecache-base5:1.7 yamt-pagecache-base4:1.7 netbsd-6:1.7.0.6 netbsd-6-base:1.7 netbsd-5-1-2-RELEASE:1.5 netbsd-5-1-1-RELEASE:1.5 yamt-pagecache-base3:1.7 yamt-pagecache-base2:1.7 yamt-pagecache:1.7.0.4 yamt-pagecache-base:1.7 cherry-xenmp:1.7.0.2 cherry-xenmp-base:1.7 uebayasi-xip-base7:1.7 bouyer-quota2-nbase:1.7 bouyer-quota2:1.6.0.2 bouyer-quota2-base:1.7 matt-mips64-premerge-20101231:1.6 matt-nb5-mips64-premerge-20101231:1.5 matt-nb5-pq3:1.5.0.48 matt-nb5-pq3-base:1.5 netbsd-5-1:1.5.0.46 uebayasi-xip-base6:1.6 uebayasi-xip-base5:1.6 netbsd-5-1-RELEASE:1.5 uebayasi-xip-base4:1.6 uebayasi-xip-base3:1.6 netbsd-5-1-RC4:1.5 matt-nb5-mips64-k15:1.5 uebayasi-xip-base2:1.5 netbsd-5-1-RC3:1.5 netbsd-5-1-RC2:1.5 uebayasi-xip-base1:1.5 netbsd-5-1-RC1:1.5 uebayasi-xip:1.5.0.44 uebayasi-xip-base:1.5 netbsd-5-0-2-RELEASE:1.5 matt-nb5-mips64-premerge-20091211:1.5 matt-premerge-20091211:1.5 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5 matt-nb4-mips64-k7-u2a-k9b:1.5 matt-nb5-mips64-u1-k1-k5:1.5 matt-nb5-mips64:1.5.0.42 netbsd-5-0-1-RELEASE:1.5 jym-xensuspend-nbase:1.5 netbsd-5-0:1.5.0.40 netbsd-5-0-RELEASE:1.5 netbsd-5-0-RC4:1.5 netbsd-5-0-RC3:1.5 netbsd-5-0-RC2:1.5 jym-xensuspend:1.5.0.38 jym-xensuspend-base:1.5 netbsd-5-0-RC1:1.5 christos-time_t-nbase:1.5 christos-time_t:1.5.0.36 christos-time_t-base:1.5 netbsd-5:1.5.0.34 netbsd-5-base:1.5 matt-mips64-base2:1.5 matt-mips64:1.5.0.32 mjf-devfs2:1.5.0.30 mjf-devfs2-base:1.5 netbsd-4-0-1-RELEASE:1.5 wrstuden-revivesa-base-3:1.5 wrstuden-revivesa-base-2:1.5 wrstuden-fixsa-newbase:1.5 wrstuden-revivesa-base-1:1.5 simonb-wapbl-nbase:1.5 yamt-pf42-base4:1.5 simonb-wapbl:1.5.0.28 simonb-wapbl-base:1.5 yamt-pf42-base3:1.5 hpcarm-cleanup-nbase:1.5 yamt-pf42-baseX:1.5 yamt-pf42-base2:1.5 wrstuden-revivesa:1.5.0.26 wrstuden-revivesa-base:1.5 yamt-pf42:1.5.0.24 yamt-pf42-base:1.5 keiichi-mipv6:1.5.0.22 keiichi-mipv6-base:1.5 matt-armv6-nbase:1.5 matt-armv6-prevmlocking:1.5 wrstuden-fixsa-base-1:1.5 netbsd-4-0:1.5.0.20 netbsd-4-0-RELEASE:1.5 cube-autoconf:1.5.0.18 cube-autoconf-base:1.5 netbsd-4-0-RC5:1.5 netbsd-4-0-RC4:1.5 netbsd-4-0-RC3:1.5 netbsd-4-0-RC2:1.5 netbsd-4-0-RC1:1.5 matt-armv6:1.5.0.16 matt-armv6-base:1.5 matt-mips64-base:1.5 hpcarm-cleanup:1.5.0.14 hpcarm-cleanup-base:1.5 netbsd-3-1-1-RELEASE:1.5 netbsd-3-0-3-RELEASE:1.5 wrstuden-fixsa:1.5.0.12 wrstuden-fixsa-base:1.5 abandoned-netbsd-4-base:1.5 abandoned-netbsd-4:1.5.0.6 netbsd-3-1:1.5.0.8 netbsd-3-1-RELEASE:1.5 netbsd-3-0-2-RELEASE:1.5 netbsd-3-1-RC4:1.5 netbsd-3-1-RC3:1.5 netbsd-3-1-RC2:1.5 netbsd-3-1-RC1:1.5 netbsd-4:1.5.0.10 netbsd-4-base:1.5 netbsd-3-0-1-RELEASE:1.5 netbsd-3-0:1.5.0.4 netbsd-3-0-RELEASE:1.5 netbsd-3-0-RC6:1.5 netbsd-3-0-RC5:1.5 netbsd-3-0-RC4:1.5 netbsd-3-0-RC3:1.5 netbsd-3-0-RC2:1.5 netbsd-3-0-RC1:1.5 netbsd-2-0-3-RELEASE:1.4 netbsd-2-1:1.4.0.20 netbsd-2-1-RELEASE:1.4 netbsd-2-1-RC6:1.4 netbsd-2-1-RC5:1.4 netbsd-2-1-RC4:1.4 netbsd-2-1-RC3:1.4 netbsd-2-1-RC2:1.4 netbsd-2-1-RC1:1.4 netbsd-2-0-2-RELEASE:1.4 netbsd-3:1.5.0.2 netbsd-3-base:1.5 netbsd-2-0-1-RELEASE:1.4 netbsd-2:1.4.0.18 netbsd-2-base:1.4 netbsd-2-0-RELEASE:1.4 netbsd-2-0-RC5:1.4 netbsd-2-0-RC4:1.4 netbsd-2-0-RC3:1.4 netbsd-2-0-RC2:1.4 netbsd-2-0-RC1:1.4 netbsd-2-0:1.4.0.16 netbsd-2-0-base:1.4 netbsd-1-6-PATCH002-RELEASE:1.4 netbsd-1-6-PATCH002:1.4 netbsd-1-6-PATCH002-RC4:1.4 netbsd-1-6-PATCH002-RC3:1.4 netbsd-1-6-PATCH002-RC2:1.4 netbsd-1-6-PATCH002-RC1:1.4 netbsd-1-6-PATCH001:1.4 netbsd-1-6-PATCH001-RELEASE:1.4 netbsd-1-6-PATCH001-RC3:1.4 netbsd-1-6-PATCH001-RC2:1.4 netbsd-1-6-PATCH001-RC1:1.4 nathanw_sa_before_merge:1.4 nathanw_sa_end:1.4 fvdl_fs64_base:1.4 nathanw_sa_base:1.4 netbsd-1-6-RELEASE:1.4 netbsd-1-6-RC3:1.4 netbsd-1-6-RC2:1.4 netbsd-1-6-RC1:1.4 netbsd-1-6:1.4.0.14 netbsd-1-6-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH002:1.4 netbsd-1-5-PATCH001:1.4 nathanw_sa:1.4.0.12 netbsd-1-5-RELEASE:1.4 netbsd-1-5-BETA2:1.4 netbsd-1-5-BETA:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-5-ALPHA2:1.4 netbsd-1-5:1.4.0.10 netbsd-1-5-base:1.4 minoura-xpg4dl:1.4.0.8 minoura-xpg4dl-base:1.4 netbsd-1-4-PATCH002:1.4 wrstuden-devbsize-19991221:1.4 wrstuden-devbsize:1.4.0.6 wrstuden-devbsize-base:1.4 comdex-fall-1999:1.4.0.4 comdex-fall-1999-base:1.4 netbsd-1-4-PATCH001:1.4 netbsd-1-4-RELEASE:1.4 netbsd-1-4:1.4.0.2 netbsd-1-4-base:1.4 netbsd-1-3-PATCH003:1.2.4.2 netbsd-1-3-PATCH003-CANDIDATE2:1.2.4.2 netbsd-1-3-PATCH003-CANDIDATE1:1.2.4.2 netbsd-1-3-PATCH003-CANDIDATE0:1.2.4.2 netbsd-1-3-PATCH002:1.2.4.2 netbsd-1-3-PATCH001:1.2.4.2 netbsd-1-3-RELEASE:1.2.4.2 netbsd-1-3-BETA:1.2.4.2 netbsd-1-3:1.2.0.4 netbsd-1-3-base:1.2 nsswitch:1.2.0.2; locks; strict; comment @ * @; 1.8 date 2016.01.22.23.15.58; author dholland; state Exp; branches; next 1.7; commitid EPWyqXaGrHHh0ZRy; 1.7 date 2011.02.16.19.29.35; author christos; state Exp; branches; next 1.6; 1.6 date 2010.08.31.05.12.35; author enami; state Exp; branches 1.6.2.1; next 1.5; 1.5 date 2005.02.03.04.39.32; author perry; state Exp; branches 1.5.44.1; next 1.4; 1.4 date 97.10.22.06.59.35; author thorpej; state Exp; branches; next 1.3; 1.3 date 97.10.21.19.50.55; author thorpej; state Exp; branches; next 1.2; 1.2 date 96.08.09.03.59.40; author jtc; state Exp; branches 1.2.4.1; next 1.1; 1.1 date 96.08.09.03.56.56; author jtc; state Exp; branches; next ; 1.6.2.1 date 2011.02.17.11.59.21; author bouyer; state Exp; branches; next ; 1.5.44.1 date 2010.10.22.07.11.52; author uebayasi; state Exp; branches; next ; 1.2.4.1 date 97.10.21.19.57.53; author thorpej; state Exp; branches; next 1.2.4.2; 1.2.4.2 date 97.10.22.07.05.38; author thorpej; state Exp; branches; next ; desc @@ 1.8 log @Needs sys/types.h for mode_t, off_t, ssize_t, and others. @ text @/* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */ /* * rmt.h * * Added routines to replace open(), close(), lseek(), ioctl(), etc. * The preprocessor can be used to remap these the rmtopen(), etc * thus minimizing source changes. * * This file must be included before , since it redefines * stat to be rmtstat, so that struct stat xyzzy; declarations work * properly. * * -- Fred Fish (w/some changes by Arnold Robbins) */ #ifndef _RMT_H_ #define _RMT_H_ #include #include #if _FORTIFY_SOURCE > 0 #define __ssp_weak_name(x) rmt ## x #include #endif __BEGIN_DECLS int isrmt(int); int rmtaccess(const char *, int); int rmtclose(int); int rmtcreat(const char *, mode_t); int rmtdup(int); int rmtfcntl(int, int, ...); int rmtfstat(int, struct stat *); int rmtioctl(int, unsigned long, ...); int rmtisatty(int); off_t rmtlseek(int, off_t, int); int rmtlstat(const char *, struct stat *); int rmtopen(const char *, int, ...); ssize_t rmtread(int, void *, size_t); int rmtstat(const char *, struct stat *); ssize_t rmtwrite(int, const void *, size_t); __END_DECLS #ifndef __RMTLIB_PRIVATE /* don't remap if building librmt */ #define access rmtaccess #define close rmtclose #define creat rmtcreat #define dup rmtdup #define fcntl rmtfcntl #define fstat rmtfstat #define ioctl rmtioctl #define isatty rmtisatty #define lseek rmtlseek #define lstat rmtlstat #define open rmtopen #if __SSP_FORTIFY_LEVEL == 0 #define read rmtread #endif #define stat rmtstat #define write rmtwrite #endif /* __RMTLIB_PRIVATE */ #endif /* _RMT_H_ */ @ 1.7 log @handle ssp @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.6 2010/08/31 05:12:35 enami Exp $ */ d21 1 @ 1.6 log @Move prototype of isrmt() to rmt.h. It is a public interface described in rmtops(3). @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.5 2005/02/03 04:39:32 perry Exp $ */ d22 5 d57 1 d59 1 @ 1.6.2.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */ a21 5 #if _FORTIFY_SOURCE > 0 #define __ssp_weak_name(x) rmt ## x #include #endif a51 1 #if __SSP_FORTIFY_LEVEL == 0 a52 1 #endif @ 1.5 log @de-__P -- the hack is long since useless. Discussed with christos, matt, kleink, others. Approved by christos. @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.4 1997/10/22 06:59:35 thorpej Exp $ */ d23 1 @ 1.5.44.1 log @Sync with HEAD (-D20101022). @ text @d1 1 a1 1 /* $NetBSD$ */ a22 1 int isrmt(int); @ 1.4 log @Update for new function renaming nechanism. @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.3 1997/10/21 19:50:55 thorpej Exp $ */ d23 14 a36 14 int rmtaccess __P((const char *, int)); int rmtclose __P((int)); int rmtcreat __P((const char *, mode_t)); int rmtdup __P((int)); int rmtfcntl __P((int, int, ...)); int rmtfstat __P((int, struct stat *)); int rmtioctl __P((int, unsigned long, ...)); int rmtisatty __P((int)); off_t rmtlseek __P((int, off_t, int)); int rmtlstat __P((const char *, struct stat *)); int rmtopen __P((const char *, int, ...)); ssize_t rmtread __P((int, void *, size_t)); int rmtstat __P((const char *, struct stat *)); ssize_t rmtwrite __P((int, const void *, size_t)); @ 1.3 log @Make this somewhat less yucky: - Make this work with versioned stat(2)-family functions. - Prototype the rmt(3) functions here, and make them match the prototypes of the functions they're remapping. - Allow rmtlib.c to include this in a way that doesn't remap any functions. @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.2 1996/08/09 03:59:40 jtc Exp $ */ a44 1 #undef fstat a48 1 #undef lstat a51 1 #undef stat @ 1.2 log @clean up comments, etc. @ text @d1 1 a1 1 /* $NetBSD: $ */ d20 20 d45 1 d50 1 d54 1 d57 1 @ 1.2.4.1 log @Pull up from trunk: Make this somewhat less yucky: - Make this work with versioned stat(2)-family functions. - Prototype the rmt(3) functions here, and make them match the prototypes of the functions they're remapping. - Allow rmtlib.c to include this in a way that doesn't remap any functions. @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.3 1997/10/21 19:50:55 thorpej Exp $ */ a19 20 #include __BEGIN_DECLS int rmtaccess __P((const char *, int)); int rmtclose __P((int)); int rmtcreat __P((const char *, mode_t)); int rmtdup __P((int)); int rmtfcntl __P((int, int, ...)); int rmtfstat __P((int, struct stat *)); int rmtioctl __P((int, unsigned long, ...)); int rmtisatty __P((int)); off_t rmtlseek __P((int, off_t, int)); int rmtlstat __P((const char *, struct stat *)); int rmtopen __P((const char *, int, ...)); ssize_t rmtread __P((int, void *, size_t)); int rmtstat __P((const char *, struct stat *)); ssize_t rmtwrite __P((int, const void *, size_t)); __END_DECLS #ifndef __RMTLIB_PRIVATE /* don't remap if building librmt */ a24 1 #undef fstat a28 1 #undef lstat a31 1 #undef stat a33 1 #endif /* __RMTLIB_PRIVATE */ @ 1.2.4.2 log @Pull up from trunk: update for new function renaming mechanism. @ text @d1 1 a1 1 /* $NetBSD: rmt.h,v 1.4 1997/10/22 06:59:35 thorpej Exp $ */ d45 1 d50 1 d54 1 @ 1.1 log @Remote mag tape library from volume 18 of comp.sources.unix. @ text @d1 1 a1 8 /* * $Header: rmt.h,v 1.1 86/10/09 16:17:20 root Locked $ * * $Log: rmt.h,v $ * Revision 1.1 86/10/09 16:17:20 root * Initial revision * */ d17 2 a19 2 #ifndef access /* avoid multiple redefinition */ #ifndef lint /* in this case what lint doesn't know won't hurt it */ d35 1 a35 3 extern long rmtlseek (); /* all the rest are int's */ #endif #endif @