search for: close_console

Displaying 3 results from an estimated 3 matches for "close_console".

2012 Sep 04
0
[PATCH] console: Close stdin, stdout, stderr on ldlinux.c32 unload
.../elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c index 1c261cd..f82b166 100644 --- a/com32/elflink/ldlinux/ldlinux.c +++ b/com32/elflink/ldlinux/ldlinux.c @@ -252,6 +252,18 @@ cmdline: goto auto_boot; } + +/* + * Undo the work we did in openconsole(). + */ +static void __destructor close_console(void) +{ + int i; + + for (i = 0; i <= 2; i++) + close(i); +} + int main(int argc __unused, char **argv __unused) { const void *adv; diff --git a/com32/lib/Makefile b/com32/lib/Makefile index 5d270a4..fc5defc 100644 --- a/com32/lib/Makefile +++ b/com32/lib/Makefile @@ -170,7 +170,7 @@ COREL...
2012 Aug 14
1
[GIT PULL] elflink fixes
Hi Peter, The main part of this pull request includes commits that try to replace as many __intcall() invocations as possible. Some remain, but not many (and eventually they'll be gone too). There's also a patch to make better use of ld's --as-needed option and various other bug fixes/cleanups. The following changes since commit ff7334a2ce536b7f4b1f6d6f93ff4e285a3bd45a: Only
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not