Skip to content

Switch to libc wrapper instead of raw syscall for gettid() and execveat() #2156

Open
@SteveLauC

Description

@SteveLauC

gettid() was initially added in #293, at that time, we didn't have a libc wrapper so we had to involve the syscall() directly. The wrapper in glibc was added in 2.30, and the libc crate has exposed this interface since this PR, so we probably should switch to the libc wrapper and get rid of the raw syscall.

My concern, on Linux/glibc, it is available since 2.30, but the current supported glibc version is 2.17, so I am afraid we will have conpatibility issue just like this one #2146

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions