X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapi%2Ffcntl.c;h=4c25cdc59be036857c1a245ae643cc2b1928e1c6;hb=f2a3d8120f077c75baaf307fa6b5186a0209faf9;hp=46b7084cd8e0019ce1463810db6d6b8050fcde49;hpb=b80923949db9c815c5a4575147d84b8290fbe4d9;p=libc-test diff --git a/src/api/fcntl.c b/src/api/fcntl.c index 46b7084..4c25cdc 100644 --- a/src/api/fcntl.c +++ b/src/api/fcntl.c @@ -83,16 +83,16 @@ T(mode_t) T(off_t) T(pid_t) -int(*p_fcntl)(int,int,...) = fcntl; -int(*p_posix_fadvise)(int,off_t,off_t,int) = posix_fadvise; -int(*p_posix_fallocate)(int,off_t,off_t) = posix_fallocate; +{int(*p)(int,int,...) = fcntl;} +{int(*p)(int,off_t,off_t,int) = posix_fadvise;} +{int(*p)(int,off_t,off_t) = posix_fallocate;} } #ifndef _XOPEN_SOURCE #include #endif static void g() { -int(*p_creat)(const char*,mode_t) = creat; -int(*p_open)(const char*,int,...) = open; -int(*p_openat)(int,const char*,int,...) = openat; +{int(*p)(const char*,mode_t) = creat;} +{int(*p)(const char*,int,...) = open;} +{int(*p)(int,const char*,int,...) = openat;} }