aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/std.h
blob: 140eea8d8b7f9dc801cc3090382296e058c60c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DUCC_STD_H
#define DUCC_STD_H

#include <stddef.h>

// TODO: <stdlib.h>
int mkstemps(char*, int);

#define assert(x) \
    do { \
        if (!(x)) { \
            fatal_error("%s:%d: assertion failed", __FILE__, __LINE__); \
        } \
    } while (0)

#define F_OK 0
#define R_OK 4
int access(const char*, int);

#define PATH_MAX 4096

char* dirname(char*);

#endif