libc.obj: update exit #340
2 Participants
Notifications
Due Date
No due date set.
Depends on
#339 libc.obj: add auto build `crt0.o`
KolibriOS/kolibrios
Reference: KolibriOS/kolibrios#340
Reference in New Issue
Block a user
Delete Branch "Egor00f/kolibrios:libc.ob--update-exit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
for auto rebuild
crt0.oneed #339from #311
exitafter main && translatecrt0.asmand convert it to UTF-8atexitand normal exit. add exit code save/readabort&& addexitand_exittostdlib.handlibc.defatexittest@@ -0,0 +1,18 @@#include <stdlib.h>Please add copyright:
@@ -56,2 +57,2 @@jz @f ;загружены кавычкиmov dh, ch ;параметр без кавычекjz @f ; quotes loadedmov dh, ch ; parameter without quotesPlease fix indent
@@ -0,0 +1,29 @@#include <conio.h>Please add copyright:
@@ -0,0 +1,69 @@#ifndef __STDLIB_EXIT_H__It's actually super redundant. I assume that this serves some purpose, but in native code it is unnecessary.
I add it for
system(). now i thnink will be better add it later.I suspect this is redundant. I saw the code for
system()in the recent PR. You don't have to wait there for the shell to close; you can callshell exitand it will close immediately.In fact, in KolibriOS there are no exit codes, what you are trying to do looks like a dirty hack.
Okay, I'll just delete this. I'll think about it later.
@@ -0,0 +1,12 @@#include <stdio.h>Please add copyright:
@@ -0,0 +1,35 @@#include <stdlib.h>Please add copyright:
@@ -1,12 +1,25 @@/* Copyright (C) 2021 Logaev Maxim (turbocat2001), GPLv2 */Please udate copyright:
@@ -4,1 +4,4 @@#include <sys/ksys.h>#include "_exit.h"static void __close_all()TCC does not optimize the codegen. Comment out and write TODO.
_exit.h& fix tabs incrt0.asmHmm... maybe it would be better to declare
_exitwith#define?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.