/* pxMiscOldP.h - private header for old miscellaneous definitions */ /* * Copyright (c) 2023 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. */ /* modification history -------------------- 29sep23,kch Added 'utimbuf_old' structure definition. 25sep23,kch Adapted from VxWorks 7 */ #ifndef __INCpxMiscOldPh #define __INCpxMiscOldPh #include /* This must match the definition in limits.h */ #define _TRACE_NAME_MAX 64 #ifdef __cplusplus extern "C" { #endif /* * The following private data structure is based on 'struct utimbuf' defined * in target/h/utime.h, the only differences being that actime and modtime * are of timeold_t type */ struct utimbuf_old { timeold_t actime; /* set the access time */ timeold_t modtime; /* set the modification time */ }; /* * The following private data structure is based on TASK_PX_ATTR defined in * target/h/private/taskPxLibCommonLibP.h, the only differences being that * ssReplPeriod and ssInitBudget are of timespecOld type */ typedef struct task_px_attr_old { UINT flag; /* bits to specify which attr to set/get */ int priority; /* priority attribute */ int policy; /* policy attribute */ /* Members below are for SCHED_SPORADIC threads */ int ssLowPrio; /* sched_ss_low_priority */ struct timespecOld ssReplPeriod; /* sched_ss_repl_period */ struct timespecOld ssInitBudget; /* sched_ss_init_budget */ int ssMaxRepl; /* sched_ss_max_repl */ /* add new members from here */ } TASK_PX_ATTR_OLD; /* * The following private data structure is based on trace_attr_t defined in * target/h/base/b_trace_attr_t.h, the only differences being that members * _Creation_time and _Clock_resolution are of timespecOld type */ typedef struct { int _Trace_attr_magic; char _Generation_version [_TRACE_NAME_MAX]; char _Trace_name [_TRACE_NAME_MAX]; struct timespecOld _Creation_time; struct timespecOld _Clock_resolution; size_t _Stream_min_size; int _Stream_full_policy; size_t _Max_data_size; int _Log_full_policy; size_t _Log_max_size; } trace_attr_old_t; /* * The following private data structure is based on posix_trace_event_info * structure defined in target/h/base/b_struct_posix_trace_event_info.h, the * only difference being that member posix_timestamp is of timespecOld type */ struct posix_trace_event_info_old { trace_event_id_t posix_event_id; #ifdef _WRS_KERNEL OBJ_HANDLE posix_pid; #else pid_t posix_pid; #endif void * posix_prog_address; int posix_truncation_status; struct timespecOld posix_timestamp; pthread_t posix_thread_id; size_t _Posix_eventdata_length; }; #ifdef __cplusplus } #endif #endif /* __INCpxMiscOldPh */