From: Ben Gras Date: Thu, 19 Jan 2006 15:33:13 +0000 (+0000) Subject: Move truncate()/ftruncate() prototype outside MINIX conditional X-Git-Tag: v3.1.2a~425 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.conf.5.html?a=commitdiff_plain;h=a321c12f7576a8a59cf462364aba5e4167aec185;p=minix.git Move truncate()/ftruncate() prototype outside MINIX conditional --- 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)