Add Cosmopolitan to uname()

This commit is contained in:
Justine Tunney 2023-09-21 23:51:55 -07:00
parent ed316491ca
commit 3ffc17c50e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
9 changed files with 56 additions and 14 deletions

View file

@ -16,7 +16,6 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/assert.h"
#include "libc/intrin/bsr.h"
#include "libc/intrin/cxaatexit.internal.h"
#include "libc/intrin/strace.internal.h"
@ -60,7 +59,6 @@ int __cxa_atexit(void *fp, void *arg, void *pred) {
}
}
i = _bsr(~b->mask);
unassert(i < ARRAYLEN(b->p));
b->mask |= 1u << i;
b->p[i].fp = fp;
b->p[i].arg = arg;