save only global processes on global zone ps

Save only processes that are running in the global zone on Solaris.
If at all possible, use PrependItem(); adding N items to a list this way costs O(N) whereas with AppendItem() the cost is O(N*N).  If you care about order, still use PrependItem, starting with an empty Item-list, but use ReverseItemList() on it once you've added all items; if you wanted to append to a pre-existing list, ConcatItemLists() can now append the whole new list to the prior list cheaply.  This still all comes out O(N), albeit O(3*N) perhaps, which is way cheaper than O(N*N) for large N.