Scroll to navigation

Xau(3) Library Functions Manual Xau(3)

̾??

Xau library: XauFileName, XauReadAuth, XauLockAuth, XauUnlockAuth, XauWriteAuth, XauDisposeAuth, XauGetAuthByAddr, XauGetBestAuthByAddr - X ǧ?ڥǡ????١????롼????

????

#include <X11/Xauth.h>

typedef struct xauth {
	unsigned short	family;
	unsigned short	address_length;
	char	*address;
	unsigned short	number_length;
	char	*number;
	unsigned short	name_length;
	char	*name;
	unsigned short	data_length;
	char	*data;
} Xauth;
char *XauFileName ()
Xauth *XauReadAuth (auth_file)
	FILE *auth_file;
int XauWriteAuth (auth_file, auth)
	FILE *auth_file;
	Xauth *auth;
Xauth *XauGetAuthByAddr (family,
address_length, address,
number_length, number)
	unsigned short family;
	unsigned short address_length;
	char *address;
	unsigned short number_length;
	char *number;
Xauth *XauGetBestAuthByAddr (family,
address_length, address,
number_length, number,
types_length, types, type_lengths)
	unsigned short family;
	unsigned short address_length;
	char *address;
	unsigned short number_length;
	char *number;
	int types_length;
	char **types;
	int *type_lengths;
int XauLockAuth (file_name, retries, timeout, dead)
	char *file_name;
	int retries;
	int timeout;
	long dead;
int XauUnlockAuth (file_name)
	char *file_name;
XauDisposeAuth (auth)
	Xauth *auth;

????

XauFileName ?ϥǥե????Ȥ?ǧ?ڥե?????̾?????????롣 ?ޤ??ǽ??˴Ķ??ѿ? XAUTHORITY ?????åȤ????Ƥ????Ф?????Ĵ?١??ʤ????? $HOME/.Xauthority ???֤???????̾??????Ū?˳??????Ƥ????Ƥ????Τǡ??? ?????ƤϤʤ??ʤ???

XauReadAuth ?? auth_file ???鼡?Υ????ȥ??????????롣 ?????ȥ?????Ū?ˤϳ??????Ƥ????????ʤ??Τǡ?XauDisposeAuth ???ƤӽФ??Ʋ??????ʤ????Фʤ??ʤ???

XuWriteAuth ??ǧ?ڥ????ȥ??? auth_file ?˽񤭽Ф??? ???δؿ??????????ˤ?1?򡢼??Ի??ˤ?0???֤???

XauGetAuthByAddr ??Ϳ?????줿 ?ͥåȥ?????ɥ쥹/?ǥ????ץ쥤?ֹ??Υڥ??˰??פ??륨???ȥ??򸡺????롣 ?????ȥ?????Ū?????????Ƥ????ʤ??Τǡ?XauDisposeAuth ???Ƥ??? ???????ʤ????Фʤ??ʤ???

XauGetBestAuthByAddr ?ϡ?????????ǧ????ˡ?Υꥹ?Ȥ????ꤵ?????? ???ۤʤ??????????? XauGetAuthByAddr ?Ȥۤ?Ʊ???Ǥ??롣Xau ?ϡ??? ?Υꥹ?????ǺǤ??ᤤ?????ȥ??˰??פ????ե????륨???ȥ??????򤹤?(?㤨 ?С??Ǥ???????ǧ????ˡ)???????? types ??ʸ???????????Ǥ??ꡢ???Ĥ? ʸ???󤬤??줾????ǧ????ˡ???б????롣types_length ?ϡ????? types ?ˤ????????Ǥ????뤫?????ꤹ?롣 types_lengths ?Ϥ??줾????ʸ??????Ĺ????ɽ?????????????Ǥ??롣

XauLockAuth ?ϡ?ǧ?ڥե???????Ʊ?????ƹ??????뤿????ɬ?פʻŻ??? ?Ԥ??????δؿ??Ϥޤ?2?ĤΥե?????̾?????????롣1?Ĥ? file_name ?? ``-c'' ???ɲä??????ΤǤ??ꡢ?⤦1?Ĥ? ``-l'' ???ɲä??????ΤǤ??롣 ?⤷ ``-c'' ???ɲä??줿?ե????뤬¸?ߤ??????줬 dead ?ðʾ??Ť? ?????ˤϡ?XauLockAuth ?Ϥ??Υե??????Ȥ??????б????? ``-l'' ???? ?ä??줿?ե??????????????롣NFS ?ˤ???Ʊ???????????򤱤뤿?ᡢ dead ???ͤ? 0 ?ʤ??Хե??????????????롣XauLockAuth ?? ?ե?????̾???????ȥ??󥯺????? retries ?????ߤ롣???λ??Ԥδ֤? ?? timeout ?õٻߤ??롣XauLockAuth ?Ϸ??̤ˤ??äƷ??ޤ??? ?ν??????֤???


LOCK_ERROR ?????ƥ२?顼??ȯ?????????ե?????̾??Ĺ?????? ?????????ƥॳ???뤬ͽ?????ʤ????Ԥ򤷤???errno ?????? Ω?ĤȻפ????롣
LOCK_TIMEOUT retries ?????ߤ????Ԥ???
LOCK_SUCCESS ???å?????????????

XauUnlockAuth ?ϡ?``-c'' ?? ``-l'' ???ä????줿?ե?????̾??ξ?? ???????뤳?Ȥˤ??ꡢ XauLockAuth ?η??̤??????ä???

XauDisposeAuth ?ϡ?ǧ?ڥ????ȥ?????Ǽ???Ƥ??롢???????Ƥ??줿 ???????????????롣

??Ϣ????

xauth(1), xdm(1)

????

Keith Packard, MIT X Consortium

Release 6.5 X Version 11