[BACK]Return to file.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / builtin

Diff for /OpenXM_contrib2/asir2000/builtin/file.c between version 1.30 and 1.32

version 1.30, 2014/04/02 22:08:29 version 1.32, 2015/03/15 19:31:30
Line 45 
Line 45 
  * 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.29 2013/08/20 14:22:33 ohara Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/file.c,v 1.31 2014/05/12 02:27:49 ohara Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 68 
Line 68 
 #define R_OK 0x04  #define R_OK 0x04
 #endif  #endif
   
   void Psprintf(NODE,STRING *);
   
 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();
   
Line 86  void Pgetpid();
Line 87  void Pgetpid();
   
 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 108  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 586  void Pget_rootdir(STRING *rp)
Line 585  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)

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>