]> git.jsancho.org Git - lugaru.git/blob - Source/CarbonStdCLib.h
fb307444abdcddc8aa521a8920eb4df9d3e6dd3e
[lugaru.git] / Source / CarbonStdCLib.h
1 /************************************************************
2
3     CarbonStdCLib.h
4     Assorted helper functions associated with CarbonStdClib.o.
5
6     Copyright Apple Computer,Inc.  2001
7     All rights reserved
8
9  * Warning:  This interface is NOT a part of the ANSI C standard.
10  *           This header file is not POSIX compliant.
11  *           For portable code, don't use this interface.
12
13 ************************************************************/
14
15
16 #ifndef __CARBONSTDCLIB__
17 #define __CARBONSTDCLIB__
18
19 #ifndef __CONDITIONALMACROS__
20 #include <ConditionalMacros.h>
21 #endif
22
23 #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
24     #pragma import on
25 #endif
26
27 #if __cplusplus
28 extern "C" {
29 #endif  /* __cplusplus */
30
31 #if !(CALL_NOT_IN_CARBON || __MPWINTERNAL__)
32
33 extern void InitCarbonStdCLib( void ) ;
34 extern void TermCarbonStdCLib( void ) ;
35
36 extern void ConvertUnixPathToHFSPath(const char *unixPath, char *hfsPath) ;
37 extern void ConvertHFSPathToUnixPath(const char *hfsPath, char *unixPath) ;
38
39 /* BSD functions */
40
41 int bsd_chdir(const char *path) ;
42 int bsd_chmod(const char *path , int mode) ;
43
44 #endif
45
46 #if __cplusplus
47 }
48 #endif  /* __cplusplus */
49
50 #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
51     #pragma import off
52 #endif
53
54 #endif  /* __CARBONSTDCLIB__ */
55