version 1.29, 2013/08/20 14:22:33 |
version 1.30, 2014/04/02 22:08:29 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/file.c,v 1.28 2013/02/15 07:05:49 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/file.c,v 1.29 2013/08/20 14:22:33 ohara Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
#endif |
#endif |
|
|
void Pget_rootdir(); |
void Pget_rootdir(); |
|
void Pget_asirloadpath(); |
void Paccess(),Premove_file(); |
void Paccess(),Premove_file(); |
void Pbsave_enc(), Pbload_enc(); |
void Pbsave_enc(), Pbload_enc(); |
|
|
|
|
|
|
extern int des_encryption; |
extern int des_encryption; |
extern char *asir_libdir; |
extern char *asir_libdir; |
|
extern char **ASIRLOADPATH; |
|
|
struct ftab file_tab[] = { |
struct ftab file_tab[] = { |
{"fprintf",Pfprintf,-99999999}, |
{"fprintf",Pfprintf,-99999999}, |
Line 106 struct ftab file_tab[] = { |
|
Line 108 struct ftab file_tab[] = { |
|
{"bsave",Pbsave,2}, |
{"bsave",Pbsave,2}, |
{"bload",Pbload,1}, |
{"bload",Pbload,1}, |
{"get_rootdir",Pget_rootdir,0}, |
{"get_rootdir",Pget_rootdir,0}, |
|
{"get_asirloadpath",Pget_asirloadpath,0}, |
#if defined(DES_ENC) |
#if defined(DES_ENC) |
{"bsave_enc",Pbsave_enc,2}, |
{"bsave_enc",Pbsave_enc,2}, |
{"bload_enc",Pbload_enc,1}, |
{"bload_enc",Pbload_enc,1}, |
Line 583 void Pget_rootdir(STRING *rp) |
|
Line 586 void Pget_rootdir(STRING *rp) |
|
rootdir.body = DirName; |
rootdir.body = DirName; |
} |
} |
*rp = &rootdir; |
*rp = &rootdir; |
|
} |
|
|
|
void Pget_asirloadpath(LIST *rp) |
|
{ |
|
STRING s; |
|
int i; |
|
NODE t,prev; |
|
if( ASIRLOADPATH[0] == NULL ) { |
|
*rp = NULL; |
|
return; |
|
} |
|
for(i=0; ASIRLOADPATH[i]; i++) { |
|
} |
|
for(t=0,i--; i>=0; i--) { |
|
prev=t; |
|
MKSTR(s,ASIRLOADPATH[i]); |
|
MKNODE(t,s,prev); |
|
} |
|
MKLIST(*rp,t); |
} |
} |
|
|
void Pgetpid(Q *rp) |
void Pgetpid(Q *rp) |