ref: 0218ed493dde5836d5d78d973f6fa1e24ed4b9c1 dir: /libc/tas.c/
#include <u.h> #include <libc.h> int tas(int *p) { int old; old = *p; *p = 1; return old; }