/[ascend]/trunk/ascend/general/ospath.h
ViewVC logotype

Diff of /trunk/ascend/general/ospath.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2550 by jpye, Tue Jan 31 00:12:16 2012 UTC revision 2551 by jpye, Thu Feb 2 20:14:50 2012 UTC
# Line 133  ASC_DLLSPEC struct FilePath *ospath_new_ Line 133  ASC_DLLSPEC struct FilePath *ospath_new_
133    
134      3. Remove redundant /./ in middle of path      3. Remove redundant /./ in middle of path
135    
136      4. Remove reduncant dir/.. in path      4. Remove redundant dir/.. in path
137    
138      5. Environment substitution??      5. Environment substitution??
139    
# Line 154  ASC_DLLSPEC struct FilePath *ospath_new_ Line 154  ASC_DLLSPEC struct FilePath *ospath_new_
154      to be parsed. Doesn't check that the directory/file      to be parsed. Doesn't check that the directory/file
155      actually exists.)      actually exists.)
156  */  */
157  int ospath_isvalid(struct FilePath *fp);  int ospath_isvalid(const struct FilePath *fp);
158    
159  /**  /**
160      Return the FilePath in the form of a string.      Return the FilePath in the form of a string.
# Line 265  ASC_DLLSPEC struct FilePath *ospath_root Line 265  ASC_DLLSPEC struct FilePath *ospath_root
265    
266  ASC_DLLSPEC int ospath_cmp(struct FilePath *fp1, struct FilePath *fp2);  ASC_DLLSPEC int ospath_cmp(struct FilePath *fp1, struct FilePath *fp2);
267    
268  ASC_DLLSPEC struct FilePath *ospath_concat(struct FilePath *fp1, struct FilePath *fp2);  ASC_DLLSPEC struct FilePath *ospath_concat(const struct FilePath *fp1, const struct FilePath *fp2);
269    
270  ASC_DLLSPEC void ospath_append(struct FilePath *fp, struct FilePath *fp1);  ASC_DLLSPEC void ospath_append(struct FilePath *fp, struct FilePath *fp1);
271    
# Line 285  ASC_DLLSPEC FILE *ospath_fopen(struct Fi Line 285  ASC_DLLSPEC FILE *ospath_fopen(struct Fi
285  */  */
286  ASC_DLLSPEC int ospath_stat(struct FilePath *fp,ospath_stat_t *buf);  ASC_DLLSPEC int ospath_stat(struct FilePath *fp,ospath_stat_t *buf);
287    
288    /*
289        Get the current working directory from the operating system, and return
290        it in the form of a FilePath. You must free the FilePath object when you're
291        finished with it.
292    */
293    ASC_DLLSPEC struct FilePath *ospath_getcwd(void);
294    
295    /*
296        Change the current working directory to that specified in fp. No checks
297        are made that the directory actually exists. The return status from the
298        system 'chdir' function is returned (should be 0 for no error)
299    */
300    ASC_DLLSPEC int ospath_chdir(struct FilePath *fp);
301    
302  /*------------------------*/  /*------------------------*/
303  /* SEARCH PATH FUNCTIONS*/  /* SEARCH PATH FUNCTIONS*/
304    

Legend:
Removed from v.2550  
changed lines
  Added in v.2551

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22