Lines Matching defs:segment
171 char* segment = buf + 1;
172 char* p = segment;
177 if (!strcmp(segment, "..") || !strcmp(segment, ".") || !strcmp(segment, "")) {
183 if (fstatat(fd, segment, &sb, AT_SYMLINK_NOFOLLOW) != 0) {
186 if (mkdirat(fd, segment, mode) != 0) {
207 ALOGE("Existing segment not a directory: %s", buf);
213 /* Yay, segment is ready for us to step into */
215 if ((next_fd = openat(fd, segment, 0)) == -1) {
225 segment = p + 1;