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