1picl_set_propval(3PICL) PICL Library Functions picl_set_propval(3PICL)
2
3
4
6 picl_set_propval, picl_set_propval_by_name - set the value of a prop‐
7 erty to the specified value
8
10 cc [ flag... ] file... -lpicl [ library... ]
11 #include <picl.h>
12
13 int picl_set_propval(picl_prophdl_t proph, void *valbuf,
14 size_t nbytes);
15
16
17 int picl_set_propval_by_name(picl_nodehdl_t nodeh,
18 const char *pname, void *valbuf, size_t nbytes);
19
20
22 The picl_set_propval() function sets the value of the property speci‐
23 fied by the handle proph to the value contained in the buffer valbuf.
24 The argument nbytes specifies the size of the buffer valbuf.
25
26
27 The picl_set_propval_by_name() function sets the value of the property
28 named pname of the node specified by the handle nodeh to the value con‐
29 tained in the buffer valbuf. The argument nbytes specifies the size of
30 the buffer valbuf.
31
33 Upon successful completion, 0 is returned. On failure, a non-negative
34 integer is returned to indicate an error.
35
36
37 PICL_PERMDENIED is returned if the client does not have sufficient per‐
38 mission to access the property.
39
40
41 PICL_STALEHANDLE is returned if the handle is no longer valid. This
42 occurs if the PICL tree was refreshed or reinitialized.
43
44
45 PICL_INVALIDHANDLE is returned if the specified handle never existed.
46 This error may be returned for a previously valid handle if the daemon
47 was brought down and restarted. When this occurs a client must revali‐
48 date any saved handles.
49
51 PICL_NOTINITIALIZED Session not initialized
52
53
54 PICL_NORESPONSE Daemon not responding
55
56
57 PICL_PERMDENIED Insufficient permission
58
59
60 PICL_NOTWRITABLE Property is read-only
61
62
63 PICL_VALUETOOBIG Value too big
64
65
66 PICL_NOTPROP Not a property
67
68
69 PICL_NOTNODE Not a node
70
71
72 PICL_INVALIDHANDLE Invalid handle specified
73
74
75 PICL_STALEHANDLE Stale handle specified
76
77
78 PICL_FAILURE General system failure
79
80
82 See attributes(5) for descriptions of the following attributes:
83
84
85
86
87 ┌─────────────────────────────┬─────────────────────────────┐
88 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
89 ├─────────────────────────────┼─────────────────────────────┤
90 │MT-Level │MT-Safe │
91 └─────────────────────────────┴─────────────────────────────┘
92
94 attributes(5)
95
96
97
98SunOS 5.11 28 Mar 2000 picl_set_propval(3PICL)