forked from libarchive/libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbsdtar_windows.h
More file actions
47 lines (38 loc) · 793 Bytes
/
Copy pathbsdtar_windows.h
File metadata and controls
47 lines (38 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2009 Michihiro NAKAJIMA
* All rights reserved.
*/
#ifndef BSDTAR_WINDOWS_H
#define BSDTAR_WINDOWS_H 1
#include <direct.h>
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#include <share.h>
#ifndef PRId64
#define PRId64 "I64"
#endif
#define geteuid() 0
#ifndef __WATCOMC__
#ifndef S_IFIFO
#define S_IFIFO 0010000 /* pipe */
#endif
#include <string.h> /* Must include before redefining 'strdup' */
#if !defined(__BORLANDC__)
#define strdup _strdup
#endif
#if !defined(__BORLANDC__)
#define getcwd _getcwd
#endif
#define chdir __tar_chdir
int __tar_chdir(const char *);
#ifndef S_ISREG
#define S_ISREG(a) (a & _S_IFREG)
#endif
#ifndef S_ISBLK
#define S_ISBLK(a) (0)
#endif
#endif
#endif /* !BSDTAR_WINDOWS_H */