Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Simple Shell

Description

Diagram for the project the Simple Shell
Bertrand Bwashi
Flowchart by Bertrand Bwashi, updated more than 1 year ago More Less
Leidy Saldana
Created by Leidy Saldana over 5 years ago
Bertrand Bwashi
Copied by Bertrand Bwashi almost 4 years ago
0
0
1 2 3 4 5 (0)

Resource summary

Flowchart nodes

  • Init SHELL
  • Issue prompt
  • READ LINE
  • ENTER
  • Store characters in buffer
  • EOF
  • END
  • Strtok: tokenize string in buffer
  • "Error" Malloc
  • Command [0] "exit"
  • FORK
  • CHILDREN PID
  • PARENT PPID
  • WAIT
  • Stat Return 0, if the file is Found.
  • Fork "error"
  • Stat == 0 Stat(Command[0])
  • EXECVE execve (command [0], command  NULL)
  • get_ent "PATH"
  • Strtok: Split the   string and each folder  its storage in folders.
  • Folders [i] != NULL
  • return (Command[ 0])
  • Found File
  • readdir Read the files
  • Folder [i] => Function strcat (function "i") strcat (function, dir -> d_name
  • END
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

KEE2
harrym
Cognitive Psychology - Loftus and Palmer (1974)
Robyn Chamberlain
Prueba de Aptitud Académica - Lenguaje
Teresa Nadal
AS AQA Accounting Unit 1 - FLASH CARDS
Harshad Karia
GCSE French - The Environment
Abby B
GCSE AQA Biology 2 Enzymes, Digestion & Enzyme Uses
Lilac Potato
Chemistry 2
Peter Hoskins
untitled 2
lola_smily
SalesForce ADM 201 Study Quiz
Brianne Wright
Mapa Mental para Resumir y Conectar Ideas
Ricardo Padilla Alcantara