summaryrefslogtreecommitdiff
path: root/bin/dd/extern.h
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-16 11:47:54 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-16 11:47:54 -0500
commit5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d (patch)
tree6abb866f965d62c64868a01950e53e0e6c21f06a /bin/dd/extern.h
parent5aef04248e45a1a0ce74d96e78abd871048369bf (diff)
downloaduserland-5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d.tar.gz
userland-5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d.tar.bz2
userland-5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d.tar.xz
userland-5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d.zip
bin/dd: make buildable with libbsd
Diffstat (limited to 'bin/dd/extern.h')
-rw-r--r--bin/dd/extern.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/bin/dd/extern.h b/bin/dd/extern.h
index 27b51a0..6185f4d 100644
--- a/bin/dd/extern.h
+++ b/bin/dd/extern.h
@@ -35,13 +35,14 @@
* @(#)extern.h 8.3 (Berkeley) 4/2/94
*/
-#include <sys/cdefs.h>
+#define NO_IOFLAG
+#define NO_MSGFMT
#ifdef NO_CONV
-__dead void block(void);
-__dead void block_close(void);
-__dead void unblock(void);
-__dead void unblock_close(void);
+void block(void);
+void block_close(void);
+void unblock(void);
+void unblock_close(void);
#else
void block(void);
void block_close(void);
@@ -61,7 +62,7 @@ void pos_in(void);
void pos_out(void);
void summary(void);
void summaryx(int);
-__dead void terminate(int);
+void terminate(int);
void unblock(void);
void unblock_close(void);
ssize_t bwrite(IO *, const void *, size_t);
@@ -71,16 +72,17 @@ extern STAT st;
extern void (*cfunc)(void);
extern uint64_t cpy_cnt;
extern uint64_t cbsz;
-extern u_int ddflags;
+extern uint32_t ddflags;
#ifndef NO_IOFLAG
-extern u_int iflag;
-extern u_int oflag;
+extern uint32_t iflag;
+extern uint32_t oflag;
#endif /* NO_IOFLAG */
-extern u_int files_cnt;
+extern unsigned int files_cnt;
extern uint64_t progress;
-extern const u_char *ctab;
-extern const u_char a2e_32V[], a2e_POSIX[];
-extern const u_char e2a_32V[], e2a_POSIX[];
-extern const u_char a2ibm_32V[], a2ibm_POSIX[];
-extern u_char casetab[];
+extern const uint8_t *ctab;
+extern const uint8_t a2e_32V[], a2e_POSIX[];
+extern const uint8_t e2a_32V[], e2a_POSIX[];
+extern const uint8_t a2ibm_32V[], a2ibm_POSIX[];
+extern uint8_t casetab[];
extern const char *msgfmt;
+extern long long strsuftoll(const char *, const char *, long long, long long);