comparison agent/src/os/linux/ps_proc.c @ 50:485d403e94e1

6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers Summary: (for Serguei) Allow for Linux builds with Sun Studio Linux compilers Reviewed-by: sspitsyn, ohair
author dcubed
date Wed, 12 Mar 2008 18:37:03 -0700
parents a61af66fc99e
children d1605aabd0a1
comparison
equal deleted inserted replaced
0:a50b94cd8714 1:bc1a3c82e09f
289 static void process_cleanup(struct ps_prochandle* ph) { 289 static void process_cleanup(struct ps_prochandle* ph) {
290 detach_all_pids(ph); 290 detach_all_pids(ph);
291 } 291 }
292 292
293 static ps_prochandle_ops process_ops = { 293 static ps_prochandle_ops process_ops = {
294 release: process_cleanup, 294 .release= process_cleanup,
295 p_pread: process_read_data, 295 .p_pread= process_read_data,
296 p_pwrite: process_write_data, 296 .p_pwrite= process_write_data,
297 get_lwp_regs: process_get_lwp_regs 297 .get_lwp_regs= process_get_lwp_regs
298 }; 298 };
299 299
300 // attach to the process. One and only one exposed stuff 300 // attach to the process. One and only one exposed stuff
301 struct ps_prochandle* Pgrab(pid_t pid) { 301 struct ps_prochandle* Pgrab(pid_t pid) {
302 struct ps_prochandle* ph = NULL; 302 struct ps_prochandle* ph = NULL;