Class Index | File Index

Classes

Function Namespace System

gpsee.module.ca.page.gpsee
Defined in: gpsee.jsdoc.

Function Namespace Summary
Constructor Attributes Constructor Name and Description
 
System()
Interface to systems-level functions.
Field Summary
Field Attributes Field Name and Description
<inner>  
Most recent system-level error number
<inner>  
Current load average
<inner>  
Parent Group ID
<inner>  
Parent process group
<inner>  
pid
Current process ID
<inner>  
Parent process ID
Method Summary
Method Attributes Method Name and Description
<inner>  
exit(exitCode)
Terminate the running JS application, properly closing/releasing/etc resources, including waiting for other Threads to terminate when Thread class is active.
<inner>  
fork()
Fork the running application.
<inner>  
include(thisObj, filename)
Load and interpreter a script in the caller's context
<inner>  
sleep(sleepTime)
Pause execution of the current thread for N seconds.
<inner>  
strerror(error)
Translate a system error number into a string.
<inner>  
system(command)
Issue a shell command
Function Namespace Detail
System()
Interface to systems-level functions.
Author: Wes Garland, PageMail, Inc., wes@page.ca.
Field Detail
<inner> errno
Most recent system-level error number

<inner> loadavg
Current load average

<inner> pgid
Parent Group ID

<inner> pgrp
Parent process group

<inner> pid
Current process ID

<inner> ppid
Parent process ID
Method Detail
<inner> exit(exitCode)
Terminate the running JS application, properly closing/releasing/etc resources, including waiting for other Threads to terminate when Thread class is active.
Parameters:
exitCode
Exit value to return to OS.

<inner> fork()
Fork the running application.
Returns:
Child PID when returning as original process, 0 when returning as child.
See:
fork()

<inner> include(thisObj, filename)
Load and interpreter a script in the caller's context
Parameters:
thisObj
(OPTIONAL) JS object to bind as global/this during execution. Optional.
filename
Script filename, either relative or rooted.

<inner> sleep(sleepTime)
Pause execution of the current thread for N seconds.
Parameters:
sleepTime
Amount of time to sleep.

<inner> strerror(error)
Translate a system error number into a string.
Parameters:
error
System-level error number
See:
errno.h

<inner> system(command)
Issue a shell command
Parameters:
command
Command to execute with shell.
See:
system()

Documentation generated by JsDoc Toolkit 2.1.0 on Tue May 11 2010 20:54:18 GMT-0400 (EDT)