ulstack.c; all but copying stack