aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-09-11 09:18:09 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-09-11 09:18:09 +0000
commit57b56674a3933dff9dd3df47dbd9009c409181de (patch)
tree2bf4a07b960bc190927d2926662accbe1ceebd59 /libbb/xfuncs.c
parentdea6e3d3cf5327b1f6723dd5d15c2e4c7472a0e8 (diff)
downloadbusybox-w32-57b56674a3933dff9dd3df47dbd9009c409181de.tar.gz
busybox-w32-57b56674a3933dff9dd3df47dbd9009c409181de.tar.bz2
busybox-w32-57b56674a3933dff9dd3df47dbd9009c409181de.zip
- merge xstat.c into xfuncs.c
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 4bb05f248..e88a5380f 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -487,3 +487,13 @@ void xlisten(int s, int backlog)
487 if (listen(s, backlog)) bb_perror_msg_and_die("listen"); 487 if (listen(s, backlog)) bb_perror_msg_and_die("listen");
488} 488}
489#endif 489#endif
490
491#ifdef L_xstat
492/* xstat() - a stat() which dies on failure with meaningful error message */
493void xstat(const char * const name, struct stat *stat_buf)
494{
495 if (stat(name, stat_buf))
496 bb_perror_msg_and_die("Can't stat '%s'", name);
497}
498#endif
499