System&Architecture
文章平均质量分 81
czl_Serena
这个作者很懒,什么都没留下…
展开
-
Integer promotions in C
#include int main() { char c= 0xf1; unsigned char uc= 0xf1; printf(”c= %c\n", c); printf(”uc= %c\n", uc); if(c== uc) printf("Same\n"); else printf("NotSame\n"); return0; }c and cu have same binary pr原创 2018-01-19 05:05:49 · 335 阅读 · 0 评论 -
Project 3 - A simple virus
1. real ID, effective ID, saved IDThe real UID ( ruid ) and real GID ( rgid ) identify the real owner of the process and affect the permissions for sending signals. A process without superuser privile...原创 2018-03-25 05:00:11 · 210 阅读 · 0 评论 -
Project 2: I/O and Library
Implement three routines: insert, delete, and extract w/o issues when operating in the middle of a file.1. System callsopen(), lseek(), read(), write().ftruncate() to modify file size.See detail in UN...原创 2018-03-04 23:35:54 · 254 阅读 · 0 评论