summaryrefslogtreecommitdiff
path: root/libpsx/src
Commit message (Collapse)AuthorAgeFilesLines
* libpsx: Fix const-correctness for fwrite(3)Xavier Del Campo Romero2023-11-291-2/+2
| | | | | According to C99 ยง7.19.8.2p1, fwrite(3) is expected to take a const void *, and not void *.
* libpsx: Add rewind(3)Xavier Del Campo Romero2023-11-291-0/+6
|
* libc.c: do not lseek(2) on partial sector readsXavier Del Campo Romero2022-02-071-1/+0
|
* spu.c: do not assume 64-byte blocks on SsUploadXavier Del Campo Romero2021-12-081-4/+6
|
* libc.c: fix ptr when partially reading sectorXavier Del Campo Romero2021-12-081-0/+1
|
* QueryPAD: remove apparently useless waitXavier Del Campo Romero2021-10-241-0/+2
|
* Fix vprintf(3)Xavier Del Campo Romero2021-10-241-2/+2
| | | | TODO: what did this actually fix?
* Provide buffered fread(3)Xavier Del Campo Romero2021-10-241-61/+127
| | | | | | | | | In order to reduce calls to seek(2) (which are very expensive), this commit keeps a sector-sized cache for each available FILE instance, except from the standard streams, of course. As expected, this allows calls to fread(3) to react much faster when small, contiguous chunks are read.
* fopen_internal: return ENOENT on file not foundXavier Del Campo Romero2021-10-241-0/+1
| | | | | This is actually expected by open(2), but I do not expect the BIOS implementation to conform.
* lib.c: reduce NUM_OF_FILE_STRUCTSXavier Del Campo Romero2021-10-241-1/+1
| | | | Number has been reduced to a minimum to save memory.
* Provide conforming interface for fwrite(3)Xavier Del Campo Romero2021-10-241-1/+2
|
* Provide implementations for strtoul(3) and strtoull(3)Xavier Del Campo Romero2021-10-241-0/+61
|
* Provide implementation for perror(3)Xavier Del Campo Romero2021-10-241-0/+5
|
* Provide implementation for fprintf(3)Xavier Del Campo Romero2021-10-241-0/+16
|
* Add conforming interfaces of standard streamsXavier Del Campo Romero2021-10-241-4/+4
|
* malloc: remove useless gotoXavier Del Campo Romero2021-10-241-3/+1
|
* fmode_to_desmode: remove annoying debug messagesXavier Del Campo Romero2021-10-241-4/+0
|
* Set conforming interface for vprintf(3)Xavier Del Campo Romero2021-10-241-1/+1
|
* fopen_internal: do not resolve cdromL by defaultXavier Del Campo Romero2021-10-241-0/+5
| | | | | This avoids calling malloc(3) and thus allowing the linker to remove the heap implementation from memory.c via --gc-sections.
* Provide word-aligned access to memcpy(3) and memset(3)Xavier Del Campo Romero2021-10-241-11/+55
|
* Use memset(3) on calloc(3)Xavier Del Campo Romero2021-10-241-7/+2
|
* Clear BSS space using memset(3)Xavier Del Campo Romero2021-10-241-5/+6
|
* Lazy-initialize heapXavier Del Campo Romero2021-10-243-13/+10
|
* Fix non-standard memset definitionXavier Del Campo Romero2021-01-031-2/+2
|
* Add implementation for strtok_rXavier Del Campo Romero2021-01-031-1/+45
|
* Provide experimental (non-working) mouse supportXavier Del Campo Romero2021-01-031-0/+21
|
* Fix const-correctness on psxgpuXavier Del Campo Romero2021-01-033-23/+46
| | | | - Added GsSetDrawEnv_DMA and GsUploadCLUT.
* Qualify local variables as staticXavier Del Campo Romero2021-01-011-3/+3
|
* Remove trailing whitespacesXavier Del Campo Romero2020-11-091-75/+75
|
* Implement strerror(3) and strerror_r(3)Xavier Del Campo Romero2020-11-081-8/+105
| | | | Error descriptions obtained from include/errno.h.
* Fix buffer overflow on GsLoadFontXavier Del Campo Romero2020-11-071-1/+1
| | | | LoadImage accesses img[0..15] when w=16, h=1, causing it to read past `pal`.
* Solved issue with pads under real hwXavi Del Campo2020-02-011-4/+4
|
* Enabled debugging symbolsXavi Del Campo2020-02-011-44/+47
|
* Fixed typos and invalid width '384'Xavi Del Campo2020-01-311-3/+3
|
* Added -ffunction/data-sections and -Os to libpsxXavi Del Campo2020-01-311-59/+59
|
* Added PSX_PollPad_Fast_Ex() from psxsdk-20150729 forkXavi Del Campo2020-01-312-114/+171
| | | | Also, added extern "C" on some header files. Some are still missing.
* Solved const-correctness issuesXavi Del Campo2020-01-312-249/+249
|
* Imported pristine psxsdk-20190410 from official repoXavi Del Campo2020-01-3133-0/+7804