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