- Included in:
Included Files
- #include <mplib1/dl_list.h>
- #include <mplib1/mplib1_config.h>
- #include <mplib1/bpo_lock.h>
- #include <mplib1/bpo_list.h>
- #include <sys/types.h>
- #include <stdio.h>
- #include <mplib1/bpo_init.h>
- #include <mplib1/bpo_alloc.h>
Preprocessor definitions
#define MPLIB1_BPO_PROC_INTERNAL
#define SHM_INHERIT_GROUP
#define SHM_INHERIT_PROGRAM
#define SHM_AUTOMAGIC_PIPE
#define SHM_CHECK_ALL_PROCESSES 1
#define SHM_CHECK_THIS_PROCESS 2
#define SHM_CHECK_DEAD_PROCESSES 3
#define SHM_LEAVE_PROC 0
#define SHM_DELETE_PROC 1
#define PID_STR_LEN 12
- struct shm_proc_list
- {
- off_t lno_me;
- int serial_nbr;
- time_t update_tm;
- bpo_List proc_List;
- }
- struct shm_process
- {
- off_t lno_me;
- bpo_Node proc_Node;
- pid_t pid;
- time_t pid_start_tm;
- bpo_List pid_resources;
- char pid_str[12];
- off_t pid_grp_o;
- off_t pid_nm_o;
- off_t pid_fifo_o;
- }
- struct shm_process_private
- {
- Node spp_Node;
- pid_t pid;
- char pid_str[12];
- char* pid_grp;
- char* pid_nm;
- char* pid_fifo;
- int fifo_fd;
- int fifo_created;
- mode_t fifo_mode;
- time_t pid_start_tm;
- struct shm_process* spp;
- }
- struct cache_proc_list
- {
- Node lnk_node;
- char ptr_str[40];
- unsigned long serial_nbr;
- time_t update_tm;
- struct shm_proc_list* splp;
- List proc_list;
- List old_proc_list;
- }
typedef int (*Validate_Processes_t)(struct shm_process_private* shmpp,void* param1)