VistaIOError(3)
π VistaIOError(3) β Library Functions Manual π
okay bestie, listen up: this is the page for VistaIOError and VistaIOSystemError, and their whole entire job is reporting a fatal error. that's it. that's the vibe. π«Ά
β¨ NAME β¨
VistaIOError, VistaIOSystemError β report a fatal error π
β¨ SYNOPSIS β¨
void VistaIOError (format [, arg...])
VistaIOStringConst format;
void VistaIOSystemError (format [, arg...])
VistaIOStringConst format;
β¨ ARGUMENTS β¨
formatβ this is the format of the message you're about to report. the blueprint, the aesthetic, the whole look. πargβ the values that get dropped into that formatted message. the little guys that make it personal. π
β¨ DESCRIPTION β¨
so, VistaIOError is what you call when you need to report a fatal error. it puts together an error message and hands it off to the fatal error handler, which β typically β prints that message and then terminates the program. yes, like, the whole program. (peep VistaIOSetErrorHandler(3) if you wanna know more about that handler situation.)
the message that VistaIOError composes looks exactly like this:
Program: Fatal: Description.
Program is your program's name, and it only shows up if you already established it earlier with a call to VistaIOSetProgramName. Description is a string that has been formatted by sprintf using format, plus all of the optional arguments, arg. slay.
VistaIOSystemError is identical to VistaIOError except β plot twist β it also throws in a phrase based on the current value of the external variable errno, which is the thing system calls use to return diagnostic codes. the message VistaIOSystemError composes looks like:
Program: Fatal: Description: Diagnostic.
Diagnostic is a short phrase corresponding to the value of errno. and this phrase is drawn from the table used by perror(3). iykyk. π
β¨ RETURN VALUES β¨
neither VistaIOError nor VistaIOSystemError ever return. not once. not ever. they are not coming back. π
fr fr, plan accordingly β there is no "after" for these two.
β¨ EXAMPLES β¨
first up: in this example, the values of attr_name, act_value, and exp_value get incorporated into the error message produced by VistaIOError.
char *attr_name;
float act_value, exp_value;
if (act_value != exp_value)
VistaIOError ("MyRoutine: Attribute %s is %f rather than %f",
attr_name, act_value, exp_value);
and second: here, the diagnostic phrase corresponding to the value of errno gets incorporated into the error message produced by VistaIOSystemError.
if (ioctl (fd, request, arg) == -1)
VistaIOSystemError ("MyRoutine: ioctl failed");
β¨ SEE ALSO β¨
VistaIOWarning(3)VistaIOSetErrorHandler(3)VistaIOSetProgramName(3),β yes bestie there is a lil stray comma in here, i'm keeping it, character for character, no cap π«Άperror(3)
β¨ AUTHOR β¨
Art Pope <pope@cs.ubc.ca> π
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com> πΈ
and that's the whole page, periodt. this was VistaIO Version 1.2.14, dated 24 April 1993 β yeah, it's vintage, it's iconic, it's giving library-functions-manual royalty πβ¨ bye bestie, don't call VistaIOError unless you mean it π
π¦ where this page comes from
- debian bookworm: libvistaio-dev 1.2.19-3 Β· libvista-orig
- debian trixie: libvistaio-dev 1.2.19-3+b2 Β· libvista-orig
- ubuntu jammy: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu noble: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu questing: libvistaio-dev 1.2.19-4
- ubuntu resolute: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- ubuntu stonking: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms