Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - these functions operate at the operating-system level and are included for http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
These functions operate at the operating-system level and are included for
compatibility with other C implementations.  It is recommended that the
functions used in the section File Manipulation Functions be used for new
programs, as these functions are defined portably and are part of the ANSI
standard for the C language.

The functions in this section reference opened files and devices using a
file handle which is returned when the file is opened.  The file handle is
passed to the other functions.

The following functions are defined:

chsize
    change the size of a file

close
    close file

creat
    create a file

dup
    duplicate file handle, get unused handle number

dup2
    duplicate file handle, supply new handle number

eof
    test for end of file

filelength
    get file size

fileno
    get file handle for stream file

fstat
    get file status

_hdopen
    get POSIX handle from OS handle

lock
    lock a section of a file

locking
    lock/unlock a section of a file

lseek
    set current file position

open
    open a file

_os_handle
    get OS handle from POSIX handle

read
    read a record

setmode
    set file mode

sopen
    open a file for shared access

tell
    get current file position

umask
    set file permission mask

unlink
    delete a file

unlock
    unlock a section of a file

write
    write a record

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson