0x90 0x90 - 6 months ago 51
Linux Question

glibc - list and other data structures implementations

I fill like my google searching skills are poor right now, couldn't find a list implementation in glibc, found hash and tree implementations but not a list one.

Is there any glibc implementation for that? I don't want to reformat the linux kernel linked list macros and use them in userspace.

Answer

You can use insque(3) and remque(3)