Scroll to navigation

XSetErrorHandler(3X11) XLIB FUNCTIONS XSetErrorHandler(3X11)

̾??

XSetErrorHandler, XGetErrorText, XDisplayName, XSetIOErrorHandler, XGetErrorDatabaseText - ?ǥե????ȤΥ??顼?ϥ??ɥ?

????

int (*XSetErrorHandler(handler))()
int (*handler)(Display *, XErrorEvent *)

XGetErrorText(display, code, buffer_return, length)
Display *display;
int code;
char *buffer_return;
int length;

char *XDisplayName(string)
char *string;

int (*XSetIOErrorHandler(handler))()
int (*handler)(Display *);

XGetErrorDatabaseText(display, name, message, default_string, buffer_return, length)
Display *display;
char *name, *message;
char *default_string;
char *buffer_return;
int length;

??????

???顼???Ҥ??֤????롣
???顼???Ҥ????褦?Ȥ??륨?顼?????ɤ????ꤹ?롣
?ǡ????١????? none ?ˤʤäƤ????????Υǥե????ȤΥ??顼???å??????? ???ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣
?ץ?????????Ϳ???륨?顼?ϥ??ɥ??????ꤹ?롣
?Хåե??Υ??????????ꤹ?롣
???顼???å??????Υ????פ????ꤹ?롣
???ץꥱ??????????̾???????ꤹ?롣
ʸ?????????ꤹ?롣

????

Xlib ?????̡????顼?????????ä??Ȥ???ɬ???ץ??????ब Ϳ???????顼?ϥ??ɥ????ƤӽФ??? ???????? OpenFont, LookupColor, AllocNamedColor ?ץ??ȥ????ꥯ?????Ȥ????? BadName ???顼?? ?ץ??ȥ????ꥯ?????Ȥ????? BadFont ???顼???Ф??Ƥϥ??顼?ϥ??ɥ??ϸƤӽФ????ʤ??? ????Ū?ˤϤ??????Υ??顼?ϡ???³?????󥿥ե????????̤??ƥץ??????????? ?????롣 ???ξ??֤???̿Ū?ǤϤʤ??ȹͤ????????Τǡ????顼?ϥ??ɥ餫?????????뤳 ?Ȥ?ǧ???????롣 ?????֤??ͤ?̵?뤵???롣 ???????????顼?ϥ??ɥ??ϥǥ????ץ쥤???Ф??ƥץ??ȥ????ꥯ?????Ȥ????? ?????????ϥ??٥??Ȥ????᤿?ꤹ???ؿ???(ľ??Ū?ˤ?????Ū?ˤ?)?ƤӽФ??? ?Ϥʤ??ʤ??? ???Τ褦?ʾ??硢ľ???Υ??顼?ϥ??ɥ餬?֤????롣

?ؿ? XGetErrorText ?ϡ????ꤷ?????顼?????ɤ?????????ʸ????(NULL ?ǽ?ü????)?????ꤷ?? ?Хåե??˥??ԡ????롣 ?֤?????ʸ?????ϡ????ߤΥ????????Υ??󥳡??ǥ??󥰤ˤʤäƤ??롣 Xlib ?γ?ĥ?ˤ????ȼ??Υ??顼?????ɤ䥨?顼ʸ???????????????뤫?⤷?? ?ʤ??Τǡ????顼???????????뤿???ˤϤ??δؿ????Ȥ????Ȥ??侩?????Ƥ??롣

?ؿ? XDisplayName ?? XOpenDisplay ???Ȥ????Ȥ????ǥ????ץ쥤??̾?????֤??? NULL ʸ???󤬻??ꤵ?줿?????ˤ? XDisplayName ?ϥǥ????ץ쥤?ˤĤ??ƤδĶ??ѿ???Ĵ?١? XOpenDisplay ???Ȥ????Ȥ????ǥ????ץ쥤??̾?????֤??? ???δؿ????Ȥ????Ȥˤ??ꡢ?ǽ?????³?λ??ߤ????Ԥ??????ˡ??ץ??????ब ?ɤΥǥ????ץ쥤?򳫤????Ȥ??Ƥ????Τ????桼?????Τ餻?뤳?Ȥ??ưפˤʤ롣

XSetIOErrorHandler ????̿Ū?? I/O ???顼?Υϥ??ɥ??????ꤹ?롣 ?????ƥॳ???????٥??Υ??顼(?㤨?С??????Фؤ???³???????줿)??ȯ???? ???????ˡ?Xlib ?ϥ桼????Ϳ???????顼?ϥ??ɥ????ƤӽФ??? ????????̿Ū?ʾ??֤ȹͤ????????Τǡ??ƤӽФ??줿?롼???󤫤??????????? ???ǤϤʤ??? I/O ???顼?ϥ??ɥ餫???????????Ƥ⡢???饤?????ȥץ??????Ͻ?λ???롣

ľ???Υ??顼?ϥ??ɥ餬?֤????????????դ??뤳?ȡ?

?ؿ? XGetErrorDatabaseText ?ϡ????顼???å??????Υǡ????١??????????å?????(???뤤?ϥǥե????Ȥ? ???å?????)???֤??? ???Υ??å??????? NULL ?ǽ?ü???롣 Xlib ?Ϥ??δؿ???????Ū?˻Ȥäƥ??顼???å??????򸫤Ĥ??롣 ?????? default_string ???Υƥ????Ȥϸ??ߤΥ????????Υ??󥳡??ǥ??󥰤Ǥ? ?ꡢ?????? buffer_return ?˳?Ǽ???????ƥ????Ȥ⸽?ߤΥ????????? ???󥳡??ǥ??󥰤Ǥ??뤳?Ȥ??????Ȥʤ롣

?????? name ?????̤ϥ??ץꥱ??????????̾???ˤ??٤??Ǥ??롣 ?????? message ?Ǥ?ɬ?פʥ??å??????Υ????פ򼨤??٤??Ǥ??롣 name ?? message ?Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ????? ?Ǥʤ????硢?¹Է??̤ϼ?????¸?Ǥ??롣 Xlib ??ͽ?????????줿 3 ?Ĥ? ``???ץꥱ????????̾'' ???Ȥä? ???顼?????𤹤롣 ????????̾???ˤ????Ƥϡ???ʸ???Ⱦ?ʸ???϶??̤????롣

?ץ??ȥ??륨?顼?ֹ??ϡ??????? message ???Ф???ʸ?????Ȥ??ƻ??Ѥ????롣
???????ϡ??饤?֥??꤬????Ū?˻Ȥ????å?????ʸ?????Ǥ??롣
?????ץ??ȥ????ꥯ?????Ȥξ????ϡ? ?᥸?㡼?ꥯ?????ȥץ??ȥ????ֹ椬?????? message ???Ф??ƻȤ????롣 ??ĥ?ꥯ?????Ȥξ????ϡ???ĥ̾( InitExtension ??Ϳ???????? )???ԥꥪ??(.)?? ?ޥ??ʡ??ꥯ?????ȥץ??ȥ????ֹ??? 3 ?Ĥ??¤٤????Τ? ?????? message ???Ф??ƻ??Ѥ????롣 ???顼?ǡ????١?????ʸ???󤬸??Ĥ????ʤ??????ˤϡ?default_string ???????? buffer ???֤????롣

??Ϣ????

XOpenDisplay(3X11), XSynchronize(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11