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