Ignore:
Timestamp:
Mar 13, 2005, 11:46:03 AM (20 years ago)
Author:
bird
Message:

Implemented socket duplication. fixed various inherit/fork trouble.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/tcpip.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1826 r1827  
    228228
    229229/**
    230  * Allocates file handle for a socket - extended version. BSD 4.4.
     230 * Allocates file handle for a socket - extended version.
    231231 *
    232232 * The socket is not removed from the socket list when calling this
     
    234234 * processor where such actions are unnecessary.
    235235 *
    236  * @returns Pointer to socket handle on success.
    237  * @returns NULL and errno on failure.
     236 * @returns 0 on success.
     237 * @returns Negative error code (errno.h) on failure.
    238238 * @param   fh          The requested file handle.
    239239 *                      If -1 any file handle can be used.
     
    245245 *                      If clear we only increment the global reference counter.
    246246 * @param   pfh         Where to store the filename.
    247  */
    248 PLIBCSOCKETFH TCPNAMEG44(AllocFHEx)(int fh, int iSocket, unsigned fFlags, int fNew, int *pfh);
    249 /**
    250  * Allocates file handle for a socket - extended version. BSD 4.3.
     247 * @param   ppFHSocket  Where to store the allocated socket handle. Optional.
     248 */
     249int TCPNAMEG44(AllocFHEx)(int fh, int iSocket, unsigned fFlags, int fNew, int *pfh, PLIBCSOCKETFH *ppFHSocket);
     250/**
     251 * Allocates file handle for a socket - extended version.
    251252 *
    252253 * The socket is not removed from the socket list when calling this
     
    254255 * processor where such actions are unnecessary.
    255256 *
    256  * @returns Pointer to socket handle on success.
    257  * @returns NULL and errno on failure.
     257 * @returns 0 on success.
     258 * @returns Negative error code (errno.h) on failure.
    258259 * @param   fh          The requested file handle.
    259260 *                      If -1 any file handle can be used.
     
    265266 *                      If clear we only increment the global reference counter.
    266267 * @param   pfh         Where to store the filename.
    267  */
    268 PLIBCSOCKETFH TCPNAMEG43(AllocFHEx)(int fh, int iSocket, unsigned fFlags, int fNew, int *pfh);
     268 * @param   ppFHSocket  Where to store the allocated socket handle. Optional.
     269 */
     270int TCPNAMEG43(AllocFHEx)(int fh, int iSocket, unsigned fFlags, int fNew, int *pfh, PLIBCSOCKETFH *ppFHSocket);
    269271
    270272
Note: See TracChangeset for help on using the changeset viewer.