buffer 189 archive-tar.c const void *buffer, unsigned long size) buffer 199 archive-tar.c write_blocked(buffer, size); buffer 212 archive-tar.c void *buffer; buffer 249 archive-tar.c buffer = NULL; buffer 252 archive-tar.c buffer = sha1_file_to_archive(args, path, sha1, old_mode, &type, &size); buffer 253 archive-tar.c if (!buffer) buffer 256 archive-tar.c buffer = NULL; buffer 265 archive-tar.c buffer, size); buffer 267 archive-tar.c memcpy(header.linkname, buffer, size); buffer 276 archive-tar.c free(buffer); buffer 283 archive-tar.c if (buffer) buffer 284 archive-tar.c write_blocked(buffer, size); buffer 288 archive-tar.c free(buffer); buffer 177 archive-zip.c void *buffer; buffer 182 archive-zip.c buffer = xmalloc(maxsize); buffer 186 archive-zip.c stream.next_out = buffer; buffer 194 archive-zip.c free(buffer); buffer 201 archive-zip.c return buffer; buffer 248 archive-zip.c static int entry_is_binary(const char *path, const void *buffer, size_t size) buffer 255 archive-zip.c return buffer_is_binary(buffer, size); buffer 275 archive-zip.c void *buffer; buffer 303 archive-zip.c buffer = NULL; buffer 322 archive-zip.c out = buffer = NULL; buffer 324 archive-zip.c buffer = sha1_file_to_archive(args, path, sha1, mode, buffer 326 archive-zip.c if (!buffer) buffer 329 archive-zip.c crc = crc32(crc, buffer, size); buffer 331 archive-zip.c buffer, size); buffer 332 archive-zip.c out = buffer; buffer 343 archive-zip.c if (buffer && method == 8) { buffer 344 archive-zip.c out = deflated = zlib_deflate_raw(buffer, size, buffer 348 archive-zip.c out = buffer; buffer 485 archive-zip.c free(buffer); buffer 70 archive.c void *buffer; buffer 74 archive.c buffer = read_sha1_file(sha1, type, sizep); buffer 75 archive.c if (buffer && S_ISREG(mode)) { buffer 79 archive.c strbuf_attach(&buf, buffer, *sizep, *sizep + 1); buffer 83 archive.c buffer = strbuf_detach(&buf, &size); buffer 87 archive.c return buffer; buffer 263 archive.c init_tree_desc(&t, args->tree->buffer, args->tree->size); buffer 40 base85.c int decode_85(char *dst, const char *buffer, int len) buffer 44 base85.c say2("decode 85 <%.*s>", len / 4 * 5, buffer); buffer 50 base85.c ch = *buffer++; buffer 56 base85.c ch = *buffer++; buffer 63 base85.c return error("invalid base85 sequence %.5s", buffer-5); buffer 14 blob.c int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size) buffer 14 blob.h int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size); buffer 1402 builtin/am.c const char *buffer, *ident_line, *author_date, *msg; buffer 1407 builtin/am.c buffer = logmsg_reencode(commit, NULL, get_commit_output_encoding()); buffer 1409 builtin/am.c ident_line = find_commit_header(buffer, "author", &ident_len); buffer 1438 builtin/am.c msg = strstr(buffer, "\n\n"); buffer 2009 builtin/am.c init_tree_desc(&t[0], head->buffer, head->size); buffer 2010 builtin/am.c init_tree_desc(&t[1], remote->buffer, remote->size); buffer 2045 builtin/am.c init_tree_desc(&t[0], tree->buffer, tree->size); buffer 427 builtin/apply.c static unsigned long linelen(const char *buffer, unsigned long size) buffer 432 builtin/apply.c if (*buffer++ == '\n') buffer 1792 builtin/apply.c char *buffer = *buf_p; buffer 1799 builtin/apply.c llen = linelen(buffer, size); buffer 1804 builtin/apply.c if (starts_with(buffer, "delta ")) { buffer 1806 builtin/apply.c origlen = strtoul(buffer + 6, NULL, 10); buffer 1808 builtin/apply.c else if (starts_with(buffer, "literal ")) { buffer 1810 builtin/apply.c origlen = strtoul(buffer + 8, NULL, 10); buffer 1816 builtin/apply.c buffer += llen; buffer 1819 builtin/apply.c llen = linelen(buffer, size); buffer 1824 builtin/apply.c buffer++; buffer 1835 builtin/apply.c byte_length = *buffer; buffer 1851 builtin/apply.c if (decode_85(data + hunk_size, buffer + 1, byte_length)) buffer 1854 builtin/apply.c buffer += llen; buffer 1865 builtin/apply.c *buf_p = buffer; buffer 1875 builtin/apply.c linenr-1, llen-1, buffer); buffer 1879 builtin/apply.c static int parse_binary(char *buffer, unsigned long size, struct patch *patch) buffer 1900 builtin/apply.c forward = parse_binary_hunk(&buffer, &size, &status, &used); buffer 1908 builtin/apply.c reverse = parse_binary_hunk(&buffer, &size, &status, &used_1); buffer 1993 builtin/apply.c static int parse_chunk(char *buffer, unsigned long size, struct patch *patch) buffer 1996 builtin/apply.c int offset = find_header(buffer, size, &hdrsize, patch); buffer 2010 builtin/apply.c patchsize = parse_single_patch(buffer + offset + hdrsize, buffer 2016 builtin/apply.c unsigned long llen = linelen(buffer + hd, size - hd); buffer 2019 builtin/apply.c !memcmp(git_binary, buffer + hd, llen)) { buffer 2022 builtin/apply.c used = parse_binary(buffer + hd + llen, buffer 2029 builtin/apply.c else if (!memcmp(" differ\n", buffer + hd + llen - 8, 8)) { buffer 2039 builtin/apply.c !memcmp(binhdr[i], buffer + hd, len)) { buffer 23 builtin/bundle.c char buffer[PATH_MAX]; buffer 34 builtin/bundle.c snprintf(buffer, sizeof(buffer), "%s/%s", prefix, bundle_file); buffer 35 builtin/bundle.c bundle_file = buffer; buffer 98 builtin/cat-file.c char *buffer = read_sha1_file(sha1, &type, &size); buffer 100 builtin/cat-file.c if (!skip_prefix(buffer, "object ", &target) || buffer 103 builtin/cat-file.c free(buffer); buffer 424 builtin/checkout.c init_tree_desc(&tree_desc, tree->buffer, tree->size); buffer 514 builtin/checkout.c init_tree_desc(&trees[0], tree->buffer, tree->size); buffer 516 builtin/checkout.c init_tree_desc(&trees[1], tree->buffer, tree->size); buffer 717 builtin/clone.c init_tree_desc(&t, tree->buffer, tree->size); buffer 49 builtin/commit-tree.c struct strbuf buffer = STRBUF_INIT; buffer 80 builtin/commit-tree.c if (buffer.len) buffer 81 builtin/commit-tree.c strbuf_addch(&buffer, '\n'); buffer 82 builtin/commit-tree.c strbuf_addstr(&buffer, argv[i]); buffer 83 builtin/commit-tree.c strbuf_complete_line(&buffer); buffer 92 builtin/commit-tree.c if (buffer.len) buffer 93 builtin/commit-tree.c strbuf_addch(&buffer, '\n'); buffer 102 builtin/commit-tree.c if (strbuf_read(&buffer, fd, 0) < 0) buffer 108 builtin/commit-tree.c strbuf_complete_line(&buffer); buffer 119 builtin/commit-tree.c if (!buffer.len) { buffer 120 builtin/commit-tree.c if (strbuf_read(&buffer, 0, 0) < 0) buffer 124 builtin/commit-tree.c if (commit_tree(buffer.buf, buffer.len, tree_sha1, parents, buffer 126 builtin/commit-tree.c strbuf_release(&buffer); buffer 131 builtin/commit-tree.c strbuf_release(&buffer); buffer 306 builtin/commit.c init_tree_desc(&t, tree->buffer, tree->size); buffer 711 builtin/commit.c char *buffer; buffer 712 builtin/commit.c buffer = strstr(use_message_buffer, "\n\n"); buffer 713 builtin/commit.c if (buffer) buffer 714 builtin/commit.c strbuf_addstr(&sb, buffer + 2); buffer 228 builtin/fmt-merge-msg.c const char *buffer) buffer 235 builtin/fmt-merge-msg.c name = strstr(buffer, field); buffer 261 builtin/fmt-merge-msg.c const char *buffer = get_commit_buffer(commit, NULL); buffer 262 builtin/fmt-merge-msg.c record_person_from_buf(which, people, buffer); buffer 263 builtin/fmt-merge-msg.c unuse_commit_buffer(commit, buffer); buffer 365 builtin/fsck.c unsigned long size, void *buffer, int *eaten) buffer 368 builtin/fsck.c obj = parse_object_buffer(sha1, type, size, buffer, eaten); buffer 19 builtin/get-tar-commit-id.c char buffer[HEADERSIZE]; buffer 20 builtin/get-tar-commit-id.c struct ustar_header *header = (struct ustar_header *)buffer; buffer 21 builtin/get-tar-commit-id.c char *content = buffer + RECORDSIZE; buffer 28 builtin/get-tar-commit-id.c n = read_in_full(0, buffer, HEADERSIZE); buffer 81 builtin/help.c struct strbuf buffer = STRBUF_INIT; buffer 93 builtin/help.c strbuf_read(&buffer, ec_process.err, 20); buffer 102 builtin/help.c if (!starts_with(buffer.buf, "emacsclient")) { buffer 103 builtin/help.c strbuf_release(&buffer); buffer 107 builtin/help.c strbuf_remove(&buffer, 0, strlen("emacsclient")); buffer 108 builtin/help.c version = atoi(buffer.buf); buffer 111 builtin/help.c strbuf_release(&buffer); buffer 116 builtin/help.c strbuf_release(&buffer); buffer 849 builtin/index-pack.c item->buffer = NULL; buffer 243 builtin/merge.c struct strbuf buffer = STRBUF_INIT; buffer 252 builtin/merge.c len = strbuf_read(&buffer, cp.out, 1024); buffer 259 builtin/merge.c strbuf_setlen(&buffer, buffer.len-1); buffer 260 builtin/merge.c if (get_sha1(buffer.buf, stash)) buffer 261 builtin/merge.c die(_("not a valid object: %s"), buffer.buf); buffer 622 builtin/merge.c init_tree_desc(t+i, trees[i]->buffer, trees[i]->size); buffer 26 builtin/mktag.c void *buffer = read_sha1_file(sha1, &type, &size); buffer 29 builtin/mktag.c if (buffer) { buffer 31 builtin/mktag.c ret = check_sha1_signature(repl, buffer, size, expected_type); buffer 32 builtin/mktag.c free(buffer); buffer 37 builtin/mktag.c static int verify_tag(char *buffer, unsigned long size) buffer 48 builtin/mktag.c buffer[size] = 0; buffer 51 builtin/mktag.c object = buffer; buffer 67 builtin/mktag.c (uintmax_t) (type_line - buffer)); buffer 71 builtin/mktag.c (uintmax_t) (tag_line - buffer)); buffer 77 builtin/mktag.c (uintmax_t) (type_line+5 - buffer)); buffer 95 builtin/mktag.c (uintmax_t) (tag_line - buffer)); buffer 103 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 116 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 121 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 127 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 131 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 139 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 145 builtin/mktag.c (uintmax_t) (tagger_line - buffer)); buffer 210 builtin/name-rev.c static char buffer[1024]; buffer 227 builtin/name-rev.c snprintf(buffer, sizeof(buffer), "%.*s~%d", len, n->tip_name, buffer 230 builtin/name-rev.c return buffer; buffer 383 builtin/name-rev.c char buffer[2048]; buffer 386 builtin/name-rev.c char *p = fgets(buffer, sizeof(buffer), stdin); buffer 710 builtin/pack-objects.c unsigned char buffer[8192]; buffer 731 builtin/pack-objects.c int read_pack = xread(fd, buffer, sizeof(buffer)); buffer 739 builtin/pack-objects.c sha1write(f, buffer, read_pack); buffer 229 builtin/read-tree.c init_tree_desc(t+i, tree->buffer, tree->size); buffer 73 builtin/reflog.c if (!tree->buffer) { buffer 81 builtin/reflog.c tree->buffer = data; buffer 84 builtin/reflog.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 147 builtin/remote-ext.c char *buffer; buffer 160 builtin/remote-ext.c buffer = xmalloc(bufferspace); buffer 163 builtin/remote-ext.c wpos = sprintf(buffer, "%04x%s %s%c", (unsigned)bufferspace, buffer 168 builtin/remote-ext.c sprintf(buffer + wpos, "host=%s%c", vhost, 0); buffer 171 builtin/remote-ext.c if (write_in_full(stdin_fd, buffer, bufferspace) < 0) buffer 174 builtin/remote-ext.c free(buffer); buffer 205 builtin/remote-ext.c char buffer[MAXCOMMAND]; buffer 209 builtin/remote-ext.c if (!fgets(buffer, MAXCOMMAND - 1, stdin)) { buffer 215 builtin/remote-ext.c i = strlen(buffer); buffer 216 builtin/remote-ext.c while (i > 0 && isspace(buffer[i - 1])) buffer 217 builtin/remote-ext.c buffer[--i] = 0; buffer 219 builtin/remote-ext.c if (!strcmp(buffer, "capabilities")) { buffer 222 builtin/remote-ext.c } else if (!strncmp(buffer, "connect ", 8)) { buffer 225 builtin/remote-ext.c return run_child(child, buffer + 8); buffer 23 builtin/remote-fd.c char buffer[MAXCOMMAND]; buffer 27 builtin/remote-fd.c if (!fgets(buffer, MAXCOMMAND - 1, stdin)) { buffer 33 builtin/remote-fd.c i = strlen(buffer); buffer 34 builtin/remote-fd.c while (i > 0 && isspace(buffer[i - 1])) buffer 35 builtin/remote-fd.c buffer[--i] = 0; buffer 37 builtin/remote-fd.c if (!strcmp(buffer, "capabilities")) { buffer 40 builtin/remote-fd.c } else if (!strncmp(buffer, "connect ", 8)) { buffer 48 builtin/remote-fd.c die("Bad command: %s", buffer); buffer 387 builtin/replace.c const char *buffer; buffer 394 builtin/replace.c buffer = get_commit_buffer(commit, &size); buffer 395 builtin/replace.c strbuf_add(&buf, buffer, size); buffer 396 builtin/replace.c unuse_commit_buffer(commit, buffer); buffer 215 builtin/rev-parse.c static char buffer[100]; buffer 220 builtin/rev-parse.c snprintf(buffer, sizeof(buffer), "%s%lu", flag, approxidate(datestr)); buffer 221 builtin/rev-parse.c show(buffer); buffer 35 builtin/shortlog.c char *buffer, *p; buffer 76 builtin/shortlog.c buffer = strbuf_detach(&subject, NULL); buffer 81 builtin/shortlog.c while ((p = strstr(buffer, dot3)) != NULL) { buffer 89 builtin/shortlog.c string_list_append(item->util, buffer); buffer 112 builtin/shortlog.c const char *author = NULL, *buffer; buffer 117 builtin/shortlog.c buffer = buf.buf; buffer 118 builtin/shortlog.c while (*buffer && *buffer != '\n') { buffer 119 builtin/shortlog.c const char *eol = strchr(buffer, '\n'); buffer 122 builtin/shortlog.c eol = buffer + strlen(buffer); buffer 126 builtin/shortlog.c if (starts_with(buffer, "author ")) buffer 127 builtin/shortlog.c author = buffer + 7; buffer 128 builtin/shortlog.c buffer = eol; buffer 144 builtin/shortlog.c buffer = ufbuf.buf; buffer 145 builtin/shortlog.c } else if (*buffer) { buffer 146 builtin/shortlog.c buffer++; buffer 148 builtin/shortlog.c insert_one_record(log, author, !*buffer ? "<none>" : buffer); buffer 337 builtin/tag.c static int do_sign(struct strbuf *buffer) buffer 339 builtin/tag.c return sign_buffer(buffer, buffer, get_signing_key()); buffer 19 builtin/unpack-objects.c static unsigned char buffer[4096]; buffer 31 builtin/unpack-objects.c char *buffer; buffer 42 builtin/unpack-objects.c static void add_object_buffer(struct object *object, char *buffer, unsigned long size) buffer 46 builtin/unpack-objects.c obj->buffer = buffer; buffer 59 builtin/unpack-objects.c return buffer + offset; buffer 60 builtin/unpack-objects.c if (min > sizeof(buffer)) buffer 63 builtin/unpack-objects.c git_SHA1_Update(&ctx, buffer, offset); buffer 64 builtin/unpack-objects.c memmove(buffer, buffer + offset, len); buffer 68 builtin/unpack-objects.c ssize_t ret = xread(0, buffer + len, sizeof(buffer) - len); buffer 76 builtin/unpack-objects.c return buffer; buffer 172 builtin/unpack-objects.c if (write_sha1_file(obj_buf->buffer, obj_buf->size, typename(obj->type), sha1) < 0) buffer 207 builtin/unpack-objects.c if (fsck_object(obj, obj_buf->buffer, obj_buf->size, &fsck_options)) buffer 331 builtin/unpack-objects.c resolve_delta(nr, obj->type, obj_buffer->buffer, buffer 542 builtin/unpack-objects.c hdr = (struct pack_header *)buffer; buffer 561 builtin/unpack-objects.c git_SHA1_Update(&ctx, buffer, offset); buffer 571 builtin/unpack-objects.c int ret = xwrite(1, buffer + offset, len); buffer 247 cache-tree.c struct strbuf buffer; buffer 319 cache-tree.c strbuf_init(&buffer, 8192); buffer 358 cache-tree.c strbuf_release(&buffer); buffer 385 cache-tree.c strbuf_grow(&buffer, entlen + 100); buffer 386 cache-tree.c strbuf_addf(&buffer, "%o %.*s%c", mode, entlen, path + baselen, '\0'); buffer 387 cache-tree.c strbuf_add(&buffer, sha1, 20); buffer 397 cache-tree.c hash_sha1_file(buffer.buf, buffer.len, tree_type, sha1); buffer 403 cache-tree.c hash_sha1_file(buffer.buf, buffer.len, tree_type, it->sha1); buffer 404 cache-tree.c else if (write_sha1_file(buffer.buf, buffer.len, tree_type, it->sha1)) { buffer 405 cache-tree.c strbuf_release(&buffer); buffer 409 cache-tree.c strbuf_release(&buffer); buffer 435 cache-tree.c static void write_one(struct strbuf *buffer, struct cache_tree *it, buffer 446 cache-tree.c strbuf_grow(buffer, pathlen + 100); buffer 447 cache-tree.c strbuf_add(buffer, path, pathlen); buffer 448 cache-tree.c strbuf_addf(buffer, "%c%d %d\n", 0, it->entry_count, it->subtree_nr); buffer 461 cache-tree.c strbuf_add(buffer, it->sha1, 20); buffer 471 cache-tree.c write_one(buffer, down->cache_tree, down->name, down->namelen); buffer 480 cache-tree.c static struct cache_tree *read_one(const char **buffer, unsigned long *size_p) buffer 482 cache-tree.c const char *buf = *buffer; buffer 526 cache-tree.c *buffer, it->entry_count, subtree_nr, buffer 530 cache-tree.c *buffer, subtree_nr); buffer 554 cache-tree.c *buffer = buf; buffer 563 cache-tree.c struct cache_tree *cache_tree_read(const char *buffer, unsigned long size) buffer 565 cache-tree.c if (buffer[0]) buffer 567 cache-tree.c return read_one(&buffer, &size); buffer 661 cache-tree.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 30 cache-tree.h struct cache_tree *cache_tree_read(const char *buffer, unsigned long size); buffer 986 cache.h extern int unpack_sha1_header(git_zstream *stream, unsigned char *map, unsigned long mapsize, void *buffer, unsigned long bufsiz); buffer 233 commit.c void *buffer; buffer 239 commit.c void set_commit_buffer(struct commit *commit, void *buffer, unsigned long size) buffer 242 commit.c v->buffer = buffer; buffer 256 commit.c return v->buffer; buffer 278 commit.c void unuse_commit_buffer(const struct commit *commit, const void *buffer) buffer 281 commit.c if (!(v && v->buffer == buffer)) buffer 282 commit.c free((void *)buffer); buffer 289 commit.c free(v->buffer); buffer 290 commit.c v->buffer = NULL; buffer 305 commit.c ret = v->buffer; buffer 309 commit.c v->buffer = NULL; buffer 314 commit.c int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size) buffer 316 commit.c const char *tail = buffer; buffer 317 commit.c const char *bufptr = buffer; buffer 375 commit.c void *buffer; buffer 383 commit.c buffer = read_sha1_file(item->object.sha1, &type, &size); buffer 384 commit.c if (!buffer) buffer 389 commit.c free(buffer); buffer 393 commit.c ret = parse_commit_buffer(item, buffer, size); buffer 395 commit.c set_commit_buffer(item, buffer, size); buffer 398 commit.c free(buffer); buffer 604 commit.c const char *buffer = get_commit_buffer(commit, NULL); buffer 611 commit.c ident_line = find_commit_header(buffer, "author", &ident_len); buffer 624 commit.c unuse_commit_buffer(commit, buffer); buffer 1138 commit.c const char *buffer = get_commit_buffer(commit, &size); buffer 1142 commit.c line = buffer; buffer 1143 commit.c tail = buffer + size; buffer 1169 commit.c unuse_commit_buffer(commit, buffer); buffer 1279 commit.c static void add_extra_header(struct strbuf *buffer, buffer 1282 commit.c strbuf_addstr(buffer, extra->key); buffer 1284 commit.c strbuf_add_lines(buffer, " ", extra->value, extra->len); buffer 1286 commit.c strbuf_addch(buffer, '\n'); buffer 1294 commit.c const char *buffer = get_commit_buffer(commit, &size); buffer 1295 commit.c extra = read_commit_extra_header_lines(buffer, size, exclude); buffer 1296 commit.c unuse_commit_buffer(commit, buffer); buffer 1338 commit.c const char *buffer, size_t size, buffer 1345 commit.c for (line = buffer, eob = line + size; buffer 1530 commit.c struct strbuf buffer; buffer 1540 commit.c strbuf_init(&buffer, 8192); /* should avoid reallocs for the headers */ buffer 1541 commit.c strbuf_addf(&buffer, "tree %s\n", sha1_to_hex(tree)); buffer 1552 commit.c strbuf_addf(&buffer, "parent %s\n", buffer 1561 commit.c strbuf_addf(&buffer, "author %s\n", author); buffer 1562 commit.c strbuf_addf(&buffer, "committer %s\n", git_committer_info(IDENT_STRICT)); buffer 1564 commit.c strbuf_addf(&buffer, "encoding %s\n", git_commit_encoding); buffer 1567 commit.c add_extra_header(&buffer, extra); buffer 1570 commit.c strbuf_addch(&buffer, '\n'); buffer 1573 commit.c strbuf_add(&buffer, msg, msg_len); buffer 1576 commit.c if (encoding_is_utf8 && !verify_utf8(&buffer)) buffer 1579 commit.c if (sign_commit && do_sign_commit(&buffer, sign_commit)) buffer 1582 commit.c result = write_sha1_file(buffer.buf, buffer.len, commit_type, ret); buffer 1583 commit.c strbuf_release(&buffer); buffer 61 commit.h int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size); buffer 73 commit.h void set_commit_buffer(struct commit *, void *buffer, unsigned long size); buffer 94 commit.h void unuse_commit_buffer(const struct commit *, const void *buffer); buffer 7 compat/hstrerror.c static char buffer[48]; buffer 19 compat/hstrerror.c sprintf(buffer, "Name resolution error %d", err); buffer 20 compat/hstrerror.c return buffer; buffer 471 compat/mingw.c char buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE]; buffer 472 compat/mingw.c buf->st_size = readlink(file_name, buffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE); buffer 2054 compat/mingw.c static char *wcstoutfdup_startup(char *buffer, const wchar_t *wcs, size_t len) buffer 2056 compat/mingw.c len = xwcstoutf(buffer, wcs, len) + 1; buffer 2057 compat/mingw.c return memcpy(malloc_startup(len), buffer, len); buffer 2063 compat/mingw.c char *buffer; buffer 2090 compat/mingw.c buffer = malloc_startup(maxlen); buffer 2093 compat/mingw.c __argv[0] = wcstoutfdup_startup(buffer, _wpgmptr, maxlen); buffer 2095 compat/mingw.c __argv[i] = wcstoutfdup_startup(buffer, wargv[i], maxlen); buffer 2097 compat/mingw.c environ[i] = wcstoutfdup_startup(buffer, wenv[i], maxlen); buffer 2099 compat/mingw.c free(buffer); buffer 289 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) bufp->buffer; buffer 323 compat/regex/regcomp.c volatile re_dfa_t *dfa = (re_dfa_t *) bufp->buffer; buffer 494 compat/regex/regcomp.c preg->buffer = NULL; buffer 653 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 656 compat/regex/regcomp.c preg->buffer = NULL; buffer 692 compat/regex/regcomp.c if (!re_comp_buf.buffer) buffer 697 compat/regex/regcomp.c if (re_comp_buf.buffer) buffer 760 compat/regex/regcomp.c dfa = (re_dfa_t *) preg->buffer; buffer 767 compat/regex/regcomp.c dfa = re_realloc (preg->buffer, re_dfa_t, 1); buffer 771 compat/regex/regcomp.c preg->buffer = (unsigned char *) dfa; buffer 779 compat/regex/regcomp.c preg->buffer = NULL; buffer 799 compat/regex/regcomp.c preg->buffer = NULL; buffer 831 compat/regex/regcomp.c preg->buffer = NULL; buffer 980 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 1155 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 1336 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 2114 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 2148 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 2190 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 2229 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 2445 compat/regex/regcomp.c re_dfa_t *dfa = (re_dfa_t *) preg->buffer; buffer 368 compat/regex/regex.h unsigned char *__REPB_PREFIX(buffer); buffer 624 compat/regex/regexec.c const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer; buffer 1402 compat/regex/regexec.c const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer; buffer 320 compat/winansi.c unsigned char buffer[BUFFER_SIZE]; buffer 327 compat/winansi.c if (!ReadFile(hread, buffer + end, BUFFER_SIZE - end, &bytes, buffer 341 compat/winansi.c c = buffer[end++]; buffer 347 compat/winansi.c write_console(buffer + start, buffer 392 compat/winansi.c if (buffer[end - 1] >= 0x80) { buffer 393 compat/winansi.c if (buffer[end -1] >= 0xc0) buffer 396 compat/winansi.c buffer[end - 2] >= 0xe0) buffer 399 compat/winansi.c buffer[end - 3] >= 0xf0) buffer 405 compat/winansi.c write_console(buffer + start, end - start); buffer 409 compat/winansi.c memmove(buffer, buffer + end, bytes - end); buffer 126 connect.c char *buffer = packet_buffer; buffer 139 connect.c if (len > 4 && skip_prefix(buffer, "ERR ", &arg)) buffer 142 connect.c if (len == 48 && skip_prefix(buffer, "shallow ", &arg)) { buffer 151 connect.c if (len < 42 || get_sha1_hex(buffer, old_sha1) || buffer[40] != ' ') buffer 152 connect.c die("protocol error: expected sha/ref, got '%s'", buffer); buffer 153 connect.c name = buffer + 41; buffer 168 connect.c ref = alloc_ref(buffer + 41); buffer 50 contrib/convert-objects/convert-objects.c static void convert_binary_sha1(void *buffer) buffer 52 contrib/convert-objects/convert-objects.c struct entry *entry = convert_entry(buffer); buffer 53 contrib/convert-objects/convert-objects.c hashcpy(buffer, entry->new_sha1); buffer 56 contrib/convert-objects/convert-objects.c static void convert_ascii_sha1(void *buffer) buffer 61 contrib/convert-objects/convert-objects.c if (get_sha1_hex(buffer, sha1)) buffer 62 contrib/convert-objects/convert-objects.c die("expected sha1, got '%s'", (char *) buffer); buffer 64 contrib/convert-objects/convert-objects.c memcpy(buffer, sha1_to_hex(entry->new_sha1), 40); buffer 77 contrib/convert-objects/convert-objects.c static int write_subdirectory(void *buffer, unsigned long size, const char *base, int baselen, unsigned char *result_sha1) buffer 85 contrib/convert-objects/convert-objects.c int len = 21 + strlen(buffer); buffer 86 contrib/convert-objects/convert-objects.c char *path = strchr(buffer, ' '); buffer 91 contrib/convert-objects/convert-objects.c if (!path || strtoul_ui(buffer, 8, &mode)) buffer 103 contrib/convert-objects/convert-objects.c hashcpy((unsigned char *)new + newlen, (unsigned char *) buffer + len - 20); buffer 108 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + len; buffer 117 contrib/convert-objects/convert-objects.c len = write_subdirectory(buffer, size, origpath, slash-origpath+1, sha1); buffer 121 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + len; buffer 129 contrib/convert-objects/convert-objects.c static void convert_tree(void *buffer, unsigned long size, unsigned char *result_sha1) buffer 131 contrib/convert-objects/convert-objects.c void *orig_buffer = buffer; buffer 135 contrib/convert-objects/convert-objects.c size_t len = 1+strlen(buffer); buffer 137 contrib/convert-objects/convert-objects.c convert_binary_sha1((char *) buffer + len); buffer 143 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + len; buffer 152 contrib/convert-objects/convert-objects.c char buffer[100]; buffer 168 contrib/convert-objects/convert-objects.c p = buffer; buffer 174 contrib/convert-objects/convert-objects.c buf = buffer; buffer 236 contrib/convert-objects/convert-objects.c static void convert_date(void *buffer, unsigned long size, unsigned char *result_sha1) buffer 242 contrib/convert-objects/convert-objects.c memcpy(new + newlen, buffer, 46); buffer 244 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + 46; buffer 248 contrib/convert-objects/convert-objects.c while (!memcmp(buffer, "parent ", 7)) { buffer 249 contrib/convert-objects/convert-objects.c memcpy(new + newlen, buffer, 48); buffer 251 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + 48; buffer 256 contrib/convert-objects/convert-objects.c newlen += convert_date_line(new + newlen, &buffer, &size); buffer 258 contrib/convert-objects/convert-objects.c newlen += convert_date_line(new + newlen, &buffer, &size); buffer 261 contrib/convert-objects/convert-objects.c memcpy(new + newlen, buffer, size); buffer 268 contrib/convert-objects/convert-objects.c static void convert_commit(void *buffer, unsigned long size, unsigned char *result_sha1) buffer 270 contrib/convert-objects/convert-objects.c void *orig_buffer = buffer; buffer 273 contrib/convert-objects/convert-objects.c if (memcmp(buffer, "tree ", 5)) buffer 274 contrib/convert-objects/convert-objects.c die("Bad commit '%s'", (char *) buffer); buffer 275 contrib/convert-objects/convert-objects.c convert_ascii_sha1((char *) buffer + 5); buffer 276 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + 46; /* "tree " + "hex sha1" + "\n" */ buffer 277 contrib/convert-objects/convert-objects.c while (!memcmp(buffer, "parent ", 7)) { buffer 278 contrib/convert-objects/convert-objects.c convert_ascii_sha1((char *) buffer + 7); buffer 279 contrib/convert-objects/convert-objects.c buffer = (char *) buffer + 48; buffer 288 contrib/convert-objects/convert-objects.c void *buffer, *data; buffer 297 contrib/convert-objects/convert-objects.c buffer = xmalloc(size); buffer 298 contrib/convert-objects/convert-objects.c memcpy(buffer, data, size); buffer 301 contrib/convert-objects/convert-objects.c write_sha1_file(buffer, size, blob_type, entry->new_sha1); buffer 303 contrib/convert-objects/convert-objects.c convert_tree(buffer, size, entry->new_sha1); buffer 305 contrib/convert-objects/convert-objects.c convert_commit(buffer, size, entry->new_sha1); buffer 309 contrib/convert-objects/convert-objects.c free(buffer); buffer 247 contrib/examples/builtin-fetch--tool.c char buffer[1024]; buffer 253 contrib/examples/builtin-fetch--tool.c while (fgets(buffer, sizeof(buffer), stdin)) { buffer 259 contrib/examples/builtin-fetch--tool.c for (cp = buffer; *cp && !isspace(*cp); cp++) buffer 266 contrib/examples/builtin-fetch--tool.c if (!strcmp(buffer, "failed")) buffer 268 contrib/examples/builtin-fetch--tool.c if (!strcmp(buffer, "pack")) buffer 270 contrib/examples/builtin-fetch--tool.c if (!strcmp(buffer, "keep")) { buffer 283 contrib/examples/builtin-fetch--tool.c buffer, remote, cp, remote_nick, buffer 6 copy.c char buffer[8192]; buffer 7 copy.c ssize_t len = xread(ifd, buffer, sizeof(buffer)); buffer 12 copy.c if (write_in_full(ofd, buffer, len) < 0) buffer 50 csum-file.c git_SHA1_Update(&f->ctx, f->buffer, offset); buffer 51 csum-file.c flush(f, f->buffer, offset); buffer 61 csum-file.c git_SHA1_Final(f->buffer, &f->ctx); buffer 63 csum-file.c hashcpy(result, f->buffer); buffer 66 csum-file.c flush(f, f->buffer, 20); buffer 93 csum-file.c unsigned left = sizeof(f->buffer) - offset; buffer 100 csum-file.c if (nr == sizeof(f->buffer)) { buffer 104 csum-file.c memcpy(f->buffer + offset, buf, nr); buffer 105 csum-file.c data = f->buffer; buffer 17 csum-file.h unsigned char buffer[8192]; buffer 136 diff-delta.c const unsigned char *data, *buffer = buf; buffer 183 diff-delta.c for (data = buffer + entries * RABIN_WINDOW - RABIN_WINDOW; buffer 184 diff-delta.c data >= buffer; buffer 487 diff-lib.c init_tree_desc(&t, tree->buffer, tree->size); buffer 764 diff.c struct diff_words_buffer *buffer) buffer 766 diff.c ALLOC_GROW(buffer->text.ptr, buffer->text.size + len, buffer->alloc); buffer 769 diff.c memcpy(buffer->text.ptr + buffer->text.size, line, len); buffer 770 diff.c buffer->text.size += len; buffer 771 diff.c buffer->text.ptr[buffer->text.size] = '\0'; buffer 940 diff.c static int find_word_boundaries(mmfile_t *buffer, regex_t *word_regex, buffer 943 diff.c if (word_regex && *begin < buffer->size) { buffer 945 diff.c if (!regexec(word_regex, buffer->ptr + *begin, 1, match, 0)) { buffer 946 diff.c char *p = memchr(buffer->ptr + *begin + match[0].rm_so, buffer 948 diff.c *end = p ? p - buffer->ptr : match[0].rm_eo + *begin; buffer 956 diff.c while (*begin < buffer->size && isspace(buffer->ptr[*begin])) buffer 958 diff.c if (*begin >= buffer->size) buffer 963 diff.c while (*end < buffer->size && !isspace(buffer->ptr[*end])) buffer 974 diff.c static void diff_words_fill(struct diff_words_buffer *buffer, mmfile_t *out, buffer 984 diff.c ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc); buffer 985 diff.c buffer->orig[0].begin = buffer->orig[0].end = buffer->text.ptr; buffer 986 diff.c buffer->orig_nr = 1; buffer 988 diff.c for (i = 0; i < buffer->text.size; i++) { buffer 989 diff.c if (find_word_boundaries(&buffer->text, word_regex, &i, &j)) buffer 993 diff.c ALLOC_GROW(buffer->orig, buffer->orig_nr + 1, buffer 994 diff.c buffer->orig_alloc); buffer 995 diff.c buffer->orig[buffer->orig_nr].begin = buffer->text.ptr + i; buffer 996 diff.c buffer->orig[buffer->orig_nr].end = buffer->text.ptr + j; buffer 997 diff.c buffer->orig_nr++; buffer 1001 diff.c memcpy(out->ptr + out->size, buffer->text.ptr + i, j - i); buffer 4441 diff.c char buffer[PATH_MAX * 4 + 20]; buffer 4477 diff.c len1 = snprintf(buffer, sizeof(buffer), buffer 4487 diff.c len1 = snprintf(buffer, sizeof(buffer), buffer 4497 diff.c len1 = snprintf(buffer, sizeof(buffer), buffer 4505 diff.c git_SHA1_Update(&ctx, buffer, len1); buffer 32 editor.c int launch_editor(const char *path, struct strbuf *buffer, const char *const *env) buffer 63 editor.c if (!buffer) buffer 65 editor.c if (strbuf_read_file(buffer, path, 0) < 0) buffer 36 ewah/ewah_bitmap.c size_t rlw_offset = (uint8_t *)self->rlw - (uint8_t *)self->buffer; buffer 42 ewah/ewah_bitmap.c self->buffer = ewah_realloc(self->buffer, buffer 44 ewah/ewah_bitmap.c self->rlw = self->buffer + (rlw_offset / sizeof(eword_t)); buffer 52 ewah/ewah_bitmap.c self->buffer[self->buffer_size++] = value; buffer 58 ewah/ewah_bitmap.c self->rlw = self->buffer + self->buffer_size - 1; buffer 131 ewah/ewah_bitmap.c struct ewah_bitmap *self, const eword_t *buffer, buffer 148 ewah/ewah_bitmap.c self->buffer[self->buffer_size++] = ~buffer[i]; buffer 150 ewah/ewah_bitmap.c memcpy(self->buffer + self->buffer_size, buffer 151 ewah/ewah_bitmap.c buffer, can_add * sizeof(eword_t)); buffer 161 ewah/ewah_bitmap.c buffer += can_add; buffer 236 ewah/ewah_bitmap.c self->buffer[self->buffer_size - 1] |= buffer 240 ewah/ewah_bitmap.c if (self->buffer[self->buffer_size - 1] == (eword_t)(~0)) { buffer 241 ewah/ewah_bitmap.c self->buffer[--self->buffer_size] = 0; buffer 255 ewah/ewah_bitmap.c eword_t *word = &self->buffer[pointer]; buffer 272 ewah/ewah_bitmap.c if ((self->buffer[pointer] & ((eword_t)1 << c)) != 0) buffer 289 ewah/ewah_bitmap.c self->buffer = ewah_malloc(32 * sizeof(eword_t)); buffer 299 ewah/ewah_bitmap.c self->buffer[0] = 0; buffer 301 ewah/ewah_bitmap.c self->rlw = self->buffer; buffer 310 ewah/ewah_bitmap.c free(self->buffer); buffer 323 ewah/ewah_bitmap.c word = &it->buffer[it->pointer]; buffer 357 ewah/ewah_bitmap.c *next = it->buffer[it->pointer]; buffer 370 ewah/ewah_bitmap.c it->buffer = parent->buffer; buffer 389 ewah/ewah_bitmap.c eword_t *word = &self->buffer[pointer]; buffer 397 ewah/ewah_bitmap.c self->buffer[pointer] = ~self->buffer[pointer]; buffer 449 ewah/ewah_bitmap.c rlw_i.buffer[rlw_i.literal_word_start + k] ^ buffer 450 ewah/ewah_bitmap.c rlw_j.buffer[rlw_j.literal_word_start + k] buffer 517 ewah/ewah_bitmap.c rlw_i.buffer[rlw_i.literal_word_start + k] & buffer 518 ewah/ewah_bitmap.c rlw_j.buffer[rlw_j.literal_word_start + k] buffer 590 ewah/ewah_bitmap.c rlw_i.buffer[rlw_i.literal_word_start + k] & buffer 591 ewah/ewah_bitmap.c ~(rlw_j.buffer[rlw_j.literal_word_start + k]) buffer 658 ewah/ewah_bitmap.c rlw_i.buffer[rlw_i.literal_word_start + k] | buffer 659 ewah/ewah_bitmap.c rlw_j.buffer[rlw_j.literal_word_start + k] buffer 706 ewah/ewah_bitmap.c const uint8_t *p = (uint8_t *)self->buffer; buffer 39 ewah/ewah_io.c if (write(fd, self->buffer, to_write) != to_write) buffer 43 ewah/ewah_io.c write32 = self->rlw - self->buffer; buffer 59 ewah/ewah_io.c const eword_t *buffer; buffer 73 ewah/ewah_io.c buffer = self->buffer; buffer 77 ewah/ewah_io.c for (i = 0; i < words_per_dump; ++i, ++buffer) buffer 78 ewah/ewah_io.c dump[i] = htonll(*buffer); buffer 87 ewah/ewah_io.c for (i = 0; i < words_left; ++i, ++buffer) buffer 88 ewah/ewah_io.c dump[i] = htonll(*buffer); buffer 95 ewah/ewah_io.c rlw_pos = (uint8_t*)self->rlw - (uint8_t *)self->buffer; buffer 137 ewah/ewah_io.c self->buffer = ewah_realloc(self->buffer, buffer 140 ewah/ewah_io.c if (!self->buffer) buffer 149 ewah/ewah_io.c memcpy(self->buffer, ptr, self->buffer_size * sizeof(uint64_t)); buffer 153 ewah/ewah_io.c self->buffer[i] = ntohll(self->buffer[i]); buffer 155 ewah/ewah_io.c self->rlw = self->buffer + get_be32(ptr); buffer 167 ewah/ewah_io.c eword_t *buffer = NULL; buffer 183 ewah/ewah_io.c self->buffer = ewah_realloc(self->buffer, buffer 186 ewah/ewah_io.c if (!self->buffer) buffer 190 ewah/ewah_io.c buffer = self->buffer; buffer 197 ewah/ewah_io.c for (i = 0; i < words_per_dump; ++i, ++buffer) buffer 198 ewah/ewah_io.c *buffer = ntohll(dump[i]); buffer 207 ewah/ewah_io.c for (i = 0; i < words_left; ++i, ++buffer) buffer 208 ewah/ewah_io.c *buffer = ntohll(dump[i]); buffer 215 ewah/ewah_io.c self->rlw = self->buffer + ntohl(rlw_pos); buffer 29 ewah/ewah_rlw.c it->rlw.word = &it->buffer[it->pointer]; buffer 42 ewah/ewah_rlw.c it->buffer = from_ewah->buffer; buffer 100 ewah/ewah_rlw.c it->buffer + it->literal_word_start, pd, negate); buffer 69 ewah/ewok.h eword_t *buffer; buffer 145 ewah/ewok.h const eword_t *buffer; buffer 203 ewah/ewok.h struct ewah_bitmap *self, const eword_t *buffer, size_t number, int negate); buffer 84 ewah/ewok_rlw.h const eword_t *buffer; buffer 135 fsck.c char buffer[41]; buffer 149 fsck.c int result = read_in_full(fd, buffer, sizeof(buffer)); buffer 154 fsck.c if (get_sha1_hex(buffer, sha1) || buffer[40] != '\n') buffer 155 fsck.c die("Invalid SHA-1: %s", buffer); buffer 307 fsck.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 444 fsck.c init_tree_desc(&desc, item->buffer, item->size); buffer 464 fsck.c has_zero_pad |= *(char *)desc.buffer == '0'; buffer 533 fsck.c const char *buffer = (const char *)data; buffer 537 fsck.c switch (buffer[i]) { buffer 543 fsck.c if (i + 1 < size && buffer[i + 1] == '\n') buffer 554 fsck.c if (size && buffer[size - 1] == '\n') buffer 605 fsck.c static int fsck_commit_buffer(struct commit *commit, const char *buffer, buffer 613 fsck.c if (verify_headers(buffer, size, &commit->object, options)) buffer 616 fsck.c if (!skip_prefix(buffer, "tree ", &buffer)) buffer 618 fsck.c if (get_sha1_hex(buffer, tree_sha1) || buffer[40] != '\n') { buffer 623 fsck.c buffer += 41; buffer 624 fsck.c while (skip_prefix(buffer, "parent ", &buffer)) { buffer 625 fsck.c if (get_sha1_hex(buffer, sha1) || buffer[40] != '\n') { buffer 630 fsck.c buffer += 41; buffer 651 fsck.c while (skip_prefix(buffer, "author ", &buffer)) { buffer 653 fsck.c err = fsck_ident(&buffer, &commit->object, options); buffer 663 fsck.c if (!skip_prefix(buffer, "committer ", &buffer)) buffer 665 fsck.c err = fsck_ident(&buffer, &commit->object, options); buffer 677 fsck.c const char *buffer = data ? data : get_commit_buffer(commit, &size); buffer 678 fsck.c int ret = fsck_commit_buffer(commit, buffer, size, options); buffer 680 fsck.c unuse_commit_buffer(commit, buffer); buffer 689 fsck.c const char *buffer; buffer 694 fsck.c buffer = data; buffer 698 fsck.c buffer = to_free = buffer 700 fsck.c if (!buffer) buffer 714 fsck.c if (verify_headers(buffer, size, &tag->object, options)) buffer 717 fsck.c if (!skip_prefix(buffer, "object ", &buffer)) { buffer 721 fsck.c if (get_sha1_hex(buffer, sha1) || buffer[40] != '\n') { buffer 726 fsck.c buffer += 41; buffer 728 fsck.c if (!skip_prefix(buffer, "type ", &buffer)) { buffer 732 fsck.c eol = strchr(buffer, '\n'); buffer 737 fsck.c if (type_from_string_gently(buffer, eol - buffer, 1) < 0) buffer 741 fsck.c buffer = eol + 1; buffer 743 fsck.c if (!skip_prefix(buffer, "tag ", &buffer)) { buffer 747 fsck.c eol = strchr(buffer, '\n'); buffer 752 fsck.c strbuf_addf(&sb, "refs/tags/%.*s", (int)(eol - buffer), buffer); buffer 756 fsck.c (int)(eol - buffer), buffer); buffer 760 fsck.c buffer = eol + 1; buffer 762 fsck.c if (!skip_prefix(buffer, "tagger ", &buffer)) { buffer 769 fsck.c ret = fsck_ident(&buffer, &tag->object, options); buffer 150 gpg-interface.c int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key) buffer 174 gpg-interface.c if (write_in_full(gpg.in, buffer->buf, buffer->len) != buffer->len) { buffer 28 gpg-interface.h extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key); buffer 69 hex.c char *buffer = hexbuffer[3 & ++bufno], *buf = buffer; buffer 79 hex.c return buffer; buffer 64 http-backend.c static char buffer[1024]; buffer 70 http-backend.c n = vsnprintf(buffer, sizeof(buffer), fmt, args); buffer 72 http-backend.c if (n >= sizeof(buffer)) buffer 75 http-backend.c write_or_die(fd, buffer, n); buffer 119 http-push.c struct buffer buffer; buffer 192 http-push.c const char *custom_req, struct buffer *buffer, buffer 197 http-push.c curl_easy_setopt(curl, CURLOPT_INFILE, buffer); buffer 198 http-push.c curl_easy_setopt(curl, CURLOPT_INFILESIZE, buffer->buf.len); buffer 202 http-push.c curl_easy_setopt(curl, CURLOPT_IOCTLDATA, buffer); buffer 369 http-push.c strbuf_init(&request->buffer.buf, size); buffer 370 http-push.c request->buffer.posn = 0; buffer 373 http-push.c stream.next_out = (unsigned char *)request->buffer.buf.buf; buffer 390 http-push.c request->buffer.buf.len = stream.total_out; buffer 404 http-push.c &request->buffer, fwrite_null); buffer 841 http-push.c struct buffer out_buffer = { STRBUF_INIT, 0 }; buffer 1127 http-push.c struct buffer out_buffer = { STRBUF_INIT, 0 }; buffer 1205 http-push.c struct buffer out_buffer = { STRBUF_INIT, 0 }; buffer 1318 http-push.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 1387 http-push.c struct buffer out_buffer = { STRBUF_INIT, 0 }; buffer 1510 http-push.c struct buffer buffer = { STRBUF_INIT, 0 }; buffer 1516 http-push.c add_remote_info_ref, &buffer.buf); buffer 1523 http-push.c &buffer, fwrite_null); buffer 1535 http-push.c strbuf_release(&buffer.buf); buffer 1563 http-push.c struct strbuf buffer = STRBUF_INIT; buffer 1566 http-push.c if (http_get_strbuf(url, &buffer, NULL) != HTTP_OK) buffer 1575 http-push.c if (buffer.len == 0) buffer 1579 http-push.c strbuf_rtrim(&buffer); buffer 1582 http-push.c if (skip_prefix(buffer.buf, "ref: ", &name)) { buffer 1583 http-push.c *symref = xmemdupz(name, buffer.len - (name - buffer.buf)); buffer 1585 http-push.c get_sha1_hex(buffer.buf, sha1); buffer 1588 http-push.c strbuf_release(&buffer); buffer 33 http-walker.c struct strbuf *buffer; buffer 194 http-walker.c !alt_req->buffer->len) { buffer 221 http-walker.c fwrite_buffer((char *)&null_byte, 1, 1, alt_req->buffer); buffer 222 http-walker.c alt_req->buffer->len--; buffer 223 http-walker.c data = alt_req->buffer->buf; buffer 225 http-walker.c while (i < alt_req->buffer->len) { buffer 227 http-walker.c while (posn < alt_req->buffer->len && data[posn] != '\n') buffer 314 http-walker.c struct strbuf buffer = STRBUF_INIT; buffer 352 http-walker.c curl_easy_setopt(slot->curl, CURLOPT_FILE, &buffer); buffer 358 http-walker.c alt_req.buffer = &buffer; buffer 367 http-walker.c strbuf_release(&buffer); buffer 96 http.c struct buffer *buffer = buffer_; buffer 98 http.c if (size > buffer->buf.len - buffer->posn) buffer 99 http.c size = buffer->buf.len - buffer->posn; buffer 100 http.c memcpy(ptr, buffer->buf.buf + buffer->posn, size); buffer 101 http.c buffer->posn += size; buffer 109 http.c struct buffer *buffer = clientp; buffer 116 http.c buffer->posn = 0; buffer 128 http.c struct strbuf *buffer = buffer_; buffer 130 http.c strbuf_add(buffer, ptr, size); buffer 1381 http.c struct strbuf buffer = STRBUF_INIT; buffer 1387 http.c if (http_get_strbuf(url, &buffer, &options) == HTTP_OK) { buffer 1388 http.c strbuf_rtrim(&buffer); buffer 1389 http.c if (buffer.len == 40) buffer 1390 http.c ret = get_sha1_hex(buffer.buf, ref->old_sha1); buffer 1391 http.c else if (starts_with(buffer.buf, "ref: ")) { buffer 1392 http.c ref->symref = xstrdup(buffer.buf + 5); buffer 1397 http.c strbuf_release(&buffer); buffer 1456 imap-send.c struct buffer msgbuf = { STRBUF_INIT, 0 }; buffer 101 list-objects.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 349 log-tree.c static char buffer[64]; buffer 350 log-tree.c snprintf(buffer, sizeof(buffer), buffer 356 log-tree.c subject = buffer; buffer 358 log-tree.c static char buffer[256]; buffer 359 log-tree.c snprintf(buffer, sizeof(buffer), buffer 362 log-tree.c subject = buffer; buffer 384 log-tree.c static char buffer[1024]; buffer 408 log-tree.c snprintf(buffer, sizeof(buffer) - 1, buffer 419 log-tree.c opt->diffopt.stat_sep = buffer; buffer 118 mailmap.c static char *parse_name_and_email(char *buffer, char **name, buffer 124 mailmap.c if ((left = strchr(buffer, '<')) == NULL) buffer 132 mailmap.c nstart = buffer; buffer 147 mailmap.c static void read_mailmap_line(struct string_list *map, char *buffer, buffer 151 mailmap.c if (buffer[0] == '#') { buffer 154 mailmap.c int len = strlen(buffer); buffer 159 mailmap.c if (len && buffer[len - 1] == '\n') buffer 160 mailmap.c buffer[--len] = 0; buffer 161 mailmap.c if (!strncmp(buffer, abbrev, abblen)) { buffer 167 mailmap.c for (cp = buffer + abblen; isspace(*cp); cp++) buffer 173 mailmap.c if ((name2 = parse_name_and_email(buffer, &name1, &email1, 0)) != NULL) buffer 183 mailmap.c char buffer[1024]; buffer 197 mailmap.c while (fgets(buffer, sizeof(buffer), f) != NULL) buffer 198 mailmap.c read_mailmap_line(map, buffer, repo_abbrev); buffer 53 match-trees.c void *buffer; buffer 57 match-trees.c buffer = read_sha1_file(hash, &type, &size); buffer 58 match-trees.c if (!buffer) buffer 62 match-trees.c init_tree_desc(desc, buffer, size); buffer 63 match-trees.c return buffer; buffer 216 merge-recursive.c init_tree_desc(desc, tree->buffer, tree->size); buffer 89 merge.c init_tree_desc(t+i, trees[i]->buffer, trees[i]->size); buffer 676 notes-merge.c const char *buffer = get_commit_buffer(partial_commit, NULL); buffer 677 notes-merge.c const char *msg = strstr(buffer, "\n\n"); buffer 726 notes-merge.c unuse_commit_buffer(partial_commit, buffer); buffer 185 object.c struct object *parse_object_buffer(const unsigned char *sha1, enum object_type type, unsigned long size, void *buffer, int *eaten_p) buffer 194 object.c if (parse_blob_buffer(blob, buffer, size)) buffer 202 object.c if (!tree->buffer) buffer 205 object.c if (parse_tree_buffer(tree, buffer, size)) buffer 213 object.c if (parse_commit_buffer(commit, buffer, size)) buffer 216 object.c set_commit_buffer(commit, buffer, size); buffer 224 object.c if (parse_tag_buffer(tag, buffer, size)) buffer 251 object.c void *buffer; buffer 269 object.c buffer = read_sha1_file(sha1, &type, &size); buffer 270 object.c if (buffer) { buffer 271 object.c if (check_sha1_signature(repl, buffer, size, typename(type)) < 0) { buffer 272 object.c free(buffer); buffer 277 object.c obj = parse_object_buffer(sha1, type, size, buffer, &eaten); buffer 279 object.c free(buffer); buffer 105 object.h struct object *parse_object_buffer(const unsigned char *sha1, enum object_type type, unsigned long size, void *buffer, int *eaten_p); buffer 200 pack-bitmap.c static inline uint32_t read_be32(const unsigned char *buffer, size_t *pos) buffer 202 pack-bitmap.c uint32_t result = get_be32(buffer + *pos); buffer 207 pack-bitmap.c static inline uint8_t read_u8(const unsigned char *buffer, size_t *pos) buffer 209 pack-bitmap.c return buffer[(*pos)++]; buffer 284 path.c char *buf, buffer[256]; buffer 294 path.c len = readlink(path, buffer, sizeof(buffer)-1); buffer 295 path.c if (len >= 5 && !memcmp("refs/", buffer, 5)) buffer 306 path.c len = read_in_full(fd, buffer, sizeof(buffer)-1); buffer 314 path.c if (!memcmp("ref:", buffer, 4)) { buffer 315 path.c buf = buffer + 4; buffer 326 path.c if (!get_sha1_hex(buffer, sha1)) buffer 193 pkt-line.c char *buffer, unsigned size, int options) buffer 211 pkt-line.c ret = get_packet_data(fd, src_buf, src_len, buffer, len, options); buffer 216 pkt-line.c len && buffer[len-1] == '\n') buffer 219 pkt-line.c buffer[len] = 0; buffer 220 pkt-line.c packet_trace(buffer, len, 0); buffer 61 pkt-line.h *buffer, unsigned size, int options); buffer 11 prompt.c static struct strbuf buffer = STRBUF_INIT; buffer 24 prompt.c strbuf_reset(&buffer); buffer 25 prompt.c if (strbuf_read(&buffer, pass.out, 20) < 0) buffer 35 prompt.c strbuf_release(&buffer); buffer 39 prompt.c strbuf_setlen(&buffer, strcspn(buffer.buf, "\r\n")); buffer 41 prompt.c return buffer.buf; buffer 177 read-cache.c void *buffer; buffer 185 read-cache.c buffer = read_sha1_file(ce->sha1, &type, &size); buffer 186 read-cache.c if (buffer) { buffer 188 read-cache.c match = memcmp(buffer, sb.buf, size); buffer 189 read-cache.c free(buffer); buffer 1487 refs.c char buffer[128], *p; buffer 1500 refs.c len = read(fd, buffer, sizeof(buffer)-1); buffer 1504 refs.c while (len && isspace(buffer[len-1])) buffer 1506 refs.c buffer[len] = 0; buffer 1509 refs.c if (!get_sha1_hex(buffer, sha1)) buffer 1513 refs.c if (strncmp(buffer, "ref:", 4)) buffer 1515 refs.c p = buffer + 4; buffer 1590 refs.c char buffer[256]; buffer 1657 refs.c len = readlink(path, buffer, sizeof(buffer)-1); buffer 1665 refs.c buffer[len] = 0; buffer 1666 refs.c if (starts_with(buffer, "refs/") && buffer 1667 refs.c !check_refname_format(buffer, 0)) { buffer 1668 refs.c strcpy(refname_buffer, buffer); buffer 1698 refs.c len = read_in_full(fd, buffer, sizeof(buffer)-1); buffer 1706 refs.c while (len && isspace(buffer[len-1])) buffer 1708 refs.c buffer[len] = '\0'; buffer 1713 refs.c if (!starts_with(buffer, "ref:")) { buffer 1718 refs.c if (get_sha1_hex(buffer, sha1) || buffer 1719 refs.c (buffer[40] != '\0' && !isspace(buffer[40]))) { buffer 1734 refs.c buf = buffer + 4; buffer 242 remote-curl.c struct strbuf buffer = STRBUF_INIT; buffer 272 remote-curl.c http_ret = http_get_strbuf(refs_url.buf, &buffer, &options); buffer 277 remote-curl.c show_http_message(&type, &charset, &buffer); buffer 280 remote-curl.c show_http_message(&type, &charset, &buffer); buffer 283 remote-curl.c show_http_message(&type, &charset, &buffer); buffer 289 remote-curl.c last->buf_alloc = strbuf_detach(&buffer, &last->len); buffer 330 remote-curl.c strbuf_release(&buffer); buffer 58 remote.c static char buffer[BUF_SIZE]; buffer 258 remote.c while (fgets(buffer, BUF_SIZE, f)) { buffer 262 remote.c if (starts_with(buffer, "URL:")) { buffer 264 remote.c s = buffer + 4; buffer 265 remote.c } else if (starts_with(buffer, "Push:")) { buffer 267 remote.c s = buffer + 5; buffer 268 remote.c } else if (starts_with(buffer, "Pull:")) { buffer 270 remote.c s = buffer + 5; buffer 309 remote.c s = fgets(buffer, BUF_SIZE, f); buffer 114 revision.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 318 sh-i18n--envsubst.c static char *buffer; buffer 351 sh-i18n--envsubst.c buffer = xrealloc (buffer, bufmax); buffer 353 sh-i18n--envsubst.c buffer[buflen++] = c; buffer 385 sh-i18n--envsubst.c buffer = xrealloc (buffer, bufmax); buffer 387 sh-i18n--envsubst.c buffer[buflen] = '\0'; buffer 391 sh-i18n--envsubst.c && !sorted_string_list_member (&variables_set, buffer)) buffer 398 sh-i18n--envsubst.c const char *env_value = getenv (buffer); buffer 411 sh-i18n--envsubst.c fwrite (buffer, buflen, 1, stdout); buffer 1617 sha1_file.c int unpack_sha1_header(git_zstream *stream, unsigned char *map, unsigned long mapsize, void *buffer, unsigned long bufsiz) buffer 1623 sha1_file.c stream->next_out = buffer; buffer 1631 sha1_file.c unsigned long mapsize, void *buffer, buffer 1636 sha1_file.c status = unpack_sha1_header(stream, map, mapsize, buffer, bufsiz); buffer 1641 sha1_file.c if (memchr(buffer, '\0', stream->next_out - (unsigned char *)buffer)) buffer 1649 sha1_file.c strbuf_add(header, buffer, stream->next_out - (unsigned char *)buffer); buffer 1650 sha1_file.c stream->next_out = buffer; buffer 1655 sha1_file.c strbuf_add(header, buffer, stream->next_out - (unsigned char *)buffer); buffer 1656 sha1_file.c if (memchr(buffer, '\0', stream->next_out - (unsigned char *)buffer)) buffer 1658 sha1_file.c stream->next_out = buffer; buffer 1664 sha1_file.c static void *unpack_sha1_rest(git_zstream *stream, void *buffer, unsigned long size, const unsigned char *sha1) buffer 1666 sha1_file.c int bytes = strlen(buffer) + 1; buffer 1674 sha1_file.c memcpy(buf, (char *) buffer + bytes, n); buffer 2091 sha1_file.c unsigned char *buffer, *in; buffer 2093 sha1_file.c buffer = xmallocz_gently(size); buffer 2094 sha1_file.c if (!buffer) buffer 2097 sha1_file.c stream.next_out = buffer; buffer 2111 sha1_file.c free(buffer); buffer 2115 sha1_file.c return buffer; buffer 2899 sha1_file.c void *buffer; buffer 2909 sha1_file.c buffer = read_sha1_file(actual_sha1, &type, &isize); buffer 2910 sha1_file.c if (!buffer) buffer 2916 sha1_file.c return buffer; buffer 2924 sha1_file.c free(buffer); buffer 2930 sha1_file.c memcmp(buffer, ref_type, ref_length) || buffer 2931 sha1_file.c get_sha1_hex((char *) buffer + ref_length, actual_sha1)) { buffer 2932 sha1_file.c free(buffer); buffer 2935 sha1_file.c free(buffer); buffer 3041 sha1_file.c static int create_tmpfile(char *buffer, size_t bufsiz, const char *filename) buffer 3049 sha1_file.c memcpy(buffer, filename, dirlen); buffer 3050 sha1_file.c strcpy(buffer + dirlen, "tmp_obj_XXXXXX"); buffer 3051 sha1_file.c fd = git_mkstemp_mode(buffer, 0444); buffer 3054 sha1_file.c memcpy(buffer, filename, dirlen); buffer 3055 sha1_file.c buffer[dirlen-1] = 0; buffer 3056 sha1_file.c if (mkdir(buffer, 0777) && errno != EEXIST) buffer 3058 sha1_file.c if (adjust_shared_perm(buffer)) buffer 3062 sha1_file.c strcpy(buffer + dirlen - 1, "/tmp_obj_XXXXXX"); buffer 3063 sha1_file.c fd = git_mkstemp_mode(buffer, 0444); buffer 493 strbuf.h extern int launch_editor(const char *path, struct strbuf *buffer, const char *const *env); buffer 9 test-sha1.c char *buffer; buffer 21 test-sha1.c while ((buffer = malloc(bufsz)) == NULL) { buffer 32 test-sha1.c char *cp = buffer; buffer 47 test-sha1.c git_SHA1_Update(&ctx, buffer, this_sz); buffer 43 transport-helper.c static void sendline(struct helper_data *helper, struct strbuf *buffer) buffer 46 transport-helper.c fprintf(stderr, "Debug: Remote helper: -> %s", buffer->buf); buffer 47 transport-helper.c if (write_in_full(helper->helper->in, buffer->buf, buffer->len) buffer 48 transport-helper.c != buffer->len) buffer 52 transport-helper.c static int recvline_fh(FILE *helper, struct strbuf *buffer, const char *name) buffer 54 transport-helper.c strbuf_reset(buffer); buffer 57 transport-helper.c if (strbuf_getline(buffer, helper, '\n') == EOF) { buffer 64 transport-helper.c fprintf(stderr, "Debug: Remote helper: <- %s\n", buffer->buf); buffer 68 transport-helper.c static int recvline(struct helper_data *helper, struct strbuf *buffer) buffer 70 transport-helper.c return recvline_fh(helper->out, buffer, helper->name); buffer 75 transport.c char buffer[40]; buffer 81 transport.c if (read_in_full(fd, buffer, 40) != 40 || buffer 82 transport.c get_sha1_hex(buffer, next->old_sha1)) { buffer 106 transport.c static char buffer[PATH_MAX]; buffer 115 transport.c if (!fgets(buffer, sizeof(buffer), f)) { buffer 120 transport.c if (!isxdigit(buffer[0])) buffer 122 transport.c len = strlen(buffer); buffer 123 transport.c if (len && buffer[len - 1] == '\n') buffer 124 transport.c buffer[--len] = '\0'; buffer 128 transport.c (cmp = strcmp(buffer + 41, buffer 132 transport.c struct ref *next = alloc_ref(buffer + 41); buffer 133 transport.c buffer[40] = '\0'; buffer 134 transport.c if (get_sha1_hex(buffer, next->old_sha1)) { buffer 135 transport.c warning ("invalid SHA-1: %s", buffer); buffer 44 tree-walk.c void init_tree_desc(struct tree_desc *desc, const void *buffer, unsigned long size) buffer 46 tree-walk.c desc->buffer = buffer; buffer 49 tree-walk.c decode_tree_entry(desc, buffer, size); buffer 78 tree-walk.c const void *buf = desc->buffer; buffer 87 tree-walk.c desc->buffer = buf; buffer 531 tree-walk.c if (!t.buffer) { buffer 617 tree-walk.c t.buffer = NULL; buffer 11 tree-walk.h const void *buffer; buffer 68 tree.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 196 tree.c int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size) buffer 201 tree.c item->buffer = buffer; buffer 210 tree.c void *buffer; buffer 215 tree.c buffer = read_sha1_file(item->object.sha1, &type, &size); buffer 216 tree.c if (!buffer) buffer 221 tree.c free(buffer); buffer 225 tree.c return parse_tree_buffer(item, buffer, size); buffer 230 tree.c free(tree->buffer); buffer 231 tree.c tree->buffer = NULL; buffer 11 tree.h void *buffer; buffer 17 tree.h int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); buffer 39 walker.c init_tree_desc(&desc, tree->buffer, tree->size); buffer 217 xdiff-interface.c char *buffer, long buffer_size, void *priv) buffer 252 xdiff-interface.c memcpy(buffer, line, result); buffer 272 xdiff-interface.c char *buffer = NULL; buffer 280 xdiff-interface.c expression = buffer = xstrndup(value, ep - value); buffer 285 xdiff-interface.c free(buffer); buffer 89 xdiff/xdiff.h typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long buffer_size, void *priv);