25 #include <sys/types.h>
50 #define DGL_DEFINE_TREE_PROCS 1
54 #undef DGL_DEFINE_TREE_PROCS
59 #define DGL_DEFINE_FLAT_PROCS 1
63 #undef DGL_DEFINE_FLAT_PROCS
77 nDestination, fnClip, pvClipArg, pCache);
81 nDestination, fnClip, pvClipArg, pCache);
160 if (write(fd, &pgraph->
Version, 1) != 1) {
165 if (write(fd, &pgraph->
Endian, 1) != 1) {
182 for (cnt = 0; cnt < 16; cnt++) {
232 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
233 if ((nret = write(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
239 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
240 if ((nret = write(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
258 if (read(fd, &Endian, 1) != 1) {
264 #ifdef DGL_ENDIAN_BIG
291 for (cnt = 0; cnt < 16; cnt++) {
371 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
372 if ((nret = read(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
382 for (i = 0; i < cn; i++) {
387 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
388 if ((nret = read(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
398 for (i = 0; i < cn; i++) {
403 pgraph->
Flags |= 0x1;