File: misc.h

package info (click to toggle)
id3ed 1.9-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 188 kB
  • ctags: 61
  • sloc: cpp: 504; sh: 152; makefile: 77
file content (21 lines) | stat: -rw-r--r-- 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#define RDWRMODE (O_RDWR)


int doread(int handle,void * buf,ssize_t len, const char * name);
int dowrite(int handle, const void * buf, ssize_t len,const char *name,const char *name2="");
int doopen(int &handle,const char * name,int access,int mode=0);


#ifndef HAVE_STRERROR
const char * strerror(int err);
#endif