1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
|
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Copyright 2020 Joyent, Inc.
*/
#include <alloca.h>
#include <ctype.h>
#include <limits.h>
#include <syslog.h>
#include <strings.h>
#include <unistd.h>
#include <sys/fm/protocol.h>
#include <sys/systeminfo.h>
#include <sys/utsname.h>
#include <topo_error.h>
#include <topo_digraph.h>
#include <topo_subr.h>
void
topo_hdl_lock(topo_hdl_t *thp)
{
(void) pthread_mutex_lock(&thp->th_lock);
}
void
topo_hdl_unlock(topo_hdl_t *thp)
{
(void) pthread_mutex_unlock(&thp->th_lock);
}
const char *
topo_stability2name(topo_stability_t s)
{
switch (s) {
case TOPO_STABILITY_INTERNAL: return (TOPO_STABSTR_INTERNAL);
case TOPO_STABILITY_PRIVATE: return (TOPO_STABSTR_PRIVATE);
case TOPO_STABILITY_OBSOLETE: return (TOPO_STABSTR_OBSOLETE);
case TOPO_STABILITY_EXTERNAL: return (TOPO_STABSTR_EXTERNAL);
case TOPO_STABILITY_UNSTABLE: return (TOPO_STABSTR_UNSTABLE);
case TOPO_STABILITY_EVOLVING: return (TOPO_STABSTR_EVOLVING);
case TOPO_STABILITY_STABLE: return (TOPO_STABSTR_STABLE);
case TOPO_STABILITY_STANDARD: return (TOPO_STABSTR_STANDARD);
default: return (TOPO_STABSTR_UNKNOWN);
}
}
topo_stability_t
topo_name2stability(const char *name)
{
if (strcmp(name, TOPO_STABSTR_INTERNAL) == 0)
return (TOPO_STABILITY_INTERNAL);
else if (strcmp(name, TOPO_STABSTR_PRIVATE) == 0)
return (TOPO_STABILITY_PRIVATE);
else if (strcmp(name, TOPO_STABSTR_OBSOLETE) == 0)
return (TOPO_STABILITY_OBSOLETE);
else if (strcmp(name, TOPO_STABSTR_EXTERNAL) == 0)
return (TOPO_STABILITY_EXTERNAL);
else if (strcmp(name, TOPO_STABSTR_UNSTABLE) == 0)
return (TOPO_STABILITY_UNSTABLE);
else if (strcmp(name, TOPO_STABSTR_EVOLVING) == 0)
return (TOPO_STABILITY_EVOLVING);
else if (strcmp(name, TOPO_STABSTR_STABLE) == 0)
return (TOPO_STABILITY_STABLE);
else if (strcmp(name, TOPO_STABSTR_STANDARD) == 0)
return (TOPO_STABILITY_STANDARD);
return (TOPO_STABILITY_UNKNOWN);
}
static const topo_debug_mode_t _topo_dbout_modes[] = {
{ "stderr", "send debug messages to stderr", TOPO_DBOUT_STDERR },
{ "syslog", "send debug messages to syslog", TOPO_DBOUT_SYSLOG },
{ NULL, NULL, 0 }
};
static const topo_debug_mode_t _topo_dbflag_modes[] = {
{ "error", "error handling debug messages enabled", TOPO_DBG_ERR },
{ "module", "module debug messages enabled", TOPO_DBG_MOD },
{ "modulesvc", "module services debug messages enabled",
TOPO_DBG_MODSVC },
{ "walk", "walker subsystem debug messages enabled", TOPO_DBG_WALK },
{ "xml", "xml file parsing messages enabled", TOPO_DBG_XML },
{ "devinfoforce", "devinfo DINFOFORCE snapshot used", TOPO_DBG_FORCE },
{ "all", "all debug modes enabled", TOPO_DBG_ALL},
{ NULL, NULL, 0 }
};
void
env_process_value(topo_hdl_t *thp, const char *begin, const char *end)
{
char buf[MAXNAMELEN];
size_t count;
topo_debug_mode_t *dbp;
while (begin < end && isspace(*begin))
begin++;
while (begin < end && isspace(*(end - 1)))
end--;
if (begin >= end)
return;
count = end - begin;
count += 1;
if (count > sizeof (buf))
return;
(void) snprintf(buf, count, "%s", begin);
for (dbp = (topo_debug_mode_t *)_topo_dbflag_modes;
dbp->tdm_name != NULL; ++dbp) {
if (strcmp(buf, dbp->tdm_name) == 0)
thp->th_debug |= dbp->tdm_mode;
}
}
void
topo_debug_set(topo_hdl_t *thp, const char *dbmode, const char *dout)
{
char *end, *value, *next;
topo_debug_mode_t *dbp;
topo_hdl_lock(thp);
value = (char *)dbmode;
for (end = (char *)dbmode; *end != '\0'; value = next) {
end = strchr(value, ',');
if (end != NULL)
next = end + 1; /* skip the comma */
else
next = end = value + strlen(value);
env_process_value(thp, value, end);
}
if (dout == NULL) {
topo_hdl_unlock(thp);
return;
}
for (dbp = (topo_debug_mode_t *)_topo_dbout_modes;
dbp->tdm_name != NULL; ++dbp) {
if (strcmp(dout, dbp->tdm_name) == 0)
thp->th_dbout = dbp->tdm_mode;
}
topo_hdl_unlock(thp);
}
void
topo_vdprintf(topo_hdl_t *thp, const char *mod, const char *format, va_list ap)
{
char *msg;
size_t len;
char c;
len = vsnprintf(&c, 1, format, ap);
msg = alloca(len + 2);
(void) vsnprintf(msg, len + 1, format, ap);
if (msg[len - 1] != '\n')
(void) strcpy(&msg[len], "\n");
if (thp->th_dbout == TOPO_DBOUT_SYSLOG) {
if (mod == NULL) {
syslog(LOG_DEBUG | LOG_USER, "libtopo DEBUG: %s", msg);
} else {
syslog(LOG_DEBUG | LOG_USER, "libtopo DEBUG: %s: %s",
mod, msg);
}
} else {
if (mod == NULL) {
(void) fprintf(stderr, "libtopo DEBUG: %s", msg);
} else {
(void) fprintf(stderr, "libtopo DEBUG: %s: %s", mod,
msg);
}
}
}
/*PRINTFLIKE3*/
void
topo_dprintf(topo_hdl_t *thp, int mask, const char *format, ...)
{
va_list ap;
if (!(thp->th_debug & mask))
return;
va_start(ap, format);
topo_vdprintf(thp, NULL, format, ap);
va_end(ap);
}
tnode_t *
topo_hdl_root(topo_hdl_t *thp, const char *scheme)
{
ttree_t *tp;
topo_digraph_t *tdg;
for (tp = topo_list_next(&thp->th_trees); tp != NULL;
tp = topo_list_next(tp)) {
if (strcmp(scheme, tp->tt_scheme) == 0)
return (tp->tt_root);
}
for (tdg = topo_list_next(&thp->th_digraphs); tdg != NULL;
tdg = topo_list_next(tdg)) {
if (strcmp(scheme, tdg->tdg_scheme) == 0)
return (tdg->tdg_rootnode);
}
return (NULL);
}
/*
* buf_append -- Append str to buf (if it's non-NULL). Place prepend
* in buf in front of str and append behind it (if they're non-NULL).
* Continue to update size even if we run out of space to actually
* stuff characters in the buffer.
*/
void
topo_fmristr_build(ssize_t *sz, char *buf, size_t buflen, char *str,
char *prepend, char *append)
{
ssize_t left;
if (str == NULL)
return;
if (buflen == 0 || (left = buflen - *sz) < 0)
left = 0;
if (buf != NULL && left != 0)
buf += *sz;
if (prepend == NULL && append == NULL)
*sz += snprintf(buf, left, "%s", str);
else if (append == NULL)
*sz += snprintf(buf, left, "%s%s", prepend, str);
else if (prepend == NULL)
*sz += snprintf(buf, left, "%s%s", str, append);
else
*sz += snprintf(buf, left, "%s%s%s", prepend, str, append);
}
#define TOPO_PLATFORM_PATH "%s/usr/platform/%s/lib/fm/topo/%s"
#define TOPO_COMMON_PATH "%s/usr/lib/fm/topo/%s"
char *
topo_search_path(topo_mod_t *mod, const char *rootdir, const char *file)
{
char *pp, sp[PATH_MAX];
topo_hdl_t *thp = mod->tm_hdl;
/*
* Search for file name in order of platform, machine and common
* topo directories
*/
(void) snprintf(sp, PATH_MAX, TOPO_PLATFORM_PATH, rootdir,
thp->th_platform, file);
if (access(sp, F_OK) != 0) {
(void) snprintf(sp, PATH_MAX, TOPO_PLATFORM_PATH,
thp->th_rootdir, thp->th_machine, file);
if (access(sp, F_OK) != 0) {
(void) snprintf(sp, PATH_MAX, TOPO_COMMON_PATH,
thp->th_rootdir, file);
if (access(sp, F_OK) != 0) {
return (NULL);
}
}
}
pp = topo_mod_strdup(mod, sp);
return (pp);
}
/*
* SMBIOS serial numbers can contain characters (particularly ':' and ' ')
* that are invalid for the authority and can break FMRI parsing. We translate
* any invalid characters to a safe '-', as well as trimming any leading or
* trailing whitespace. Similarly, '/' can be found in some product names
* so we translate that to '-'.
*/
char *
topo_cleanup_auth_str(topo_hdl_t *thp, const char *begin)
{
char buf[MAXNAMELEN];
const char *end, *cp;
char *pp;
char c;
int i;
end = begin + strlen(begin);
while (begin < end && isspace(*begin))
begin++;
while (begin < end && isspace(*(end - 1)))
end--;
if (begin >= end)
return (NULL);
cp = begin;
for (i = 0; i < MAXNAMELEN - 1; i++) {
if (cp >= end)
break;
c = *cp;
if (c == ':' || c == '=' || c == '/' || isspace(c) ||
!isprint(c))
buf[i] = '-';
else
buf[i] = c;
cp++;
}
buf[i] = 0;
pp = topo_hdl_strdup(thp, buf);
return (pp);
}
void
topo_sensor_type_name(uint32_t type, char *buf, size_t len)
{
topo_name_trans_t *ntp;
for (ntp = &topo_sensor_type_table[0]; ntp->int_name != NULL; ntp++) {
if (ntp->int_value == type) {
(void) strlcpy(buf, ntp->int_name, len);
return;
}
}
(void) snprintf(buf, len, "0x%02x", type);
}
void
topo_sensor_units_name(uint8_t type, char *buf, size_t len)
{
topo_name_trans_t *ntp;
for (ntp = &topo_units_type_table[0]; ntp->int_name != NULL; ntp++) {
if (ntp->int_value == type) {
(void) strlcpy(buf, ntp->int_name, len);
return;
}
}
(void) snprintf(buf, len, "0x%02x", type);
}
void
topo_led_type_name(uint8_t type, char *buf, size_t len)
{
topo_name_trans_t *ntp;
for (ntp = &topo_led_type_table[0]; ntp->int_name != NULL; ntp++) {
if (ntp->int_value == type) {
(void) strlcpy(buf, ntp->int_name, len);
return;
}
}
(void) snprintf(buf, len, "0x%02x", type);
}
void
topo_led_state_name(uint8_t type, char *buf, size_t len)
{
topo_name_trans_t *ntp;
for (ntp = &topo_led_states_table[0]; ntp->int_name != NULL; ntp++) {
if (ntp->int_value == type) {
(void) strlcpy(buf, ntp->int_name, len);
return;
}
}
(void) snprintf(buf, len, "0x%02x", type);
}
void
topo_sensor_state_name(uint32_t sensor_type, uint8_t state, char *buf,
size_t len)
{
topo_name_trans_t *ntp;
switch (sensor_type) {
case TOPO_SENSOR_TYPE_PHYSICAL:
ntp = &topo_sensor_states_physical_table[0];
break;
case TOPO_SENSOR_TYPE_PLATFORM:
ntp = &topo_sensor_states_platform_table[0];
break;
case TOPO_SENSOR_TYPE_PROCESSOR:
ntp = &topo_sensor_states_processor_table[0];
break;
case TOPO_SENSOR_TYPE_POWER_SUPPLY:
ntp = &topo_sensor_states_power_supply_table[0];
break;
case TOPO_SENSOR_TYPE_POWER_UNIT:
ntp = &topo_sensor_states_power_unit_table[0];
break;
case TOPO_SENSOR_TYPE_MEMORY:
ntp = &topo_sensor_states_memory_table[0];
break;
case TOPO_SENSOR_TYPE_BAY:
ntp = &topo_sensor_states_bay_table[0];
break;
case TOPO_SENSOR_TYPE_FIRMWARE:
ntp = &topo_sensor_states_firmware_table[0];
break;
case TOPO_SENSOR_TYPE_EVENT_LOG:
ntp = &topo_sensor_states_event_log_table[0];
break;
case TOPO_SENSOR_TYPE_WATCHDOG1:
ntp = &topo_sensor_states_watchdog1_table[0];
break;
case TOPO_SENSOR_TYPE_SYSTEM:
ntp = &topo_sensor_states_system_table[0];
break;
case TOPO_SENSOR_TYPE_CRITICAL:
ntp = &topo_sensor_states_critical_table[0];
break;
case TOPO_SENSOR_TYPE_BUTTON:
ntp = &topo_sensor_states_button_table[0];
break;
case TOPO_SENSOR_TYPE_CABLE:
ntp = &topo_sensor_states_cable_table[0];
break;
case TOPO_SENSOR_TYPE_BOOT_STATE:
ntp = &topo_sensor_states_boot_state_table[0];
break;
case TOPO_SENSOR_TYPE_BOOT_ERROR:
ntp = &topo_sensor_states_boot_error_table[0];
break;
case TOPO_SENSOR_TYPE_BOOT_OS:
ntp = &topo_sensor_states_boot_os_table[0];
break;
case TOPO_SENSOR_TYPE_OS_SHUTDOWN:
ntp = &topo_sensor_states_os_table[0];
break;
case TOPO_SENSOR_TYPE_SLOT:
ntp = &topo_sensor_states_slot_table[0];
break;
case TOPO_SENSOR_TYPE_ACPI:
ntp = &topo_sensor_states_acpi_table[0];
break;
case TOPO_SENSOR_TYPE_WATCHDOG2:
ntp = &topo_sensor_states_watchdog2_table[0];
break;
case TOPO_SENSOR_TYPE_ALERT:
ntp = &topo_sensor_states_alert_table[0];
break;
case TOPO_SENSOR_TYPE_PRESENCE:
ntp = &topo_sensor_states_presence_table[0];
break;
case TOPO_SENSOR_TYPE_LAN:
ntp = &topo_sensor_states_lan_table[0];
break;
case TOPO_SENSOR_TYPE_HEALTH:
ntp = &topo_sensor_states_health_table[0];
break;
case TOPO_SENSOR_TYPE_BATTERY:
ntp = &topo_sensor_states_battery_table[0];
break;
case TOPO_SENSOR_TYPE_AUDIT:
ntp = &topo_sensor_states_audit_table[0];
break;
case TOPO_SENSOR_TYPE_VERSION:
ntp = &topo_sensor_states_version_table[0];
break;
case TOPO_SENSOR_TYPE_FRU_STATE:
ntp = &topo_sensor_states_fru_state_table[0];
break;
case TOPO_SENSOR_TYPE_THRESHOLD_STATE:
ntp = &topo_sensor_states_thresh_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_USAGE:
ntp = &topo_sensor_states_generic_usage_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_STATE:
ntp = &topo_sensor_states_generic_state_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_PREDFAIL:
ntp = &topo_sensor_states_generic_predfail_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_LIMIT:
ntp = &topo_sensor_states_generic_limit_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_PERFORMANCE:
ntp = &topo_sensor_states_generic_perf_table[0];
break;
case TOPO_SENSOR_TYPE_SEVERITY:
ntp = &topo_sensor_states_severity_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_PRESENCE:
ntp = &topo_sensor_states_generic_presence_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_AVAILABILITY:
ntp = &topo_sensor_states_generic_avail_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_STATUS:
ntp = &topo_sensor_states_generic_status_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_ACPI:
ntp = &topo_sensor_states_generic_acpi_pwr_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_FAILURE:
ntp = &topo_sensor_states_generic_failure_table[0];
break;
case TOPO_SENSOR_TYPE_GENERIC_OK:
ntp = &topo_sensor_states_generic_ok_table[0];
break;
default:
(void) snprintf(buf, len, "0x%02x", state);
return;
}
if (state == 0) {
(void) snprintf(buf, len, "NO_STATES_ASSERTED");
return;
}
buf[0] = '\0';
for (; ntp->int_name != NULL; ntp++) {
if (state & ntp->int_value) {
if (buf[0] != '\0')
(void) strlcat(buf, "|", len);
(void) strlcat(buf, ntp->int_name, len);
}
}
if (buf[0] == '\0')
(void) snprintf(buf, len, "0x%02x", state);
}
static const topo_pgroup_info_t sys_pgroup = {
TOPO_PGROUP_SYSTEM,
TOPO_STABILITY_PRIVATE,
TOPO_STABILITY_PRIVATE,
1
};
static const topo_pgroup_info_t auth_pgroup = {
FM_FMRI_AUTHORITY,
TOPO_STABILITY_PRIVATE,
TOPO_STABILITY_PRIVATE,
1
};
void
topo_pgroup_hcset(tnode_t *node, nvlist_t *auth)
{
int err;
char isa[MAXNAMELEN];
struct utsname uts;
char *prod, *psn, *csn, *server;
if (auth == NULL)
return;
if (topo_pgroup_create(node, &auth_pgroup, &err) != 0) {
if (err != ETOPO_PROP_DEFD)
return;
}
/*
* Inherit if we can, it saves memory
*/
if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_PRODUCT,
&err) != 0) && (err != ETOPO_PROP_DEFD)) {
if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT, &prod) ==
0)
(void) topo_prop_set_string(node, FM_FMRI_AUTHORITY,
FM_FMRI_AUTH_PRODUCT, TOPO_PROP_IMMUTABLE, prod,
&err);
}
if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_PRODUCT_SN,
&err) != 0) && (err != ETOPO_PROP_DEFD)) {
if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN, &psn) ==
0)
(void) topo_prop_set_string(node, FM_FMRI_AUTHORITY,
FM_FMRI_AUTH_PRODUCT_SN, TOPO_PROP_IMMUTABLE, psn,
&err);
}
if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_CHASSIS,
&err) != 0) && (err != ETOPO_PROP_DEFD)) {
if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) == 0)
(void) topo_prop_set_string(node, FM_FMRI_AUTHORITY,
FM_FMRI_AUTH_CHASSIS, TOPO_PROP_IMMUTABLE, csn,
&err);
}
if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_SERVER,
&err) != 0) && (err != ETOPO_PROP_DEFD)) {
if (nvlist_lookup_string(auth, FM_FMRI_AUTH_SERVER, &server) ==
0)
(void) topo_prop_set_string(node, FM_FMRI_AUTHORITY,
FM_FMRI_AUTH_SERVER, TOPO_PROP_IMMUTABLE, server,
&err);
}
if (topo_pgroup_create(node, &sys_pgroup, &err) != 0)
return;
if (sysinfo(SI_ARCHITECTURE, isa, sizeof (isa)) != -1)
(void) topo_prop_set_string(node, TOPO_PGROUP_SYSTEM,
TOPO_PROP_ISA, TOPO_PROP_IMMUTABLE, isa, &err);
if (uname(&uts) != -1)
(void) topo_prop_set_string(node, TOPO_PGROUP_SYSTEM,
TOPO_PROP_MACHINE, TOPO_PROP_IMMUTABLE, uts.machine, &err);
}
|