int setlogin(const char *name) { int retval; retval = __setlogin(name); __logname_valid = 0; return (retval); }
int setlogin(const char* name) { pthread_mutex_lock(&__logname_mutex); int res = __setlogin(name); if (res == 0 && __logname != NULL) { __logname[0] = 0; } pthread_mutex_unlock(&__logname_mutex); return res; }
int setlogin(const char* name) { return (_logname_valid = __setlogin(name)); }