example usage: #include #include "popen3.h" int pipes[3]; pid_t pid; int ret; const char *cmd = "cat -n"; pid = popen3(cmd, pipes); /* * - write to pipes[0] will go to stdin of cat * - read from pipes[1] to get stdout of cat * - read from pipes[2] to get stderr of ct */ ret = pclose3(pid, pipes); master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
path: root/tools
/option>
ModeNameSize
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-11-11 16:22:47 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-11-11 16:37:38 +0100
commit1993dbc7e09a7ffdd98975589aa83387928e9fe7 (patch)
treef518fd484f98541a3d9c746d6199c1c7bec16134
parent126b30c3cb476ce68489a657a7defb8e73775e6f (diff)
s390/bitops: use atomic primitives for bitops
Replace the bitops specific atomic update code by the functions from atomic_ops.h. This saves a few lines of non-trivial code. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>