Mercurial > illumos > illumos-gate
comparison usr/src/cmd/mdb/common/mdb/mdb_modapi.c @ 14155:dcd9e8748b08
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
author | Jeremy Jones <jeremy@delphix.com> |
---|---|
date | Wed, 21 Aug 2013 15:45:46 -0800 |
parents | 20cdcfea8015 |
children |
comparison
equal
deleted
inserted
replaced
14154:4c227138a4c3 | 14155:dcd9e8748b08 |
---|---|
66 | 66 |
67 ssize_t | 67 ssize_t |
68 mdb_vwrite(const void *buf, size_t nbytes, uintptr_t addr) | 68 mdb_vwrite(const void *buf, size_t nbytes, uintptr_t addr) |
69 { | 69 { |
70 return (mdb_tgt_vwrite(mdb.m_target, buf, nbytes, addr)); | 70 return (mdb_tgt_vwrite(mdb.m_target, buf, nbytes, addr)); |
71 } | |
72 | |
73 ssize_t | |
74 mdb_aread(void *buf, size_t nbytes, uintptr_t addr, void *as) | |
75 { | |
76 ssize_t rbytes = mdb_tgt_aread(mdb.m_target, as, buf, nbytes, addr); | |
77 | |
78 if (rbytes > 0 && rbytes < nbytes) | |
79 return (set_errbytes(rbytes, nbytes)); | |
80 | |
81 return (rbytes); | |
82 } | |
83 | |
84 ssize_t | |
85 mdb_awrite(const void *buf, size_t nbytes, uintptr_t addr, void *as) | |
86 { | |
87 return (mdb_tgt_awrite(mdb.m_target, as, buf, nbytes, addr)); | |
71 } | 88 } |
72 | 89 |
73 ssize_t | 90 ssize_t |
74 mdb_fread(void *buf, size_t nbytes, uintptr_t addr) | 91 mdb_fread(void *buf, size_t nbytes, uintptr_t addr) |
75 { | 92 { |