X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Ffcntl.h;h=36fb24bc3ddaeb79e9601560b60494a871fb6bdd;hb=de05a2ac22d33bd7631f182143ecea6dd01d9406;hp=f826a5e4f50c942d5f811a74fb3d35afcfbb4d99;hpb=419ae6d5c95629d3ebaff6f1880d52cb027ba924;p=musl diff --git a/include/fcntl.h b/include/fcntl.h index f826a5e4..36fb24bc 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -87,7 +87,6 @@ int posix_fallocate(int, off_t, off_t); #define FNONBLOCK O_NONBLOCK #define FNDELAY O_NDELAY -#ifndef F_OK #define F_OK 0 #define R_OK 4 #define W_OK 2 @@ -96,11 +95,11 @@ int posix_fallocate(int, off_t, off_t); #define F_LOCK 1 #define F_TLOCK 2 #define F_TEST 3 + int lockf(int, int, off_t); #endif -#endif -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define open64 open #define openat64 openat #define creat64 creat