pthread_once(&context_key_once, context_get_key);
ctx = pthread_getspecific(context_key);
pthread_once(&context_key_once, context_get_key);
ctx = pthread_getspecific(context_key);
if (strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr)))
return "strerror_r failed. sorry!";
if (strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr)))
return "strerror_r failed. sorry!";