aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-03 15:57:40 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-03 15:57:40 +0000
commit8d36096a2f1d497f21025c3df6fba0c14b3d7f5d (patch)
treef88b5ee99da5816f1628c9560cfabecb97468689 /libbb/xfuncs.c
parent1b6c65b302d67b9ee6a4c0911a9846d20d6941bb (diff)
downloadbusybox-w32-8d36096a2f1d497f21025c3df6fba0c14b3d7f5d.tar.gz
busybox-w32-8d36096a2f1d497f21025c3df6fba0c14b3d7f5d.tar.bz2
busybox-w32-8d36096a2f1d497f21025c3df6fba0c14b3d7f5d.zip
runit/chpst: "change process state" utility
It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k git-svn-id: svn://busybox.net/trunk/busybox@16298 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 92091e555..7b95e49f1 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -255,6 +255,14 @@ int wait4pid(int pid)
255} 255}
256#endif 256#endif
257 257
258#ifdef L_xsetenv
259void xsetenv(const char *key, const char *value)
260{
261 if(setenv(key, value, 1))
262 bb_error_msg_and_die(bb_msg_memory_exhausted);
263}
264#endif
265
258#ifdef L_itoa 266#ifdef L_itoa
259// Convert unsigned integer to ascii, writing into supplied buffer. A 267// Convert unsigned integer to ascii, writing into supplied buffer. A
260// truncated result is always null terminated (unless buflen is 0), and 268// truncated result is always null terminated (unless buflen is 0), and