diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-03 20:57:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-03 20:57:30 +0200 |
commit | 9920ecc04b87cab3968f7f0c286b264bd31e132f (patch) | |
tree | e38cf67b782df089075d9c34269cc88d313fea2b /sys/src/libc/arm64/_seek.c | |
parent | 59ff04ddb1b845bfd8542c886bb42c5cb3112a0b (diff) |
libc: initial arm64 support
Diffstat (limited to 'sys/src/libc/arm64/_seek.c')
-rw-r--r-- | sys/src/libc/arm64/_seek.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/src/libc/arm64/_seek.c b/sys/src/libc/arm64/_seek.c new file mode 100644 index 000000000..d44420db2 --- /dev/null +++ b/sys/src/libc/arm64/_seek.c @@ -0,0 +1,14 @@ +#include <u.h> +#include <libc.h> + +extern int _seek(vlong*, int, vlong, int); + +vlong +seek(int fd, vlong o, int p) +{ + vlong l; + + if(_seek(&l, fd, o, p) < 0) + l = -1LL; + return l; +} |