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