MCPcopy Create free account
hub / github.com/F-Stack/f-stack / put_pid

Function put_pid

tools/libutil/uucplock.c:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static int
199put_pid(int fd, pid_t pid)
200{
201 char buf[32];
202 int len;
203
204 len = sprintf (buf, "%10d\n", (int)pid);
205 return write (fd, buf, (size_t)len) == len;
206}
207
208static pid_t
209get_pid(int fd, int *err)

Callers 2

uu_lockFunction · 0.85
uu_lock_txfrFunction · 0.85

Calls 2

sprintfFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected