System Programming Ch4

๐Ÿ’กย Chap_4 stat, fstat, and lstat #include <sys/stat.h> int stat(const char *pathname, struct stat *buf); int fstat(int filedes, struct stat *buf); int lstat(const char *pathname, struct...

   Oct 21, 2022     4 min read
System Programming Ch3

๐Ÿ’กย Chap_3 File Descriptors ๐Ÿ“Ž File Descriptors os์—์„œ ํ™•์ •๋œ ํŒŒ์ผ ๋””์Šคํฌ๋ฆฝํ„ฐ 0 : ํ‘œ์ค€์ž…๋ ฅ 1 : ํ‘œ์ค€์ถœ๋ ฅ 2 : ํ‘œ์ค€์—๋Ÿฌ ํŒŒ์ผ ๋””์Šคํฌ๋ฆฝํ„ฐ๋ฅผ ๋ฐ˜ํ™˜๋ฐ›์„ ๋•Œ๋Š” 0,1,2๋ฅผ ์ œ์™ธํ•˜๊ณ ...

   Oct 14, 2022     5 min read
System Programming Ch1 - Ch2

๐Ÿ’กย Chap_1 /etc/passwd composed of seven colon-separated fields ๐Ÿ“Ž (๋‹จ๋‹ตํ˜•) ์‚ฌ์šฉ์ž์˜ ์ •๋ณด๋ฅผ 7๊ฐœ์˜ ํ•„๋“œ๋กœ ๊ตฌ๋ถ„ํ•ด์„œ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ํŒŒ์ผ๋ช…์€ ๋ฌด์—‡์ธ๊ฐ€? โ‡’ passwd ๋˜๋Š” /etc/passwd (full path) ๋ฆฌ๋ˆ…์Šค...

   Oct 14, 2022     2 min read