#include "c.h"
#include <windows.h>
Go to the source code of this file.
|
ssize_t | pg_pwrite (int fd, const void *buf, size_t size, off_t offset) |
|
◆ pg_pwrite()
ssize_t pg_pwrite |
( |
int |
fd, |
|
|
const void * |
buf, |
|
|
size_t |
size, |
|
|
off_t |
offset |
|
) |
| |
Definition at line 20 of file win32pwrite.c.
22 OVERLAPPED overlapped = {0};
26 handle = (HANDLE) _get_osfhandle(
fd);
27 if (handle == INVALID_HANDLE_VALUE)
34 overlapped.Offset = offset;
35 if (!WriteFile(handle,
buf, size, &result, &overlapped))
static int fd(const char *x, int i)
void _dosmaperr(unsigned long)
References _dosmaperr(), buf, and fd().