comparison dep/animia/src/fd/xnu.cc @ 155:d2bbb5773616

dep/animia: add quartz backend for windows
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 15:24:39 -0500
parents d43d68408d3c
children cdf79282d647
comparison
equal deleted inserted replaced
154:d43d68408d3c 155:d2bbb5773616
23 23
24 int st = proc_pidinfo(pid, PROC_PIDTBSDINFO, 0, &proc, PROC_PIDTBSDINFO_SIZE); 24 int st = proc_pidinfo(pid, PROC_PIDTBSDINFO, 0, &proc, PROC_PIDTBSDINFO_SIZE);
25 if (st != PROC_PIDTBSDINFO_SIZE) 25 if (st != PROC_PIDTBSDINFO_SIZE)
26 return ""; 26 return "";
27 27
28 /* fixme: is this right? pbi_comm is an alternative, but it reduces the string size to
29 16 chars. does pbi_name do the same, or is it different? */
30 return proc.pbi_name; 28 return proc.pbi_name;
31 } 29 }
32 30
33 /* this is a cleaned up version of a function from... Apple? 31 /* this is a cleaned up version of a function from... Apple?
34 ...anyway, what it essentially does is gets the size and stuff from 32 ...anyway, what it essentially does is gets the size and stuff from