take a shot at making other platform vocabs c-type-string-free
parent
89045e3fd0
commit
24de21eac8
|
@ -1,6 +1,6 @@
|
|||
USING: accessors alien.syntax arrays assocs biassocs
|
||||
classes.struct combinators kernel literals math math.bitwise
|
||||
math.floats.env math.floats.env.private system ;
|
||||
USING: accessors alien.c-types alien.syntax arrays assocs
|
||||
biassocs classes.struct combinators kernel literals math
|
||||
math.bitwise math.floats.env math.floats.env.private system ;
|
||||
IN: math.floats.env.ppc
|
||||
|
||||
STRUCT: ppc-fpu-env
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax ;
|
||||
USING: alien.c-types alien.syntax unix.statfs.freebsd ;
|
||||
IN: unix.getfsstat.freebsd
|
||||
|
||||
CONSTANT: MNT_WAIT 1 ! synchronously wait for I/O to complete
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax ;
|
||||
USING: alien.c-types alien.syntax unix.statvfs.netbsd ;
|
||||
IN: unix.getfsstat.netbsd
|
||||
|
||||
CONSTANT: MNT_WAIT 1 ! synchronously wait for I/O to complete
|
||||
CONSTANT: MNT_NOWAIT 2 ! start all I/O, but do not wait for it
|
||||
CONSTANT: MNT_LAZY 3 ! push data not written by filesystem syncer
|
||||
|
||||
FUNCTION: int getvfsstat ( statfs* buf, int bufsize, int flags ) ;
|
||||
FUNCTION: int getvfsstat ( statvfs* buf, int bufsize, int flags ) ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax ;
|
||||
USING: alien.c-types alien.syntax unix.statfs.openbsd ;
|
||||
IN: unix.getfsstat.openbsd
|
||||
|
||||
CONSTANT: MNT_WAIT 1 ! synchronously wait for I/O to complete
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.time ;
|
||||
IN: unix.kqueue
|
||||
|
||||
STRUCT: kevent
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.time ;
|
||||
IN: unix.kqueue
|
||||
|
||||
STRUCT: kevent
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.time ;
|
||||
IN: unix.kqueue
|
||||
|
||||
STRUCT: kevent
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2005, 2008 Slava Pestov.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax alien system classes.struct ;
|
||||
USING: alien.c-types alien.syntax alien system classes.struct ;
|
||||
IN: unix
|
||||
|
||||
! Linux.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2006 Patrick Mauritz.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax system kernel layouts ;
|
||||
USING: alien.c-types alien.syntax system kernel layouts ;
|
||||
IN: unix
|
||||
|
||||
! Solaris.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! FreeBSD 8.0-CURRENT
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! stat64
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! Ubuntu 7.10 64-bit
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! NetBSD 4.0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! NetBSD 4.0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel alien.syntax math classes.struct ;
|
||||
USING: kernel alien.c-types alien.syntax math classes.struct
|
||||
unix.time unix.types ;
|
||||
IN: unix.stat
|
||||
|
||||
! OpenBSD 4.2
|
||||
|
|
|
@ -27,8 +27,8 @@ STRUCT: statfs
|
|||
{ f_owner uid_t }
|
||||
{ f_fsid fsid_t }
|
||||
{ f_charspare char[80] }
|
||||
{ f_fstypename { "char" MFSNAMELEN } }
|
||||
{ f_mntfromname { "char" MNAMELEN } }
|
||||
{ f_mntonname { "char" MNAMELEN } } ;
|
||||
{ f_fstypename { char MFSNAMELEN } }
|
||||
{ f_mntfromname { char MNAMELEN } }
|
||||
{ f_mntonname { char MNAMELEN } } ;
|
||||
|
||||
FUNCTION: int statfs ( char* path, statvfs* buf ) ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax unix.types unix.stat classes.struct ;
|
||||
USING: alien.c-types alien.syntax unix.types unix.stat classes.struct ;
|
||||
IN: unix.statfs.linux
|
||||
|
||||
STRUCT: statfs64
|
||||
|
|
|
@ -111,9 +111,9 @@ STRUCT: statfs64
|
|||
{ f_type uint32_t }
|
||||
{ f_flags uint32_t }
|
||||
{ f_fssubtype uint32_t }
|
||||
{ f_fstypename { "char" MFSTYPENAMELEN } }
|
||||
{ f_mntonname { "char" MAXPATHLEN } }
|
||||
{ f_mntfromname { "char" MAXPATHLEN } }
|
||||
{ f_fstypename { char MFSTYPENAMELEN } }
|
||||
{ f_mntonname { char MAXPATHLEN } }
|
||||
{ f_mntfromname { char MAXPATHLEN } }
|
||||
{ f_reserved uint32_t[8] } ;
|
||||
|
||||
FUNCTION: int statfs64 ( char* path, statfs64* buf ) ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax unix.types unix.stat classes.struct ;
|
||||
USING: alien.c-types alien.syntax unix.types unix.stat classes.struct ;
|
||||
IN: unix.statfs.openbsd
|
||||
|
||||
CONSTANT: MFSNAMELEN 16
|
||||
|
@ -25,9 +25,9 @@ STRUCT: statfs
|
|||
{ f_owner uid_t }
|
||||
{ f_ctime u_int32_t }
|
||||
{ f_spare u_int32_t[3] }
|
||||
{ f_fstypename { "char" MFSNAMELEN } }
|
||||
{ f_mntonname { "char" MNAMELEN } }
|
||||
{ f_mntfromname { "char" MNAMELEN } }
|
||||
{ f_fstypename { char MFSNAMELEN } }
|
||||
{ f_mntonname { char MNAMELEN } }
|
||||
{ f_mntfromname { char MNAMELEN } }
|
||||
{ mount_info char[160] } ;
|
||||
|
||||
FUNCTION: int statfs ( char* path, statvfs* buf ) ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.types ;
|
||||
IN: unix.statvfs.freebsd
|
||||
|
||||
STRUCT: statvfs
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.types ;
|
||||
IN: unix.statvfs.linux
|
||||
|
||||
STRUCT: statvfs64
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.types ;
|
||||
IN: unix.statvfs.netbsd
|
||||
|
||||
CONSTANT: _VFS_NAMELEN 32
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
! Copyright (C) 2008 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: alien.syntax classes.struct ;
|
||||
USING: alien.c-types alien.syntax classes.struct unix.types ;
|
||||
IN: unix.statvfs.openbsd
|
||||
|
||||
STRUCT: statvfs
|
||||
|
|
Loading…
Reference in New Issue