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

Siddhesh Poyarekar siddhesh@gotplt.org
Wed Oct 5 18:19:00 GMT 2016


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



More information about the Libc-alpha mailing list