diff options
author | Tim Rice <tim@multitalents.net> | 2002-05-07 19:51:31 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-05-07 19:51:31 -0700 |
commit | 4bd2a1989073dcf353e8e4801029f9b6873158df (patch) | |
tree | c367bb516838b2284f00286f53242607c08c06e5 /openbsd-compat/bsd-misc.h | |
parent | f762a4bea554a9ff4dc59b9456c7e1a2379310b3 (diff) |
Add truncate() emulation to address Bug 208
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 2ca0f3704..9475a2945 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* $Id: bsd-misc.h,v 1.3 2001/04/09 14:50:56 stevesk Exp $ */ | 25 | /* $Id: bsd-misc.h,v 1.4 2002/05/08 02:51:32 tim Exp $ */ |
26 | 26 | ||
27 | #ifndef _BSD_MISC_H | 27 | #ifndef _BSD_MISC_H |
28 | #define _BSD_MISC_H | 28 | #define _BSD_MISC_H |
@@ -72,5 +72,8 @@ struct timeval { | |||
72 | int utimes(char *filename, struct timeval *tvp); | 72 | int utimes(char *filename, struct timeval *tvp); |
73 | #endif /* HAVE_UTIMES */ | 73 | #endif /* HAVE_UTIMES */ |
74 | 74 | ||
75 | #ifndef HAVE_TRUNCATE | ||
76 | int truncate (const char *path, off_t length); | ||
77 | #endif /* HAVE_TRUNCATE */ | ||
75 | 78 | ||
76 | #endif /* _BSD_MISC_H */ | 79 | #endif /* _BSD_MISC_H */ |