diff --git a/photon/libc/sys/magenta/init.c b/photon/libc/sys/magenta/init.c index 644c827..a7e63f6 100644 --- a/photon/libc/sys/magenta/init.c +++ b/photon/libc/sys/magenta/init.c @@ -149,6 +149,8 @@ mx_handle_t m_get_handle(unsigned int type) return rt_handles.exec_vmo; case M_HND_VMO_VDSO: return rt_handles.vdso_vmo; + case M_HND_TASK_SELF: + return rt_handles.task_self; case M_HND_TNL_LDSVC: return rt_handles.ldsvc; case M_HND_TNL_BTSTP: diff --git a/photon/libc/sys/magenta/sys/handles.h b/photon/libc/sys/magenta/sys/handles.h index 8df53d4..c9fc248 100644 --- a/photon/libc/sys/magenta/sys/handles.h +++ b/photon/libc/sys/magenta/sys/handles.h @@ -9,6 +9,7 @@ #define M_HND_VMO_VDSO 0x04u #define M_HND_TNL_LDSVC 0x05u #define M_HND_TNL_BTSTP 0x06u +#define M_HND_TASK_SELF 0x07u extern mx_handle_t m_get_handle(unsigned int type);