1 | // SPDX-License-Identifier: GPL-3.0-or-later |
---|---|
2 | |
3 | #include "mosapi.h" |
4 | |
5 | #include <mos/moslib_global.h> |
6 | |
7 | int main(int, char **) |
8 | { |
9 | char cwdbuf[4096] = { 0 }; |
10 | if (syscall_vfs_getcwd(buf: cwdbuf, buf_size: sizeof(cwdbuf)) < 0) |
11 | { |
12 | puts(s: "pwd: getcwd failed"); |
13 | return 1; |
14 | } |
15 | |
16 | puts(s: cwdbuf); |
17 | return 0; |
18 | } |
19 |