X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsys%2Futsname.h;h=28feecc4631eb38d2dcbabbd9ced370f9beba2a0;hb=aa7f7f107a36374f62647bf729b535f182ca3fef;hp=a8c6823d3657557aa4f6c46527ac8d73ff5256a2;hpb=ae7c80a3d12df76de9f75a1e9c5fb713c7f6e055;p=cc65 diff --git a/include/sys/utsname.h b/include/sys/utsname.h index a8c6823d3..28feecc46 100644 --- a/include/sys/utsname.h +++ b/include/sys/utsname.h @@ -39,26 +39,48 @@ /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ - - - -/* Beware: The library sources written in assembler have knowledge about this + + + +/* + * Suggested field contents: + * + * sysname + * Should contain the name of the underlying operating system, or "cc65" + * if the program runs on the bare machine. + * + * nodename + * Is empty or may be defined by the implementor. + * + * release + * Contains the operating system release or the major/minor cc65 version + * if sysname contains "cc65". + * + * version + * Contains the operating system version or the cc65 patch version if + * sysname contains "cc65". + * + * machine + * Contains the complete name of the machine, like "Commodore 64", + * "Oric Atmos" or similar. + * + * Beware: The library sources written in assembler have knowledge about this * struct! */ struct utsname { - char sysname[9]; + char sysname[17]; char nodename[9]; - char release[5]; - char version[5]; - char machine[9]; + char release[9]; + char version[9]; + char machine[25]; }; - + /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/