/illumos-gate/usr/src/lib/libmail/common/ |
H A D | abspath.c | 4 * The contents of this file are subject to the terms of the 24 * Use is subject to license terms. 34 * abspath - expand a path relative to some `.' 37 * string *abspath(char *path, char *dot, string *to) 42 * returned in "to". Otherwise, the value of "path" is 43 * returned in "to". 49 abspath(char *path, char *dot, string *to) argument 52 to = s_append(to, path); 54 to [all...] |
H A D | strmove.c | 4 * The contents of this file are subject to the terms of the 24 * Use is subject to license terms. 40 * void strmove(char *to, char *from) 45 * It does it left-to-right, a byte at a time. 49 strmove(char *to, char *from) argument 51 while ((*to++ = *from++) != 0)
|
/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | putgrent.c | 4 * The contents of this file are subject to the terms of the 24 * Use is subject to license terms. 37 * putgrent() function to write a group structure to a file 41 putgrent(struct group *grpstr, FILE *to) argument 49 * we assume that fgetgrent() set gr_gid to 0 so 55 (void) fprintf(to, "%s:%s:", grpstr->gr_name, 59 (void) fprintf(to, ":"); 61 (void) fprintf(to, "%ld:", grpstr->gr_gid); 67 (void) fprintf(to, " [all...] |
H A D | putprojent.c | 4 * The contents of this file are subject to the terms of the 34 * putprojent() function to write a project structure to a file 37 putprojent(struct project *projstr, FILE *to) argument 41 (void) fprintf(to, "%s:%d:%s:", projstr->pj_name, 50 (void) fprintf(to, "%s", *memptr); 53 (void) fprintf(to, ","); 56 (void) fprintf(to, ":"); 64 (void) fprintf(to, "%s", *memptr); 67 (void) fprintf(to, ","); [all...] |
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/ |
H A D | memcmp.c | 32 p_memcmp(const char *to, const char *from, unsigned size) argument 34 while ((--size) && (*to++ == *from++)) 37 return (size || (*to != *from));
|
H A D | strcpy.c | 32 strcpy(char *to, const char *from) argument 35 *to++ = *from++; 36 *to++ = '\0'; 37 return (to);
|
H A D | p_string.c | 5 * Instantiation of basic string operations to prevent inclusion of full 7 * for speed, but rather to show intent. 17 * relating to merchantability or fitness for any purpose is provided. All 32 * number of bytes to value. 44 * int p_memcmp(char *to, char *from, unsigned size) 45 * This global function compares data at to against data at from for 51 p_memcmp(const char *to, const char *from, unsigned size) argument 53 while ((--size) && (*to++ == *from++)) 56 return (*to != *from);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | cp_key_cnt.c | 3 * Use is subject to license terms. 15 * export to obtain such a license before exporting. 17 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 23 * to distribution of the software without specific, written prior 42 krb5_copy_keyblock_contents(krb5_context context, const krb5_keyblock *from, krb5_keyblock *to) argument 47 if (to != NULL && from != NULL) { 48 to->contents = (krb5_octet *)malloc(from->length); 49 if (!to->contents) 52 ret = krb5_copy_keyblock_data(context, from, to);
|
/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | strcpy.c | 14 * may be used to endorse or promote products derived from this software 39 strcpy(char * __restrict to, const char * __restrict from) argument 41 char *save = to; 43 for (; (*to = *from); ++from, ++to);
|
H A D | swab.c | 5 * This code is derived from software contributed to Berkeley by 17 * may be used to endorse or promote products derived from this software 42 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument 52 tp = (char *)to; 54 /* round to multiple of 8 */
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fflush.c | 7 * This code is derived from software contributed to Berkeley by 10 * By using this file, you agree to the terms and conditions set 32 ** SM_IO_FLUSH -- flush the buffer for a 'fp' to the "file" 34 ** Flush a single file. We don't allow this function to flush 38 ** fp -- the file pointer buffer to flush 39 ** timeout -- time to complete the flush 52 struct timeval to; local 67 SM_CONVERT_TIME(fp, fd, timeout, &to); 79 ** fp -- file pointer to be flushed 124 ** Set these immediately to avoi [all...] |
H A D | setvbuf.c | 7 * This code is derived from software contributed to Berkeley by 10 * By using this file, you agree to the terms and conditions set 37 ** fp -- the file that buffering is to be changed for 39 ** buf -- buffer to use 40 ** mode -- buffering method to use 60 struct timeval to; local 65 ** Verify arguments. The `int' limit on `size' is due to this 83 SM_CONVERT_TIME(fp, fd, timeout, &to); 103 ** a `tty flag' to suggest that we check isatty(fd), but we do not 104 ** care since our caller told us how to buffe [all...] |
H A D | refill.c | 7 * This code is derived from software contributed to Berkeley by 10 * By using this file, you agree to the terms and conditions set 37 ** This #define uses a select() to wait for the 'fd' to become readable. 38 ** The select() can be active for up to 'To' time. The select() may not 40 ** measured to decide how much to subtract from 'To' to update it. On some 44 ** since a BSD-like system will have updated it and we don't want to 51 ** fd -- raw file descriptor (from 'fp') to us 147 struct timeval to; local [all...] |
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioCopy.cc | 4 * The contents of this file are subject to the terms of the 42 Audio* to) // output sink 48 return (AudioCopy(from, to, frompos, topos, limit)); 56 Audio* to, // output sink 59 Double& limit) // amount to copy (updated) 61 return (from->Copy(to, frompos, topos, limit)); 69 Audio* to, // output sink 72 Double& limit) // amount to copy (updated) 74 return (from->AsyncCopy(to, frompos, topos, limit)); 40 AudioCopy( Audio* from, Audio* to) argument 54 AudioCopy( Audio* from, Audio* to, Double& frompos, Double& topos, Double& limit) argument 67 AudioAsyncCopy( Audio* from, Audio* to, Double& frompos, Double& topos, Double& limit) argument
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | copy_key.c | 3 * Use is subject to license terms. 15 * export to obtain such a license before exporting. 17 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 23 * to distribution of the software without specific, written prior 46 const krb5_keyblock *from, krb5_keyblock *to) 50 /* If nothing to copy, return no error */ 51 if (from == NULL || to == NULL) 54 if ((to->contents == NULL || from->contents == NULL) && 58 to->magic = from->magic; 59 to 45 krb5_copy_keyblock_data(krb5_context context, const krb5_keyblock *from, krb5_keyblock *to) argument [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | uucopy.c | 4 * The contents of this file are subject to the terms of the 23 * Use is subject to license terms. 31 uucopy(const void *from, void *to, size_t size) argument 38 ucopy(from, to, size); 46 uucopystr(const char *from, char *to, size_t size) argument 54 ucopystr(from, to, size, &len);
|
H A D | rename.c | 4 * The contents of this file are subject to the terms of the 48 * Rename a file relative to a given directory 51 renameat(int ffd, char *from, int tfd, char *to) argument 57 if (from == NULL || to == NULL) 61 if ((error = fgetstartvp(tfd, to, &tstartvp)) != 0) 64 error = vn_renameat(fstartvp, from, tstartvp, to, UIO_USERSPACE); 77 rename(char *from, char *to) argument 79 return (renameat(AT_FDCWD, from, AT_FDCWD, to));
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | memSset.c | 4 * The contents of this file are subject to the terms of the 24 * Use is subject to license terms. 48 * additional memory routine to deal with memory areas in units of chtypes. 58 char *to; /* %r6 */ local 64 to = (char *)(sfrom + 1); 68 /* bcopy (count, to, from) */ 75 char *to; /* 0(%fp) */ 83 to = (char *)(sfrom + 1); 88 /* them in myself below to the regs where they belong. */ 90 asm(" movw 0(%fp),%r1"); /* to */ 110 memcpy(char *to, char *from, int count) argument [all...] |
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wscrl.c | 4 * The contents of this file are subject to the terms of the 56 int y, x, width, start, finish, to; local 65 /* Shuffle pointers in order to scroll. The region 66 * from start to finish inclusive will be moved to 72 to = w->_bottom; 76 to = w->_top; 84 (void) __m_ptr_move((void **) w->_line, w->_maxy, start, finish, to);
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wscrl.c | 4 * The contents of this file are subject to the terms of the 59 int start, finish, to; local 108 * Shuffle pointers in order to scroll. The region 109 * from start to finish inclusive will be moved to 115 to = w->_bottom; 119 to = w->_top; 127 start, finish, to);
|
H A D | ptrmove.c | 4 * The contents of this file are subject to the terms of the 51 * Return -1 if the region to move is out of bounds or the target 58 unsigned int start, unsigned int finish, unsigned int to) 63 if (to < start) { 64 reverse(array, to, start-1); 66 reverse(array, to, finish); 67 } else if (finish < to && to <= length) { 69 reverse(array, finish+1, to-1); 70 reverse(array, start, to 57 __m_ptr_move(void **array, unsigned int length, unsigned int start, unsigned int finish, unsigned int to) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | swab.c | 4 * The contents of this file are subject to the terms of the 24 * Use is subject to license terms. 43 #define STEP (void)((temp = *from++), (*to++ = *from++), (*to++ = temp)) 50 char *to = (char *)dest; local 55 /* round to multiple of 8 */
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_path.c | 4 * The contents of this file are subject to the terms of the 23 * Use is subject to license terms. 32 prom_path_gettoken(register char *from, register char *to) argument 40 *to = '\0'; 43 *to++ = *from++; 46 *to = '\0'; 51 * Given an OBP pathname, do the best we can to fully expand 54 * If we have to complete the addrspec of any component, we can 63 char *to = pathname; local 70 if ((to 159 prom_strip_options(char *from, char *to) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | swapmem.c | 34 * swap n bytes according to op 35 * from==to is ok 39 swapmem(int op, const void* from, void* to, register size_t n) argument 42 register char* t = (char*)to; 108 return to;
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | getargs.c | 4 * The contents of this file are subject to the terms of the 25 * Use is subject to license terms. 37 * generate a vector of pointers (arps) to the 40 * s -> string to analyze -- s GETS MODIFIED 86 char *str, *to, *cp; local 91 for (to = str; *str; str++) { 113 *to++ = '\\'; 114 *to++ = 'N'; 116 *to++ = (char)num; 121 *to [all...] |