-
Notifications
You must be signed in to change notification settings - Fork 3
Header updates 2025 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
johnbaumann
wants to merge
8
commits into
master
Choose a base branch
from
header_updates_2025
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
34181d4
Fix gte_gpl0 and gte_gpl0_b macros
johnbaumann 8a7275e
Redirect dupe headers to counterparts in sys
johnbaumann ba9f718
Remove unnecessary include and def guard
johnbaumann 3c23cf2
Update libetc.h, Added R3 and L3 support
Ay91169 0ef7075
Replace NULL and size_t def/usage with C std lib
johnbaumann 5ff2b2c
Remove null/size defs, make strdup macro safer
johnbaumann a472a4b
Add C23 version check for variadic functions
johnbaumann b2b2874
Tidy L3/R3 alias
johnbaumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1 @@ | ||
| /* | ||
| * Error codes | ||
| * $RCSfile: errno.h,v $ | ||
| * $Id: errno.h,v 1.3 1995/02/28 10:02:53 yoshi Exp $ | ||
| */ | ||
| /* | ||
| * $PSLibId: Run-time Library Release 4.7$ | ||
| */ | ||
|
|
||
| #ifndef _ERRNO_H | ||
| #define _ERRNO_H | ||
|
|
||
| /* Error codes */ | ||
|
|
||
| #define EPERM 1 /* Not owner */ | ||
| #define ENOENT 2 /* No such file or directory */ | ||
| #define ESRCH 3 /* No such process */ | ||
| #define EINTR 4 /* Interrupted system call */ | ||
| #define EIO 5 /* I/O error */ | ||
| #define ENXIO 6 /* No such device or address */ | ||
| #define E2BIG 7 /* Arg list too long */ | ||
| #define ENOEXEC 8 /* Exec format error */ | ||
| #define EBADF 9 /* Bad file number */ | ||
| #define ECHILD 10 /* No children */ | ||
| #define EAGAIN 11 /* No more processes */ | ||
| #define ENOMEM 12 /* Not enough core */ | ||
| #define EACCES 13 /* Permission denied */ | ||
| #define EFAULT 14 /* Bad address */ | ||
| #define ENOTBLK 15 /* Block device required */ | ||
| #define EBUSY 16 /* Mount device busy */ | ||
| #define EEXIST 17 /* File exists */ | ||
| #define EXDEV 18 /* Cross-device link */ | ||
| #define ENODEV 19 /* No such device */ | ||
| #define ENOTDIR 20 /* Not a directory*/ | ||
| #define EISDIR 21 /* Is a directory */ | ||
| #define EINVAL 22 /* Invalid argument */ | ||
| #define ENFILE 23 /* File table overflow */ | ||
| #define EMFILE 24 /* Too many open files */ | ||
| #define ENOTTY 25 /* Not a typewriter */ | ||
| #define ETXTBSY 26 /* Text file busy */ | ||
| #define EFBIG 27 /* File too large */ | ||
| #define ENOSPC 28 /* No space left on device */ | ||
| #define ESPIPE 29 /* Illegal seek */ | ||
| #define EROFS 30 /* Read-only file system */ | ||
| #define EFORMAT 31 /* Bad file format */ | ||
| #define EPIPE 32 /* Broken pipe */ | ||
|
|
||
| /* math software */ | ||
| #define EDOM 33 /* Argument too large */ | ||
| #define ERANGE 34 /* Result too large */ | ||
|
|
||
| /* non-blocking and interrupt i/o */ | ||
| #define EWOULDBLOCK 35 /* Operation would block */ | ||
| #define EINPROGRESS 36 /* Operation now in progress */ | ||
| #define EALREADY 37 /* Operation already in progress */ | ||
|
|
||
| extern int errno; | ||
|
|
||
| #endif /* _ERRNO_H */ | ||
| #include <sys/errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1 @@ | ||
| /* | ||
| * File:fcntl.h | ||
| */ | ||
| /* | ||
| * $PSLibId: Run-time Library Release 4.7$ | ||
| */ | ||
|
|
||
| #ifndef _SYS_FCNTL_H | ||
| #define _SYS_FCNTL_H | ||
|
|
||
| /* flags */ | ||
| #define FREAD 0x0001 /* readable */ | ||
| #define FWRITE 0x0002 /* writable */ | ||
| #define FNBLOCK 0x0004 /* non-blocking reads */ | ||
| #define FRLOCK 0x0010 /* read locked (non-shared) */ | ||
| #define FWLOCK 0x0020 /* write locked (non-shared) */ | ||
| #define FAPPEND 0x0100 /* append on each write */ | ||
| #define FCREAT 0x0200 /* create if nonexistant */ | ||
| #define FTRUNC 0x0400 /* truncate to zero length */ | ||
| #define FSCAN 0x1000 /* scan type */ | ||
| #define FRCOM 0x2000 /* remote command entry */ | ||
| #define FNBUF 0x4000 /* no ring buf. and console interrupt */ | ||
| #define FASYNC 0x8000 /* asyncronous i/o */ | ||
|
|
||
| #endif /* _SYS_FCNTL_H */ | ||
| #include <sys/fcntl.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1 @@ | ||
| /* | ||
| * File:file.h | ||
| */ | ||
| /* | ||
| * $PSLibId: Run-time Library Release 4.7$ | ||
| */ | ||
|
|
||
| #ifndef _SYS_FILE_H | ||
| #define _SYS_FILE_H | ||
|
|
||
| #include <sys/fcntl.h> | ||
|
|
||
| /* Flag for open() */ | ||
| #define O_RDONLY FREAD | ||
| #define O_WRONLY FWRITE | ||
| #define O_RDWR FREAD|FWRITE | ||
| #define O_CREAT FCREAT /* open with file create */ | ||
| #define O_NOBUF FNBUF /* no device buffer and console interrupt */ | ||
| #define O_NBLOCK FNBLOCK /* non blocking mode */ | ||
| #define O_NOWAIT FASYNC /* asyncronous i/o */ | ||
|
|
||
| #ifndef SEEK_SET | ||
| #define SEEK_SET 0 | ||
| #endif | ||
| #ifndef SEEK_CUR | ||
| #define SEEK_CUR 1 | ||
| #endif | ||
| #ifndef SEEK_END | ||
| #define SEEK_END 2 | ||
| #endif | ||
|
|
||
| #endif /* _SYS_FILE_H */ | ||
|
|
||
| #include <sys/file.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1 @@ | ||
| /* | ||
| * File:ioctl.h | ||
| */ | ||
| /* | ||
| * $PSLibId: Run-time Library Release 4.7$ | ||
| */ | ||
|
|
||
| #ifndef _SYS_IOCTL_H | ||
| #define _SYS_IOCTL_H | ||
|
|
||
|
|
||
| #ifndef NULL | ||
| #define NULL 0 | ||
| #endif | ||
|
|
||
| #ifndef EOF | ||
| #define EOF (-1) /* EOF from getc() */ | ||
| #endif | ||
|
|
||
| /* general */ | ||
| #define FIOCNBLOCK (('f'<<8)|1) /* set non-blocking io */ | ||
| #define FIOCSCAN (('f'<<8)|2) /* scan for input */ | ||
|
|
||
| /* tty and sio */ | ||
| #define TIOCRAW (('t'<<8)|1) /* disable xon/xoff control */ | ||
| #define TIOCFLUSH (('t'<<8)|2) /* flush input buffer */ | ||
| #define TIOCREOPEN (('t'<<8)|3) /* reopen */ | ||
| #define TIOCBAUD (('t'<<8)|4) /* set baud rate */ | ||
| #define TIOCEXIT (('t'<<8)|5) /* console interrup */ | ||
| #define TIOCDTR (('t'<<8)|6) /* control DTR line */ | ||
| #define TIOCRTS (('t'<<8)|7) /* control RTS line */ | ||
| #define TIOCLEN (('t'<<8)|8) /* stop<<16 | char */ | ||
| /* stop 0:none 1:1 2:1.5 3:2bit */ | ||
| /* char 0:5 1:6 2:7 3:8bit */ | ||
| #define TIOCPARITY (('t'<<8)|9) /* parity 0:none 1:e 3:o */ | ||
| #define TIOSTATUS (('t'<<8)|10) /* return status */ | ||
| #define TIOERRRST (('t'<<8)|11) /* error reset */ | ||
| #define TIOEXIST (('t'<<8)|12) /* exist test with DTR/CTS */ | ||
| #define TIORLEN (('t'<<8)|13) /* receive buffer length */ | ||
|
|
||
| /* disk */ | ||
| #define DIOFORMAT (('d'<<8)|1) /* format */ | ||
|
|
||
| #endif /* _SYS_IOCTL_H */ | ||
| #include <sys/ioctl.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,6 @@ | |
| #ifndef FALSE | ||
| #define FALSE 0 | ||
| #endif | ||
| #ifndef NULL | ||
| #define NULL 0 | ||
| #endif | ||
|
|
||
|
|
||
| #define PadStateDiscon 0 | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The term 'cius' appears to be a typo. Please verify and correct it if necessary.