This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 2/3] Consolidate posix_fallocate{64} implementations


On Wednesday 05 October 2016 11:20 PM, Adhemerval Zanella wrote:
> What about the new definition I sent with fallocate update patch:
> 
> #define FAIL(...) \
>   ({ \
>      printf ("error: line %d: ", __LINE__); \
>      printf (__VA_ARGS__); \
>      printf ("\n"); \
>      return 1; \
>   })
> 
> I think I can rename to FAIL_RET to explicit state it returns and maybe
> add a RET_EXIT with same logic but calling exit.

Yeah, this is the one I was referring to.  FAIL_RET sounds good along
with a FAIL_EXIT.

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]