Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: io/bits/fcntl2.h

Issue 1337243004: Don't use openat64 in fcntl2.h under NaCl (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-glibc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Checking macros for fcntl functions. 1 /* Checking macros for fcntl functions.
2 Copyright (C) 2007 Free Software Foundation, Inc. 2 Copyright (C) 2007 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version. 8 version 2.1 of the License, or (at your option) any later version.
9 9
10 The GNU C Library is distributed in the hope that it will be useful, 10 The GNU C Library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 if (__va_arg_pack_len () < 1) 89 if (__va_arg_pack_len () < 1)
90 return __open64_2 (__path, __oflag); 90 return __open64_2 (__path, __oflag);
91 91
92 return __open64_alias (__path, __oflag, __va_arg_pack ()); 92 return __open64_alias (__path, __oflag, __va_arg_pack ());
93 } 93 }
94 #endif 94 #endif
95 95
96 96
97 #ifdef __USE_ATFILE 97 #ifdef __USE_ATFILE
98 # ifndef __USE_FILE_OFFSET64 98 # if !defined(__USE_FILE_OFFSET64) || defined(__native_client__)
99 extern int __openat_2 (int __fd, __const char *__path, int __oflag) 99 extern int __openat_2 (int __fd, __const char *__path, int __oflag)
100 __nonnull ((2)); 100 __nonnull ((2));
101 extern int __REDIRECT (__openat_alias, (int __fd, __const char *__path, 101 extern int __REDIRECT (__openat_alias, (int __fd, __const char *__path,
102 int __oflag, ...), openat) 102 int __oflag, ...), openat)
103 __nonnull ((2)); 103 __nonnull ((2));
104 # else 104 # else
105 extern int __REDIRECT (__openat_2, (int __fd, __const char *__path, 105 extern int __REDIRECT (__openat_2, (int __fd, __const char *__path,
106 int __oflag), __openat64_2) 106 int __oflag), __openat64_2)
107 __nonnull ((2)); 107 __nonnull ((2));
108 extern int __REDIRECT (__openat_alias, (int __fd, __const char *__path, 108 extern int __REDIRECT (__openat_alias, (int __fd, __const char *__path,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ()); 164 return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ());
165 } 165 }
166 166
167 if (__va_arg_pack_len () < 1) 167 if (__va_arg_pack_len () < 1)
168 return __openat64_2 (__fd, __path, __oflag); 168 return __openat64_2 (__fd, __path, __oflag);
169 169
170 return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ()); 170 return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ());
171 } 171 }
172 # endif 172 # endif
173 #endif 173 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698