sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
init.c
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
15
16
void
__init_cwd(
int
argc,
char
** argv);
17
void
_libcglue_timezone_update();
18
void
_libcglue_rtc_update();
19
void
__fdman_init();
20
void
pthread_init();
21
void
pthread_terminate();
22
void
__fdman_deinit();
23
void
__locks_init();
24
void
__locks_deinit();
25
26
int
chdir(
const
char
*path);
27
28
/* Note: This function is being called from _init and it is overrided when compiling with -pg */
29
__attribute__
((weak))
30
void
__gprof_init() {}
31
32
/* Note: This function is being called from _exit and it is overrided when compiling with -pg */
33
__attribute__
((weak))
34
void
__gprof_cleanup() {}
35
36
/* Note: This function is being called from __libcglue_init.
37
* It is a weak function because can be override by user program
38
*/
39
__attribute__
((weak))
40
void
__libpthreadglue_init()
41
{
42
pthread_init();
43
}
44
45
/* Note: This function is being called from __libcglue_deinit.
46
* It is a weak function because can be override by user program
47
*/
48
__attribute__
((weak))
49
void
__libpthreadglue_deinit()
50
{
51
pthread_terminate();
52
}
53
54
__attribute__
((weak))
55
void
_libcglue_init()
56
{
57
/* Initialize lock API */
58
__locks_init();
59
60
/* Initialize filedescriptor management */
61
__fdman_init();
62
63
/* Initialize pthread library */
64
__libpthreadglue_init();
65
66
_libcglue_timezone_update();
67
_libcglue_rtc_update();
68
69
__gprof_init();
70
}
71
72
__attribute__
((weak))
73
void
_libcglue_deinit()
74
{
75
__gprof_cleanup();
76
__libpthreadglue_deinit();
77
__fdman_deinit();
78
__locks_deinit();
79
}
80
81
__attribute__
((weak))
82
void
_libcglue_args_parse(
int
argc,
char
** argv)
83
{
84
/* Initialize cwd from this program's path */
85
__init_cwd(argc, argv);
86
}
87
__attribute__
Definition
gif_registers.h:40
core
libcglue
src
init.c
Generated by
1.18.0