nckernel
0.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
common
src
common.c
Go to the documentation of this file.
1
#include <
stdint.h
>
2
#include <
sys/types.h
>
3
#include <
stdio.h
>
4
#include <
stdlib.h
>
5
#include <
stddef.h
>
6
7
#include <
list.h
>
8
#include <
object.h
>
9
#include <
thread.h
>
10
11
uint32_t
common_get_tcb_sz
(
void
)
12
{
13
char
*tmp;
14
uint32_t
tcb_sz;
15
16
tmp =
getenv
(
"tcb_sz"
);
17
if
(!tmp) {
18
return
0;
19
}
20
21
tcb_sz =
atoi
(tmp);
22
if
(tcb_sz <
sizeof
(
struct
local_tcb
)) {
23
return
0;
24
}
25
26
return
tcb_sz;
27
}
28
29
/* End of a file */
Generated on Thu Nov 7 2013 02:45:25 for nckernel by
1.8.4