code:suser - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
6806
6807 /*
6808 * Test if the current user is the
6809 * super user.
6810 */
6811 suser()
6812 {
6813
6814 if(u.u_uid == 0)
6815 return(1);
6816 u.u_error = EPERM;
6817 return(0);
6818 }
6819 /* ------------------------- */