]> git.proxmox.com Git - libgit2.git/blame - src/unix/posix.h
Add INCLUDE_TREES, DONT_AUTOEXPAND iterator flags
[libgit2.git] / src / unix / posix.h
CommitLineData
bb742ede 1/*
359fc2d2 2 * Copyright (C) the libgit2 contributors. All rights reserved.
bb742ede
VM
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
f79026b4
VM
7#ifndef INCLUDE_posix__w32_h__
8#define INCLUDE_posix__w32_h__
9
6fb1c0b4
SG
10#include <stdio.h>
11
f79026b4
VM
12#define p_lstat(p,b) lstat(p,b)
13#define p_readlink(a, b, c) readlink(a, b, c)
ca1b6e54 14#define p_symlink(o,n) symlink(o, n)
f79026b4
VM
15#define p_link(o,n) link(o, n)
16#define p_unlink(p) unlink(p)
17#define p_mkdir(p,m) mkdir(p, m)
18#define p_fsync(fd) fsync(fd)
67fcac56
CMN
19
20/* The OpenBSD realpath function behaves differently */
21#if !defined(__OpenBSD__)
22# define p_realpath(p, po) realpath(p, po)
23#endif
24
2fc78e70 25#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
84dd3820 26#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
f978b748 27#define p_mkstemp(p) mkstemp(p)
222d057c 28#define p_setenv(n,v,o) setenv(n,v,o)
345eef23 29#define p_inet_pton(a, b, c) inet_pton(a, b, c)
f79026b4 30
cccacac5
RB
31/* see win32/posix.h for explanation about why this exists */
32#define p_lstat_posixly(p,b) lstat(p,b)
33
f79026b4 34#endif