Lines Matching refs:magic
45 char buffer[8] = {0}; // logo magic number + logo size is 8
97 uint32_t magic = 0;
98 if (read(fd, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) {
99 BSH_LOGI("Failed magic logoPath %s errno %d ", logoPath.c_str(), errno);
103 if (magic == LOGO_MAGIC) {
104 BSH_LOGI("Get matched magic number, logo already written\n");
109 magic = LOGO_MAGIC;
111 if (write(fd, &magic, sizeof(magic)) != sizeof(magic)) {
112 BSH_LOGI("Write magic number failed %d", errno);
170 uint32_t magic = 0;
172 if (read(fd1, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) {