Searched defs:copy (Results 1 - 25 of 108) sorted by last modified time

12345

/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
602 * Given an existing dataset, create a writable copy whose initial contents
6772 char *atp, *copy; local
6811 copy = NULL;
6813 copy = strdup(fromsnap);
6815 copy = strdup(tosnap);
6816 if (copy == NULL)
6819 if ((atp = strchr(copy, '@')) != NULL)
6822 if ((zhp = zfs_open(g_zfs, copy, ZFS_TYPE_FILESYSTEM)) == NULL)
6825 free(copy);
[all...]
/illumos-gate/usr/src/common/ficl/emu/
H A Dloader_emu.c147 * backslash: Return malloc'd copy of str with all standard "backslash
316 free(copy); \
348 char *val, *p, *q, *copy = NULL; local
355 if (!str || (p = copy = backslash(str)) == NULL)
448 free(copy);
1284 char *value, *copy; local
1290 copy = strdup(argv[1]);
1291 if (copy == NULL) {
1295 if ((value = strchr(copy, '=')) != NULL)
1299 if ((err = setenv(copy, valu
[all...]
/illumos-gate/usr/src/tools/btxld/
H A Dbtxld.c116 static void copy(int, int, size_t, off_t);
267 copy(fdi[i], fdo, ldr_size, 0);
276 copy(fdi[i], fdo, btx.btx_textsz - sizeof(btx),
280 copy(fdi[i], fdo, ihdr.size, 0);
444 * Safe copy from input file to output file.
447 copy(int fdi, int fdo, size_t nbyte, off_t offset) function
/illumos-gate/usr/src/uts/common/os/
H A Dlog_sysevent.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
759 sysevent_t *copy; local
768 copy = (sysevent_t *)&qcopy->arg.buf;
778 ASSERT((caddr_t)copy + attr_offset <= (caddr_t)copy + copy_len);
780 bcopy(ev, copy, attr_offset);
784 return (copy);
790 attr = (char *)copy + attr_offset;
796 SE_ATTR_PTR(copy) = UINT64_C(0);
797 SE_FLAG(copy)
[all...]
H A Ddevcfg.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
285 * Make a copy of system property
2403 ddi_prop_t *result, *prev, *copy; local
2411 copy = kmem_zalloc(sizeof (struct ddi_prop), flag);
2412 if (copy == NULL)
2415 copy->prop_dev = prop->prop_dev;
2416 copy->prop_flags = prop->prop_flags;
2417 copy->prop_name = i_ddi_strdup(prop->prop_name, flag);
2418 if (copy->prop_name == NULL)
2421 if ((copy
2536 char *copy; local
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Denvironment.c61 * If the EV_VOLATILE flag is set, a copy of the variable is made.
167 char *value, *copy; local
170 copy = strdup(string);
171 if ((value = strchr(copy, '=')) != NULL)
173 result = setenv(copy, value, 1);
174 free(copy);
H A Dstrdup.c46 char *copy = NULL; local
50 if ((copy = malloc(len)) == NULL)
52 memcpy(copy, str, len);
54 return (copy);
/illumos-gate/usr/src/boot/lib/libz/
H A Dgzwrite.c209 /* for small len, copy to input buffer, otherwise compress directly */
211 /* copy to input buffer, compress when full */
213 unsigned have, copy; local
218 copy = state->size - have;
219 if (copy > len)
220 copy = len;
221 memcpy(state->in + have, buf, copy);
222 strm->avail_in += copy;
223 state->x.pos += copy;
224 buf = (const char *)buf + copy;
[all...]
H A Dinfback.c263 unsigned copy; /* number of stored or match bytes to copy */ local
264 unsigned char FAR *from; /* where to copy match bytes from */
267 unsigned len; /* length to copy for repeats, bits to drop */
340 /* copy stored block from input to output */
342 copy = state->length;
345 if (copy > have) copy = have;
346 if (copy > left) copy
[all...]
H A Dinflate.c20 * - Unroll direct copy to three copies per loop in inffast.c
37 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
46 * - Unroll last copy for window match in inflate_fast()
97 unsigned copy));
379 local int updatewindow(strm, end, copy)
382 unsigned copy;
404 /* copy state->wsize or less output bytes into the circular window */
405 if (copy >= state->wsize) {
412 if (dist > copy) dist = copy;
616 unsigned copy; /* number of stored or match bytes to copy */ local
[all...]
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dinfcover.c290 z_stream strm, copy; local
335 ret = inflateCopy(&copy, &strm); assert(ret == Z_OK);
336 ret = inflateEnd(&copy); assert(ret == Z_OK);
391 z_stream strm, copy; local
438 ret = inflateCopy(&copy, &strm); assert(ret == Z_MEM_ERROR);
657 inf("63 0 3 0 0 0 0 0", "copy direct from output", 0, -8, 259,
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dinterp_parse.c56 free(copy); \
88 char *val, *p, *q, *copy = NULL; local
95 if (!str || (p = copy = backslash(str)) == NULL)
190 free(copy);
/illumos-gate/usr/src/boot/sys/boot/common/linenoise/
H A Dlinenoise.c288 char *copy, **cvec; local
290 copy = malloc(len+1);
291 if (copy == NULL) return;
292 memcpy(copy,str,len+1);
295 free(copy);
299 lc->cvec[lc->len++] = copy;
810 /* Add an heap allocated copy of the line in the history.
838 /* If we can't copy everything, free the elements we'll not use. */
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfakebop.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
397 * copy in value, but no ending zero byte
817 * The first time we do this, we have to copy the pre-packaged
1528 caddr_t copy; local
1568 copy = kbm_remap_window(next_phys, 1);
1569 bcopy((void *)va, copy, MMU_PAGESIZE);
2214 /* copy IDs */
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tx.c1401 size_t *offp, size_t size, boolean_t copy)
1425 if (copy)
1426 goto copy;
1438 goto copy;
1446 goto copy;
1457 goto copy;
1466 goto copy;
1498 copy:
1565 boolean_t copy)
1715 ss, copy)) !
1400 sfxge_tx_qpayload_fragment(sfxge_txq_t *stp, unsigned int id, mblk_t **mpp, size_t *offp, size_t size, boolean_t copy) argument
1564 sfxge_tx_qlso_fragment(sfxge_txq_t *stp, sfxge_tx_packet_t *stpp, boolean_t copy) argument
1778 sfxge_tx_qpacket_fragment(sfxge_txq_t *stp, sfxge_tx_packet_t *stpp, boolean_t copy) argument
2102 boolean_t copy; local
[all...]
/illumos-gate/usr/src/lib/libshare/nfs/
H A Dlibshare_nfs.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
573 char *copy, *base, *token, *value; local
576 copy = strdup(options);
577 token = base = copy;
600 if (copy != NULL)
601 free(copy);
682 /* We need a copy of options for the next part. */
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
430 static void copy(void *dst, void *src);
4061 copy(&savedblock, &dblock);
5197 copy(buffer, &tbuf[recno++]);
5360 copy(void *dst, void *src) function
6006 /* strtok(3C) modifies the string, so make a copy. */
7467 if (charset_type == 3) { /* Already UTF-8, just copy */
7559 * If valid, copy source to target.
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dhc.c9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
804 char *starti, *startn, *endi, *copy; local
809 if ((copy = topo_mod_strdup(mod, fmri + 5)) == NULL)
812 len = strlen(copy);
817 startn = strchr(copy, ':');
818 fs = strchr(copy, '/');
821 topo_mod_strfree(mod, copy);
833 if (++startn >= copy + len)
840 if (++starti > copy + len)
883 topo_mod_free(mod, copy, le
906 char *fac, *copy, *fname, *ftype; local
[all...]
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_values.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
946 char *copy, *lasts; local
953 if ((copy = strdup(string)) == NULL)
956 if ((object_type_string = strtok_r(copy, " \t", &lasts)) == NULL) {
957 free(copy);
989 free(copy);
998 free(copy);
1002 free(copy);
1009 free(copy);
1030 free(copy);
[all...]
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
182 * sysevent_dup - Allocate and copy an event buffer
190 sysevent_t *copy; local
197 copy = calloc(1, attr_offset);
198 if (copy == NULL)
200 bcopy(ev, copy, attr_offset);
204 free(copy);
208 SE_ATTR_PTR(copy) = (uintptr_t)cnvl;
209 SE_FLAG(copy) = 0; /* unpacked */
210 return (copy);
651 sysevent_t *copy; local
[all...]
/illumos-gate/usr/src/uts/common/io/comstar/port/pppt/
H A Dalua_ic_if.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2133 uint8_t *buf) /* non-NULL: copy array into buf */
2152 /* preallocated buf, copy in */
2277 char *copy; local
2281 copy = kmem_zalloc(strlen(str) + 1, KM_SLEEP);
2282 (void) strcpy(copy, str);
2283 return (copy);
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dglob.c331 /* copy part up to the brace */
809 /* Find end of next segment, copy tentatively to pathend. */
972 char *copy = NULL; local
1068 if ((copy = malloc(len)) != NULL) {
1069 if (g_Ctoc(path, copy, len)) {
1070 free(copy);
1073 pathv[pglob->gl_offs + pglob->gl_pathc++] = copy;
1083 return (copy == NULL ? GLOB_NOSPACE : 0);
/illumos-gate/usr/src/cmd/cron/
H A Dat.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98 static void copy(char *, FILE *, int);
396 copy(jobfile, inputfile, when);
570 copy(char *jobfile, FILE *inputfile, int when) function
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetlist.c9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
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; ) {
161 * This loop will copy al
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dhead.c9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246 copy(char *str1, char *str2) function

Completed in 205 milliseconds

12345