Lines Matching defs:buf
67 char buf[17];
68 while (fgets(buf, 16, fg_cpuset_file)) {
71 if (buf[i] == '\n') {
72 buf[i] = 0;
76 if (write(boost_cpuset_fd, buf, i) < 0) {
112 char buf[17];
113 while (fgets(buf, 16, boost_cpuset_file)) {
114 //ALOGE("Appending FD %s to fg", buf);
117 if (buf[i] == '\n') {
118 buf[i] = 0;
122 if (write(fg_cpuset_fd, buf, i) < 0) {
123 //ALOGE("Appending FD %s to fg ERROR", buf);