Lines Matching refs:ret
171 int ret = -1; in optc_to_fileno() local
176 ret = STDERR_FILENO; in optc_to_fileno()
179 ret = STDIN_FILENO; in optc_to_fileno()
182 ret = STDOUT_FILENO; in optc_to_fileno()
186 return ret; in optc_to_fileno()
192 int ret; in set_LD_PRELOAD() local
235 ret = asprintf (&libstdbuf, "%s/%s", *path, LIB_NAME); in set_LD_PRELOAD()
236 if (ret < 0) in set_LD_PRELOAD()
250 ret = asprintf (&LD_PRELOAD, "%s=%s:%s", preload_env, old_libs, libstdbuf); in set_LD_PRELOAD()
252 ret = asprintf (&LD_PRELOAD, "%s=%s", preload_env, libstdbuf); in set_LD_PRELOAD()
254 if (ret < 0) in set_LD_PRELOAD()
259 ret = putenv (LD_PRELOAD); in set_LD_PRELOAD()
261 if (ret == 0) in set_LD_PRELOAD()
262 ret = setenv ("DYLD_FORCE_FLAT_NAMESPACE", "y", 1); in set_LD_PRELOAD()
265 if (ret != 0) in set_LD_PRELOAD()
284 int ret; in set_libstdbuf_options() local
287 ret = asprintf (&var, "%s%c=L", "_STDBUF_", in set_libstdbuf_options()
290 ret = asprintf (&var, "%s%c=%zu", "_STDBUF_", in set_libstdbuf_options()
293 if (ret < 0) in set_libstdbuf_options()