1 / 6

리눅스 시스템 프로그래밍 연습문제 3-2

리눅스 시스템 프로그래밍 연습문제 3-2. 2006242071 유승윤. 목차. 소스 설명 함수 설명 실행. long atlo(char *s) s 에 의하여 지정된 스트링을 long 으로 변환하는 함수. void perror(const char*s) 최근 실행된 함수가 설정한 errno 값을 참조하여 에러 메시지를 출력 (s 문자열 출력후 errno 값에 해당하는 메시지출력 ). long ulimit 함수 : 사용자 한도 값을 얻어내거나 설정 . ulimit(1,0) : get

zuri
Download Presentation

리눅스 시스템 프로그래밍 연습문제 3-2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 리눅스 시스템 프로그래밍연습문제 3-2 2006242071 유승윤

  2. 목차 • 소스 설명 • 함수 설명 • 실행

  3. long atlo(char *s) s에 의하여 지정된 스트링을 long 으로 변환하는 함수 void perror(const char*s) 최근 실행된 함수가 설정한 errno 값을 참조하여 에러 메시지를 출력 (s문자열 출력후 errno값에 해당하는 메시지출력) long ulimit 함수: 사용자 한도 값을 얻어내거나 설정. ulimit(1,0) : get ulimit(2,0) : set

  4. 호출 프로세스의 기억 공간에 새로운 프로그램을 적재함으로써, 호출 프로세스를 변형 시킨다. exec가 성공적으로 수행되면 호출 프로그램은 완전히 새로운 프로그램으로 대치되고, 이어 그 프로그램의 처음부터 수행이 시작된다.   그 결과는 새로운 프로세스로 간주할 수 있지만, 이 프로세스는 자기를 호출한 프로세스의 식별번호를 그대로 유지한다.

  5. Ex3-2 파일 크기 출력 argv[1] 으로파일 크기 변환 Ex3-2 자식 프로세스 argv[2] 로 변형

  6. 실행 화면

More Related