• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2012, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <stat_portable.h>
18 
19 /* Note: The Portable Header will define stat to stat_portable */
stat_portable(const char * path,struct stat_portable * s)20 int stat_portable(const char *path, struct stat_portable *s)
21 {
22    return stat(path, s);
23 }
24 
fstat_portable(int fd,struct stat_portable * s)25 int fstat_portable(int fd, struct stat_portable *s)
26 {
27     return fstat(fd, s);
28 }
29 
lstat_portable(const char * path,struct stat_portable * s)30 int lstat_portable(const char *path, struct stat_portable *s)
31 {
32     return lstat(path, s);
33 }
34 
fstatat_portable(int dirfd,const char * path,struct stat_portable * s,int flags)35 int fstatat_portable(int dirfd, const char *path, struct stat_portable *s, int flags)
36 {
37     return fstatat(dirfd, path, s, flags);
38 }
39