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