/* return protection mode of the named file */ short int protmode(void) { struct stat stbuf; char inbuf[100]; gets(&inbuf); stat(inbuf, &stbuf); return(stbuf.st_mode&0777); }
Matt Bishop Office: 3059 Engineering Unit II Phone: +1 (530) 752-8060 Fax: +1 (530) 752-4767 Email: [email protected] | Copyright Matt Bishop, 2000. All federal and state copyrights reserved for all original material presented in this course through any medium, including lecture or print. |