| 916 | } |
| 917 | |
| 918 | long SysGetCWD(regs64_t* r){ |
| 919 | char* buf = (char*)SC_ARG0(r); |
| 920 | size_t sz = SC_ARG1(r); |
| 921 | |
| 922 | char* workingDir = Scheduler::GetCurrentProcess()->workingDir; |
| 923 | if(strlen(workingDir) > sz) { |
| 924 | return 1; |
| 925 | } else { |
| 926 | strcpy(buf, workingDir); |
| 927 | return 0; |
| 928 | } |
| 929 | |
| 930 | return 0; |
| 931 | } |
| 932 | |
| 933 | long SysWaitPID(regs64_t* r){ |
| 934 | uint64_t pid = SC_ARG0(r); |
nothing calls this directly
no test coverage detected