tst.psinfo1.d (178529) | tst.psinfo1.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 --- 35 unchanged lines hidden (view full) --- 44 printf("session id = %d\n", curpsinfo->pr_sid); 45 printf("real user id = %d\n", curpsinfo->pr_uid); 46 printf("effective user id = %d\n", curpsinfo->pr_euid); 47 printf("real group id = %d\n", curpsinfo->pr_gid); 48 printf("effective group id = %d\n", curpsinfo->pr_egid); 49 printf("address of process = %u\n", curpsinfo->pr_addr); 50 exit (0); 51} | 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 --- 35 unchanged lines hidden (view full) --- 44 printf("session id = %d\n", curpsinfo->pr_sid); 45 printf("real user id = %d\n", curpsinfo->pr_uid); 46 printf("effective user id = %d\n", curpsinfo->pr_euid); 47 printf("real group id = %d\n", curpsinfo->pr_gid); 48 printf("effective group id = %d\n", curpsinfo->pr_egid); 49 printf("address of process = %u\n", curpsinfo->pr_addr); 50 exit (0); 51} |
52 53ERROR 54{ 55 exit(1); 56} |
|