Skip to content

Commit c75ca64

Browse files
committed
Auto merge of #1096 - jmmv:truncate, r=alexcrichton
Add truncate(2) to Unix platforms
2 parents 9c4f6c4 + 41ee5d0 commit c75ca64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ extern {
641641
pub fn symlink(path1: *const c_char,
642642
path2: *const c_char) -> ::c_int;
643643

644+
pub fn truncate(path: *const c_char, length: off_t) -> ::c_int;
644645
pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int;
645646

646647
pub fn signal(signum: ::c_int, handler: sighandler_t) -> sighandler_t;

0 commit comments

Comments
 (0)