Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 307 Weeks Ago, 4 Days Ago |
Questions Answered: | 66690 |
Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Figure 1-23 shows that a number of UNIX system calls have no Win32 API equivalents. For each of the calls listed as having no Win32 equivalent, what are the consequences for a programmer of converting a UNIX program to run under Windows?
UNIX |
Win32 |
Description |
fork |
CreateProcess |
Create a new process |
waitpid |
WaitForSingleObject |
Can wait for a process to exit |
execve |
(none) |
CreateProcess = fork + execve |
exit |
ExitProcess |
Terminate execution |
Gpen |
CreateFile |
Create a file or open an existing file |
close |
CloseHandle |
Close a file |
read |
ReadFile |
Read data from a file |
write |
WriteFile |
Write data to a file |
Iseek |
SetFilePointer |
Move the file pointer |
stat |
GetFileAttributesEx |
• Get various file attributes |
mkdir |
CreateDirectory |
Create a new directory |
rmdir |
RemoveDi rectory |
Remove an empty directory |
link |
(none) |
Win32 does not support links |
unlink |
DeleteFile |
Destroy an existing file |
mount |
(none) |
Win32 does not support mount |
umount |
(none) |
Win32 does not support mount |
crtdir |
SetCurrentDirectory |
Change the current working directory |
chmod |
(none) |
Win32 does not support security (although NT does) |
kill |
(none) |
Win32 does not support signals |
time |
GetLocalTime |
Get the current time |
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll