os_type(3alleg4)
π os_type β the vibe check for ur whole operating system π
okay so bestie, this is a page straight out of the Allegro manual (3alleg4), and it's about one tiny little global that knows exactly what machine it's running on. no cap. π¦
β¨ NAME β¨
os_type β stores the detected type of the OS. Allegro game programming library, babes. π
β¨ SYNOPSIS β¨
#include <allegro.h>
extern int os_type;
β¨ DESCRIPTION β¨
so here's the tea β β allegro_init() sets this thing, and it gets set to one of these values. that's it. that's the whole plot. π
OSTYPE_UNKNOWNβ unknown, or regular MSDOS π«₯OSTYPE_WIN3β Windows 3.1 or earlier (ancient, but iconic) πΊOSTYPE_WIN95β Windows 95OSTYPE_WIN98β Windows 98OSTYPE_WINMEβ Windows MEOSTYPE_WINNTβ Windows NTOSTYPE_WIN2000β Windows 2000OSTYPE_WINXPβ Windows XPOSTYPE_WIN2003β Windows 2003OSTYPE_WINVISTAβ Windows VistaOSTYPE_OS2β OS/2OSTYPE_WARPβ OS/2 Warp 3OSTYPE_DOSEMUβ Linux DOSEMUOSTYPE_OPENDOSβ Caldera OpenDOSOSTYPE_LINUXβ Linux π§ (yes queen)OSTYPE_SUNOSβ SunOS/Solaris βοΈOSTYPE_FREEBSDβ FreeBSDOSTYPE_NETBSDβ NetBSDOSTYPE_IRIXβ IRIXOSTYPE_DARWINβ DarwinOSTYPE_QNXβ QNXOSTYPE_UNIXβ Unknown Unix variant π«ΆOSTYPE_BEOSβ BeOSOSTYPE_MACOSβ MacOSOSTYPE_MACOSXβ MacOS X
fr fr, that's the entire list. if ur OS isn't on here, it's givingOSTYPE_UNKNOWNorOSTYPE_UNIXenergy. π
β¨ SEE ALSO β¨
okay that's the whole page, no notes. this was Allegro, version 4.4.3, and honestly? slay. go check ur os_type, bestie, and tell me what u got. π
β¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms