diff options
Diffstat (limited to 'include/user')
-rw-r--r-- | include/user/kernel/clib.h | 1 | ||||
-rw-r--r-- | include/user/kernel/processmgr.h | 3 | ||||
-rw-r--r-- | include/user/kernel/threadmgr.h | 3 | ||||
-rw-r--r-- | include/user/registrymgr.h | 4 |
4 files changed, 9 insertions, 2 deletions
diff --git a/include/user/kernel/clib.h b/include/user/kernel/clib.h index a7aa75e..72f60e7 100644 --- a/include/user/kernel/clib.h +++ b/include/user/kernel/clib.h @@ -21,6 +21,7 @@ int sceClibTolower(char ch); int sceClibToupper(char ch); int sceClibPrintf(const char *fmt, ...); +int sceClibVprintf(const char *fmt, va_list args); int sceClibSnprintf(char *dst, SceSize dst_max_size, const char *fmt, ...); int sceClibVsnprintf(char *dst, SceSize dst_max_size, const char *fmt, va_list args); diff --git a/include/user/kernel/processmgr.h b/include/user/kernel/processmgr.h index 272fe51..70e50b6 100644 --- a/include/user/kernel/processmgr.h +++ b/include/user/kernel/processmgr.h @@ -8,6 +8,9 @@ extern "C" { #endif +/** UID of the current process */ +#define SCE_KERNEL_PROCESS_ID_SELF 0 + typedef enum SceKernelProcessPrioritySystem { SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_HIGH = 32, SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_DEFAULT = 96, diff --git a/include/user/kernel/threadmgr.h b/include/user/kernel/threadmgr.h index c5d93b7..9d42eb4 100644 --- a/include/user/kernel/threadmgr.h +++ b/include/user/kernel/threadmgr.h @@ -12,6 +12,9 @@ typedef SceUInt64 SceKernelSysClock; /* Threads. */ +/** UID of the current thread */ +#define SCE_KERNEL_THREAD_ID_SELF 0 + typedef int (*SceKernelThreadEntry)(SceSize args, void *argp); /** Additional options used when creating threads. */ diff --git a/include/user/registrymgr.h b/include/user/registrymgr.h index cc363b5..dbf4946 100644 --- a/include/user/registrymgr.h +++ b/include/user/registrymgr.h @@ -59,11 +59,11 @@ int sceRegMgrSetKeyBin(const char *category, const char *name, void *buf, int si * * @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM) * @param name - Name of the key - * @param buf - Pointer to an int buffer to hold the value + * @param value - Value to set to * * @return 0 on success, < 0 on error */ -int sceRegMgrSetKeyInt(const char* category, const char* name, int buf); +int sceRegMgrSetKeyInt(const char* category, const char* name, int value); /** * Set a key's information by category and name |