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