| 84 | } |
| 85 | |
| 86 | static int create_file(const char *path, unsigned int mode) |
| 87 | { |
| 88 | mode = (mode & 0100) ? 0777 : 0666; |
| 89 | return open(path, O_WRONLY | O_CREAT | O_EXCL, mode); |
| 90 | } |
| 91 | |
| 92 | void *read_blob_entry(const struct cache_entry *ce, size_t *size) |
| 93 | { |