(LPSZ lpsz)
| 548 | } |
| 549 | |
| 550 | public static boolean touch(LPSZ lpsz) { |
| 551 | long fd = openRW(lpsz); |
| 552 | boolean result = fd > 0; |
| 553 | if (result) { |
| 554 | close(fd); |
| 555 | } |
| 556 | return result; |
| 557 | } |
| 558 | |
| 559 | public static boolean truncate(long fd, long size) { |
| 560 | return truncate(toOsFd(fd), size); |