1XTSOLsetResUID(3TXrTuSsOtLe)d Extensions to X Windows Library FuXnTcStOiLosnestResUID(3XTSOL)
2
3
4

NAME

6       XTSOLsetResUID  -  set the UID associated with a window, a pixmap, or a
7       colormap
8

SYNOPSIS

10       cc [flag...] file... -lX11 -lXtsol [library...]
11       #include <X11/extensions/Xtsol.h>
12
13       Status XTSOLsetResUID(display, object, type, uidp);
14
15       Display *display;
16       XID object;
17       ResourceType type;
18       uid_t *uidp;
19
20

PARAMETERS

22       display    Specifies a pointer to the Display structure; returned  from
23                  XOpenDisplay().
24
25
26       object     Specifies  the  ID  of  a window system object whose UID you
27                  want to change. Possible window system objects  are  windows
28                  and pixmaps.
29
30
31       type       Specifies  what type of resource is being accessed. Possible
32                  values are: IsWindow and IsPixmap.
33
34
35       uidp       Specifies a pointer to a uid_t  structure  that  contains  a
36                  UID.
37
38

DESCRIPTION

40       The  client  must  have  the  PRIV_WIN_DAC_WRITE and PRIV_WIN_MAC_WRITE
41       privileges. The XTSOLsetResUID() function changes the  ownership  of  a
42       window system object. This allows a client to create an object and then
43       change its ownership. The new owner can then make modifications on this
44       object as this object being created by itself.
45

RETURN VALUES

47       None.
48

ERRORS

50       BadAccess    Lack of privilege.
51
52
53       BadWindow    Not a valid window.
54
55
56       BadPixmap    Not a valid pixmap.
57
58
59       BadValue     Not a valid type.
60
61

ATTRIBUTES

63       See attributes(5) for descriptions of the following attributes:
64
65
66
67
68       ┌───────────────────────────┬───────────────────────────────┐
69       │      ATTRIBUTE TYPE       │        ATTRIBUTE VALUE        │
70       ├───────────────────────────┼───────────────────────────────┤
71       │Interface Stability        │ Committed                     │
72       ├───────────────────────────┼───────────────────────────────┤
73       │MT-Level                   │ MT-Unsafe                     │
74       └───────────────────────────┴───────────────────────────────┘
75

SEE ALSO

77       libXtsol(3LIB), XTSOLgetResUID(3XTSOL), attributes(5)
78

NOTES

80       The  functionality  described  on this manual page is available only if
81       the system is configured with Trusted Extensions.
82
83
84
85SunOS 5.11                        20 Jul 2007           XTSOLsetResUID(3XTSOL)
Impressum