/xnu-2422.115.4/bsd/crypto/cast128/ |
H A D | cast128_subkey.h | 42 #define x0x1x2x3 buf[0] 43 #define x4x5x6x7 buf[1] 44 #define x8x9xAxB buf[2] 45 #define xCxDxExF buf[3] 46 #define z0z1z2z3 buf[4] 47 #define z4z5z6z7 buf[5] 48 #define z8z9zAzB buf[6] 49 #define zCzDzEzF buf[7] 56 #define x0 byte0(buf[0]) 57 #define x1 byte1(buf[ [all...] |
/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | times.c | 56 struct tms buf; local 59 (void) times(&buf); 60 (void) times(&buf); 61 (void) times(&buf); 62 (void) times(&buf); 63 (void) times(&buf); 64 (void) times(&buf); 65 (void) times(&buf); 66 (void) times(&buf); 67 (void) times(&buf); [all...] |
H A D | memset.c | 130 char *buf = ts->ts_buff + ts->ts_offset; local 137 (void) memset(buf, 0, opts); 138 tmp = (((unsigned long)buf + opts + 4095) & ~4095) + offset; 139 buf = (char *) tmp; 140 if (buf + opts > end) 141 buf = ts->ts_buff + offset; 144 char *buf = ts->ts_buff + ts->ts_offset; local 147 (void) memset(buf, 0, opts); 148 (void) memset(buf, 0, opts); 149 (void) memset(buf, [all...] |
/xnu-2422.115.4/libkern/net/ |
H A D | inet_ntoa.c | 37 static char buf[4*sizeof "123"]; local 40 snprintf(buf, sizeof(buf), "%d.%d.%d.%d", 45 return buf; 49 inet_ntoa_r(struct in_addr ina, char *buf, size_t buflen) argument 53 snprintf(buf, buflen, "%d.%d.%d.%d", 58 return buf;
|
/xnu-2422.115.4/tools/tests/unit_tests/pipe_test_10807398_src/ |
H A D | child.c | 8 char buf[32]; local 17 r = read(fd, buf, sizeof buf - 1); 21 buf[r] = 0; 22 printf("child read(%d) = \"%s\"\n", fd, buf);
|
H A D | parent.c | 10 char *args[3], buf[32]; local 19 snprintf(buf, sizeof buf, "%d", fd[0]); 22 args[1] = buf;
|
/xnu-2422.115.4/libsyscall/mach/ |
H A D | mach_error.c | 74 char buf[1024]; local 80 _mach_snprintf(buf, sizeof(buf), "%s %s (%x)", mach_error_type(err), err_str, err); 81 err_str = buf;
|
/xnu-2422.115.4/tools/tests/unit_tests/ptcwd_test_11269991_src/ |
H A D | ptcwd_test_11269991.c | 49 pthread_getcwd_np(char *buf, size_t size) argument 57 if (buf == NULL) 96 return getcwd(buf, size); 103 char buf[MAXPATHLEN]; local 150 printf("verifying; getcwd says: \"%s\"\n", getcwd(buf, MAXPATHLEN)); 151 if (strcmp(WORKDIR1, buf)) { 152 fprintf(stderr, "FAIL: \"%s\" != \"%s\"\n", WORKDIR1, buf); 159 if ((p = pthread_getcwd_np(buf, MAXPATHLEN)) != NULL) { 172 printf("verifying; getcwd says: \"%s\"\n", getcwd(buf, MAXPATHLEN)); 173 if (strcmp(WORKDIR2, buf)) { [all...] |
/xnu-2422.115.4/libkern/zlib/ |
H A D | adler32.c | 48 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 49 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 50 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 51 #define DO8(buf,i) DO4(buf, [all...] |
H A D | crc32.c | 243 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 247 unsigned long ZEXPORT z_crc32(crc, buf, len) 249 const unsigned char FAR *buf; 252 if (buf == Z_NULL) return 0UL; 265 return crc32_little(crc, buf, len); 267 return crc32_big(crc, buf, len); 290 local unsigned long crc32_little(crc, buf, len) 292 const unsigned char FAR *buf; 300 while (len && ((ptrdiff_t)buf & 3)) { 301 c = crc_table[0][(c ^ *buf [all...] |
H A D | zutil.c | 246 voidpf buf = opaque; /* just to make some compilers happy */ local 253 buf = farmalloc(bsize); 254 if (*(ush*)&buf != 0) return buf; 256 buf = farmalloc(bsize + 16L); 258 if (buf == NULL || next_ptr >= MAX_PTR) return NULL; 259 table[next_ptr].org_ptr = buf; 262 *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4; 263 *(ush*)&buf [all...] |
/xnu-2422.115.4/bsd/sys/ |
H A D | fsgetpath.h | 48 * ssize_t fsgetpath_np(char *restrict buf, size_t bufsize, fsid_t fsid, uint64_t objid); 50 #define fsgetpath(buf, bufsize, fsid, objid) \ 51 (ssize_t)syscall(SYS_fsgetpath, buf, (size_t)bufsize, fsid, (uint64_t)objid)
|
/xnu-2422.115.4/tools/tests/unit_tests/ |
H A D | test_wq_exit_race_panic_10970548.c | 11 char buf[50]; local 17 sprintf(buf, "%d", envcount+1); 18 nargvp[1] = buf;
|
/xnu-2422.115.4/bsd/dev/random/YarrowCoreLib/src/ |
H A D | comp.c | 86 MMPCHECK(ctx->buf) 99 ctx->buf = mmMalloc(BUFSIZE); 100 if(ctx->buf == MM_NULL) {goto cleanup_comp_init;} 106 mmFree(ctx->buf); 116 BYTE* buf; local 121 buf = (BYTE*)mmGetPtr(ctx->buf); 126 memmove(buf,inp,blocksize); 135 memmove(buf,buf [all...] |
H A D | macOnly.h | 62 extern DWORD prng_slow_poll(BYTE* buf,UINT bufsize);
|
H A D | prng.c | 154 BYTE* buf = NULL; local 164 buf = (BYTE*)mmGetPtr(mmbuf); 178 YSHA1Final(buf,ctx); 179 prng_make_new_state(&p->outstate, buf); 349 BYTE buf[64]; local 384 prngOutput(p, buf,64); 385 YSHA1Update(&p->pool,buf,64); 386 prngOutput(p, buf,64); 387 YSHA1Update(&p->pool,buf,64); 388 prngOutput(p, buf,6 [all...] |
/xnu-2422.115.4/tools/tests/libMicro/apple/ |
H A D | lmbench_bw_unix.c | 74 void writer(int controlfd, int writefd, char* buf, void* cookie); 75 void touch(char *buf, int nbytes); 90 char *buf; /* buffer memory space */ member in struct:__anon1211 202 state->buf = valloc(XFERSIZE); 203 touch(state->buf, XFERSIZE); 221 writer(state->control[0], state->pipes[1], state->buf, state); 256 if ((n = read(state->pipes[0], state->buf, state->xfer)) <= 0) { 322 writer(int controlfd, int writefd, char* buf, void* cookie) argument 331 touch(buf, XFERSIZE); 333 if ((n = write(writefd, buf, stat 342 touch(char *buf, int nbytes) argument [all...] |
H A D | lmbench_bw_mmap_rd.c | 89 void *buf; member in struct:__anon1210 122 void *buf; /* do the I/O here */ variable 130 bread(void* buf, long nbytes) argument 136 p = (long*)buf; 137 end = (char*)buf + nbytes; 176 char buf[8192]; local 185 while ((size = read(sfd, buf, 8192)) > 0) { 186 if (write(dfd, buf, size) < size) return -1; 282 state->buf = NULL; 285 char buf[819 local [all...] |
/xnu-2422.115.4/libkern/ |
H A D | mkext.c | 36 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 37 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 38 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 39 #define DO8(buf,i) DO4(buf, 43 mkext_adler32(uint8_t *buf, int32_t len) argument [all...] |
/xnu-2422.115.4/libsyscall/wrappers/legacy/ |
H A D | recvfrom.c | 45 recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr * __restrict from, socklen_t * __restrict fromlen) argument 47 int ret = __recvfrom_nocancel(s, buf, len, flags, from, fromlen);
|
/xnu-2422.115.4/SETUP/config/ |
H A D | mkswapconf.c | 204 char buf[80]; local 214 (void) sprintf(buf, "%s%d%c", dp->dev_name, 216 return (ns(buf)); 222 char buf[BUFSIZ]; local 228 (void) sprintf(buf, "%s/devices.%s", config_directory, machinename); 229 fp = fopenp(VPATH, buf, line, "r"); 231 fprintf(stderr, "config: can't open %s\n", buf); 237 if (sscanf(line, "%s\t%d\n", buf, &maj) != 2) 240 (*dp)->dev_name = ns(buf);
|
/xnu-2422.115.4/osfmk/kern/ |
H A D | kpc_common.c | 79 int *curcpu, uint64_t *buf ) 94 kpc_get_fixed_counters( &buf[offset] ); 101 r = kpc_get_configurable_counters( &buf[offset] ); 113 int *curcpu, uint64_t *buf ) 128 memcpy( &buf[offset], &FIXED_SHADOW(0), count*sizeof(uint64_t) ); 137 memcpy( &buf[offset], &CONFIGURABLE_SHADOW(0), count*sizeof(uint64_t) ); 216 uint64_t *buf; local 218 buf = kalloc(KPC_MAX_COUNTERS * sizeof(uint64_t)); 219 if(buf) 220 bzero( buf, KPC_MAX_COUNTER 226 kpc_counterbuf_free(uint64_t *buf) argument [all...] |
H A D | kpc_thread.c | 166 kpc_get_curthread_counters(uint32_t *inoutcount, uint64_t *buf) argument 185 memcpy( buf, thread->kpc_buf, 186 kpc_thread_classes_count * sizeof(*buf) ); 209 uint64_t *buf = NULL; local 211 /* usual case: no kpc buf, just return */ 216 buf = thread->kpc_buf; 218 kpc_counterbuf_free(buf);
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_kpc.c | 158 uint32_t *size, void *buf) 160 uint64_t *ctr_buf = (uint64_t*)buf; 179 uint32_t *size, void *buf) 181 uint64_t *ctr_buf = (uint64_t*)buf; 201 uint32_t *size, void *buf) 209 r = kpc_get_curthread_counters(&count, buf); 217 sysctl_kpc_get_config(uint32_t classes, void* buf) argument 219 return kpc_get_config( classes, buf ); 223 sysctl_kpc_set_config(uint32_t classes, void* buf) argument 225 return kpc_set_config( classes, buf); 157 sysctl_kpc_get_counters(uint32_t counters, uint32_t *size, void *buf) argument 178 sysctl_kpc_get_shadow_counters(uint32_t counters, uint32_t *size, void *buf) argument 200 sysctl_kpc_get_thread_counters(uint32_t tid, uint32_t *size, void *buf) argument 229 sysctl_kpc_get_period(uint32_t classes, void* buf) argument 235 sysctl_kpc_set_period(uint32_t classes, void* buf) argument 241 sysctl_kpc_get_actionid(uint32_t classes, void* buf) argument 247 sysctl_kpc_set_actionid(uint32_t classes, void* buf) argument [all...] |
/xnu-2422.115.4/bsd/nfs/ |
H A D | xdr_subs.h | 157 xb_init_buffer(struct xdrbuf *xbp, char *buf, size_t buflen) argument 160 xbp->xb_u.xb_buffer.xbb_base = buf; 164 xbp->xb_ptr = buf; 166 if (buf) /* when using an existing buffer, xb code should skip cleanup */ 271 void *buf = NULL; local 274 MALLOC(buf, void *, size, M_TEMP, M_WAITOK); 276 buf = malloc(size); 278 return (buf); 284 xb_free(void *buf) argument 287 FREE(buf, M_TEM 330 xb_add_bytes(struct xdrbuf *xbp, const char *buf, uint32_t count, int nopad) argument 373 xb_get_bytes(struct xdrbuf *xbp, char *buf, uint32_t count, int nopad) argument [all...] |