1XTSOLgetResUID(3TXrTuSsOtLe)d Extensions to X Windows Library FuXnTcStOiLognestResUID(3XTSOL)
2
3
4
6 XTSOLgetResUID - get the UID associated with a window, a pixmap
7
9 cc [flag...] file... -lX11 -lXtsol [library...]
10 #include <X11/extensions/Xtsol.h>
11
12 Status XTSOLgetResUID(display, object, type, uidp);
13
14 Display *display;
15 XID object;
16 ResourceType type;
17 uid_t *uidp;
18
19
21 display Specifies a pointer to the Display structure; returned from
22 XOpenDisplay().
23
24
25 object Specifies the ID of a window system object whose UID you
26 want to get. Possible window system objects are windows or
27 pixmaps.
28
29
30 type Specifies what type of resource is being accessed. Possible
31 values are IsWindow and IsPixmap.
32
33
34 uidp Returns a UID which is the current UID of the specified
35 object. Client must provide a pointer to uid_t.
36
37
39 The client requires the PRIV_WIN_DAC_READ and PRIV_WIN_MAC_READ privi‐
40 leges. The XTSOLgetResUID() function retrieves the ownership of a win‐
41 dow system object. This allows a client to get the ownership of an
42 object that the client did not create.
43
45 None.
46
48 BadAccess Lack of privilege.
49
50
51 BadWindow Not a valid window.
52
53
54 BadPixmap Not a valid pixmap.
55
56
57 BadValue Not a valid type.
58
59
61 See attributes(5) for descriptions of the following attributes:
62
63
64
65
66 ┌───────────────────────────┬───────────────────────────────┐
67 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
68 ├───────────────────────────┼───────────────────────────────┤
69 │Interface Stability │ Committed │
70 ├───────────────────────────┼───────────────────────────────┤
71 │MT-Level │ Unsafe │
72 └───────────────────────────┴───────────────────────────────┘
73
75 libXtsol(3LIB), XTSOLgetClientAttributes(3XTSOL), XTSOLgetResAt‐
76 tributes(3XTSOL), XTSOLgetResUID(3XTSOL), attributes(5)
77
78
79 Obtaining the Window User ID in Solaris Trusted Extensions Developer's
80 Guide
81
83 The functionality described on this manual page is available only if
84 the system is configured with Trusted Extensions.
85
86
87
88SunOS 5.11 20 Jul 2007 XTSOLgetResUID(3XTSOL)