shellsysverbs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "ops.h"
#include "memory.h"
#include "error.h"
#include "file.h"
#include "resources.h"
#include "scrap.h"
#include "strings.h"
#include "launch.h"
#include "notify.h"
#include "shell.h"
#include "shellmenu.h"
#include "lang.h"
#include "langexternal.h"
#include "langinternal.h"
#include "langipc.h"
#include "kernelverbs.h"
#include "kernelverbdefs.h"
#include "tablestructure.h"
#include "shellprivate.h"
#include "process.h"
#include "processinternal.h"
#include "sysshellcall.h"
#include "langsystem7.h"
#include "tableverbs.h"
#include "tableinternal.h"
#include "serialnumber.h"
#include "byteorder.h"

Include dependency graph for shellsysverbs.c:

Go to the source code of this file.

Defines

#define systemevents   (osMask | activMask)

Enumerations

enum  tysystoken {
  systemversionfunc, systemtaskfunc, browsenetworkfunc, apprunningfunc,
  frontappfunc, bringapptofrontfunc, countappsfunc, getnthappfunc,
  getapppathfunc, memavailfunc, machinefunc, osfunc,
  getenvironmentvariablefunc, setenvironmentvariablefunc, unixshellcommandfunc, winshellcommandfunc,
  ctsysverbs
}
enum  tylaunchtoken {
  applemenufunc, launchappfunc, launchappwithdocfunc, executeresourcefunc,
  anythingfunc, ctlaunchverbs
}
enum  tyfrontiertoken {
  programpathfunc, filepathfunc, agentsenablefunc, requesttofrontfunc,
  isruntimefunc, countthreadsfunc, isnativefunc, reclaimmemoryfunc,
  frontierversionfunc, hashstatsfunc, gethashloopcountfunc, hideapplicationfunc,
  isvalidserialnumberfunc, showapplicationfunc, ctfrontierverbs
}
enum  tyclipboardtoken { getscrapfunc, putscrapfunc, ctclipboardverbs }

Functions

boolean frontierversion (tyvaluerecord *v)
boolean sysos (tyvaluerecord *v)
static boolean getscrapverb (hdltreenode hparam1, tyvaluerecord *v)
static boolean putscrapverb (hdltreenode hparam1, tyvaluerecord *v)
static boolean shellsysverbwaitroutine (void)
static boolean sysfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean launchfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
boolean hashstatsverb (tyvaluerecord *v)
static boolean frontierfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean clipboardfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean getthreadvalue (hdltreenode hfirst, short pnum, hdlprocessthread *hthread)
static boolean threadverbprocessstarted (void)
static boolean threaddisposecontext (void)
static boolean threadcallscriptverb (bigstring bsscriptname, tyvaluerecord vparams, hdlhashtable hcontext, tyvaluerecord *v)
static boolean threadstatsverb (hdltreenode hparam1, tyvaluerecord *v)
static boolean threadfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
boolean sysinitverbs (void)

Variables

static tyfilespec programfspec
static bigstring bsfrontierversion
long fullpathloopcount


Define Documentation

#define systemevents   (osMask | activMask)
 

Definition at line 69 of file shellsysverbs.c.

Referenced by notifyuser(), and shellsysverbwaitroutine().


Enumeration Type Documentation

enum tyclipboardtoken
 

Enumerator:
getscrapfunc 
putscrapfunc 
ctclipboardverbs 

Definition at line 173 of file shellsysverbs.c.

enum tyfrontiertoken
 

Enumerator:
programpathfunc 
filepathfunc 
agentsenablefunc 
requesttofrontfunc 
isruntimefunc 
countthreadsfunc 
isnativefunc 
reclaimmemoryfunc 
frontierversionfunc 
hashstatsfunc 
gethashloopcountfunc 
hideapplicationfunc 
isvalidserialnumberfunc 
showapplicationfunc 
ctfrontierverbs 

Definition at line 135 of file shellsysverbs.c.

enum tylaunchtoken
 

Enumerator:
applemenufunc 
launchappfunc 
launchappwithdocfunc 
executeresourcefunc 
anythingfunc 
ctlaunchverbs 

Definition at line 119 of file shellsysverbs.c.

enum tysystoken
 

Enumerator:
systemversionfunc 
systemtaskfunc 
browsenetworkfunc 
apprunningfunc 
frontappfunc 
bringapptofrontfunc 
countappsfunc 
getnthappfunc 
getapppathfunc 
memavailfunc 
machinefunc 
osfunc 
getenvironmentvariablefunc 
setenvironmentvariablefunc 
unixshellcommandfunc 
winshellcommandfunc 
ctsysverbs 

Definition at line 81 of file shellsysverbs.c.


Function Documentation

static boolean clipboardfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 1082 of file shellsysverbs.c.

