git: drawterm

ref: e551ef409ae2b004595f38323ce212ed152f6c3f
dir: /posix-port/tas.c/

View raw version
#include "u.h"
#include "libc.h"

int
tas(int *x)
{
	return __atomic_test_and_set(x, __ATOMIC_ACQ_REL);
}