From 6d7fbff00ba704bde127fad6e105a8e816f0d085 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Fri, 9 May 2008 16:24:01 -0500 Subject: [PATCH] unix.ffi: Add utime --- extra/unix/ffi/ffi.factor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extra/unix/ffi/ffi.factor b/extra/unix/ffi/ffi.factor index 11a8405b1d..ec3daab880 100644 --- a/extra/unix/ffi/ffi.factor +++ b/extra/unix/ffi/ffi.factor @@ -3,4 +3,10 @@ USING: alien.syntax ; IN: unix.ffi -FUNCTION: int open ( char* path, int flags, int prot ) ; \ No newline at end of file +FUNCTION: int open ( char* path, int flags, int prot ) ; + +C-STRUCT: utimbuf + { "time_t" "actime" } + { "time_t" "modtime" } ; + +FUNCTION: int utime ( char* path, utimebuf* buf ) ; \ No newline at end of file