Today - PowerPoint PPT Presentation

About This Presentation
Title:

Today

Description:

Title: PowerPoint Presentation Author: w_fang Last modified by: xin yuan Created Date: 9/24/2001 5:16:46 PM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 7
Provided by: wfa7
Learn more at: https://www.oocities.org
Category:
Tags: today

less

Transcript and Presenter's Notes

Title: Today


1
  • Todays topic
  • Discuss Project No. 2.
  • Summarize UNIX system calls we covered so far.

2
  • File operations
  • open, close, read write, unlink, dup, dup2.
  • open with O_CREAT and O_EXCL.
  • How to redirect the standard input/output/error?
  • why is open/close necessary?

3
  • process environment
  • Command line arguments argc, argv
  • environ and getenv()
  • getpid(), getuid(), getpwuid(), getppid
  • How does a program access the second (command
    line) argument?
  • How does a process access the variable you set in
    shell using commands such as setenv TERM vt100?
  • How does a process know its parents process id?
    How does a parent know its childrens process ids?

4
  • Process management
  • fork, exit, wait, waitpid, execv
  • How can a parent process know whether its child
    has executed successfully?
  • How to determine whether execv runs a command
    successfully?
  • Inter-process communication
  • pipe,
  • How to implement ps grep xyuan more
  • Signal
  • Kill, signal, sigaction, sigfillset, sigemptyset,
    sigaddset, sigdelset, sigismember, sigprocmask,
    alarm

5
  • Inter-process communication
  • pipe,
  • How to implement ps grep xyuan more
  • Signal
  • Kill, signal, sigaction, sigfillset, sigemptyset,
    sigaddset, sigdelset, sigismember, sigprocmask,
    alarm
  • How to send signal to a process?
  • How to catch a signal?
  • How to block a signal?

6
  • Terminal I/O
  • canonical mode
  • noncanonical mode
  • tcgetattr, tcsetattr
  • termios data structure
  • Misc.
  • system, ctime, time,
Write a Comment
User Comments (0)
About PowerShow.com