/usr/include/singular/singular/Singular/links/simpleipc.h is in libsingular4-dev-common 1:4.1.0-p3+ds-2build1.
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 | #include <semaphore.h>
#ifndef _SIMPLEIPC_H
#define _SIMPLEIPC_H
#ifdef __cplusplus
extern "C"
{
#endif
#define SIPC_MAX_SEMAPHORES 256
#define USE_SEM_INIT 0
#ifdef __APPLE__
#define PORTABLE_SEMAPHORES 1
#endif
#if PORTABLE_SEMAPHORES
#include <sys/mman.h>
typedef struct {
sem_t *guard, *sig;
int count;
} sipc_sem_t;
#else
typedef sem_t sipc_sem_t;
#endif
extern sipc_sem_t *semaphore[SIPC_MAX_SEMAPHORES];
extern int sem_acquired[SIPC_MAX_SEMAPHORES];
int sipc_semaphore_init(int id, int count);
int sipc_semaphore_exists(int id);
int sipc_semaphore_acquire(int id);
int sipc_semaphore_try_acquire(int id);
int sipc_semaphore_get_value(int id);
int sipc_semaphore_release(int id);
int simpleipc_cmd(char *cmd, int id, int v);
#ifdef __cplusplus
}
#endif
#endif
|