aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r--libbb/xfuncs_printf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index f021493b1..7069a7c8e 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -589,3 +589,14 @@ void FAST_FUNC generate_uuid(uint8_t *buf)
589 /* variant = 10x */ 589 /* variant = 10x */
590 buf[4 + 2 + 2] = (buf[4 + 2 + 2] & 0x3f) | 0x80; 590 buf[4 + 2 + 2] = (buf[4 + 2 + 2] & 0x3f) | 0x80;
591} 591}
592
593#if BB_MMU
594pid_t FAST_FUNC xfork(void)
595{
596 pid_t pid;
597 pid = fork();
598 if (pid < 0) /* wtf? */
599 bb_perror_msg_and_die("vfork"+1);
600 return pid;
601}
602#endif