Home
last modified time | relevance | path

Searched refs:oldlen (Results 1 - 15 of 15) sorted by relevance

/third_party/toybox/toys/posix/
H A Dpatch.c55 long oldline, oldlen, newline, newlen;
322 if (*patchline != '+') TT.oldlen--; in patch_main()
330 if (!TT.oldlen && !TT.newlen) state = apply_one_hunk(); in patch_main()
366 // Start a new hunk? Usually @@ -oldline,oldlen +newline,newlen @@ in patch_main()
372 // Read oldline[,oldlen] +newline[,newlen] in patch_main()
374 TT.oldlen = TT.newlen = 1; in patch_main()
376 if (*s == ',') TT.oldlen=strtol(s+1, &s, 10); in patch_main()
388 oldsum = TT.oldline + TT.oldlen; in patch_main()
H A Dsed.c229 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
235 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
236 if (newline) s[oldlen++] = '\n'; in extend_string()
237 memcpy(s+oldlen, new, newlen); in extend_string()
238 s[oldlen+newlen] = 0; in extend_string()
240 return s+oldlen+newlen+1; in extend_string()
/third_party/ltp/testcases/kernel/syscalls/sysctl/
H A Dsysctl04.c33 size_t *oldlen; member
49 .oldlenp = tc->oldlen, in verify_sysctl()
/third_party/ntfs-3g/libfuse-lite/
H A Dfuse_opt.c105 unsigned oldlen = strlen(*opts); in fuse_opt_add_opt() local
106 newopts = realloc(*opts, oldlen + 1 + strlen(opt) + 1); in fuse_opt_add_opt()
108 newopts[oldlen] = ','; in fuse_opt_add_opt()
109 strcpy(newopts + oldlen + 1, opt); in fuse_opt_add_opt()
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_sctp_sendrecvmsg.c93 socklen_t len, oldlen; in main() local
153 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &oldlen, &len); in main()
195 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &oldlen, in main()
196 sizeof(oldlen)); in main()
/third_party/libfuse/util/
H A Dmount.fuse.c106 int oldlen = options ? strlen(options) : 0; in add_option() local
108 options = xrealloc(options, oldlen + 1 + strlen(opt) + 1); in add_option()
109 if (!oldlen) in add_option()
/third_party/libfuse/lib/
H A Dfuse_opt.c117 unsigned oldlen = *opts ? strlen(*opts) : 0; in add_opt_common() local
118 char *d = realloc(*opts, oldlen + 1 + strlen(opt) * 2 + 1); in add_opt_common()
124 if (oldlen) { in add_opt_common()
125 d += oldlen; in add_opt_common()
/third_party/backends/backend/
H A Ddll.c726 size_t oldlen, newlen; in add_alias() local
778 oldlen = oldend - oldname; in add_alias()
783 alias->oldname = malloc (oldlen + newlen + 2); in add_alias()
786 strncpy (alias->oldname, oldname, oldlen); in add_alias()
787 alias->oldname[oldlen] = '\0'; in add_alias()
790 alias->newname = alias->oldname + oldlen + 1; in add_alias()
/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc.c424 size_t oldlen = n0 + extra; in realloc() local
444 if (oldlen == newlen) return p; in realloc()
450 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A Dmalloc.c370 size_t oldlen = n0 + extra; in realloc() local
379 if (oldlen == newlen) return p; in realloc()
380 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
H A Dmalloc.c398 size_t oldlen = n0 + extra; in realloc() local
414 if (oldlen == newlen) return p; in realloc()
418 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
/third_party/ntfs-3g/libntfs-3g/
H A Ddir.c2684 int oldlen; in ntfs_set_ntfs_dos_name() local
2714 oldlen = get_dos_name(ni, dnum, oldname); in ntfs_set_ntfs_dos_name()
2715 if ((oldlen >= 0) in ntfs_set_ntfs_dos_name()
2718 if (oldlen > 0) { in ntfs_set_ntfs_dos_name()
2723 if ((shortlen == oldlen) in ntfs_set_ntfs_dos_name()
2725 oldlen*sizeof(ntfschar))) in ntfs_set_ntfs_dos_name()
2732 oldname, oldlen, TRUE); in ntfs_set_ntfs_dos_name()
/third_party/python/Lib/lib2to3/pgen2/
H A Dpgen.py160 oldlen = len(dfa)
164 #print name, oldlen, newlen
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dencode_decode.c43 size_t oldlen = RSTRING_LEN(rb_str); in noleak_rb_str_cat() local
46 memcpy(p + oldlen, str, len); in noleak_rb_str_cat()
47 rb_str_set_len(rb_str, oldlen + len); in noleak_rb_str_cat()
/third_party/toybox/generated/
H A Dglobals.h1432 long oldline, oldlen, newline, newlen; member

Completed in 23 milliseconds