gen_build_files.sh uses bashism, document it
[oweals/busybox.git] / runit / runit_lib.h
index b0b6dc220637195437e89fab36acad374a810174..88d1c9f222c6820abe7dd4fdb85ad9f655552bd7 100644 (file)
@@ -25,14 +25,10 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-#if __GNUC_PREREQ(4,1)
-# pragma GCC visibility push(hidden)
-#endif
-
-extern unsigned byte_chr(char *s,unsigned n,int c);
-
-#define direntry struct dirent
+PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
 
+//extern unsigned byte_chr(char *s,unsigned n,int c);
+//
 //struct tai {
 //     uint64_t x;
 //};
@@ -92,7 +88,7 @@ typedef struct svstatus_t {
        uint32_t time_nsec_be32 PACKED;
        uint32_t pid_le32 PACKED;
        uint8_t  paused;
-       uint8_t  want;
+       uint8_t  want; /* 'u' or 'd' */
        uint8_t  got_term;
        uint8_t  run_or_finish;
 } svstatus_t;
@@ -100,6 +96,4 @@ struct ERR_svstatus_must_be_20_bytes {
        char ERR_svstatus_must_be_20_bytes[sizeof(svstatus_t) == 20 ? 1 : -1];
 };
 
-#if __GNUC_PREREQ(4,1)
-# pragma GCC visibility pop
-#endif
+POP_SAVED_FUNCTION_VISIBILITY