aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs_printf.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 13:08:20 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 13:08:20 +1000
commit6a6efd31038d7afe977e3059508ae863e65cbdf5 (patch)
tree5cd69a751e893b83176751c80fcea7a7afeed1ae /libbb/xfuncs_printf.c
parenta6a2325ecf402054132daae169f71edb0fb849e3 (diff)
parent29082231d0cb1a5b327de5d515b16f332d4dbdaf (diff)
downloadbusybox-w32-6a6efd31038d7afe977e3059508ae863e65cbdf5.tar.gz
busybox-w32-6a6efd31038d7afe977e3059508ae863e65cbdf5.tar.bz2
busybox-w32-6a6efd31038d7afe977e3059508ae863e65cbdf5.zip
Merge branch 'origin/master' (early part)
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r--libbb/xfuncs_printf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index 7feb58036..3e189c2d1 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -337,6 +337,11 @@ void FAST_FUNC bb_unsetenv(const char *var)
337 free(tp); 337 free(tp);
338} 338}
339 339
340void FAST_FUNC bb_unsetenv_and_free(char *var)
341{
342 bb_unsetenv(var);
343 free(var);
344}
340 345
341// Die with an error message if we can't set gid. (Because resource limits may 346// Die with an error message if we can't set gid. (Because resource limits may
342// limit this user to a given number of processes, and if that fills up the 347// limit this user to a given number of processes, and if that fills up the
@@ -598,3 +603,14 @@ void FAST_FUNC generate_uuid(uint8_t *buf)
598 /* variant = 10x */ 603 /* variant = 10x */
599 buf[4 + 2 + 2] = (buf[4 + 2 + 2] & 0x3f) | 0x80; 604 buf[4 + 2 + 2] = (buf[4 + 2 + 2] & 0x3f) | 0x80;
600} 605}
606
607#if BB_MMU
608pid_t FAST_FUNC xfork(void)
609{
610 pid_t pid;
611 pid = fork();
612 if (pid < 0) /* wtf? */
613 bb_perror_msg_and_die("vfork"+1);
614 return pid;
615}
616#endif