diff options
author | David 'Digit' Turner <digit@google.com> | 2010-06-11 14:37:34 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-06-11 14:40:02 -0700 |
commit | da3019b55305ce51b1b483d8727641e791ce0941 (patch) | |
tree | c9bd76c757d8689bc2367bb0fdf318fbe3c7d060 /libc | |
parent | ecb6d4133477fef90c2fa23a40637d3c62681ee0 (diff) | |
download | bionic-da3019b55305ce51b1b483d8727641e791ce0941.zip bionic-da3019b55305ce51b1b483d8727641e791ce0941.tar.gz bionic-da3019b55305ce51b1b483d8727641e791ce0941.tar.bz2 |
libc: add missing truncate() declaration
Change-Id: Icb3601bbc9365b75b05ff443a39192f9cd3cbfb7
Diffstat (limited to 'libc')
-rw-r--r-- | libc/docs/CHANGES.TXT | 3 | ||||
-rw-r--r-- | libc/include/unistd.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libc/docs/CHANGES.TXT b/libc/docs/CHANGES.TXT index 2ae91d5..b57e87a 100644 --- a/libc/docs/CHANGES.TXT +++ b/libc/docs/CHANGES.TXT @@ -18,6 +18,9 @@ Differences between current and Android 2.2: - <termio.h>: added missing header (just includes <termios.h>) +- <unistd.h>: add missing declaration for truncate(). The implementation + was already here since Android 1.5. + ------------------------------------------------------------------------------- Differences between Android 2.2. and Android 2.1: diff --git a/libc/include/unistd.h b/libc/include/unistd.h index b4f1dda..7554198 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -124,6 +124,7 @@ extern int readlink(const char *, char *, size_t); extern int chown(const char *, uid_t, gid_t); extern int fchown(int, uid_t, gid_t); extern int lchown(const char *, uid_t, gid_t); +extern int truncate(const char *, off_t); extern char *getcwd(char *, size_t); extern int sync(void); |