Lines Matching defs:bytes
74 int fd, bytes, amt, ret = 0;
76 bytes = snprintf(path, sizeof(path), "%s/brightness",
78 if (bytes < 0 || (size_t)bytes >= sizeof(path)) {
80 "failed to create brightness path %d\n", bytes);
91 bytes = snprintf(buffer, sizeof(buffer), "%d\n", brightness);
92 if (bytes < 0 || (size_t)bytes >= sizeof(buffer)) {
95 brightness, bytes);
99 amt = write(fd, buffer, bytes);
100 if (amt != bytes) {
103 bytes);
116 int ret = 0, fd, bytes;
118 bytes = snprintf(path, sizeof(path), "%s/max_brightness",
120 if (bytes < 0 || (size_t)bytes >= sizeof(path)) {
122 "failed to create max_brightness path %d\n", bytes);
133 bytes = read(fd, buffer, sizeof(buffer));
134 if (bytes <= 0) {