- merge xstat.c into xfuncs.c

This commit is contained in:
Bernhard Reutner-Fischer
2006-09-11 09:18:09 +00:00
parent dea6e3d3cf
commit 57b56674a3
4 changed files with 12 additions and 14 deletions

View File

@ -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