일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- windows forms
- Docker
- C++
- ubuntu
- 프로그래머스
- SSH
- 핑거스타일
- 채보
- label
- Selenium
- error
- YOLO
- mysql
- 컨테이너
- Numpy
- pip
- Linux
- VS Code
- pytorch
- Python
- LIST
- paramiko
- Visual Studio
- OpenCV
- JSON
- C#
- pandas
- 오류
- C
- 기타 연주
- Today
- Total
목록ls 구현 (2)
기계는 거짓말하지 않는다
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bGlF5f/btrcokmFPMH/LLILoYx2jg0vCYdYrrq9Jk/img.png)
Linux ls 명령어 구현 (1) Linux ls 명령어 구현 (1) ls의 옵션 중 –l, -a, -R, -al, -aR, 파이프(-pi)를 구현 코드의 전문이 아닌 일부만 서술 typedef struct info_set { // 파일의 세부정보 저장을 위한 구조체 long link; // 하드링크 개수 long size; // 파일.. machine-does-not-lie.tistory.com lsPipe 함수는 fork를 이용하여 자식 프로세스를 생성하고 dup2 함수를 이용하여 파일 디스크립터를 복제한다. 그리고 execl 함수에 디렉터리 path를 넘겨받는다. execlp 함수에서 command를 받는다. void lsPipe(char * dirpath, char * command, char ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/4FQTy/btrcurLCIAi/nyIFDGET3m2n8LLaFytaN1/img.png)
ls의 옵션 중 –l, -a, -R, -al, -aR, 파이프(-pi)를 구현 코드의 전문이 아닌 일부만 서술 #include #include #include #include #include #include #include #include #include #include #include typedef struct info_set {// 파일의 세부정보 저장을 위한 구조체 long link;// 하드링크 개수 long size;// 파일 크기 long time[4];// 최종상태 변경시간 char permission[11];// 권한 char * UID;// 사용자 ID char * GID;// 그룹 ID char * fname;// 파일 이름 char sympath[512];// 심볼릭 링크 원본 파일 ..