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