xref: /aoo41x/main/sal/osl/os2/uunxapi.h (revision 9eab2a37)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24  #ifndef _OSL_UUNXAPI_H_
25  #define _OSL_UUNXAPI_H_
26 
27  #ifndef _UNISTD_H
28  #include <unistd.h>
29  #endif
30 
31  #ifndef _STDLIB_H
32  #include <stdlib.h>
33  #endif
34 
35  #ifndef _TYPES_H
36  #include <sys/types.h>
37  #endif
38 
39  #ifndef _STAT_H
40  #include <sys/stat.h>
41  #endif
42 
43  #ifndef _RTL_USTRING_H_
44  #include <rtl/ustring.h>
45  #endif
46 
47 
48  #ifdef __cplusplus
49  extern "C"
50  {
51  #endif
52 
53  /* @see access */
54  int access_u(const rtl_uString* pustrPath, int mode);
55 
56  /***********************************
57   @descr
58   The return value differs from the
59   realpath function
60 
61   @returns sal_True on success else
62   sal_False
63 
64   @see realpath
65   **********************************/
66  sal_Bool realpath_u(
67  	const rtl_uString* pustrFileName,
68 	rtl_uString** ppustrResolvedName);
69 
70  /* @see lstat */
71  int lstat_u(const rtl_uString* pustrPath, struct stat* buf);
72 
73  /* @see mkdir */
74  int mkdir_u(const rtl_uString* path, mode_t mode);
75 
76  #ifdef __cplusplus
77  }
78  #endif
79 
80 
81  #endif /* _OSL_UUNXAPI_H_ */
82 
83