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