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