102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
file_descriptors.c File Reference
#include "pcdogs/image/globals.h"
#include "pcdogs/image/storage.h"
#include "pcdogs/platform/enums.h"
#include "pcdogs/runtime/enums.h"
#include "pcdogs/runtime/constants.h"
#include "pcdogs/runtime/functions.h"
#include "pcdogs/runtime/globals.h"
#include "pcdogs/runtime/types.h"
#include <intrin.h>
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Macros

#define nullptr   0

Functions

int32_t CRT_commit (int32_t file_no)
int32_t CRT_write (int32_t file_no, void const *buffer, uint32_t byte_count)
int32_t CRT_close (int32_t file_no)
void _ioinit ()
int32_t CRT_lseek (int32_t fd, int32_t offset, int32_t origin)
int32_t CRT_read (int32_t fd, void *buffer, uint32_t count)
int32_t CRT_isatty (int32_t fd)
int32_t _alloc_osfhnd (void)
int32_t _set_osfhnd (int32_t fd, HANDLE os_handle)
int32_t _free_osfhnd (int32_t fd)
HANDLE CRT_get_osfhandle (int32_t fd)
void _dosmaperr (uint32_t os_error_code)
int32_t CRT_sopen (char const *filename, int32_t oflag, int32_t shflag,...)
int32_t CRT_chsize (int32_t fd, int32_t size)
int32_t CRT_setmode (int32_t fd, int32_t mode)

Macro Definition Documentation

◆ nullptr

#define nullptr   0

Definition at line 14 of file file_descriptors.c.

Function Documentation

◆ _alloc_osfhnd()

int32_t _alloc_osfhnd ( void )

Definition at line 559 of file file_descriptors.c.

◆ _dosmaperr()

void _dosmaperr ( uint32_t os_error_code)

Definition at line 687 of file file_descriptors.c.

◆ _free_osfhnd()

int32_t _free_osfhnd ( int32_t fd)

Definition at line 626 of file file_descriptors.c.

◆ _ioinit()

void _ioinit ( )

Definition at line 185 of file file_descriptors.c.

◆ _set_osfhnd()

int32_t _set_osfhnd ( int32_t fd,
HANDLE os_handle )

Definition at line 599 of file file_descriptors.c.

◆ CRT_chsize()

int32_t CRT_chsize ( int32_t fd,
int32_t size )

Definition at line 931 of file file_descriptors.c.

◆ CRT_close()

int32_t CRT_close ( int32_t file_no)

Definition at line 136 of file file_descriptors.c.

◆ CRT_commit()

int32_t CRT_commit ( int32_t file_no)

Definition at line 18 of file file_descriptors.c.

◆ CRT_get_osfhandle()

HANDLE CRT_get_osfhandle ( int32_t fd)

Definition at line 669 of file file_descriptors.c.

◆ CRT_isatty()

int32_t CRT_isatty ( int32_t fd)

Definition at line 549 of file file_descriptors.c.

◆ CRT_lseek()

int32_t CRT_lseek ( int32_t fd,
int32_t offset,
int32_t origin )

Definition at line 333 of file file_descriptors.c.

◆ CRT_read()

int32_t CRT_read ( int32_t fd,
void * buffer,
uint32_t count )

Definition at line 374 of file file_descriptors.c.

◆ CRT_setmode()

int32_t CRT_setmode ( int32_t fd,
int32_t mode )

Definition at line 1005 of file file_descriptors.c.

◆ CRT_sopen()

int32_t CRT_sopen ( char const * filename,
int32_t oflag,
int32_t shflag,
... )

Definition at line 730 of file file_descriptors.c.

◆ CRT_write()

int32_t CRT_write ( int32_t file_no,
void const * buffer,
uint32_t byte_count )

Definition at line 42 of file file_descriptors.c.