aboutsummaryrefslogblamecommitdiff
path: root/util.h
blob: 04c5b88c1b50c3030cafd480e452ebef00438ed4 (plain) (tree)
1
2
3
4
5
6
7
8
9




                   
                          
                                                         

                                       
                   





                                           
#ifndef UTIL_H

#include <stdio.h>
#include <stdlib.h>

#define err_die(r, ...) {\
	fprintf(stderr, "%s:%d: ", __FILE__, __LINE__); \
	fprintf(stderr, __VA_ARGS__); \
	fputc('\n', stderr); \
	return r; \
}

int r_mkdir(const char *path, mode_t mode);

#define UTIL_H
#endif