1*6a54128fSAndroid Build Coastguard Worker #pragma once
2*6a54128fSAndroid Build Coastguard Worker
3*6a54128fSAndroid Build Coastguard Worker // Copyright transferred from Raider Solutions, Inc to
4*6a54128fSAndroid Build Coastguard Worker // Kern Sibbald and John Walker by express permission.
5*6a54128fSAndroid Build Coastguard Worker //
6*6a54128fSAndroid Build Coastguard Worker // Copyright (C) 2004-2006 Kern Sibbald
7*6a54128fSAndroid Build Coastguard Worker // Copyright (C) 2014 Adam Kropelin
8*6a54128fSAndroid Build Coastguard Worker //
9*6a54128fSAndroid Build Coastguard Worker // This program is free software; you can redistribute it and/or
10*6a54128fSAndroid Build Coastguard Worker // modify it under the terms of the GNU General Public License as
11*6a54128fSAndroid Build Coastguard Worker // published by the Free Software Foundation; either version 2 of
12*6a54128fSAndroid Build Coastguard Worker // the License, or (at your option) any later version.
13*6a54128fSAndroid Build Coastguard Worker //
14*6a54128fSAndroid Build Coastguard Worker // This program is distributed in the hope that it will be useful,
15*6a54128fSAndroid Build Coastguard Worker // but WITHOUT ANY WARRANTY; without even the implied warranty of
16*6a54128fSAndroid Build Coastguard Worker // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17*6a54128fSAndroid Build Coastguard Worker // General Public License for more details.
18*6a54128fSAndroid Build Coastguard Worker //
19*6a54128fSAndroid Build Coastguard Worker // You should have received a copy of the GNU General Public
20*6a54128fSAndroid Build Coastguard Worker // License along with this program; if not, write to the Free
21*6a54128fSAndroid Build Coastguard Worker // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22*6a54128fSAndroid Build Coastguard Worker // MA 02111-1307, USA.
23*6a54128fSAndroid Build Coastguard Worker
24*6a54128fSAndroid Build Coastguard Worker #ifndef __COMPAT_UNISTD_H_
25*6a54128fSAndroid Build Coastguard Worker #define __COMPAT_UNISTD_H_
26*6a54128fSAndroid Build Coastguard Worker
27*6a54128fSAndroid Build Coastguard Worker #include_next <unistd.h>
28*6a54128fSAndroid Build Coastguard Worker
29*6a54128fSAndroid Build Coastguard Worker #define _PC_PATH_MAX 1
30*6a54128fSAndroid Build Coastguard Worker #define _PC_NAME_MAX 2
31*6a54128fSAndroid Build Coastguard Worker
32*6a54128fSAndroid Build Coastguard Worker #ifdef __cplusplus
33*6a54128fSAndroid Build Coastguard Worker extern "C" {
34*6a54128fSAndroid Build Coastguard Worker #endif
35*6a54128fSAndroid Build Coastguard Worker
36*6a54128fSAndroid Build Coastguard Worker long pathconf(const char *, int);
37*6a54128fSAndroid Build Coastguard Worker #define getpid _getpid
38*6a54128fSAndroid Build Coastguard Worker #define getppid() 0
39*6a54128fSAndroid Build Coastguard Worker
40*6a54128fSAndroid Build Coastguard Worker unsigned int sleep(unsigned int seconds);
41*6a54128fSAndroid Build Coastguard Worker
42*6a54128fSAndroid Build Coastguard Worker #define getuid() 0
43*6a54128fSAndroid Build Coastguard Worker #define getgid() 0
44*6a54128fSAndroid Build Coastguard Worker #define geteuid() 1
45*6a54128fSAndroid Build Coastguard Worker #define getegid() 0
46*6a54128fSAndroid Build Coastguard Worker
47*6a54128fSAndroid Build Coastguard Worker // no-oped sync
sync(void)48*6a54128fSAndroid Build Coastguard Worker __inline void sync(void){};
49*6a54128fSAndroid Build Coastguard Worker
50*6a54128fSAndroid Build Coastguard Worker #ifdef __cplusplus
51*6a54128fSAndroid Build Coastguard Worker };
52*6a54128fSAndroid Build Coastguard Worker #endif
53*6a54128fSAndroid Build Coastguard Worker
54*6a54128fSAndroid Build Coastguard Worker #endif /* __COMPAT_UNISTD_H_ */