# # # "descriptor.h"# "date.h"# "dictionary.h"# # # <.># # # <.># <.># 0664# 0755# "Not a Directory"# "File Not Found"typedef struct { *; struct ; const char *; const char *; *; void *;} ; *(const char *);void ( *, int );void ( *);void ( *, int , );void ( *);void ( *);void ( *, const char *); *( *);void ( *);int ( *);void *( *, int *);char *( *);void ( *, const void *, int );int ( *);void ( *, unsigned long , unsigned long );int ( *); *( *); *( *); *( *);void ( *, *);void ( *, *); ( *);const char *( *);const char *( *);const char *( *);const char *( *); *( *);int ( *);void ( *);void ( *);#
-----------------------------------------------------
# "file.h"# "string.h"# "logger.h"# "mimetypes.h"# "dictionary.h"# # # # <.># # # <.># <.># <.># <.># <.># <.># # "dmalloc.h"#static * = ;# 10static int (const char *, const struct *, int , struct *);static int ( *); *(const char *) { * = ; const char * = ; struct = {-1}; if ( == ) { return ; } /* * Allocate space for the object and set all fields to zero. */ = (1, sizeof()); -> = (); -> = ; -> = ; if ( == ) { = (); } = (, '.'); if ( != ) { -> = (, ); } -> = (); (, ); return ;}void ( *) { if ( == ) { return; } if (-> != ) { (->); (->); } if (-> != ) { ((char *) ->); } ();}void ( *) { if ( == ) { return; } if (()) { ((), , , | ); } else { (()); }}void ( *, const char *) { * = ; * = ; int = -1, = 0; if ( == ) { } if ( == ) { return; } if (((), ) == 0) { return; } = (); = (); if () { if (()) { = (()); (, "/"); (, ()); } else { return; } } else { = (); } = ((), ()); if ( < 0) { ("rename"); } else { ((char *) ->); -> = (()); } ();}void ( *, int ) { int = -1; if ( == ) { return; } if ( & ) { // ... Log warning ... (, , ); } else { /* * Open the file */ = (->, ); if ( == -1) { /* * FIXME: fix this */ -> = ; return; } -> = (); (, 0, 0); }}void ( *) { if ( == ) { return; } if (-> == ) { return; } (->);}void ( *, int , ) { int = -1; if ( == ) { return; } |= ; /* * Open the file and create it if it doesn't already exist */ = (->, , ); if ( < 0) { ("open"); return; } if (-> != ) { (->); } -> = (); return;}int ( *) { if ( == ) { return 0; } if (-> == ) { return 0; } return (->);}void ( *, unsigned long , unsigned long ) { if ( == ) { return; } if (-> == ) { return; } (->, , );}void *( *, int *) { void * = ; if ( == ) { return ; } if (-> == ) { return ; } if ( == ) { return ; } = (->, ); return ;}char *( *) { if ( == ) { return ; } if (-> == ) { return ; } return (->);}void ( *, const void *, int ) { if ( == ) { return; } if (-> == ) { return; } (->, , &);}int ( *) { * = ; int = 0; if ( == ) { return 0; } if (()) { = (()); while (() != ) ++; return - 2; } else { (); /* * Return the file size (from the stat() call at object construction) */ return ->.; }} *( *) { if ( == ) { return 0; } (); return (->.);} *( *) { if ( == ) { return 0; } (); return (->.);} *( *) { if ( == ) { return 0; } (); return (->.);}void ( *, *) { struct = {0}; * = ; if ( == ) { return; } = (); . = (); (); . = (); (->, &);}void ( *, *) { struct = {0}; * = ; if ( == ) { return; } = (); . = (); (); . = (); (->, &);}const char *( *) { if ( == ) { return ; } return ->;} ( *) { if ( == ) { return 0; } (); return ->.;}const char *( *) { if ( == ) { return ; } return ->;}int ( *) { if ( == ) { return 0; } (); return (->.);}const char *( *) { char * = ; static char * = ; static int = 0; int = 0; if ( == ) { return ; } = (->); if ( == || < ) { = (, * sizeof(char)); = ; } (, ->, ); = (, '/'); if ( == ) { (, "."); } else { [0] = 0; } = ; return ;}const char *( *) { const char * = ; if ( == ) { return ; } = (->, '/') + 1; if ( == ) { = ->; } if ([0] == 0) { = "/"; } return ;}int ( *) { if ( == ) { return 0; } return () != -1;}static int (const char *, const struct *, int , struct *) { (); return 0;}static int ( *) { struct = {-1}; int = 0; if ( == ) { return -1; } -> = ; = ((), &); if ( >= 0) { -> = ; } return ;}void ( *) { int = 0; if ( == ) { return; } if (()) { return; } = ((), ); if ( < 0) { ("mkdir"); }}void ( *) { if ( == ) { return; } (->->, 0L, );}# int () { * = ; = ("test.test"); (, | , 0644); (, "Foo Bar Baz", sizeof("Foo Bar Baz") - 1); (); (); return 0;}#