Topic : TOS - das Betriebssystem Author : Version : tos.hyp (5. März 2013) Subject : Programmieren/Atari Nodes : 3001 Index Size : 93602 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Titel @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File5.14.3 Shutdown TOS Name: »Shutdown« - kills all processes, syncs filesystems then halts or reboots the system. Gemdosnummer: 337 (0x0151) Deklaration: void Shutdown ( int32_t mode ); Beschreibung: This function kills all processes, syncs filesystems then halts or reboots the system. On mode equal to SHUT_HALT (0L), the system will shutdown then enter a halted condition. On mode equal to SHUT_BOOT (1L), the system will reboot the machine after shutting everything down. On mode equal to SHUT_COLD (2L), the system will act the same as with the SHUT_BOOT mode, except that a cold start rather than the warm start will be performed. SHUT_COLD mode is recognized as of FreeMiNT version 1.15.5, older versions of the kernel will treat the SHUT_COLD as SHUT_BOOT. On mode equal to SHUT_POWER (3L), the system will turn power off. The only hardware that supports it is atm. CT60. If hardware does not support it, SHUT_HALT will be performed. SHUT_POWER mode is recognized as of FreeMiNT version 1.16a, older versions of the kernel will treat the SHUT_POWER as SHUT_COLD. All other values of mode are reserved for future definition. Older versions of MiNT contained a bug that might cause the system to crash, if you called Shutdown() while both GEM AES and virtual console daemon were present. You need root privileges to shut the system down. Ergebnis: Returns a negative GEMDOS error code, if failed. On success this call obviously never returns. Verfügbar: Seit der ersten in MultiTOS integrierten MiNT Version 1.04. Gruppe: Systemfunktionen Querverweis: Binding Sync