annotate R/rdyncall/inst/dynports/stdio.R @ 63:9b6cdffd30dd

- further fixes of inccorect overflow errors for int (and long on LLP64 systems) * prev commit had bugs * added overflow tests for also int, long, long long (for both, lp64 and llp64) - while at it, fixing a reference leak when not using python with utf8 caching
author Tassilo Philipp
date Sun, 19 May 2024 15:33:18 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 dynbind( c("msvcrt","c","c.so.6"), "
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 __sputc(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 __srget(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 __svfscanf(*<__sFILE>*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 __swbuf(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 asprintf(**c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 clearerr(*<__sFILE>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 ctermid(*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 ctermid_r(*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 fclose(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 fdopen(i*c)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 feof(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 ferror(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 fflush(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 fgetc(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 fgetln(*<__sFILE>*J)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 fgetpos(*<__sFILE>*l)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 fgets(*ci*<__sFILE>)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 fileno(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 flockfile(*<__sFILE>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 fmtcheck(*c*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 fopen(*c*c)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 fprintf(*<__sFILE>*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 fpurge(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 fputc(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 fputs(*c*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 fread(*vJJ*<__sFILE>)J;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 freopen(*c*c*<__sFILE>)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 fscanf(*<__sFILE>*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 fseek(*<__sFILE>ji)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 fseeko(*<__sFILE>li)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 fsetpos(*<__sFILE>*l)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 ftell(*<__sFILE>)j;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 ftello(*<__sFILE>)l;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 ftrylockfile(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 funlockfile(*<__sFILE>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 funopen(*v*p*p*p*p)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 fwrite(*vJJ*<__sFILE>)J;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 getc(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
42 getc_unlocked(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43 getchar()i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 getchar_unlocked()i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45 gets(*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 getw(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 pclose(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48 perror(*c)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
49 popen(*c*c)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
50 printf(_e*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
51 putc(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52 putc_unlocked(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 putchar(i)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
54 putchar_unlocked(i)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
55 puts(*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
56 putw(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
57 remove(*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
58 rename(*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
59 rewind(*<__sFILE>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
60 scanf(*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
61 setbuf(*<__sFILE>*c)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
62 setbuffer(*<__sFILE>*ci)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
63 setlinebuf(*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
64 setvbuf(*<__sFILE>*ciJ)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
65 snprintf(*cJ*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
66 sprintf(*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
67 sscanf(*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
68 tempnam(*c*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
69 tmpfile()*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
70 tmpnam(*c)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
71 ungetc(i*<__sFILE>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
72 vasprintf(**c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
73 vfprintf(*<__sFILE>*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
74 vfscanf(*<__sFILE>*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
75 vprintf(*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
76 vscanf(*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
77 vsnprintf(*cJ*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
78 vsprintf(*c*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
79 vsscanf(*c*c*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
80 zopen(*c*ci)*<__sFILE>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
81 ")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
82 SEEK_CUR=1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
83 SEEK_END=2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
84 SEEK_SET=0