Post #2116763
2026-03-22 21:04 UTC
@climagic In a `strace` log I’ve found the `readlink` syscall and it gives a alphanumeric string (0x7fff6da42f80) I think is a buffer. Here is the line from the log:
`readlink("/home", 0x7fff6da42f80, 1023) = -1 EINVAL (Invalid argument)`
I found some info in the `man readlink.2`:
“ssize_t readlink(const char *restrict pathname, char buf[restrict .bufsiz], size_t bufsiz);”
If you have the time can you offer some sources I can read for a better understanding?
Thank you for your time.
Replies (2)
-
@Yung_Lyun@mastodon.social 2026-03-22 21:23
@climagic Okay, looking at `mmap` and `mprotect` man pages, is that a memory address followed by the size?
-
@jgoerzen@floss.social 2026-03-23 02:16
@Yung_Lyun @climagic On mobile, but this is to be expected if /home isn't a symlink. https://www.man7.org/linux/man-pages/man2/readlink.2.html