aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 02479d977..4654daec4 100644
--- a/utility.c
+++ b/utility.c
@@ -536,7 +536,7 @@ const char *time_string(time_t timeVal)
536} 536}
537#endif /* BB_TAR || BB_AR */ 537#endif /* BB_TAR || BB_AR */
538 538
539#if defined BB_TAR || defined BB_CP_MV || defined BB_AR || defined BB_DD 539#if defined BB_AR || defined BB_CP_MV || defined BB_DD || defined BB_NC || defined BB_TAR
540/* 540/*
541 * Write all of the supplied buffer out to a file. 541 * Write all of the supplied buffer out to a file.
542 * This does multiple writes as necessary. 542 * This does multiple writes as necessary.
@@ -1791,6 +1791,19 @@ int applet_name_compare(const void *x, const void *y)
1791 return strcmp(applet1->name, applet2->name); 1791 return strcmp(applet1->name, applet2->name);
1792} 1792}
1793 1793
1794#if defined BB_NC
1795ssize_t safe_read(int fd, void *buf, size_t count)
1796{
1797 ssize_t n;
1798
1799 do {
1800 n = read(fd, buf, count);
1801 } while (n < 0 && errno == EINTR);
1802
1803 return n;
1804}
1805#endif
1806
1794/* END CODE */ 1807/* END CODE */
1795/* 1808/*
1796Local Variables: 1809Local Variables: