• R
    overhaul sem_open · bf258341
    Rich Felker 提交于
    this function was overly complicated and not even obviously correct.
    avoid using openat/linkat just like in shm_open, and instead expand
    pathname using code shared with shm_open. remove bogus (and dangerous,
    with priorities) use of spinlocks.
    
    this commit also heavily streamlines the code and ensures there are no
    failure cases that can happen after a new semaphore has been created
    in the filesystem, since that case is unreportable.
    bf258341
shm_open.c 862 字节