References cantbackgroundclipboard, getcurrentprocessid(), getscrapfunc, getscrapverb(), getstringlist(), isfrontapplication(), langerrorlist, putscrapfunc, putscrapverb(), setbooleanvalue(), and v.

Referenced by sysinitverbs().

Here is the call graph for this function:

static boolean frontierfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 873 of file shellsysverbs.c.

References agentsenablefunc, bigstring, countthreadsfunc, filepathfunc, fl, flnextparamislast, frontierversion(), frontierversionfunc, fullpathloopcount, getbooleanvalue(), gethashloopcountfunc, getstringvalue(), grabthreadglobals(), hashflushcache(), hashstatsfunc, hashstatsverb(), hideapplicationfunc, hwndActive, isnativefunc, isruntimefunc, isvalidserialnumber(), isvalidserialnumberfunc, langcheckparamcount(), longinfinity, nil, notifyuser(), processthreadcount(), programfspec, programpathfunc, reclaimmemoryfunc, releasethreadglobals(), requesttofrontfunc, setagentsenable(), setbooleanvalue(), setfilespecvalue(), setlongvalue(), shellframewindow, shellisactive(), shellpopglobals(), shellpushfrontrootglobals(), shellwindow, showapplicationfunc, v, and windowgetfspec().

Referenced by sysinitverbs().

Here is the call graph for this function:

boolean frontierversion tyvaluerecord v  ) 
 

static boolean getscrapverb hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 232 of file shellsysverbs.c.

References anyscraptype, bigstring, closeclipboard(), disposehandle(), fl, flnextparamislast, getostypevalue(), getscrap(), getvarparam(), insertinhandle(), langsetbinaryval(), newemptyhandle(), openclipboard(), setbooleanvalue(), shellwritescrap(), and v.

Referenced by clipboardfunctionvalue().

Here is the call graph for this function:

static boolean getthreadvalue hdltreenode  hfirst,
short  pnum,
hdlprocessthread hthread
[static]
 

Definition at line 1116 of file shellsysverbs.c.

References badthreadiderror, getlongvalue(), getprocessthread(), langlongparamerror(), and nil.

Referenced by threadfunctionvalue().

Here is the call graph for this function:

boolean hashstatsverb tyvaluerecord v  ) 
 

Definition at line 1625 of file langexternal.c.

References bigstring, ctvaluetypes, error, fullpathstats(), hashstats, langgettypestring(), maxBucketCount, maxdepth, nil, openhandlestream(), roottable, STR_Comma_Space, tableCount, writehandlestreamchar(), writehandlestreamlong(), writehandlestreamstring(), xxbadnodelinks, and xxgoodnodelinks.

Here is the call graph for this function:

static boolean launchfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 771 of file shellsysverbs.c.

References anythingfunc, applemenufunc, bigstring, executeresource(), executeresourcefunc, filelaunchanythingverb(), flnextparamislast, getfilespecvalue(), getintvalue(), getoserror(), getostypevalue(), getstringlist(), getstringvalue(), langerrorlist, launchappfunc, launchapplication(), launchappwithdocfunc, nil, noErr, oserror(), setbooleanvalue(), shellapplemenu(), unimplementedverberror, and v.

Referenced by sysinitverbs().

Here is the call graph for this function:

static boolean putscrapverb hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 291 of file shellsysverbs.c.

References closeclipboard(), flnextparamislast, getbinaryvalue(), getostypevalue(), grabthreadglobals(), openclipboard(), pullfromhandle(), putscrap(), releasethreadglobals(), and resetscrap().

Referenced by clipboardfunctionvalue().

Here is the call graph for this function:

static boolean shellsysverbwaitroutine void   )  [static]
 

Definition at line 328 of file shellsysverbs.c.

References fl, flscriptrunning, langpartialeventloop(), shellpartialeventloop(), and systemevents.

Referenced by sysfunctionvalue(), and sysinitverbs().

Here is the call graph for this function:

static boolean sysfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 387 of file shellsysverbs.c.

References activateapplication(), apprunningfunc, bigstring, bringapptofrontfunc, browsenetworkfunc, tyaddress::bs, coercetostring(), countapplications(), countappsfunc, tyvaluerecord::data, disposehandle(), exemptfromtmpstack(), findrunningapplication(), flnextparamislast, frontappfunc, getapplicationfilespec(), getapppathfunc, getenvironmentvariablefunc, getexempttextvalue(), getfrontapplication(), getintvalue(), getnthappfunc, getnthapplication(), getoptionaladdressparam(), getparamvalue(), getstringlist(), getstringvalue(), getsystemerrorstring(), getsystemversionstring(), tyaddress::ht, isemptystring, langbackgroundtask(), langcheckparamcount(), langerrorlist, langipcbrowsenetwork(), langsetsymboltableval(), machine68K, machinefunc, machinePPC, machinex86, memavail(), memavailfunc, newemptyhandle(), nil, nullterminate, osfunc, tyvaluedata::ostypevalue, ostypevaluetype, pullstringvalue(), setbooleanvalue(), setemptystring, setenvironmentvariablefunc, setfilespecvalue(), setheapvalue(), setlongvalue(), setstringlength, setstringvalue(), shellerrormessage(), shellsysverbwaitroutine(), stringtoostype(), stringvaluetype, sysos(), systemtaskfunc, systemversionfunc, unimplementedverberror, unixshellcommandfunc, v, tyvaluerecord::valuetype, winshellcommandfunc, and wsprintf.

