Home
last modified time | relevance | path

Searched refs:linkval (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/sysdeps/unix/sysv/linux/
Ddl-origin.c36 char linkval[PATH_MAX]; in _dl_get_origin() local
40 len = INTERNAL_SYSCALL_CALL (readlink, "/proc/self/exe", linkval, in _dl_get_origin()
41 sizeof (linkval)); in _dl_get_origin()
42 if (! INTERNAL_SYSCALL_ERROR_P (len) && len > 0 && linkval[0] != '[') in _dl_get_origin()
45 assert (linkval[0] == '/'); in _dl_get_origin()
46 while (len > 1 && linkval[len - 1] != '/') in _dl_get_origin()
54 *((char *) __mempcpy (result, linkval, len - 1)) = '\0'; in _dl_get_origin()
/glibc-2.36/sysdeps/unix/sysv/linux/generic/
Ddl-origin.c37 char linkval[PATH_MAX]; in _dl_get_origin() local
42 linkval, sizeof (linkval)); in _dl_get_origin()
43 if (! INTERNAL_SYSCALL_ERROR_P (len) && len > 0 && linkval[0] != '[') in _dl_get_origin()
46 assert (linkval[0] == '/'); in _dl_get_origin()
47 while (len > 1 && linkval[len - 1] != '/') in _dl_get_origin()
55 *((char *) __mempcpy (result, linkval, len - 1)) = '\0'; in _dl_get_origin()