File: file.h

package info (click to toggle)
pcaputils 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 2,945; sh: 44; makefile: 38
file content (16 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef RSEUTIL_FILE_H
#define RSEUTIL_FILE_H

#include <sys/types.h>
#include <unistd.h>

#include <util/util.h>

#define Chdir(dir) do{ \
	if(chdir(dir) != 0) ERROR("unable to chdir(%s): %s", dir, strerror(errno)); \
}while(0)

extern int creat_mog(const char *pathname, mode_t mode, const char *owner, const char *group);
extern int Open(const char *pathname, int flags);

#endif