/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | cvtpath.c | 34 cvtpath(char *path, char *copy) in cvtpath() argument 36 *copy++ = '/'; in cvtpath() 41 (void) strcpy(copy, root + (*root == '/' ? 1 : 0)); in cvtpath() 42 copy += strlen(copy); in cvtpath() 43 if (copy[-1] != '/') in cvtpath() 44 *copy++ = '/'; in cvtpath() 47 (void) strcpy(copy, in cvtpath() 49 copy += strlen(copy); in cvtpath() 50 if (copy[-1] != '/') in cvtpath() 51 *copy++ = '/'; in cvtpath() [all …]
|
H A D | srcpath.c | 44 char *copy; in srcpath() local 47 copy = tmppath; in srcpath() 52 (void) strcpy(copy, dir); in srcpath() 53 copy += theLen; in srcpath() 56 copy[0] = '\0'; in srcpath() 61 (void) snprintf(copy, copyLen, in srcpath() 65 (void) snprintf(copy, copyLen, in srcpath()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | puttext.c | 50 wchar_t *copy, *lastword, *lastend, temp[MWIDTH+1]; in puttext() local 90 copy = temp; in puttext() 136 lastend = copy; in puttext() 137 *copy++ = L' '; in puttext() 145 lastend = copy; in puttext() 149 *copy++ = L' '; in puttext() 154 lastend = copy; in puttext() 156 *copy++ = L' '; in puttext() 171 *copy++ = *wp++; in puttext() 178 *copy++ = *wp++; in puttext() [all …]
|
H A D | pkgparam.c | 124 char *mempt, *copy; in fpkgparam() local 138 copy = buffer; in fpkgparam() 147 *copy++ = ch; in fpkgparam() 160 *copy = '\0'; /* Terminate the string. */ in fpkgparam() 162 copy = NULL; /* Comments don't get buffered. */ in fpkgparam() 167 copy = buffer; in fpkgparam() 171 copy = NULL; in fpkgparam() 175 copy = buffer; in fpkgparam() 215 copy -= n - idx; in fpkgparam() 228 copy -= n - idx; in fpkgparam() [all …]
|
H A D | getinput.c | 43 char *copy, *pt; in getinput() local 48 copy = s; in getinput() 55 *copy++ = *pt++; in getinput() 56 *copy = '\0'; in getinput() 58 if (copy != s) { in getinput() 59 copy--; in getinput() 60 while (isspace((unsigned char)*copy)) in getinput() 61 *copy-- = '\0'; in getinput()
|
H A D | ckdate.c | 117 char *ptr, *copy; in p_eday() local 126 copy = string; in p_eday() 127 while (isdigit((unsigned char)*copy) && (iday < idaymax)) { in p_eday() 128 copy++; in p_eday() 166 char *copy; in p_month() local 183 copy = string; in p_month() 185 while (((islower((unsigned char)*copy)) || in p_month() 186 (isupper((unsigned char)*copy))) && (imnth < mlen)) { in p_month() 187 mletter[imnth] = toupper((unsigned char)*copy++); in p_month()
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | inflate.c | 98 unsigned copy)); 382 local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) in updatewindow() argument 405 if (copy >= state->wsize) { in updatewindow() 412 if (dist > copy) dist = copy; in updatewindow() 413 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow() 414 copy -= dist; in updatewindow() 415 if (copy) { in updatewindow() 416 zmemcpy(state->window, end - copy, copy); in updatewindow() 417 state->wnext = copy; in updatewindow() 614 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local [all …]
|
H A D | infback.c | 254 unsigned copy; /* number of stored or match bytes to copy */ in inflateBack() local 333 copy = state->length; in inflateBack() 336 if (copy > have) copy = have; in inflateBack() 337 if (copy > left) copy = left; in inflateBack() 338 zmemcpy(put, next, copy); in inflateBack() 339 have -= copy; in inflateBack() 340 next += copy; in inflateBack() 341 left -= copy; in inflateBack() 342 put += copy; in inflateBack() 343 state->length -= copy; in inflateBack() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | getlist.c | 79 char *copy, local 108 copy = begin; 113 copy += strspn(copy, ws); 114 if (!*copy) { 122 p = strchr(copy, '\0'); 123 while (--p != copy && strchr(ws, *p)) 130 for (n = 0, p = copy; *p; ) { 163 for (n = 0, p = copy; *p; ) 170 list[n++] = unq_strdup(copy, sep); 181 copy = p; [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | copy.test | 15 # $Id: copy.test,v 1.17 2004/02/17 18:26:57 dougcurrie Exp $ 20 # Create a file of data from which to copy. 55 do_test copy-1.1 { 62 do_test copy-1.2 { 69 do_test copy-1.3 { 77 do_test copy-1.4 { 85 do_test copy-1.5 { 90 do_test copy-1.6 { 95 do_test copy-1.7 { 103 do_test copy-1.8 { [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | mappath.c | 65 char *npt, *pt, *pt2, *copy; in mappath() local 69 copy = buffer; in mappath() 99 *copy++ = *token++; in mappath() 103 *copy++ = *pt++; in mappath() 115 *copy++ = *pt++; in mappath() 124 *copy++ = *pt++; in mappath() 126 *copy++ = *pt++; in mappath() 137 *copy++ = *pt++; in mappath() 143 *copy++ = *pt++; in mappath() 145 *copy = '\0'; in mappath()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astlicense.c | 47 #undef copy 228 copy(register Buffer_t* b, register char* s, int n) in copy() function 381 copy(b, "Copyright (c) ", -1); in copyright() 399 copy(b, t, 4); in copyright() 441 copy(buf, file, -1); in push() 442 copy(buf, ": no space", -1); in push() 470 copy(buf, file, -1); in push() 471 copy(buf, ": cannot open", -1); in push() 480 copy(buf, file, -1); in push() 481 copy(buf, ": cannot read", -1); in push() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | stringrp.c | 168 char *copy; /* The recorded copy of string[] */ in _sg_store_string() local 179 copy = _sg_alloc_string(sg, len); in _sg_store_string() 180 if(copy) { in _sg_store_string() 189 char *dst = copy; /* A pointer into the cached copy of the */ in _sg_store_string() 206 strlcpy(copy, string, len + 1); in _sg_store_string() 213 return copy; in _sg_store_string() 229 char *copy; /* The allocated string */ in _sg_alloc_string() local 270 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string() 275 return copy; in _sg_alloc_string()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cut.c | 371 register unsigned char *copy; in cutfields() local 394 copy = cp; in cutfields() 396 copy = 0; in cutfields() 400 else if (copy) in cutfields() 401 copy = cp; in cutfields() 430 if (copy) in cutfields() 433 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0) in cutfields() 454 if (copy) in cutfields() 456 copy = bp; in cutfields() 517 if (copy) in cutfields() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | fastlz.c | 208 unsigned int copy; in FASTLZ_COMPRESSOR() local 228 copy = 2; in FASTLZ_COMPRESSOR() 331 if (copy) in FASTLZ_COMPRESSOR() 333 *(op - copy - 1) = copy - 1; in FASTLZ_COMPRESSOR() 339 copy = 0; in FASTLZ_COMPRESSOR() 411 copy++; in FASTLZ_COMPRESSOR() 412 if (FASTLZ_UNEXPECT_CONDITIONAL(copy == MAX_COPY)) { in FASTLZ_COMPRESSOR() 413 copy = 0; in FASTLZ_COMPRESSOR() 422 copy++; in FASTLZ_COMPRESSOR() 423 if (copy == MAX_COPY) { in FASTLZ_COMPRESSOR() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | memcpy.S | 74 jbe .OneByteCopy / goto fast short copy loop 81 rep; smovb / do the byte part of copy 87 andl %eax,%ecx / complete copy of remaining bytes 90 rep; smovb / do the byte part of copy 104 rep; smovb / do the byte copy 112 movl %ecx,%esi / align source w/byte copy 117 subl %ecx,%edx / copy is done on aligned boundary 122 shrl $2,%ecx / do 4 byte copy RtoL 125 andl %eax,%edx / do 1 byte copy whats left 129 addl %eax,%edi / %edi, %esi by four after each copy [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | strdup.c | 40 char *copy = NULL; in strdup() local 44 if ((copy = malloc(len)) == NULL) in strdup() 46 memcpy(copy, str, len); in strdup() 48 return (copy); in strdup()
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | cheetah_copy.S | 748 sethi %hi(hw_copy_limit_1), %o3 ! Check copy limit 751 bz,pn %icc, .kcopy_small ! if zero, disable HW copy 753 bleu,pt %ncc, .kcopy_small ! go to small copy 755 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 761 sethi %hi(hw_copy_limit_2), %o3 ! Check copy limit 764 bz,pn %icc, .kcopy_small ! if zero, disable HW copy 766 bleu,pt %ncc, .kcopy_small ! go to small copy 768 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 772 sethi %hi(hw_copy_limit_4), %o3 ! Check copy limit 775 bz,pn %icc, .kcopy_small ! if zero, disable HW copy [all …]
|
H A D | opl_olympus_copy.S | 705 sethi %hi(hw_copy_limit_1), %o3 ! Check copy limit 708 bz,pn %icc, .kcopy_small ! if zero, disable HW copy 710 bleu,pt %ncc, .kcopy_small ! go to small copy 712 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 718 sethi %hi(hw_copy_limit_2), %o3 ! Check copy limit 721 bz,pn %icc, .kcopy_small ! if zero, disable HW copy 723 bleu,pt %ncc, .kcopy_small ! go to small copy 725 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 729 sethi %hi(hw_copy_limit_4), %o3 ! Check copy limit 732 bz,pn %icc, .kcopy_small ! if zero, disable HW copy [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | ratz.c | 2547 unsigned copy, dist; local 2567 copy = out - strm->avail_out; 2568 if (copy >= state->wsize) { 2575 if (dist > copy) dist = copy; 2576 zmemcpy(state->window + state->write, strm->next_out - copy, dist); 2577 copy -= dist; 2578 if (copy) { 2579 zmemcpy(state->window, strm->next_out - copy, copy); 2580 state->write = copy; 2784 unsigned copy; /* number of stored or match bytes to copy */ local [all …]
|
/illumos-gate/usr/src/cmd/tcopy/ |
H A D | tcopy.c | 58 int copy; variable 77 copy = 1; in main() 83 if (copy) { in main() 120 if (copy) { in main() 159 if (copy) { in main() 177 if (copy) in main()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | usg.local.c | 63 copy(name, copy(maildir, mailname)); in findmail() 71 copy(myname, copy(maildir, mailname)); in findmail()
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | gethostent.c | 51 char *copy; local 54 if ((copy = strdup(argp->key.name)) == 0) { 57 for (mung = copy + (s - argp->key.name); 64 copy, 0); 65 free(copy);
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | getlist.c | 50 char *copy; local 54 copy = strdup(str); 55 if (copy == NULL) 59 free(copy); 62 it->name = copy;
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | config.c | 53 char *copy, *name, *tofree; in _lookup_config_node() local 56 copy = strdup(path); in _lookup_config_node() 57 if (copy == NULL) in _lookup_config_node() 59 tofree = copy; in _lookup_config_node() 61 while ((name = strsep(©, ".")) != NULL) { in _lookup_config_node() 80 for (copy = tofree; copy < name; copy++) in _lookup_config_node() 81 if (*copy == '\0') in _lookup_config_node() 82 *copy = '.'; in _lookup_config_node()
|