/usr/include/singular/singular/reporter/s_buff.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 | #ifndef S_BUFFIO_H
#define S_BUFFIO_H
#include<gmp.h>
struct s_buff_s
{
char * buff; // buffer
int fd; // file descrr.
int bp; // current pos. in buff (of the last read char)
int end; // last position in buff
int is_eof;
};
typedef struct s_buff_s * s_buff;
s_buff s_open(int fd);
s_buff s_open_by_name(const char *n);
int s_close(s_buff &f);
int s_getc(s_buff F);
void s_ungetc(int c, s_buff F);
int s_readint(s_buff F);
long s_readlong(s_buff F);
int s_readbytes(char *buff,int len, s_buff F);
void s_readmpz(s_buff F, mpz_ptr a);
void s_readmpz_base(s_buff F, mpz_ptr a, int base);
int s_isready(s_buff F);
int s_iseof(s_buff F);
#endif
|