Unlike the older "SysV IPC" semaphores (semctl, semop, etc), the POSIX semaphore API is not implemented directly by the kernel. Instead, the C library implements it on top of the futex generic synchronization primitive.
The code you are looking for is in the nptl subdirectory of the GNU libc source tree. You may also have to go digging around in sysdeps to find all of it.
Unlike the older "SysV IPC" semaphores (semctl, semop, etc), the POSIX semaphore API is not implemented directly by the kernel. Instead, the C library implements it on top of the futex generic synchronization primitive.
The code you are looking for is in the nptl subdirectory of the GNU libc source tree. You may also have to go digging around in sysdeps to find all of it.
Videos
It's there under "dot".
NAME
dot - execute commands in the current environment
SYNOPSIS
. file
[etc.]
. is standardized (POSIX 2004, 2008).
source is non-standard and specifically not supported in ash, dash or pdksh (so probably it's not in the original Korn Shell either). I.e., it's a Bashism.
I have experienced having documentations that are not up to date. Right now what I am doing is searching google and mostly open one's from geekforgeeks and tutorialspoint. I was wondering if there is an official or maybe a consolidated documentation for functions, data types, etc. for standard C and/or POSIX library. Thanks!