📄 xauth.h
字号:
/* * Xau - X Authorization Database Library * * $XConsortium: Xauth.h,v 1.12 91/07/15 18:12:39 gildea Exp $ * * Copyright 1988 Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of M.I.T. not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * Author: Keith Packard, MIT X Consortium */#ifndef _Xauth_h#define _Xauth_h# include <X11/Xfuncproto.h># include <stdio.h># define FamilyLocal (256) /* not part of X standard (i.e. X.h) */# define FamilyWild (65535)# define FamilyNetname (254) /* not part of X standard */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;_XFUNCPROTOBEGINchar *XauFileName();Xauth *XauReadAuth(#if NeedFunctionPrototypesFILE* /* auth_file */#endif);int XauLockAuth(#if NeedFunctionPrototypes_Xconst char* /* file_name */,int /* retries */,int /* timeout */,long /* dead */#endif);int XauUnlockAuth(#if NeedFunctionPrototypes_Xconst char* /* file_name */#endif);int XauWriteAuth(#if NeedFunctionPrototypesFILE* /* auth_file */,Xauth* /* auth */#endif);Xauth *XauGetAuthByName(#if NeedFunctionPrototypes_Xconst char* /* display_name */#endif);Xauth *XauGetAuthByAddr(#if NeedFunctionPrototypes#if NeedWidePrototypesunsigned int /* family */,unsigned int /* address_length */,#elseunsigned short /* family */,unsigned short /* address_length */,#endif_Xconst char* /* address */,#if NeedWidePrototypesunsigned int /* number_length */,#elseunsigned short /* number_length */,#endif_Xconst char* /* number */,#if NeedWidePrototypesunsigned int /* name_length */,#elseunsigned short /* name_length */,#endif_Xconst char* /* name */#endif);Xauth *XauGetBestAuthByAddr(#if NeedFunctionPrototypes#if NeedWidePrototypesunsigned int /* family */,unsigned int /* address_length */,#elseunsigned short /* family */,unsigned short /* address_length */,#endif_Xconst char* /* address */,#if NeedWidePrototypesunsigned int /* number_length */,#elseunsigned short /* number_length */,#endif_Xconst char* /* number */,int /* types_length */,char** /* type_names */,_Xconst int* /* type_lengths */#endif);void XauDisposeAuth(#if NeedFunctionPrototypesXauth* /* auth */#endif);_XFUNCPROTOEND/* Return values from XauLockAuth */# define LOCK_SUCCESS 0 /* lock succeeded */# define LOCK_ERROR 1 /* lock unexpectely failed, check errno */# define LOCK_TIMEOUT 2 /* lock failed, timeouts expired */#endif /* _Xauth_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -