syscalls: Add 'thread-name' and 'set-thread-name'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 28 May 2017 13:49:11 +0000 (15:49 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 28 May 2017 21:13:39 +0000 (23:13 +0200)
commitaa401f9ba6410095370ce0c4e5a01c02203a2b9f
tree4451b41722f90e538626e3c703a467b0e752b5df
parent2b95f247215345c9130b5d6623d739f810224313
syscalls: Add 'thread-name' and 'set-thread-name'.

* guix/build/syscalls.scm (PR_SET_NAME, PR_GET_NAME)
(%max-thread-name-length): New variables.
(%prctl, set-thread-name, thread-name): New procedures.
* tests/syscalls.scm ("set-thread-name"): New test.
guix/build/syscalls.scm
tests/syscalls.scm