Changeset 1133 in MondoRescue for branches/stable/mondo/src/include/mr_file.h


Ignore:
Timestamp:
Feb 11, 2007, 12:02:57 PM (17 years ago)
Author:
Bruno Cornec
Message:

mr_msg used low level with a debug value of 1 (0 doesn't print enough info)
mr_file reviewed to also have low level debug functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/include/mr_file.h

    r1100 r1133  
    1717/* functions (public methods) */
    1818
    19 extern FILE *mr_fopen(const char *path, const char *mode);
    20 extern FILE *mr_fprintf(FILE *stream, const char *fmt, ...);
    21 extern void mr_fclose(FILE *fd);
    22 extern void mr_mkdir(const char *pathname, mode_t mode);
     19#define mr_fopen(x,y)           mr_fopen_int((const char *)x, (const char *)y,__LINE__,__FILE__)
     20#define mr_fprintf(x,y,args...) mr_fprintf_int(x,__LINE__,__FILE__,y,## args)
     21#define mr_fclose(x)            mr_fclose_int((FILE **)&fd, __LINE__,__FILE__)
     22#define mr_mkdir(x)             mr_mkdir_int((const char *)pathname,(mode_t)mode,__LINE__,__FILE__)
     23
     24extern FILE *mr_fopen_int(const char *path, const char *mode,int line, char *file);
     25extern FILE *mr_fprintf_int(FILE *stream,int line, char *file, const char *fmt, ...);
     26extern void mr_fclose_int(FILE *fd, int line, char *file);
     27extern void mr_mkdir_int(const char *pathname, mode_t mode, int line, char *file);
    2328
    2429#endif                          /* MR_FILE_H */
Note: See TracChangeset for help on using the changeset viewer.