6 /*===========================================================================*
8 *===========================================================================*/
9 int sys_getinfo(request
, ptr
, len
, ptr2
, len2
)
10 int request
; /* system info requested */
11 void *ptr
; /* pointer where to store it */
12 int len
; /* max length of value to get */
13 void *ptr2
; /* second pointer */
14 int len2
; /* length or process nr */
18 m
.I_REQUEST
= request
;
19 m
.I_ENDPT
= SELF
; /* always store values at caller */
23 m
.I_VAL_LEN2_E
= len2
;
25 return(_kernel_call(SYS_GETINFO
, &m
));
28 /*===========================================================================*
30 *===========================================================================*/
31 int sys_whoami(endpoint_t
*who_ep
, char *who_name
, int len
,
38 m
.I_REQUEST
= GET_WHOAMI
;
43 if((r
= _kernel_call(SYS_GETINFO
, &m
)) != OK
)
46 lenmin
= MIN((size_t) len
, sizeof(m
.GIWHO_NAME
)) - 1;
48 strncpy(who_name
, m
.GIWHO_NAME
, lenmin
);
49 who_name
[lenmin
] = '\0';
51 *priv_flags
= m
.GIWHO_PRIVFLAGS
;