How does one adds parameters to a native call? Lik...
# kotlin-native
b
How does one adds parameters to a native call? Like there is
fun realpath(arg0: String?, arg1: CValuesRef<stat>?): Int
In the console, there are multiple params like
--logical
,
--zero
, etc. How do we set those up when calling from Kotlin native?
e
those aren't part of the libc call, they're implemented by the realpath binary
b
Doesn't that mean I should be able to pass parameters to that binary?
I see that POSIX doesn't define those anyway https://man7.org/linux/man-pages/man3/realpath.3.html
e
the --logical, --zero parameters are part of realpath(1), not realpath(3)
b
I see, thank you!