This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Some of our kernel headers implement generally useful abstractions across all of the architectures we support. I would like to make an "architecture portability" library, based on the kernel headers but as a separate project from the kernel, and intended for use in userspace.
The headers that I want to base this on are:
atomic.h bitops.h byteorder.h rwsem.h semaphore.h spinlock.h system.h (for mb et al., xchg, cmpxchg) unaligned.h
atomic_set -- atomically fetches a value atomic_read -- atomically stores a value
fetch_and_add -- atomically add to an integer and return result. fetch_and_increment -- atomically increment by one and return result fetch_and_decrement -- atomically decrement by one and return result.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |