update docs

db4
Doug Coleman 2008-04-02 19:23:26 -05:00
parent a9cd31704d
commit 0d8a27e5e4
2 changed files with 39 additions and 23 deletions

View File

@ -1,12 +1,12 @@
USING: generic help.markup help.syntax kernel math memory USING: generic help.markup help.syntax kernel math memory
namespaces sequences kernel.private strings ; namespaces sequences kernel.private strings classes.singleton ;
IN: system IN: system
ARTICLE: "os" "System interface" ABOUT: "system"
"Operating system detection:"
{ $subsection os } ARTICLE: "system" "System interface"
"Processor detection:" { $subsection "cpu" }
{ $subsection cpu } { $subsection "os" }
"Reading environment variables:" "Reading environment variables:"
{ $subsection os-env } { $subsection os-env }
{ $subsection os-envs } { $subsection os-envs }
@ -19,29 +19,45 @@ ARTICLE: "os" "System interface"
{ $subsection exit } { $subsection exit }
{ $see-also "io.files" "io.mmap" "io.monitors" "network-streams" "io.launcher" } ; { $see-also "io.files" "io.mmap" "io.monitors" "network-streams" "io.launcher" } ;
ABOUT: "os" ARTICLE: "cpu" "Processor Detection"
"Processor detection:"
{ $subsection cpu }
"Supported processors:"
{ $subsection x86.32 }
{ $subsection x86.64 }
{ $subsection ppc }
{ $subsection arm }
"Processor families:"
{ $subsection x86 } ;
ARTICLE: "os" "Operating System Detection"
"Operating system detection:"
{ $subsection os }
"Supported operating systems:"
{ $subsection freebsd }
{ $subsection linux }
{ $subsection macosx }
{ $subsection openbsd }
{ $subsection netbsd }
{ $subsection solaris }
{ $subsection wince }
{ $subsection winnt }
"Operating system families:"
{ $subsection bsd }
{ $subsection unix }
{ $subsection windows } ;
HELP: cpu HELP: cpu
{ $values { "cpu" string } } { $values { "class" singleton-class } }
{ $description { $description
"Outputs a singleton class with the name of the current CPU architecture. Currently, this set of descriptors is:" "Outputs a singleton class with the name of the current CPU architecture."
{ $code x86.32 x86.64 ppc arm }
} ; } ;
HELP: os HELP: os
{ $values { "os" string } } { $values { "class" singleton-class } }
{ $description { $description
"Outputs a singleton class with the name of the current operating system family. Currently, this set of descriptors is:" "Outputs a singleton class with the name of the current operating system family."
{ $code
freebsd
linux
macosx
openbsd
netbsd
solaris
wince
winnt
}
} ; } ;
HELP: embedded? HELP: embedded?

View File

@ -261,7 +261,7 @@ ARTICLE: "handbook" "Factor documentation"
{ $subsection "collections" } { $subsection "collections" }
{ $subsection "io" } { $subsection "io" }
{ $subsection "concurrency" } { $subsection "concurrency" }
{ $subsection "os" } { $subsection "system" }
{ $subsection "alien" } { $subsection "alien" }
{ $heading "Environment reference" } { $heading "Environment reference" }
{ $subsection "cli" } { $subsection "cli" }