Mercurial > hg > octave-shane > gnulib-hg
comparison lib/ftruncate.c @ 8199:51d32a83a7df
Move more declarations into <unistd.h>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 19 Feb 2007 02:23:32 +0000 |
parents | 8a1a9361108c |
children | 717accda417a |
comparison
equal
deleted
inserted
replaced
8198:d84ab7c183f4 | 8199:51d32a83a7df |
---|---|
1 /* ftruncate emulations that work on some System V's. | 1 /* ftruncate emulations that work on some System V's. |
2 This file is in the public domain. */ | 2 This file is in the public domain. */ |
3 | 3 |
4 #include <config.h> | 4 #include <config.h> |
5 | |
6 /* Specification. */ | |
7 #include <unistd.h> | |
5 | 8 |
6 #include <sys/types.h> | 9 #include <sys/types.h> |
7 #include <fcntl.h> | 10 #include <fcntl.h> |
8 | 11 |
9 #ifdef F_CHSIZE | 12 #ifdef F_CHSIZE |
19 | 22 |
20 /* By William Kucharski <kucharsk@netcom.com>. */ | 23 /* By William Kucharski <kucharsk@netcom.com>. */ |
21 | 24 |
22 # include <sys/stat.h> | 25 # include <sys/stat.h> |
23 # include <errno.h> | 26 # include <errno.h> |
24 # include <unistd.h> | |
25 | 27 |
26 int | 28 int |
27 ftruncate (int fd, off_t length) | 29 ftruncate (int fd, off_t length) |
28 { | 30 { |
29 struct flock fl; | 31 struct flock fl; |