Debian Codegraph @

src/gen/lib/gvc/gvbuffstderr__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.gvc;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class gvbuffstderr__c {
50
51
52 //3 8e1sa6f5ejc0r49gfiuv32aul
53 // void *buffstderr(void)
54 public static Object buffstderr(Object... arg) {
55 UNSUPPORTED("bel1uzbdqhzbiuqj5bt2lxzqq"); // void *buffstderr(void)
56 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
57 UNSUPPORTED("aexhdud6z2wbwwi73yppp0ynl"); // char *p;
58 UNSUPPORTED("38cr9skhy4jrzhg3wj3bc20yu"); // struct buff_s *b;
59 UNSUPPORTED("28m0s1mo38itho1au29oy5rv9"); // assert ((b = malloc(sizeof(struct buff_s))));
60 UNSUPPORTED("6rlbco8yzervnvmq2m0r611c1"); // assert ((b->template = strdup("/tmp/stderr_buffer_XXXXXX")));
61 UNSUPPORTED("bcqwp3my2rhtv5cf0oviy8odz"); // assert ((p = mktemp(b->template)));
62 UNSUPPORTED("aw4nnvbir9iy1nuq4aukql0de"); // fflush(stderr);
63 UNSUPPORTED("62lg711j2rddmpadkk7qhn7o7"); // fgetpos(stderr, &(b->pos));
64 UNSUPPORTED("1eysolcc2x8f6m0otum5r2501"); // b->fd = dup(fileno(stderr));
65 UNSUPPORTED("6hw12z5dqv9hheh1gxxpmwey0"); // freopen(b->template, "w+", stderr);
66 UNSUPPORTED("2d461iz08h1aqinzmgs197s94"); // return (void *)b;
67 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
68
69 throw new UnsupportedOperationException();
70 }
71
72
73
74
75 //3 c9716hxgrfzvnokv7hw8islwa
76 // char *unbuffstderr(struct buff_s *b)
77 public static Object unbuffstderr(Object... arg) {
78 UNSUPPORTED("evux4jdjx4b2zi15ma1m76h5d"); // char *unbuffstderr(struct buff_s *b)
79 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
80 UNSUPPORTED("eywfpf1qo3rooyuerxrc41h5p"); // long sz;
81 UNSUPPORTED("71fkgwtjx5c4orpsdy7jkyr86"); // char *t = NULL;
82 UNSUPPORTED("3al75fenupx704zal37z61c8b"); // FILE *f;
83 UNSUPPORTED("aw4nnvbir9iy1nuq4aukql0de"); // fflush(stderr);
84 UNSUPPORTED("2s4h3spdm3ti16pnbbiw5wl7h"); // sz = ftell(stderr);
85 UNSUPPORTED("sy0yol0bacbdtlzdr1qewlj9"); // dup2(b->fd, fileno(stderr));
86 UNSUPPORTED("15iuj8qt4zyy6idhhvkhw7kyy"); // close(b->fd);
87 UNSUPPORTED("6vd38rt8w7l0uxuayeny4pb4"); // clearerr(stderr);
88 UNSUPPORTED("elgraii0bqskacqp0kwicgtfj"); // fsetpos(stderr, &(b->pos));
89 UNSUPPORTED("9zb4lfjglf6mq4qwh8w8tysh9"); // if (sz) {
90 UNSUPPORTED("61z9k4t8590rqr4gbjt7udecr"); // /* stderr has been restored; these asserts use normal stderr output */
91 UNSUPPORTED("2mznswy9uou17ncks1p4of2f7"); // assert((t = malloc(sz+1)));
92 UNSUPPORTED("4vbq5cvor2on52t1v9dbok91h"); // assert((f = fopen(b->template, "r")));
93 UNSUPPORTED("8s2fk8360i1yh41rn73tpnhj"); // assert( fread(t, 1, sz, f) == sz);
94 UNSUPPORTED("dk3j3n9fv8k10vlyl1mk71gbf"); // fclose(f);
95 UNSUPPORTED("7w549vhurh491724lsxzvdx0f"); // t[sz]='\0';
96 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
97 UNSUPPORTED("1iabjly523zdwdwqm9s4pz5vc"); // unlink(b->template);
98 UNSUPPORTED("1xawfl1gbhijvti6c9mg6k3bi"); // free(b->template);
99 UNSUPPORTED("am24176ien70yg0oq7iticngs"); // free(b);
100 UNSUPPORTED("6lv6zglsw62ek6eoecn583mc9"); // return t;
101 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
102
103 throw new UnsupportedOperationException();
104 }
105
106
107 }