20 static LISP lgetenv(LISP name)
25 static LISP lsetenv(LISP name,LISP value)
34 static LISP lsystem(LISP name)
39 static LISP lpwd(
void)
43 cwd = getcwd(
NULL,1024);
48 static LISP lchdir(LISP args, LISP env)
56 chdir_result = chdir(home);
57 if (chdir_result == 0)
65 if (chdir_result == 0)
72 static LISP lgetpid(
void)
74 return flocons((
float)getpid());
77 static long siod_time_base;
85 gettimeofday(&tv,&tz);
87 return flocons(((
double)(tv.tv_sec-siod_time_base))+
88 ((
double)tv.tv_usec/1000000));
101 gettimeofday(&tv,&tz);
103 siod_time_base = tv.tv_sec;
108 Return process id.");
111 Change directory to DIRNAME, if DIRNAME is nil or not specified \n\ 112 change directory to user's HOME directory.");
115 Returns current directory as a string.");
118 Returns value of UNIX environment variable VARNAME, or nil if VARNAME\n\ 121 "(setenv VARNAME VALUE)\n\ 122 Set the UNIX environment variable VARNAME to VALUE.");
125 Execute COMMAND (a string) with the UNIX shell.");
128 Returns number of seconds since start of epoch (if OS permits it\n\ void init_subrs_sys(void)
#define walloc(TYPE, SIZE)
int siod_llength(LISP list)
void init_subr_2(const char *name, LISP(*fcn)(LISP, LISP), const char *doc)
void init_fsubr(const char *name, LISP(*fcn)(LISP, LISP), const char *doc)
const char * get_c_string(LISP x)
LISP cintern(const char *name)
void init_subr_1(const char *name, LISP(*fcn)(LISP), const char *doc)
LISP rintern(const char *name)
LISP leval(LISP x, LISP env)
void init_subr_0(const char *name, LISP(*fcn)(void), const char *doc)