diff options
| author | David 'Digit' Turner <digit@google.com> | 2010-06-11 14:44:27 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-11 14:44:27 -0700 |
| commit | 0db9a39e2a7de64e062e00419cb9ae7aef95ab70 (patch) | |
| tree | 78f21e6c2c70de5b0d0e7cfe757e389bae93d950 /libc | |
| parent | 1120749f049dccbb131ed562bbd1ac1cb25a836a (diff) | |
| parent | ef5f1ec301f7be8c35cc073c54f41272e02ae7d2 (diff) | |
| download | bionic-0db9a39e2a7de64e062e00419cb9ae7aef95ab70.zip bionic-0db9a39e2a7de64e062e00419cb9ae7aef95ab70.tar.gz bionic-0db9a39e2a7de64e062e00419cb9ae7aef95ab70.tar.bz2 | |
am ef5f1ec3: am da3019b5: libc: add missing truncate() declaration
Merge commit 'ef5f1ec301f7be8c35cc073c54f41272e02ae7d2'
* commit 'ef5f1ec301f7be8c35cc073c54f41272e02ae7d2':
libc: add missing truncate() declaration
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 9ae362b..53489ae 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); |
