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