Ignore:
Timestamp:
Feb 5, 2007, 5:00:16 PM (13 years ago)
Author:
Bruno Cornec
Message:

Addition of mr_mkdir in library and usage in main for MONDO_CACHE creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_file.c

    r1091 r1100  
    1111
    1212#include <stdio.h>
     13#include <sys/types.h>
     14#include <sys/stat.h>
     15
    1316#include "mr_err.h"
    1417#include "mr_msg.h"
     
    5053    fd = NULL;
    5154}
     55
     56void mr_mkdir(const char *pathname, mode_t mode) {
     57
     58    if (mkdir(pathname,mode) != 0) {
     59        mr_msg("Unable to create directory %s",pathname);
     60        mr_exit(-1,"Exiting");
     61    }
     62}
Note: See TracChangeset for help on using the changeset viewer.