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);
166 if (write(fd, &pgraph->
Version, 1) != 1) {
171 if (write(fd, &pgraph->
Endian, 1) != 1) {
188 for (cnt = 0; cnt < 16; cnt++) {
238 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
239 if ((nret = write(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
245 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
246 if ((nret = write(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
264 if (read(fd, &Endian, 1) != 1) {
270 #ifdef DGL_ENDIAN_BIG
298 for (cnt = 0; cnt < 16; cnt++) {
378 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
379 if ((nret = read(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
389 for (i = 0; i < cn; i++) {
394 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
395 if ((nret = read(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
405 for (i = 0; i < cn; i++) {
410 pgraph->
Flags |= 0x1;