File: compat.h

package info (click to toggle)
ocp 1%3A0.1.21-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,344 kB
  • ctags: 7,862
  • sloc: ansic: 91,449; cpp: 9,729; sh: 3,119; makefile: 2,482
file content (22 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _COMPAT_H
#define _COMPAT_H

#include <sys/time.h>

#define DOS_CLK_TCK 0x10000

extern time_t dos_clock(void);
extern void _splitpath(const char *src, char *drive, char *path, char *file, char *ext);
extern void _makepath(char *dst /* PATH_MAX+1 */, const char *drive, const char *path, const char *file, const char *ext);

#ifndef HAVE_STRUPR
extern char *strupr(char *src);
#else
#include <string.h>
#endif

extern size_t filelength(int fd);
extern size_t _filelength(const char *path);
extern int memicmp(const void *s1, const void *s2, size_t n);

#endif