/usr/include/rtd/rtdSem.h is in skycat 3.1.2+starlink1~b-8+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #ifndef RTDSEM_H
#define RTDSEM_H
/*+
* E.S.O. - VLT project
*
*
* rtdSem.h
*
* This header contains prototypes for the semaphore manipulation routines
* of rtdSem.c
*
* See rtdSem(1) for more information.
*
* who when what
* --------- -------- ----------------------------------------------
* D.Hopkinson 21/01/97 Created.
-*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/sem.h>
#include "rtdImageEvent.h"
#define RTD_PERMS 0666 /* Access permissions for shared memory */
#define RTD_SEM_TIMEOUT 20 /* Timeout period for an un-reset semaphore */
/*
* This structure is provided for use with the multibuffering/semaphore
* convenience routines.
*/
typedef struct rtdShm {
int *shmId; /* Array of shared memory Ids */
int semId; /* Semaphore Id */
int num; /* Number of shared memory buffers */
int shmWidth; /* Width of image (pixels) */
int shmHeight; /* Height of image (pixels) */
int shmImageType; /* Type of image (BYTE, SHORT, etc) */
double *timestamp; /* Array of semaphore timestamps */
} rtdShm;
#ifdef __cplusplus
extern "C" {
#endif
int rtdShmCreate (int num, rtdShm *shmPtr, int width, int height, int type);
int rtdShmFill (int index, char *data, rtdShm *shmPtr, int verbose);
int rtdShmFillFirst (char *data, rtdShm *shmPtr);
int rtdShmFillNext (int index, char *data, rtdShm *shmPtr);
int rtdShmStruct (int index, rtdIMAGE_INFO *imageInfo, rtdShm *shmPtr);
int rtdShmDelete (rtdShm *shmPtr);
int rtdShmLocked (rtdShm *shmPtr, int index);
int rtdSemGetVal (int semId, int semNum);
int rtdSemIncrement (int semId, int semNum, int increment);
void rtdSemDecrement (int semId, int semNum);
void rtdSemReset (int semId, int semNum);
int rtdSemGetVal (int semId, int semNum);
void rtdShmServicePacket(rtdIMAGE_INFO *imageInfo);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* RTDSEM_H */
|