protoname
#define protoname() (pw ? pw->pw_name : user)
static const char *protoname (int p, char *buf) {