Lines Matching refs:ref
40 int ref = creat(path.Path(), 0777);
41 if (ref >= 0) {
43 write(ref, (char *)&lefttop, sizeof(BPoint));
45 write(ref, (char *)&face, sizeof(short));
47 write(ref, (char *)&seconds, sizeof(bool));
48 close(ref);
65 int ref;
69 ref = open(path.Path(), O_RDONLY);
70 if (ref >= 0) {
72 read(ref, (char*)&leftTop, sizeof(leftTop));
75 read(ref, (char *)&face, sizeof(short));
79 read(ref, (char *)&secs, sizeof(bool));
82 close(ref);