| ... | ... | @@ -167,6 +167,10 @@ typedef __pid_t pid_t; |
| 167 | 167 | 					 effective IDs, not real IDs. */ |
| 168 | 168 | #endif |
| 169 | 169 | |
| 170 | |
| 171 | /* fcntl was a simple symbol until glibc 2.27 inclusive. glibc 2.28 onwards |
| 172 | * re-defines it to fcntl64 (via #define) if _FILE_OFFSET_BITS == 64. */ |
| 173 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2 |
| 170 | 174 | /* Do the file control operation described by CMD on FD. |
| 171 | 175 | The remaining arguments are interpreted depending on CMD. |
| 172 | 176 | |
| ... | ... | @@ -197,6 +201,9 @@ extern int __fcntl_time64 (int __fd, int __request, ...) __THROW; |
| 197 | 201 | # define fcntl __fcntl_time64 |
| 198 | 202 | # endif |
| 199 | 203 | #endif |
| 204 | #else /* glibc 2.27 or lower */ |
| 205 | extern int fcntl (int __fd, int __cmd, ...); |
| 206 | #endif |
| 200 | 207 | |
| 201 | 208 | /* Open FILE and return a new file descriptor for it, or -1 on error. |
| 202 | 209 | OFLAG determines the type of access used. If O_CREAT or O_TMPFILE is set |