Searched defs:copy (Results 1 - 25 of 108) sorted by path

12345

/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/cmd/acctadm/
H A Dres.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
300 char *p, *g, *copy; local
305 * Take a lap through str, processing resources, modifying buf copy
308 if ((copy = malloc(strlen(str) + 1)) == NULL)
310 (void) memcpy(copy, str, strlen(str) + 1);
311 p = strtok(copy, ", ");
335 free(copy);
/illumos-gate/usr/src/cmd/auditd/
H A Ddoorway.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
787 audit_rec_t *copy = node; local
802 " pool size=%d)\n", (void *)copy, b_allocated,
947 DPRINT((dbfp, "copy is not null, partial is %d\n",
987 DPRINT((dbfp, "copy is null, partial is %d\n",
/illumos-gate/usr/src/cmd/bnu/
H A Duucp.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
34 * make a copy in spool directory
49 copy(), gtcfile();
125 * make a copy of the file in the spool
203 * We do the copy multiple times when multiple
402 if (copy(sys1, file1, sys2p, file2))
474 * generate copy files for s1!f1 -> s2!f2
482 copy(s1, f1, s2, f2) function
502 DEBUG(4, "copy: file1=<%s> ", file1);
528 * copy fil
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dconditions.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
485 char *copy, *ip_address, *prefixlen_string, *lasts; local
489 if ((copy = strdup(ip_address_string)) == NULL)
492 if ((ip_address = strtok_r(copy, " \t/", &lasts)) == NULL) {
493 free(copy);
510 free(copy);
529 free(copy);
532 free(copy);
H A Denm.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
152 char *script, *copy = NULL; local
205 if ((copy = strdup(script)) == NULL ||
211 argv[i++] = strtok_r(copy, " ", &lasts);
323 free(copy);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dzlib.c3066 uInt left; /* if STORED, bytes left to copy */
3126 /* copy as much as possible from the sliding window to the output area */
3270 /* copy input/output information to locals (UPDATE macro restores) */
3559 /* while there is input ready, copy to output buffer, moving
4109 uInt dist; /* distance back to copy from */
4110 } copy; /* if EXT or COPY, where and how much */ member in union:inflate_codes_state::__anon140
4157 Bytef *f; /* pointer to copy strings from */
4160 /* copy input/output information to locals (UPDATE macro restores) */
4200 c->sub.copy.get = e & 15;
4222 j = c->sub.copy
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2936 char *intf, *num, *copy; local
2939 copy = strdup(str);
2940 if (copy == NULL) {
2944 intf = strtok(copy, ",");
2949 free(copy);
2967 free(copy);
/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/csh/
H A Dsh.local.h54 #define copy(to, from, size) bcopy(from, to, size) macro
H A Dsh.misc.c290 #ifndef copy
292 copy(tchar *to, tchar *from, int size) function
469 /* copy max size */
/illumos-gate/usr/src/cmd/ctstat/
H A Dctstat.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
555 * perform that filtering here. We stash a copy of spec so we
705 char *copy, *token; local
708 if ((copy = strdup(str)) == NULL)
711 token = strtok(copy, ", ");
713 free(copy);
722 free(copy);
/illumos-gate/usr/src/cmd/dc/
H A Ddc.c9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
132 ("new all %d rel %d copy %d more %d lbytes %d\n"),
322 q = copy(p, n);
337 p = copy(inbas, length(inbas) + 1);
347 q = copy(p, n);
421 p = copy(basptr, length(basptr) + 1);
452 q = copy(p, n);
473 p = copy(scalptr, length(scalptr) + 1);
548 p = copy(*stkptr, n);
572 q = copy(
2163 copy(struct blk *hptr, int size) function
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
161 unsigned char *dof, *copy; local
188 if ((copy = malloc(len)) == NULL)
189 fatal("could not allocate copy of %d bytes", len);
192 bcopy(dof, copy, len);
201 corrupt(fd, copy, len);
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
34 * do_copy ... copy a file from one side to the other
37 * copy ...... (static) do the actual copy
96 static errmask_t copy(char *, char *, int);
98 static char *copy_err_str; /* what went wrong w/copy */
111 * whether or not to update statistics (there may be a copy and a like)
375 * src/dst indication for who gets the copy
537 * it is that we are supposed to copy
626 * the alleged new copy migh
1064 copy(char *src, char *dst, int mode) function
[all...]
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
129 char *copy; local
146 * a copy and keep track of the size allocated.
149 copy = fmd_fmri_alloc(copysz);
150 (void) strcpy(copy, pat);
152 base = strtok(copy, " ");
166 fmd_fmri_free(copy, copysz);
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/
H A Dvolcopy.c8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
157 static void copy(void);
272 * filesystem copy with propagation of volume ID and filesystem name:
426 perr(10, "Use dd(1) command to copy tapes\n");
617 copy();
1042 * copy: Copy without shared memory. The process reads from the source
1047 copy(void) function
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald_dbus.c20 * You should have received a copy of the GNU General Public License
4111 DBusMessage *copy; local
4117 /* send a copy of the message */
4118 copy = dbus_message_copy (message);
4120 copy,
4132 dbus_message_unref (copy);
4273 DBusMessage *copy; local
4276 copy = dbus_message_copy (message);
4278 dbus_connection_send (dbus_connection, copy, NULL);
4280 dbus_message_unref (copy);
[all...]

Completed in 207 milliseconds

12345