Referenced by sysinitverbs().

Here is the call graph for this function:

boolean sysinitverbs void   ) 
 

Definition at line 1644 of file shellsysverbs.c.

References clipboardfunctionvalue(), frontierfunctionvalue(), getapplicationfilespec(), idclipboardverbs, idfrontierverbs, idlaunchverbs, idsysverbs, idthreadverbs, launchcallbacks, launchfunctionvalue(), loadfunctionprocessor(), nil, programfspec, shellsysverbwaitroutine(), sysfunctionvalue(), threadfunctionvalue(), and tylaunchcallbacks::waitcallback.

Referenced by shellinitverbs().

Here is the call graph for this function:

boolean sysos tyvaluerecord v  ) 
 

static boolean threadcallscriptverb bigstring  bsscriptname,
tyvaluerecord  vparams,
hdlhashtable  hcontext,
tyvaluerecord v
[static]
 

Definition at line 1163 of file shellsysverbs.c.

References addnewprocess(), bigstring, chainhashtable(), tyvaluedata::codevalue, codevaluetype, copystring(), tyvaluerecord::data, fl, getthreadid(), hashtablelookupnode(), hcode, langbuildparamlist(), langcompilescript(), langdisposetree(), langexpandtodotparams(), langexternalvaltocode(), langparamerror(), langsearchpathlookup(), moduleop, newlyaddedprocess, nil, notfunctionerror, pophashtable(), typrocessrecord::processstartedroutine, pushbinaryoperation(), pushfunctioncall(), pushfunctionreference(), pushhashtable(), roottable, scheduleprocess(), setaddressvalue(), setlongvalue(), tablepacktable(), tableunpacktable(), threaddisposecontext(), threadverbprocessstarted(), unchainhashtable(), unknownfunctionerror, v, and tyvaluerecord::valuetype.

Referenced by threadfunctionvalue().

Here is the call graph for this function:

static boolean threaddisposecontext void   )  [static]
 

Definition at line 1149 of file shellsysverbs.c.

References currentprocess, disposehashtable(), and nil.

Referenced by threadcallscriptverb().

Here is the call graph for this function:

static boolean threadfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 1348 of file shellsysverbs.c.

References bigstring, callscriptfunc, cantbackgroundclipboard, coercetolist(), evaluatefunc, fl, flnextparamislast, getcurrentprocessid(), getcurrentthread(), getcurrentthreadglobals(), getdefaulttimeslice(), getexempttextvalue(), getintvalue(), getlongvalue(), getparamvalue(), getprocessthread(), getprocesstimeslice(), getstringlist(), getstringvalue(), gettablevalue(), getthreadid(), getthreadvalue(), iscurrentapplication(), killprocessthread(), langcheckparamcount(), langerrorlist, langgetparamcount(), newlyaddedprocess, nil, nthprocessthread(), processissleeping(), processruntext(), processsleep(), typrocessrecord::processstartedroutine, processthreadcount(), scheduleprocess(), setbooleanvalue(), setdefaulttimeslice(), setlongvalue(), setprocesstimeslice(), sleepfunc, threadcallscriptverb(), threadstatsverb(), threadverbprocessstarted(), v, tyvaluerecord::valuetype, and wakeprocessthread().

Referenced by sysinitverbs().

Here is the call graph for this function:

static boolean threadstatsverb hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 1324 of file shellsysverbs.c.

References bigstring, flnextparamislast, getvarparam(), langsuretablevalue(), processgetstats(), setbooleanvalue(), and v.

Referenced by threadfunctionvalue().

Here is the call graph for this function:

static boolean threadverbprocessstarted void   )  [static]
 

Definition at line 1136 of file shellsysverbs.c.

References processnotbusy().

Referenced by threadcallscriptverb(), and threadfunctionvalue().

Here is the call graph for this function:


Variable Documentation

bigstring bsfrontierversion [static]
 

Definition at line 78 of file shellsysverbs.c.

Referenced by frontierversion().

long fullpathloopcount
 

Definition at line 1212 of file langexternal.c.

Referenced by frontierfunctionvalue(), and fullpathsearch().

tyfilespec programfspec [static]
 

Definition at line 76 of file shellsysverbs.c.

Referenced by ccdrawfrontiericon(), frontierfunctionvalue(), and sysinitverbs().


Generated on Tue Jun 13 06:34:29 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6