dt_as.c (256281) | dt_as.c (268578) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 9 unchanged lines hidden (view full) --- 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 9 unchanged lines hidden (view full) --- 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ |
26/* 27 * Copyright (c) 2013 by Delphix. All rights reserved. 28 * Copyright (c) 2013 Joyent, Inc. All rights reserved. 29 */ |
|
26 | 30 |
27#pragma ident "%Z%%M% %I% %E% SMI" 28 | |
29#include <sys/types.h> 30#include <strings.h> 31#include <stdlib.h> 32#include <assert.h> 33 34#include <dt_impl.h> 35#include <dt_parser.h> 36#include <dt_as.h> --- 83 unchanged lines hidden (view full) --- 120 dvp->dtdv_scope = DIFV_SCOPE_GLOBAL; 121 122 if (idp->di_flags & DT_IDFLG_DIFR) 123 dvp->dtdv_flags |= DIFV_F_REF; 124 if (idp->di_flags & DT_IDFLG_DIFW) 125 dvp->dtdv_flags |= DIFV_F_MOD; 126 127 bzero(&dn, sizeof (dn)); | 31#include <sys/types.h> 32#include <strings.h> 33#include <stdlib.h> 34#include <assert.h> 35 36#include <dt_impl.h> 37#include <dt_parser.h> 38#include <dt_as.h> --- 83 unchanged lines hidden (view full) --- 122 dvp->dtdv_scope = DIFV_SCOPE_GLOBAL; 123 124 if (idp->di_flags & DT_IDFLG_DIFR) 125 dvp->dtdv_flags |= DIFV_F_REF; 126 if (idp->di_flags & DT_IDFLG_DIFW) 127 dvp->dtdv_flags |= DIFV_F_MOD; 128 129 bzero(&dn, sizeof (dn)); |
128 dt_node_type_assign(&dn, idp->di_ctfp, idp->di_type); | 130 dt_node_type_assign(&dn, idp->di_ctfp, idp->di_type, B_FALSE); |
129 dt_node_diftype(pcb->pcb_hdl, &dn, &dvp->dtdv_type); 130 131 idp->di_flags &= ~(DT_IDFLG_DIFR | DT_IDFLG_DIFW); 132 return (0); 133} 134 135static ssize_t 136dt_copystr(const char *s, size_t n, size_t off, dt_pcb_t *pcb) --- 365 unchanged lines hidden --- | 131 dt_node_diftype(pcb->pcb_hdl, &dn, &dvp->dtdv_type); 132 133 idp->di_flags &= ~(DT_IDFLG_DIFR | DT_IDFLG_DIFW); 134 return (0); 135} 136 137static ssize_t 138dt_copystr(const char *s, size_t n, size_t off, dt_pcb_t *pcb) --- 365 unchanged lines hidden --- |