diff options
Diffstat (limited to 'lib/libc/sys/open.2')
| -rw-r--r-- | lib/libc/sys/open.2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index dea59fcce346..479a20944ac7 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -146,6 +146,26 @@ The system imposes a limit on the number of file descriptors open simultaneously by one process. .Xr Getdtablesize 2 returns the current system limit. +.Pp +.Sh IMPLEMENTATION NOTES +In the non-threaded library +.Fn open +is implemented as the +.Va open +syscall. +.Pp +In the threaded library, the +.Va open +syscall is assembled to +.Fn _thread_sys_open +and +.Fn open +is implemented as a function which disables thread rescheduling +and calls +.Fn _thread_sys_open . +Before returning, +.Fn open +enables thread rescheduling. .Sh ERRORS The named file is opened unless: .Bl -tag -width Er |
