My Project
Loading...
Searching...
No Matches
libpolys
reporter
s_buff.h
Go to the documentation of this file.
1
#ifndef S_BUFFIO_H
2
#define S_BUFFIO_H
3
4
#include "
coeffs/si_gmp.h
"
5
6
struct
s_buff_s
7
{
8
char
*
buff
;
// buffer
9
int
fd
;
// file descrr.
10
int
bp
;
// current pos. in buff (of the last read char)
11
int
end
;
// last position in buff
12
int
is_eof
;
13
};
14
15
typedef
struct
s_buff_s
* s_buff;
16
17
struct
ip_sring
;
18
typedef
struct
ip_sring
* ring;
19
20
typedef
struct
21
{
22
s_buff
f_read
;
23
FILE *
f_write
;
24
ring
r
;
25
pid_t
pid
;
/* only valid for fork/tcp mode*/
26
int
fd_read
,fd_write;
/* only valid for fork/tcp mode*/
27
char
level
;
28
char
send_quit_at_exit
;
29
char
quit_sent
;
30
31
}
ssiInfo
;
32
33
s_buff
s_open
(
int
fd
);
34
s_buff
s_open_by_name
(
const
char
*n);
35
int
s_close
(s_buff &
f
);
36
37
int
s_getc
(s_buff F);
38
void
s_ungetc
(
int
c, s_buff F);
39
40
int
s_readint
(s_buff F);
41
long
s_readlong
(s_buff F);
42
int
s_readbytes
(
char
*buff,
int
len, s_buff F);
43
void
s_readmpz
(s_buff F, mpz_ptr a);
44
void
s_readmpz_base
(s_buff F, mpz_ptr a,
int
base);
45
int
s_isready
(s_buff F);
46
int
s_iseof
(s_buff F);
47
#endif
f
FILE * f
Definition:
checklibs.c:9
s_open
s_buff s_open(int fd)
Definition:
s_buff.cc:31
s_readmpz
void s_readmpz(s_buff F, mpz_ptr a)
ssiInfo::pid
pid_t pid
Definition:
s_buff.h:25
ssiInfo::f_read
s_buff f_read
Definition:
s_buff.h:22
s_readmpz_base
void s_readmpz_base(s_buff F, mpz_ptr a, int base)
Definition:
s_buff.cc:209
s_getc
int s_getc(s_buff F)
Definition:
s_buff.cc:58
s_isready
int s_isready(s_buff F)
Definition:
s_buff.cc:85
s_readint
int s_readint(s_buff F)
Definition:
s_buff.cc:112
s_buff_s::end
int end
Definition:
s_buff.h:11
ssiInfo::send_quit_at_exit
char send_quit_at_exit
Definition:
s_buff.h:28
ssiInfo::level
char level
Definition:
s_buff.h:27
s_buff_s::buff
char * buff
Definition:
s_buff.h:8
ssiInfo::quit_sent
char quit_sent
Definition:
s_buff.h:29
s_readlong
long s_readlong(s_buff F)
Definition:
s_buff.cc:140
ssiInfo::f_write
FILE * f_write
Definition:
s_buff.h:23
ssiInfo::r
ring r
Definition:
s_buff.h:24
s_buff_s::is_eof
int is_eof
Definition:
s_buff.h:12
s_buff_s::fd
int fd
Definition:
s_buff.h:9
s_close
int s_close(s_buff &f)
Definition:
s_buff.cc:45
s_open_by_name
s_buff s_open_by_name(const char *n)
Definition:
s_buff.cc:39
s_readbytes
int s_readbytes(char *buff, int len, s_buff F)
Definition:
s_buff.cc:168
s_buff_s::bp
int bp
Definition:
s_buff.h:10
s_iseof
int s_iseof(s_buff F)
Definition:
s_buff.cc:254
ssiInfo::fd_read
int fd_read
Definition:
s_buff.h:26
s_ungetc
void s_ungetc(int c, s_buff F)
Definition:
s_buff.cc:99
s_buff_s
Definition:
s_buff.h:7
ssiInfo
Definition:
s_buff.h:21
si_gmp.h
fd
int status int fd
Definition:
si_signals.h:59
ip_sring
Definition:
ring.h:248
Generated on Mon Feb 27 2023 10:53:49 for My Project by
doxygen 1.9.5
for
Singular