Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Exit syscall #22

Closed
topnax opened this issue Oct 19, 2020 · 0 comments · Fixed by #24
Closed

Implement Exit syscall #22

topnax opened this issue Oct 19, 2020 · 0 comments · Fixed by #24
Assignees

Comments

@topnax
Copy link
Owner

topnax commented Oct 19, 2020

Specification:

Exit,		//ukonci proces/vlakno
                // IN: cx je exit code

//Navratove kody OS
enum class NOS_Error : uint16_t {
	Success = 0,				//vse v poradku
	Unknown_Filesystem,
	Invalid_Argument,			//neplatna kombinace vstupnich argumentu
	File_Not_Found,				//soubor  nenalezen
	Directory_Not_Empty,		//adresar neni prazdny (a napr. proto nesel smazat)
	Not_Enough_Disk_Space,
	Out_Of_Memory,	
	Permission_Denied,
	IO_Error,
	Unknown_Error = static_cast<uint16_t>(-1)		//doposud neznama chyba		
};

Exit(0) should be implicitly called whenever a cloned program ends.

@topnax topnax added the inprogress The issue is currently being worked on label Oct 19, 2020
@topnax topnax self-assigned this Oct 19, 2020
topnax pushed a commit that referenced this issue Oct 19, 2020
Implemented Exit and Read_Exit_Code syscalls in kernel.
If a program called from shell resulted in other than 0 response code, the user is notified
Passing "test_exit" to echo program tests the Exit syscall, by exiting with RC=8.

Closes #22
Closes #23
@topnax topnax added review Ready to be reviewed and removed inprogress The issue is currently being worked on labels Oct 19, 2020
@topnax topnax removed the review Ready to be reviewed label Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant