VirtualBox

Changeset 8561 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
May 5, 2008 10:13:47 AM (17 years ago)
Author:
vboxsync
Message:

To/FromNative - posix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r8245 r8561  
    215215
    216216
     217RTR3DECL(int) RTFileFromNative(PRTFILE pFile, RTHCINTPTR uNative)
     218{
     219    if (    uNative < 0
     220        ||  (RTFILE)uNative != (RTUINTPTR)uNative)
     221    {
     222        AssertMsgFailed(("%p\n", uNative));
     223        *pFile = NIL_RTFILE;
     224        return VERR_INVALID_HANDLE;
     225    }
     226    *pFile = (RTFILE)uNative;
     227    return VINF_SUCCESS;
     228}
     229
     230
     231RTR3DECL(RTHCINTPTR) RTFileToNative(RTFILE File)
     232{
     233    AssertReturn(File != NIL_RTFILE, -1);
     234    return (RTHCINTPTR)File;
     235}
     236
     237
    217238RTR3DECL(int)  RTFileDelete(const char *pszFilename)
    218239{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette