diff --git a/basis/math/floats/env/ppc/ppc.factor b/basis/math/floats/env/ppc/ppc.factor index d6a6ae6834..f635a2a0f1 100644 --- a/basis/math/floats/env/ppc/ppc.factor +++ b/basis/math/floats/env/ppc/ppc.factor @@ -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 diff --git a/basis/unix/getfsstat/freebsd/freebsd.factor b/basis/unix/getfsstat/freebsd/freebsd.factor index 44d85680a7..fefd316fdb 100644 --- a/basis/unix/getfsstat/freebsd/freebsd.factor +++ b/basis/unix/getfsstat/freebsd/freebsd.factor @@ -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 diff --git a/basis/unix/getfsstat/netbsd/netbsd.factor b/basis/unix/getfsstat/netbsd/netbsd.factor index 1eca6d7dc3..cdad20e4b5 100644 --- a/basis/unix/getfsstat/netbsd/netbsd.factor +++ b/basis/unix/getfsstat/netbsd/netbsd.factor @@ -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 ) ; diff --git a/basis/unix/getfsstat/openbsd/openbsd.factor b/basis/unix/getfsstat/openbsd/openbsd.factor index 19465d8040..07b45f5df5 100644 --- a/basis/unix/getfsstat/openbsd/openbsd.factor +++ b/basis/unix/getfsstat/openbsd/openbsd.factor @@ -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 diff --git a/basis/unix/kqueue/freebsd/freebsd.factor b/basis/unix/kqueue/freebsd/freebsd.factor index 4bf5af8482..54f576ffc1 100644 --- a/basis/unix/kqueue/freebsd/freebsd.factor +++ b/basis/unix/kqueue/freebsd/freebsd.factor @@ -1,4 +1,4 @@ -USING: alien.syntax classes.struct ; +USING: alien.c-types alien.syntax classes.struct unix.time ; IN: unix.kqueue STRUCT: kevent diff --git a/basis/unix/kqueue/netbsd/netbsd.factor b/basis/unix/kqueue/netbsd/netbsd.factor index d9a9116930..9ba6202585 100644 --- a/basis/unix/kqueue/netbsd/netbsd.factor +++ b/basis/unix/kqueue/netbsd/netbsd.factor @@ -1,4 +1,4 @@ -USING: alien.syntax classes.struct ; +USING: alien.c-types alien.syntax classes.struct unix.time ; IN: unix.kqueue STRUCT: kevent diff --git a/basis/unix/kqueue/openbsd/openbsd.factor b/basis/unix/kqueue/openbsd/openbsd.factor index 1d851c8d68..ab680345b6 100644 --- a/basis/unix/kqueue/openbsd/openbsd.factor +++ b/basis/unix/kqueue/openbsd/openbsd.factor @@ -1,4 +1,4 @@ -USING: alien.syntax classes.struct ; +USING: alien.c-types alien.syntax classes.struct unix.time ; IN: unix.kqueue STRUCT: kevent diff --git a/basis/unix/linux/linux.factor b/basis/unix/linux/linux.factor index 48044c731c..1ff5401116 100644 --- a/basis/unix/linux/linux.factor +++ b/basis/unix/linux/linux.factor @@ -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. diff --git a/basis/unix/solaris/solaris.factor b/basis/unix/solaris/solaris.factor index b7ea3f172e..1a1a7603f0 100644 --- a/basis/unix/solaris/solaris.factor +++ b/basis/unix/solaris/solaris.factor @@ -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. diff --git a/basis/unix/stat/freebsd/freebsd.factor b/basis/unix/stat/freebsd/freebsd.factor index 0acf2512e8..04f884e496 100644 --- a/basis/unix/stat/freebsd/freebsd.factor +++ b/basis/unix/stat/freebsd/freebsd.factor @@ -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 diff --git a/basis/unix/stat/linux/32/32.factor b/basis/unix/stat/linux/32/32.factor index 324237d645..f01140ff4b 100644 --- a/basis/unix/stat/linux/32/32.factor +++ b/basis/unix/stat/linux/32/32.factor @@ -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 diff --git a/basis/unix/stat/linux/64/64.factor b/basis/unix/stat/linux/64/64.factor index cfd6553ca3..bb16133c76 100644 --- a/basis/unix/stat/linux/64/64.factor +++ b/basis/unix/stat/linux/64/64.factor @@ -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 diff --git a/basis/unix/stat/netbsd/32/32.factor b/basis/unix/stat/netbsd/32/32.factor index 98403313b8..fb0d61b7e9 100644 --- a/basis/unix/stat/netbsd/32/32.factor +++ b/basis/unix/stat/netbsd/32/32.factor @@ -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 diff --git a/basis/unix/stat/netbsd/64/64.factor b/basis/unix/stat/netbsd/64/64.factor index c532e7e9ff..47c4e0c129 100644 --- a/basis/unix/stat/netbsd/64/64.factor +++ b/basis/unix/stat/netbsd/64/64.factor @@ -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 diff --git a/basis/unix/stat/openbsd/openbsd.factor b/basis/unix/stat/openbsd/openbsd.factor index 5bf950fd4b..2702e60f6c 100644 --- a/basis/unix/stat/openbsd/openbsd.factor +++ b/basis/unix/stat/openbsd/openbsd.factor @@ -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 diff --git a/basis/unix/statfs/freebsd/freebsd.factor b/basis/unix/statfs/freebsd/freebsd.factor index f8c8257a4e..c9271ff007 100644 --- a/basis/unix/statfs/freebsd/freebsd.factor +++ b/basis/unix/statfs/freebsd/freebsd.factor @@ -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 ) ; diff --git a/basis/unix/statfs/linux/linux.factor b/basis/unix/statfs/linux/linux.factor index 42d66ff1ba..ab37ab9605 100644 --- a/basis/unix/statfs/linux/linux.factor +++ b/basis/unix/statfs/linux/linux.factor @@ -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 diff --git a/basis/unix/statfs/macosx/macosx.factor b/basis/unix/statfs/macosx/macosx.factor index 38709f64fe..e83d2d40a0 100644 --- a/basis/unix/statfs/macosx/macosx.factor +++ b/basis/unix/statfs/macosx/macosx.factor @@ -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 ) ; diff --git a/basis/unix/statfs/openbsd/openbsd.factor b/basis/unix/statfs/openbsd/openbsd.factor index 590faf82a6..cd720d74d4 100644 --- a/basis/unix/statfs/openbsd/openbsd.factor +++ b/basis/unix/statfs/openbsd/openbsd.factor @@ -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 ) ; diff --git a/basis/unix/statvfs/freebsd/freebsd.factor b/basis/unix/statvfs/freebsd/freebsd.factor index 2fcd0c7372..c2834736b7 100644 --- a/basis/unix/statvfs/freebsd/freebsd.factor +++ b/basis/unix/statvfs/freebsd/freebsd.factor @@ -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 diff --git a/basis/unix/statvfs/linux/linux.factor b/basis/unix/statvfs/linux/linux.factor index 6e408c8fa4..d7139d84b2 100644 --- a/basis/unix/statvfs/linux/linux.factor +++ b/basis/unix/statvfs/linux/linux.factor @@ -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 diff --git a/basis/unix/statvfs/netbsd/netbsd.factor b/basis/unix/statvfs/netbsd/netbsd.factor index 25c96dc15d..c72a1a0e82 100644 --- a/basis/unix/statvfs/netbsd/netbsd.factor +++ b/basis/unix/statvfs/netbsd/netbsd.factor @@ -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 diff --git a/basis/unix/statvfs/openbsd/openbsd.factor b/basis/unix/statvfs/openbsd/openbsd.factor index f2d12c29cc..d5b2ee30a8 100644 --- a/basis/unix/statvfs/openbsd/openbsd.factor +++ b/basis/unix/statvfs/openbsd/openbsd.factor @@ -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