From a321c12f7576a8a59cf462364aba5e4167aec185 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 19 Jan 2006 15:33:13 +0000 Subject: [PATCH] Move truncate()/ftruncate() prototype outside MINIX conditional --- include/unistd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 2533a7f2f..012e385d7 100755 --- a/include/unistd.h +++ b/include/unistd.h @@ -136,6 +136,8 @@ _PROTOTYPE( int tcsetpgrp, (int _fd, pid_t _pgrp_id) ); _PROTOTYPE( char *ttyname, (int _fd) ); _PROTOTYPE( int unlink, (const char *_path) ); _PROTOTYPE( ssize_t write, (int _fd, const void *_buf, size_t _n) ); +_PROTOTYPE( int truncate, (const char *_path, off_t _length) ); +_PROTOTYPE( int ftruncate, (int _fd, off_t _length) ); /* Open Group Base Specifications Issue 6 (not complete) */ _PROTOTYPE( int symlink, (const char *path1, const char *path2) ); @@ -174,8 +176,6 @@ _PROTOTYPE( int getpprocnr, (void) ); _PROTOTYPE( int findproc, (char *proc_name, int *proc_nr) ); _PROTOTYPE( int allocmem, (phys_bytes size, phys_bytes *base) ); _PROTOTYPE( int freemem, (phys_bytes size, phys_bytes base) ); -_PROTOTYPE( int truncate, (const char *_path, off_t _length) ); -_PROTOTYPE( int ftruncate, (int _fd, off_t _length) ); #define DEV_MAP 1 #define DEV_UNMAP 2 #define mapdriver(driver, device, style) devctl(DEV_MAP, driver, device, style)