unix.linux: fix load errors from c-type changes

db4
Slava Pestov 2009-09-28 04:26:05 -05:00
parent 253db8fee0
commit efe8f3c74c
3 changed files with 6 additions and 6 deletions

View File

@ -1,18 +1,18 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
IN: unix.linux.epoll IN: unix.linux.epoll
USING: alien.syntax classes.struct math ; USING: alien.c-types alien.syntax classes.struct math ;
FUNCTION: int epoll_create ( int size ) ; FUNCTION: int epoll_create ( int size ) ;
FUNCTION: int epoll_ctl ( int epfd, int op, int fd, epoll_event* event ) ;
STRUCT: epoll-event STRUCT: epoll-event
{ events uint } { events uint }
{ fd uint } { fd uint }
{ padding uint } ; { padding uint } ;
FUNCTION: int epoll_wait ( int epfd, epoll_event* events, int maxevents, int timeout ) ; FUNCTION: int epoll_ctl ( int epfd, int op, int fd, epoll-event* event ) ;
FUNCTION: int epoll_wait ( int epfd, epoll-event* events, int maxevents, int timeout ) ;
CONSTANT: EPOLL_CTL_ADD 1 ! Add a file decriptor to the interface. CONSTANT: EPOLL_CTL_ADD 1 ! Add a file decriptor to the interface.
CONSTANT: EPOLL_CTL_DEL 2 ! Remove a file decriptor from the interface. CONSTANT: EPOLL_CTL_DEL 2 ! Remove a file decriptor from the interface.

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien.syntax math math.bitwise classes.struct ; USING: alien.c-types alien.syntax math math.bitwise classes.struct ;
IN: unix.linux.inotify IN: unix.linux.inotify
STRUCT: inotify-event STRUCT: inotify-event

View File

@ -103,7 +103,7 @@ STRUCT: dirent
{ d_name char[256] } ; { d_name char[256] } ;
FUNCTION: int open64 ( char* path, int flags, int prot ) ; FUNCTION: int open64 ( char* path, int flags, int prot ) ;
FUNCTION: dirent64* readdir64 ( DIR* dirp ) ; FUNCTION: dirent* readdir64 ( DIR* dirp ) ;
FUNCTION: int readdir64_r ( void* dirp, dirent* entry, dirent** result ) ; FUNCTION: int readdir64_r ( void* dirp, dirent* entry, dirent** result ) ;
M: linux open-file [ open64 ] unix-system-call ; M: linux open-file [ open64 ] unix-system-call ;