/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | addstring.c | 41 char ** dst, 45 addstring (dst, src) 46 char **dst; 52 if (!dst || !src) { 59 if (*dst) { 60 if (!(*dst = Realloc(*dst, strlen(*dst) + len))) { 65 if (!(*dst = Malloc(len))) { 69 (*dst)[ 40 addstring( char ** dst, char * src ) argument [all...] |
H A D | duplist.c | 49 register char **dst; local 58 if (!(dst = (char **)Malloc((nitems + 1) * sizeof(char *)))) { 64 if (!(dst[n] = Strdup(src[n]))) { 66 Free (dst[n]); 67 Free ((char *)dst); 71 dst[nitems] = 0; 73 return (dst);
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_netint.c | 34 u_int dst; local 36 NS_GET16(dst, src); 37 return (dst); 42 u_long dst; local 44 NS_GET32(dst, src); 45 return (dst); 49 ns_put16(u_int src, u_char *dst) { argument 50 NS_PUT16(src, dst); 54 ns_put32(u_long src, u_char *dst) { argument 55 NS_PUT32(src, dst); [all...] |
/illumos-gate/usr/src/common/crypto/blowfish/ |
H A D | blowfish_impl.h | 39 #define BLOWFISH_COPY_BLOCK(src, dst) \ 40 (dst)[0] = (src)[0]; \ 41 (dst)[1] = (src)[1]; \ 42 (dst)[2] = (src)[2]; \ 43 (dst)[3] = (src)[3]; \ 44 (dst)[4] = (src)[4]; \ 45 (dst)[5] = (src)[5]; \ 46 (dst)[6] = (src)[6]; \ 47 (dst)[7] = (src)[7] 49 #define BLOWFISH_XOR_BLOCK(src, dst) \ [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | strdup.c | 12 char *dst = malloc(strlen(src) + 1); local 14 if (dst) 15 strcpy(dst, src); 16 return (dst);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | P32ton.c | 72 timestruc_32_to_n(const timestruc32_t *src, timestruc_t *dst) argument 74 dst->tv_sec = (time_t)(uint32_t)src->tv_sec; 75 dst->tv_nsec = (long)(uint32_t)src->tv_nsec; 79 stack_32_to_n(const stack32_t *src, stack_t *dst) argument 81 dst->ss_sp = (caddr_t)(uintptr_t)src->ss_sp; 82 dst->ss_size = src->ss_size; 83 dst->ss_flags = src->ss_flags; 87 sigaction_32_to_n(const struct sigaction32 *src, struct sigaction *dst) argument 89 (void) memset(dst, 0, sizeof (struct sigaction)); 90 dst 96 siginfo_32_to_n(const siginfo32_t *src, siginfo_t *dst) argument 169 auxv_32_to_n(const auxv32_t *src, auxv_t *dst) argument 185 rwindow_32_to_n(const struct rwindow32 *src, struct rwindow *dst) argument 196 gwindows_32_to_n(const gwindows32_t *src, gwindows_t *dst) argument 213 prgregset_32_to_n(const prgreg32_t *src, prgreg_t *dst) argument 244 prfpregset_32_to_n(const prfpregset32_t *src, prfpregset_t *dst) argument 301 lwpstatus_32_to_n(const lwpstatus32_t *src, lwpstatus_t *dst) argument 341 pstatus_32_to_n(const pstatus32_t *src, pstatus_t *dst) argument 376 lwpsinfo_32_to_n(const lwpsinfo32_t *src, lwpsinfo_t *dst) argument 405 psinfo_32_to_n(const psinfo32_t *src, psinfo_t *dst) argument 446 timestruc_n_to_32(const timestruc_t *src, timestruc32_t *dst) argument 453 stack_n_to_32(const stack_t *src, stack32_t *dst) argument 461 sigaction_n_to_32(const struct sigaction *src, struct sigaction32 *dst) argument 470 siginfo_n_to_32(const siginfo_t *src, siginfo32_t *dst) argument 543 auxv_n_to_32(const auxv_t *src, auxv32_t *dst) argument 550 prgregset_n_to_32(const prgreg_t *src, prgreg32_t *dst) argument 581 prfpregset_n_to_32(const prfpregset_t *src, prfpregset32_t *dst) argument 674 lwpstatus_n_to_32(const lwpstatus_t *src, lwpstatus32_t *dst) argument 714 pstatus_n_to_32(const pstatus_t *src, pstatus32_t *dst) argument 749 lwpsinfo_n_to_32(const lwpsinfo_t *src, lwpsinfo32_t *dst) argument 778 psinfo_n_to_32(const psinfo_t *src, psinfo32_t *dst) argument [all...] |
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_impl.h | 48 #define AES_COPY_BLOCK(src, dst) \ 49 (dst)[0] = (src)[0]; \ 50 (dst)[1] = (src)[1]; \ 51 (dst)[2] = (src)[2]; \ 52 (dst)[3] = (src)[3]; \ 53 (dst)[4] = (src)[4]; \ 54 (dst)[5] = (src)[5]; \ 55 (dst)[6] = (src)[6]; \ 56 (dst)[7] = (src)[7]; \ 57 (dst)[ [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_synctask.c | 73 dsl_sync_task_t dst = { 0 }; local 85 dst.dst_pool = dp; 86 dst.dst_txg = dmu_tx_get_txg(tx); 87 dst.dst_space = blocks_modified << DST_AVG_BLKSHIFT; 88 dst.dst_space_check = space_check; 89 dst.dst_checkfunc = checkfunc != NULL ? checkfunc : dsl_null_checkfunc; 90 dst.dst_syncfunc = syncfunc; 91 dst.dst_arg = arg; 92 dst.dst_error = 0; 93 dst 124 dsl_sync_task_t *dst = kmem_zalloc(sizeof (*dst), KM_SLEEP); local 143 dsl_sync_task_sync(dsl_sync_task_t *dst, dmu_tx_t *tx) argument [all...] |
H A D | zle.c | 40 uchar_t *dst = d_start; local 42 uchar_t *d_end = dst + d_len; 44 while (src < s_end && dst < d_end - 1) { 46 uchar_t *len = dst++; 54 if (d_end - dst < n) 57 *dst++ = *src++; 59 *dst++ = *src++; 63 return (src == s_end ? dst - (uchar_t *)d_start : s_len); 70 uchar_t *dst = d_start; local 72 uchar_t *d_end = dst [all...] |
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | zle.c | 38 unsigned char *dst = d_start; local 40 unsigned char *d_end = dst + d_len; 42 while (src < s_end && dst < d_end) { 46 *dst++ = *src++; 50 *dst++ = 0; 53 return (dst == d_end ? 0 : -1);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | _overlay.c | 49 overlay(WINDOW *src, WINDOW *dst) argument 51 return (_overlap(src, dst, TRUE));
|
H A D | _overwrite.c | 49 overwrite(WINDOW *src, WINDOW *dst) argument 51 return (_overlap(src, dst, FALSE));
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fix_grouping.c | 49 char *src, *dst; local 56 for (src = (char *)str, dst = (char *)str; *src != '\0'; src++) { 63 *dst++ = CHAR_MAX; 81 *dst = n; 83 if (*dst == '\0') 84 return ((dst == (char *)str) ? nogrouping : str); 85 dst++; 87 *dst = '\0';
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_neta.c | 43 * inet_neta(src, dst, size) 46 * pointer to dst, or NULL if an error occurred (check errno). 53 inet_neta(src, dst, size) 55 char *dst; 58 char *odst = dst; 68 tp = dst; 69 dst += SPRINTF((dst, "%u", b)); 71 *dst++ = '.'; 72 *dst [all...] |
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | util.h | 44 #define STRCPY(dst,src) \ 45 (dst = malloc((unsigned)strlen(src)+1), (void) strcpy(dst,src)) 47 #define STRNCPY(dst,src,num) \ 48 (dst = (char *) malloc((unsigned)(num) + 1),\ 49 (void)strncpy(dst,src,num),(dst)[num] = EOS)
|
/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | varargs.h | 32 # define SM_VA_COPY(dst, src) va_copy((dst), (src)) 34 # define SM_VA_COPY(dst, src) __va_copy((dst), (src)) 36 # define SM_VA_COPY(dst, src) memcpy(&(dst), &(src), sizeof((dst)))
|
/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | strlcat.c | 26 * Appends src to string dst of size dsize (unlike strncat, dsize is the 27 * full size of dst, not space left). At most dsize-1 characters 28 * will be copied. Always NUL terminates (unless dsize <= strlen(dst)). 29 * Returns strlen(src) + MIN(dsize, strlen(initial dst)). 33 strlcat(char * __restrict dst, const char * __restrict src, size_t dsize) argument 35 const char *odst = dst; 40 /* Find the end of dst and adjust bytes left but don't go past end. */ 41 while (n-- != 0 && *dst != '\0') 42 dst++; 43 dlen = dst [all...] |
H A D | bcopy.c | 72 char *dst = dst0; local 76 if (length == 0 || dst == src) /* nothing to do */ 85 if ((unsigned long)dst < (unsigned long)src) { 90 if ((t | (uintptr_t)dst) & wmask) { 95 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) 100 TLOOP1(*dst++ = *src++); 106 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); 108 TLOOP(*dst++ = *src++); 116 dst [all...] |
H A D | strlcpy.c | 26 * Copy string src to buffer dst of size dsize. At most dsize-1 31 strlcpy(char * __restrict dst, const char * __restrict src, size_t dsize) argument 39 if ((*dst++ = *src++) == '\0') 44 /* Not enough room in dst, add NUL and traverse rest of src. */ 47 *dst = '\0'; /* NUL-terminate dst */
|
H A D | strncat.c | 42 * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes 43 * are written at dst (at most n+1 bytes being appended). Return dst. 46 strncat(char * __restrict dst, const char * __restrict src, size_t n) argument 49 char *d = dst; 61 return (dst);
|
H A D | strncpy.c | 42 * Copy src to dst, truncating or null-padding to always copy n bytes. 43 * Return dst. 46 strncpy(char * __restrict dst, const char * __restrict src, size_t n) argument 49 char *d = dst; 61 return (dst);
|
/illumos-gate/usr/src/common/crypto/des/ |
H A D | des_impl.h | 39 #define DES_COPY_BLOCK(src, dst) \ 40 (dst)[0] = (src)[0]; \ 41 (dst)[1] = (src)[1]; \ 42 (dst)[2] = (src)[2]; \ 43 (dst)[3] = (src)[3]; \ 44 (dst)[4] = (src)[4]; \ 45 (dst)[5] = (src)[5]; \ 46 (dst)[6] = (src)[6]; \ 47 (dst)[7] = (src)[7]; 49 #define DES_XOR_BLOCK(src, dst) \ [all...] |
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | copy.c | 23 copyinstr(const char *src, char *dst, size_t max_len, size_t *copied) argument 25 return (copystr(src, dst, max_len, copied)); 29 copystr(const char *src, char *dst, size_t max_len, size_t *outlen) argument 36 copied = strlcpy(dst, src, max_len) + 1; 47 ovbcopy(const void *src, void *dst, size_t len) argument 49 (void) memmove(dst, src, len);
|
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/ |
H A D | memcpy.c | 32 memcpy(void *dst, const void *src, unsigned len) argument 35 char *d = dst;
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strlcpy.c | 34 * Copies src to the dstsize buffer at dst. The copy will never 40 strlcpy(char *dst, const char *src, size_t len) argument 52 (void) memcpy(dst, src, copied); 53 dst[copied] = '\0';
|