| 27 | } |
| 28 | |
| 29 | int GetNextProcessInfo(uint64_t* pid, lemon_process_info_t& pInfo){ |
| 30 | long ret = 1; |
| 31 | if((ret = syscall(SYS_GET_NEXT_PROCESS_INFO, pid, &pInfo, 0, 0, 0)) < 0){ |
| 32 | errno = -ret; |
| 33 | return -1; |
| 34 | } |
| 35 | |
| 36 | return ret; |
| 37 | } |
| 38 | |
| 39 | void GetProcessList(std::vector<lemon_process_info_t>& list){ |
| 40 | uint64_t pid = 0; |