diff options
Diffstat (limited to 'newlib/libc/sys.tex')
-rw-r--r-- | newlib/libc/sys.tex | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/newlib/libc/sys.tex b/newlib/libc/sys.tex index 3182b71c5..362732ace 100644 --- a/newlib/libc/sys.tex +++ b/newlib/libc/sys.tex @@ -180,7 +180,14 @@ int lseek(int file, int ptr, int dir)@{ @} @end example -@c FIXME! Why no stub for open? +@item open +Open a file. Minimal implementation: + +@example +int open(const char *name, int flags, int mode)@{ + return -1; +@} +@end example @item read Read from a file. Minimal implementation: @@ -341,6 +348,17 @@ int _open_r(void *@var{reent}, const char *@var{file}, int @var{flags}, int @var{mode}); @end example +@ifset STDIO64 +@item _open64_r +A reentrant version of @code{open64}. It takes a pointer +to the global data block, which holds @code{errno}. + +@example +int _open64_r(void *@var{reent}, + const char *@var{file}, int @var{flags}, int @var{mode}); +@end example +@end ifset + @item _close_r A reentrant version of @code{close}. It takes a pointer to the global data block, which holds @code{errno}. @@ -358,6 +376,17 @@ off_t _lseek_r(void *@var{reent}, int @var{fd}, off_t @var{pos}, int @var{whence}); @end example +@ifset STDIO64 +@item _lseek64_r +A reentrant version of @code{lseek64}. It takes a pointer to the global +data block, which holds @code{errno}. + +@example +off_t _lseek64_r(void *@var{reent}, + int @var{fd}, off_t @var{pos}, int @var{whence}); +@end example +@end ifset + @item _read_r A reentrant version of @code{read}. It takes a pointer to the global data block, which holds @code{errno}. @@ -410,6 +439,17 @@ int _fstat_r(void *@var{reent}, int @var{fd}, struct stat *@var{pstat}); @end example +@ifset STDIO64 +@item _fstat64_r +A reentrant version of @code{fstat64}. It takes a pointer to the global +data block, which holds @code{errno}. + +@example +int _fstat64_r(void *@var{reent}, + int @var{fd}, struct stat *@var{pstat}); +@end example +@end ifset + @item _link_r A reentrant version of @code{link}. It takes a pointer to the global data block, which holds @code{errno}. |