posix.h 914 Bytes
Newer Older
Vicent Marti committed
1
/*
schu committed
2
 * Copyright (C) 2009-2012 the libgit2 contributors
Vicent Marti committed
3 4 5 6
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
Vicent Marti committed
7 8 9
#ifndef INCLUDE_posix__w32_h__
#define INCLUDE_posix__w32_h__

10 11
#include <stdio.h>

Vicent Marti committed
12 13
#define p_lstat(p,b) lstat(p,b)
#define p_readlink(a, b, c) readlink(a, b, c)
14
#define p_symlink(o,n) symlink(o, n)
Vicent Marti committed
15 16 17 18
#define p_link(o,n) link(o, n)
#define p_unlink(p) unlink(p)
#define p_mkdir(p,m) mkdir(p, m)
#define p_fsync(fd) fsync(fd)
19
#define p_realpath(p, po) realpath(p, po)
20
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
21
#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
22
#define p_mkstemp(p) mkstemp(p)
23
#define p_setenv(n,v,o) setenv(n,v,o)
24
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
Vicent Marti committed
25

26 27 28
/* see win32/posix.h for explanation about why this exists */
#define p_lstat_posixly(p,b) lstat(p,b)

Vicent Marti committed
29
#endif