Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
8ad70871b55ee3a3ae8b27144e7169a96449ca4b
/
.
/
libbb
/
xstat.c
blob: ca668640306a60ef9e2aaafbbd2f4f98acbfd284 [
file
] [
log
] [
blame
]
/*
* xstat.c - a stat() which dies on failure with meaningful error message
*/
#include
<unistd.h>
#include
"libbb.h"
void
xstat
(
const
char
*
name
,
struct
stat
*
stat_buf
)
{
if
(
stat
(
name
,
stat_buf
))
bb_perror_msg_and_die
(
"Can't stat '%s'"
,
name
);
}