1 /* $NetBSD: wrap_stat.h,v 1.2 2026/05/09 18:49:23 christos Exp $ */ 2 3 #ifndef _WRAP_STAT_H_INCLUDED_ 4 #define _WRAP_STAT_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* wrap_stat 3h 9 /* SUMMARY 10 /* mockable stat/lstat wrappers 11 /* SYNOPSIS 12 /* #include <wrap_stat.h> 13 /* DESCRIPTION 14 /* .nf 15 16 /* 17 * System library. 18 */ 19 #include <sys/stat.h> 20 21 /* 22 * Mockable API. 23 */ 24 #ifndef NO_MOCK_WRAPPERS 25 extern int wrap_stat(const char *, struct stat *); 26 extern int wrap_lstat(const char *, struct stat *); 27 28 #define stat(path, st) wrap_stat(path, st) 29 #define lstat(path, st) wrap_lstat(path, st) 30 #endif 31 32 /* LICENSE 33 /* .ad 34 /* .fi 35 /* The Secure Mailer license must be distributed with this software. 36 /* AUTHOR(S) 37 /* Wietse Venema 38 /* porcupine.org 39 /*--*/ 40 41 #endif 42