]> gitweb.factorcode.org Git - factor.git/commitdiff
unix.utmpx: fix load errors
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 21 Feb 2010 07:19:11 +0000 (20:19 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 21 Feb 2010 07:19:11 +0000 (20:19 +1300)
basis/unix/utmpx/netbsd/netbsd.factor
basis/unix/utmpx/platforms.txt

index 40fce746b1f7e60713c1dd6b117801a4e7a27e77..93092a7cbfd26c53e3274a28dbb73adc2faf691f 100644 (file)
@@ -1,22 +1,20 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien.syntax unix.utmpx unix.bsd.netbsd accessors
-unix.utmpx system kernel unix combinators ;
+USING: alien.syntax unix unix.utmpx unix.ffi.bsd.netbsd accessors
+system kernel combinators ;
 IN: unix.utmpx.netbsd
 
-TUPLE: netbsd-utmpx-record < utmpx-record termination exit
-sockaddr ;
-    
+TUPLE: netbsd-utmpx-record < utmpx-record
+termination exit sockaddr ;
+
 M: netbsd new-utmpx-record ( -- utmpx-record )
-    netbsd-utmpx-record new ; 
-    
+    netbsd-utmpx-record new ;
+
 M: netbsd utmpx>utmpx-record ( utmpx -- record )
-    [ new-utmpx-record ] keep
-    {
-        [
-            utmpx-ut_exit
-            [ exit_struct-e_termination >>termination ]
-            [ exit_struct-e_exit >>exit ] bi
-        ]
-        [ utmpx-ut_ss >>sockaddr ]
-    } cleave ;
+    [ new-utmpx-record ] dip
+    [
+        ut_exit>>
+        [ e_termination>> >>termination ]
+        [ e_exit>> >>exit ] bi
+    ]
+    [ ut_ss>> >>sockaddr ] bi ;
index 509143d86315eda0a858ba863bfc0f4447dbed1f..abe56c1458ab4a79d6f8e2a5b86ec4d7835241d5 100644 (file)
@@ -1 +1,2 @@
-unix
+macosx
+netbsd