文件名称:myshell.c
介绍说明--下载内容均来自于网络,请自行研究使用
Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
- Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
- Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
myshell.c
__MACOSX
........\._myshell.c