Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 20,32 ****
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdarg.h>
#include <string.h>
#include "Pcontrol.h"
/*
--- 20,33 ----
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+ /*
+ * Copyright (c) 2013 by Delphix. All rights reserved.
+ */
#include <stdarg.h>
#include <string.h>
#include "Pcontrol.h"
/*
*** 54,72 ****
}
ps_err_e
ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size)
{
! if (P->ops->p_pread(P, buf, size, addr) != size)
return (PS_BADADDR);
return (PS_OK);
}
ps_err_e
ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size)
{
! if (P->ops->p_pwrite(P, buf, size, addr) != size)
return (PS_BADADDR);
return (PS_OK);
}
/*
--- 55,73 ----
}
ps_err_e
ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size)
{
! if (P->ops.pop_pread(P, buf, size, addr, P->data) != size)
return (PS_BADADDR);
return (PS_OK);
}
ps_err_e
ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size)
{
! if (P->ops.pop_pwrite(P, buf, size, addr, P->data) != size)
return (PS_BADADDR);
return (PS_OK);
}
/*