9.25 listprocs

struct procinfo {
    char id[20];
    uint16_t id_len;
    uint16_t ppid;
    uint16_t pid;
    uint32_t uid;
    uint32_t flags;
} __attribute__((packed));

size_t listprocs(struct procinfo *addr, size_t len);

This syscall writes a list of all processes available on the system to addr, which contains len items.

The syscall returns the number of processes in the system in success, and -1 in failure.

The syscall return the requested information on success and -1 on failure. If the requested value can also be -1, errno must be checked.

The errno codes set on failure are: