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