- merge xstat.c into xfuncs.c
This commit is contained in:
@ -487,3 +487,13 @@ void xlisten(int s, int backlog)
|
||||
if (listen(s, backlog)) bb_perror_msg_and_die("listen");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef L_xstat
|
||||
/* xstat() - a stat() which dies on failure with meaningful error message */
|
||||
void xstat(const char * const name, struct stat *stat_buf)
|
||||
{
|
||||
if (stat(name, stat_buf))
|
||||
bb_perror_msg_and_die("Can't stat '%s'", name);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user