Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>sopen() open a file for shared operations</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 sopen()                 Open a File for Shared Operations

 #include   <io.h>

 sopen(path, access, shflag, mode)
 char *path;    Pathname.
 int access;    Access value.
 int shrflag;   Share flag.
 int mode;      Mode of opening.

        sopen() opens a file for shared reading and writing. All parameters
        -- path, access, and mode, are the same as in open(). The share
        flag shrflag is a combination of these values:

                SH_COMPAT       Compatibilty mode
                SH_DENYRW       Deny read/write access
                SH_DENYWR       Deny write access
                SH_DENYRD       Deny read access
                SH_DENYNONE     Allows read/write access
                SH_DENYNO       Allows read/write access

        See open() for more information and examples.

       Returns:     A nonegative file handle if successful. If the
                    return value is negative, the global value errno is
                    set to:
                                ENOENT          Path not found
                                EMFILE          Too many open files
                                EACCES          Permission denied
                                EINVACC         Invalid access code

See Also: chmod() close() open() _open()

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