Deleted Added
full compact
tst.psinfo.d (178529) tst.psinfo.d (178534)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 39 unchanged lines hidden (view full) ---

48 printf("session id = %d\n", curpsinfo->pr_sid);
49 printf("real user id = %d\n", curpsinfo->pr_uid);
50 printf("effective user id = %d\n", curpsinfo->pr_euid);
51 printf("real group id = %d\n", curpsinfo->pr_gid);
52 printf("effective group id = %d\n", curpsinfo->pr_egid);
53 printf("address of process = %u\n", curpsinfo->pr_addr);
54 exit (0);
55}
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 39 unchanged lines hidden (view full) ---

48 printf("session id = %d\n", curpsinfo->pr_sid);
49 printf("real user id = %d\n", curpsinfo->pr_uid);
50 printf("effective user id = %d\n", curpsinfo->pr_euid);
51 printf("real group id = %d\n", curpsinfo->pr_gid);
52 printf("effective group id = %d\n", curpsinfo->pr_egid);
53 printf("address of process = %u\n", curpsinfo->pr_addr);
54 exit (0);
55}
56
57ERROR
58{
59 exit(1);
60}