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