summaryrefslogtreecommitdiff
path: root/iohelper.h
blob: d4c23553b48da3f121d144536cd6790f6136d404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// iohelper.h

#ifndef _IOHELPER_H
#define _IOHELPER_H

#define FILE_BUF_SIZE 1024
#define NEW_FILE_PERMS 0664 // -rw-r--r-- when files are created

void to_stdout(char *string);
void to_stderr(char *string);
int open_file(char *path, int flags);
void file_into_file(int source_fd, int dest_fd);

#endif