RE: Write System Pointer to User Space
"Bob Cozzi" <[email protected]>
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Message-ID | <[email protected]> |
If you're not using memcpy() or cpybwp then the pointers are not copied, but rather are invalidated. Only certain instructions copy pointers. Also, a user space with points that is saved and then restored will not have valid pointers stored in it. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Peter Daransky Sent: Monday, June 20, 2005 2:46 AM To: MI Programming on the AS400 / iSeries Subject: AW: [MI400] Write System Pointer to User Space Hi Bob, I'm trying to write resolved system pointers of another user spaces to one, the idea should be, I write something as one "config" user space where are stored some stuffs and system pointers to other user spaces ?! I'm writing the code in C, at begin I think there must be some bytes in the user space ... but it looks with dump as there is nothing? But when I do MATPTRL it tells me that the pointer is there, and I hope that with SETSPFP I can get it back?! It is a wrong plan? -----Ursprüngliche Nachricht----- Von: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] Im Auftrag von Bob Cozzi Gesendet: Sonntag, 19. Juni 2005 05:59 An: 'MI Programming on the AS400 / iSeries' Betreff: RE: [MI400] Write System Pointer to User Space Certain instructions can't copy pointers and of course user spaces can't be restored with pointers, or rather the pointer is invalidated. What are you using to copy the C struct to the *USRSPC? -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Peter Daransky Sent: Friday, June 17, 2005 8:59 PM To: c400-Zwy7GipZuJhWk0Htik3J/[email protected] Cc: mi400-Zwy7GipZuJhWk0Htik3J/[email protected] Subject: [MI400] Write System Pointer to User Space Hi, I try to write resolved system pointer of one object to user space ... But it doesn't work for me!? Better sayed i've a C structure with many variables and my wish is write it complet as a block of data to user space, so that i can later read it with the resolved pointer ... Do i need perform something special (API or MI instruction ...) ? Has someone done something similar ? A little example in C will be help :-) Thank you peter_ _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400. _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400. _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400. _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.