buf 233 examples/VFS/skel_opaque.c return vfswrap_getwd(NULL, buf);
buf 264 examples/VFS/skel_opaque.c return vfswrap_readlink(NULL, path, buf, bufsiz);
buf 226 examples/VFS/skel_transparent.c return SMB_VFS_NEXT_GETWD(handle, buf);
buf 256 examples/VFS/skel_transparent.c return SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz);
buf 12 examples/libsmbclient/smbwrapper/opendir_smbsh.c char buf[1024];
buf 18 examples/libsmbclient/smbwrapper/opendir_smbsh.c for (fputs("path: ", stdout), p = fgets(buf, sizeof(buf), stdin);
buf 20 examples/libsmbclient/smbwrapper/opendir_smbsh.c fputs("path: ", stdout), p = fgets(buf, sizeof(buf), stdin))
buf 22 examples/libsmbclient/smbwrapper/opendir_smbsh.c if ((p = strchr(buf, '\n')) != NULL)
buf 27 examples/libsmbclient/smbwrapper/opendir_smbsh.c printf("Opening (%s)...\n", buf);
buf 29 examples/libsmbclient/smbwrapper/opendir_smbsh.c if ((dir = opendir(buf)) == NULL)
buf 32 examples/libsmbclient/smbwrapper/opendir_smbsh.c buf, strerror(errno));
buf 431 examples/libsmbclient/smbwrapper/smbw.c if ((ret = smbc_read(client_fd, buf, count)) < 0) {
buf 450 examples/libsmbclient/smbwrapper/smbw.c return smbc_read(client_fd, buf, count);
buf 464 examples/libsmbclient/smbwrapper/smbw.c return smbc_write(client_fd, buf, count);
buf 488 examples/libsmbclient/smbwrapper/smbw.c if ((ret = smbc_write(client_fd, buf, count)) < 0) {
buf 606 examples/libsmbclient/smbwrapper/smbw.c return smbc_utimes(path, buf);
buf 618 examples/libsmbclient/smbwrapper/smbw.c return smbc_utime(path, buf);
buf 185 examples/libsmbclient/smbwrapper/smbw_dir.c return (* smbw_libc.getcwd)(buf, size);
buf 188 examples/libsmbclient/smbwrapper/smbw_dir.c if (buf == NULL) {
buf 192 examples/libsmbclient/smbwrapper/smbw_dir.c buf = malloc(size);
buf 193 examples/libsmbclient/smbwrapper/smbw_dir.c if (buf == NULL) {
buf 199 examples/libsmbclient/smbwrapper/smbw_dir.c smbw_strlcpy(buf, smbw_cwd, size);
buf 200 examples/libsmbclient/smbwrapper/smbw_dir.c buf[size-1] = '\0';
buf 201 examples/libsmbclient/smbwrapper/smbw_dir.c return buf;
buf 115 examples/libsmbclient/smbwrapper/wrapper.c (* smbw_libc.write)(debugFd, "["buf"]", sizeof(buf)+1); \
buf 540 examples/libsmbclient/smbwrapper/wrapper.c return smbw_read(fd, buf, count);
buf 543 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, buf, count);
buf 549 examples/libsmbclient/smbwrapper/wrapper.c return smbw_write(fd, buf, count);
buf 552 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, buf, count);
buf 618 examples/libsmbclient/smbwrapper/wrapper.c return smbw_pread(fd, buf, size, ofs);
buf 621 examples/libsmbclient/smbwrapper/wrapper.c return (* smbw_libc.pread)(fd, buf, size, ofs);
buf 629 examples/libsmbclient/smbwrapper/wrapper.c return smbw_pread(fd, buf, size, (off_t) ofs);
buf 632 examples/libsmbclient/smbwrapper/wrapper.c return (* smbw_libc.pread64)(fd, buf, size, ofs);
buf 640 examples/libsmbclient/smbwrapper/wrapper.c return smbw_pwrite(fd, (void *) buf, size, ofs);
buf 643 examples/libsmbclient/smbwrapper/wrapper.c return (* smbw_libc.pwrite)(fd, (void *) buf, size, ofs);
buf 651 examples/libsmbclient/smbwrapper/wrapper.c return smbw_pwrite(fd, (void *) buf, size, (off_t) ofs);
buf 654 examples/libsmbclient/smbwrapper/wrapper.c return (* smbw_libc.pwrite64)(fd, (void *) buf, size, ofs);
buf 888 examples/libsmbclient/smbwrapper/wrapper.c return readx(fd, buf, count, smbw_libc.read);
buf 894 examples/libsmbclient/smbwrapper/wrapper.c return readx(fd, buf, count, smbw_libc.__read);
buf 900 examples/libsmbclient/smbwrapper/wrapper.c return readx(fd, buf, count, smbw_libc._read);
buf 906 examples/libsmbclient/smbwrapper/wrapper.c return writex(fd, (void *) buf, count, smbw_libc.write);
buf 912 examples/libsmbclient/smbwrapper/wrapper.c return writex(fd, (void *) buf, count, smbw_libc.__write);
buf 918 examples/libsmbclient/smbwrapper/wrapper.c return writex(fd, (void *) buf, count, smbw_libc._write);
buf 981 examples/libsmbclient/smbwrapper/wrapper.c return (char *)smbw_getcwd(buf, size);
buf 1117 examples/libsmbclient/smbwrapper/wrapper.c return smbw_readlink(path, (char *) buf, bufsize);
buf 1120 examples/libsmbclient/smbwrapper/wrapper.c return (* smbw_libc.readlink)((char *) path, buf, bufsize);
buf 77 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* write)(int fd, void *buf, size_t count);
buf 84 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* pread)(int fd, void *buf, size_t size, off_t ofs);
buf 85 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* pread64)(int fd, void *buf, size_t size, off64_t ofs);
buf 86 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* pwrite)(int fd, void *buf, size_t size, off_t ofs);
buf 87 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* pwrite64)(int fd, void *buf, size_t size, off64_t ofs);
buf 104 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* read)(int fd, void *buf, size_t count);
buf 105 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* __read)(int fd, void *buf, size_t count);
buf 106 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* _read)(int fd, void *buf, size_t count);
buf 107 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* __write)(int fd, void *buf, size_t count);
buf 108 examples/libsmbclient/smbwrapper/wrapper.h ssize_t (* _write)(int fd, void *buf, size_t count);
buf 115 examples/libsmbclient/smbwrapper/wrapper.h char * ( *getcwd)(char *buf, size_t size);
buf 125 examples/libsmbclient/smbwrapper/wrapper.h int (* readlink)(char *path, char *buf, size_t bufsize);
buf 51 examples/libsmbclient/testbrowse.c char buf[1024];
buf 145 examples/libsmbclient/testbrowse.c snprintf(buf, sizeof(buf), "smb://");
buf 146 examples/libsmbclient/testbrowse.c browse(buf, scan, 0);
buf 156 examples/libsmbclient/testbrowse.c p = fgets(buf, sizeof(buf), stdin);
buf 162 examples/libsmbclient/testbrowse.c if ((p = strchr(buf, '\n')) != NULL)
buf 167 examples/libsmbclient/testbrowse.c browse(buf, scan, 0);
buf 214 examples/libsmbclient/testbrowse.c char buf[1024];
buf 303 examples/libsmbclient/testbrowse.c snprintf(buf, sizeof(buf), "smb://%s", dirent->name);
buf 304 examples/libsmbclient/testbrowse.c browse(buf, scan, indent + 2);
buf 161 examples/nss/nss_winbind.c char buf[200];
buf 169 examples/nss/nss_winbind.c status = _nss_nametosid(name, sid, buf, sizeof(buf), &nss_errno);
buf 195 examples/nss/nss_winbind.c char buf[200];
buf 203 examples/nss/nss_winbind.c status = _nss_sidtoname(sid, name, buf, sizeof(buf), &nss_errno);
buf 232 examples/nss/nss_winbind.c char *buf;
buf 241 examples/nss/nss_winbind.c buf = malloc(bufsize);
buf 242 examples/nss/nss_winbind.c if (!buf) {
buf 247 examples/nss/nss_winbind.c status = _nss_getusersids(user_sid, &s, &num_groups, buf, bufsize,
buf 252 examples/nss/nss_winbind.c free(buf);
buf 258 examples/nss/nss_winbind.c free(buf);
buf 263 examples/nss/nss_winbind.c free(buf);
buf 269 examples/nss/nss_winbind.c free(buf);
buf 276 examples/nss/nss_winbind.c free(buf);
buf 286 examples/nss/nss_winbind.c free(buf);
buf 366 examples/nss/nss_winbind.c char buf[200];
buf 374 examples/nss/nss_winbind.c status = _nss_uidtosid(uid, sid, buf, sizeof(buf), &nss_errno);
buf 400 examples/nss/nss_winbind.c char buf[200];
buf 408 examples/nss/nss_winbind.c status = _nss_gidtosid(gid, sid, buf, sizeof(buf), &nss_errno);
buf 39 examples/pcap2nbench/ethernet.cpp char buf[3];
buf 40 examples/pcap2nbench/ethernet.cpp sprintf(buf, "%.2x", rhs.dst[i]);
buf 42 examples/pcap2nbench/ethernet.cpp lhs << buf;
buf 48 examples/pcap2nbench/ethernet.cpp char buf[3];
buf 49 examples/pcap2nbench/ethernet.cpp sprintf(buf, "%.2x", rhs.src[i]);
buf 51 examples/pcap2nbench/ethernet.cpp lhs << buf;
buf 56 examples/pcap2nbench/ethernet.cpp char buf[7];
buf 57 examples/pcap2nbench/ethernet.cpp sprintf(buf, "%.4x", rhs.type);
buf 58 examples/pcap2nbench/ethernet.cpp lhs << buf << std::endl;
buf 68 examples/perfcounter/perf_writer_cpu.c char buf[PROC_BUF];
buf 84 examples/perfcounter/perf_writer_cpu.c if(!fgets(buf, sizeof(buf), fp))
buf 91 examples/perfcounter/perf_writer_cpu.c if(!fgets(buf, sizeof(buf), fp))
buf 96 examples/perfcounter/perf_writer_cpu.c num = sscanf(buf, "cpu%u %Lu %Lu %Lu %Lu",
buf 153 examples/perfcounter/perf_writer_cpu.c char buf[NAME_LEN];
buf 171 examples/perfcounter/perf_writer_cpu.c memset(buf, 0, NAME_LEN);
buf 172 examples/perfcounter/perf_writer_cpu.c sprintf(buf, "cpu%d", i);
buf 177 examples/perfcounter/perf_writer_cpu.c buf, rt, tdb_flags);
buf 180 examples/perfcounter/perf_writer_cpu.c memset(buf, 0, NAME_LEN);
buf 181 examples/perfcounter/perf_writer_cpu.c sprintf(buf, "_Total");
buf 186 examples/perfcounter/perf_writer_cpu.c buf, rt, tdb_flags);
buf 59 examples/perfcounter/perf_writer_disk.c char buf[PROC_BUF];
buf 72 examples/perfcounter/perf_writer_disk.c while(fgets(buf, sizeof(buf), mtab))
buf 74 examples/perfcounter/perf_writer_disk.c if(start = strstr(buf, "/dev/"))
buf 92 examples/perfcounter/perf_writer_disk.c char buf[PROC_BUF];
buf 105 examples/perfcounter/perf_writer_disk.c while(fgets(buf, sizeof(buf), mtab))
buf 107 examples/perfcounter/perf_writer_disk.c if(start = strstr(buf, "/dev/"))
buf 133 examples/perfcounter/perf_writer_disk.c char buf[LARGE_BUF], *start;
buf 140 examples/perfcounter/perf_writer_disk.c status = fread(buf, sizeof(char), LARGE_BUF, diskstats);
buf 148 examples/perfcounter/perf_writer_disk.c start = strstr(buf, data->diskInfo.mdata[i].name);
buf 57 examples/perfcounter/perf_writer_util.c memset(buf, 0, buflen);
buf 59 examples/perfcounter/perf_writer_util.c sprintf(buf, "%d%s", key_part1, key_part2);
buf 61 examples/perfcounter/perf_writer_util.c sprintf(buf, "%d", key_part1);
buf 83 lib/async_req/async_sock.c const void *buf;
buf 107 lib/async_req/async_sock.c state->buf = buf;
buf 129 lib/async_req/async_sock.c state->sent = send(state->fd, state->buf, state->len, state->flags);
buf 150 lib/async_req/async_sock.c void *buf;
buf 173 lib/async_req/async_sock.c state->buf = buf;
buf 195 lib/async_req/async_sock.c state->received = recv(state->fd, state->buf, state->len,
buf 491 lib/async_req/async_sock.c uint8_t *buf;
buf 493 lib/async_req/async_sock.c ssize_t (*more)(uint8_t *buf, size_t buflen, void *private_data);
buf 522 lib/async_req/async_sock.c state->buf = talloc_array(state, uint8_t, initial);
buf 523 lib/async_req/async_sock.c if (state->buf == NULL) {
buf 546 lib/async_req/async_sock.c size_t total = talloc_get_size(state->buf);
buf 550 lib/async_req/async_sock.c nread = recv(state->fd, state->buf+state->nread, total-state->nread,
buf 576 lib/async_req/async_sock.c more = state->more(state->buf, total, state->private_data);
buf 588 lib/async_req/async_sock.c tmp = TALLOC_REALLOC_ARRAY(state, state->buf, uint8_t, total+more);
buf 592 lib/async_req/async_sock.c state->buf = tmp;
buf 604 lib/async_req/async_sock.c *pbuf = talloc_move(mem_ctx, &state->buf);
buf 39 lib/compression/lzxpress.c #define __BUF_POS_CONST(buf,ofs)(((const uint8_t *)buf)+(ofs))
buf 41 lib/compression/lzxpress.c ((uint8_t)((*__BUF_POS_CONST(buf,ofs)) & 0xFF))
buf 45 lib/compression/lzxpress.c ((uint16_t)(((uint16_t)(__PULL_BYTE(buf,(ofs)+0))) << 0)) | \
buf 46 lib/compression/lzxpress.c ((uint16_t)(((uint16_t)(__PULL_BYTE(buf,(ofs)+1))) << 8)) \
buf 52 lib/compression/lzxpress.c ((uint32_t)(((uint32_t)(__PULL_BYTE(buf,(ofs)+0))) << 0)) | \
buf 53 lib/compression/lzxpress.c ((uint32_t)(((uint32_t)(__PULL_BYTE(buf,(ofs)+1))) << 8)) | \
buf 54 lib/compression/lzxpress.c ((uint32_t)(((uint32_t)(__PULL_BYTE(buf,(ofs)+2))) << 16)) | \
buf 55 lib/compression/lzxpress.c ((uint32_t)(((uint32_t)(__PULL_BYTE(buf,(ofs)+3))) << 24)) \
buf 97 lib/crypto/crc32.c p = buf;
buf 132 lib/crypto/md4.c uint8_t buf[128];
buf 151 lib/crypto/md4.c buf[i] = 0;
buf 152 lib/crypto/md4.c memcpy(buf, in, n);
buf 153 lib/crypto/md4.c buf[n] = 0x80;
buf 156 lib/crypto/md4.c copy4(buf+56, b);
buf 157 lib/crypto/md4.c copy64(M, buf);
buf 160 lib/crypto/md4.c copy4(buf+120, b);
buf 161 lib/crypto/md4.c copy64(M, buf);
buf 163 lib/crypto/md4.c copy64(M, buf+64);
buf 168 lib/crypto/md4.c buf[i] = 0;
buf 169 lib/crypto/md4.c copy64(M, buf);
buf 35 lib/crypto/md5.c t = (uint32_t) ((uint_t) buf[3] << 8 | buf[2]) << 16 |
buf 36 lib/crypto/md5.c ((uint_t) buf[1] << 8 | buf[0]);
buf 37 lib/crypto/md5.c *(uint32_t *) buf = t;
buf 38 lib/crypto/md5.c buf += 4;
buf 48 lib/crypto/md5.c ctx->buf[0] = 0x67452301;
buf 49 lib/crypto/md5.c ctx->buf[1] = 0xefcdab89;
buf 50 lib/crypto/md5.c ctx->buf[2] = 0x98badcfe;
buf 51 lib/crypto/md5.c ctx->buf[3] = 0x10325476;
buf 81 lib/crypto/md5.c memmove(p, buf, len);
buf 84 lib/crypto/md5.c memmove(p, buf, t);
buf 86 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in);
buf 87 lib/crypto/md5.c buf += t;
buf 93 lib/crypto/md5.c memmove(ctx->in, buf, 64);
buf 95 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in);
buf 96 lib/crypto/md5.c buf += 64;
buf 102 lib/crypto/md5.c memmove(ctx->in, buf, len);
buf 130 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in);
buf 144 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in);
buf 145 lib/crypto/md5.c byteReverse((uint8_t *) ctx->buf, 4);
buf 146 lib/crypto/md5.c memmove(digest, ctx->buf, 16);
buf 171 lib/crypto/md5.c a = buf[0];
buf 172 lib/crypto/md5.c b = buf[1];
buf 173 lib/crypto/md5.c c = buf[2];
buf 174 lib/crypto/md5.c d = buf[3];
buf 244 lib/crypto/md5.c buf[0] += a;
buf 245 lib/crypto/md5.c buf[1] += b;
buf 246 lib/crypto/md5.c buf[2] += c;
buf 247 lib/crypto/md5.c buf[3] += d;
buf 9 lib/crypto/md5.h uint32_t buf[4];
buf 140 lib/nss_wrapper/nss_wrapper.c uint8_t *buf;
buf 221 lib/nss_wrapper/nss_wrapper.c uint8_t *buf = NULL;
buf 242 lib/nss_wrapper/nss_wrapper.c buf = (uint8_t *)malloc(nwrap->st.st_size + 1);
buf 243 lib/nss_wrapper/nss_wrapper.c if (!buf) {
buf 248 lib/nss_wrapper/nss_wrapper.c ret = read(nwrap->fd, buf, nwrap->st.st_size);
buf 255 lib/nss_wrapper/nss_wrapper.c buf[nwrap->st.st_size] = '\0';
buf 257 lib/nss_wrapper/nss_wrapper.c nline = (char *)buf;
buf 290 lib/nss_wrapper/nss_wrapper.c nwrap->buf = buf;
buf 294 lib/nss_wrapper/nss_wrapper.c if (buf) free(buf);
buf 302 lib/nss_wrapper/nss_wrapper.c if (nwrap->buf) free(nwrap->buf);
buf 304 lib/nss_wrapper/nss_wrapper.c nwrap->buf = NULL;
buf 555 lib/nss_wrapper/nss_wrapper.c memcpy(buf, first, ofs);
buf 558 lib/nss_wrapper/nss_wrapper.c dst->pw_name = buf + ofs;
buf 560 lib/nss_wrapper/nss_wrapper.c dst->pw_passwd = buf + ofs;
buf 564 lib/nss_wrapper/nss_wrapper.c dst->pw_gecos = buf + ofs;
buf 566 lib/nss_wrapper/nss_wrapper.c dst->pw_dir = buf + ofs;
buf 568 lib/nss_wrapper/nss_wrapper.c dst->pw_shell = buf + ofs;
buf 751 lib/nss_wrapper/nss_wrapper.c memcpy(buf, first, ofsb);
buf 752 lib/nss_wrapper/nss_wrapper.c memcpy(buf + ofsb, src->gr_mem, ofsm);
buf 755 lib/nss_wrapper/nss_wrapper.c dst->gr_name = buf + ofs;
buf 757 lib/nss_wrapper/nss_wrapper.c dst->gr_passwd = buf + ofs;
buf 760 lib/nss_wrapper/nss_wrapper.c dst->gr_mem = (char **)(buf + ofsb);
buf 763 lib/nss_wrapper/nss_wrapper.c dst->gr_mem[i] = buf + ofs;
buf 820 lib/nss_wrapper/nss_wrapper.c return nwrap_pw_copy_r(pw, pwdst, buf, buflen, pwdstp);
buf 827 lib/nss_wrapper/nss_wrapper.c return real_getpwnam_r(name, pwdst, buf, buflen, pwdstp);
buf 830 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getpwnam_r(name, pwdst, buf, buflen, pwdstp);
buf 878 lib/nss_wrapper/nss_wrapper.c return nwrap_pw_copy_r(pw, pwdst, buf, buflen, pwdstp);
buf 885 lib/nss_wrapper/nss_wrapper.c return real_getpwuid_r(uid, pwdst, buf, buflen, pwdstp);
buf 888 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getpwuid_r(uid, pwdst, buf, buflen, pwdstp);
buf 949 lib/nss_wrapper/nss_wrapper.c return nwrap_pw_copy_r(pw, pwdst, buf, buflen, pwdstp);
buf 958 lib/nss_wrapper/nss_wrapper.c pw = real_getpwent_r(pwdst, buf, buflen);
buf 970 lib/nss_wrapper/nss_wrapper.c return real_getpwent_r(pwdst, buf, buflen, pwdstp);
buf 974 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getpwent_r(pwdst, buf, buflen, pwdstp);
buf 1053 lib/nss_wrapper/nss_wrapper.c return nwrap_gr_copy_r(gr, grdst, buf, buflen, grdstp);
buf 1060 lib/nss_wrapper/nss_wrapper.c return real_getgrnam_r(name, grdst, buf, buflen, grdstp);
buf 1063 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getgrnam_r(name, grdst, buf, buflen, grdstp);
buf 1111 lib/nss_wrapper/nss_wrapper.c return nwrap_gr_copy_r(gr, grdst, buf, buflen, grdstp);
buf 1120 lib/nss_wrapper/nss_wrapper.c return real_getgrgid_r(gid, grdst, buf, buflen, grdstp);
buf 1123 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getgrgid_r(gid, grdst, buf, buflen, grdstp);
buf 1184 lib/nss_wrapper/nss_wrapper.c return nwrap_gr_copy_r(gr, grdst, buf, buflen, grdstp);
buf 1193 lib/nss_wrapper/nss_wrapper.c gr = real_getgrent_r(grdst, buf, buflen);
buf 1205 lib/nss_wrapper/nss_wrapper.c return real_getgrent_r(grdst, buf, buflen, grdstp);
buf 1209 lib/nss_wrapper/nss_wrapper.c return nwrap_files_getgrent_r(grdst, buf, buflen, grdstp);
buf 16 lib/popt/findme.c char * buf;
buf 26 lib/popt/findme.c buf = (char *)malloc(strlen(path) + strlen(argv0) + sizeof("/"));
buf 27 lib/popt/findme.c if (buf == NULL) return NULL; /* XXX can't happen */
buf 35 lib/popt/findme.c sprintf(buf, "%s/%s", start, argv0);
buf 37 lib/popt/findme.c if (!access(buf, X_OK))
buf 38 lib/popt/findme.c return buf;
buf 47 lib/popt/findme.c free(buf);
buf 98 lib/popt/poptconfig.c char * buf;
buf 130 lib/popt/poptconfig.c dst = buf = (char *)alloca(fileLength + 1);
buf 139 lib/popt/poptconfig.c dst = buf;
buf 65 lib/popt/poptparse.c char * buf = (char*)memset(alloca(buflen), 0, buflen);
buf 69 lib/popt/poptparse.c argv[argc] = buf;
buf 81 lib/popt/poptparse.c if (*src != quote) *buf++ = '\\';
buf 83 lib/popt/poptparse.c *buf++ = *src;
buf 86 lib/popt/poptparse.c buf++, argc++;
buf 92 lib/popt/poptparse.c argv[argc] = buf;
buf 107 lib/popt/poptparse.c *buf++ = *src;
buf 113 lib/popt/poptparse.c argc++, buf++;
buf 146 lib/replace/getpass.c static char buf[256];
buf 147 lib/replace/getpass.c static size_t bufsize = sizeof(buf);
buf 185 lib/replace/getpass.c buf[0] = 0;
buf 188 lib/replace/getpass.c if (fgets(buf, bufsize, in) == NULL) {
buf 189 lib/replace/getpass.c buf[0] = 0;
buf 192 lib/replace/getpass.c nread = strlen(buf);
buf 194 lib/replace/getpass.c if (buf[nread - 1] == '\n')
buf 195 lib/replace/getpass.c buf[nread - 1] = '\0';
buf 221 lib/replace/getpass.c return buf;
buf 35 lib/replace/inet_ntoa.c static char buf[18];
buf 36 lib/replace/inet_ntoa.c slprintf(buf, 17, "%d.%d.%d.%d",
buf 38 lib/replace/inet_ntoa.c return buf;
buf 64 lib/replace/repdir_getdents.c char buf[DIR_BUF_SIZE];
buf 105 lib/replace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE);
buf 111 lib/replace/repdir_getdents.c de = (struct dirent *)&d->buf[d->ofs];
buf 136 lib/replace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE);
buf 66 lib/replace/repdir_getdirentries.c char buf[DIR_BUF_SIZE];
buf 107 lib/replace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos);
buf 114 lib/replace/repdir_getdirentries.c de = (struct dirent *)&d->buf[d->ofs];
buf 148 lib/replace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos);
buf 989 lib/replace/strptime.c return strptime_internal (buf, format, tm, &decided, -1);
buf 20 lib/replace/test/shared_mmap.c int *buf;
buf 37 lib/replace/test/shared_mmap.c buf = (int *)mmap(NULL, 10000*sizeof(int),
buf 42 lib/replace/test/shared_mmap.c while (count-- && buf[9124] != 55732) sleep(1);
buf 46 lib/replace/test/shared_mmap.c buf[1763] = 7268;
buf 53 lib/replace/test/shared_mmap.c buf = (int *)mmap(NULL, 10000*sizeof(int),
buf 58 lib/replace/test/shared_mmap.c if (buf == (int *)-1) exit(1);
buf 60 lib/replace/test/shared_mmap.c buf[9124] = 55732;
buf 62 lib/replace/test/shared_mmap.c while (count-- && buf[1763] != 7268) sleep(1);
buf 91 lib/replace/test/testsuite.c char buf[4];
buf 105 lib/replace/test/testsuite.c if (strlcpy(buf, tests[i].src, sizeof(buf)) != tests[i].result) {
buf 815 lib/replace/test/testsuite.c char buf[20];
buf 833 lib/replace/test/testsuite.c if (read(sock[0], buf, 12) == -1) {
buf 840 lib/replace/test/testsuite.c if (strcmp(buf, "automatisch") != 0) {
buf 843 lib/replace/test/testsuite.c "]\n", buf);
buf 839 lib/socket_wrapper/socket_wrapper.c uint8_t *buf;
buf 929 lib/socket_wrapper/socket_wrapper.c buf = base;
buf 931 lib/socket_wrapper/socket_wrapper.c frame = (struct swrap_packet_frame *)buf;
buf 936 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_FRAME_SIZE;
buf 938 lib/socket_wrapper/socket_wrapper.c ip = (union swrap_packet_ip *)buf;
buf 952 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_IP_V4_SIZE;
buf 963 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_IP_V6_SIZE;
buf 969 lib/socket_wrapper/socket_wrapper.c pay = (union swrap_packet_payload *)buf;
buf 976 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_PAYLOAD_ICMP4_SIZE;
buf 979 lib/socket_wrapper/socket_wrapper.c ip = (union swrap_packet_ip *)buf;
buf 991 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_IP_V4_SIZE;
buf 1002 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_PAYLOAD_ICMP6_SIZE;
buf 1005 lib/socket_wrapper/socket_wrapper.c ip = (union swrap_packet_ip *)buf;
buf 1013 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_IP_V6_SIZE;
buf 1022 lib/socket_wrapper/socket_wrapper.c pay = (union swrap_packet_payload *)buf;
buf 1035 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_PAYLOAD_TCP_SIZE;
buf 1044 lib/socket_wrapper/socket_wrapper.c buf += SWRAP_PACKET_PAYLOAD_UDP_SIZE;
buf 1050 lib/socket_wrapper/socket_wrapper.c memcpy(buf, payload, payload_len);
buf 1226 lib/socket_wrapper/socket_wrapper.c buf, len, packet_len);
buf 1345 lib/socket_wrapper/socket_wrapper.c (const uint8_t *)buf, len,
buf 1365 lib/socket_wrapper/socket_wrapper.c packet = swrap_marshall_packet(si, addr, type, buf, len, &packet_len);
buf 1838 lib/socket_wrapper/socket_wrapper.c return real_recvfrom(s, buf, len, flags, from, fromlen);
buf 1850 lib/socket_wrapper/socket_wrapper.c ret = real_recvfrom(s, buf, len, flags, (struct sockaddr *)&un_addr, &un_addrlen);
buf 1859 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, from, SWRAP_RECVFROM, buf, ret);
buf 1873 lib/socket_wrapper/socket_wrapper.c return real_sendto(s, buf, len, flags, to, tolen);
buf 1890 lib/socket_wrapper/socket_wrapper.c ret = real_send(s, buf, len, flags);
buf 1915 lib/socket_wrapper/socket_wrapper.c real_sendto(s, buf, len, flags, (struct sockaddr *)&un_addr, sizeof(un_addr));
buf 1918 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, to, SWRAP_SENDTO, buf, len);
buf 1923 lib/socket_wrapper/socket_wrapper.c ret = real_sendto(s, buf, len, flags, (struct sockaddr *)&un_addr, sizeof(un_addr));
buf 1937 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, to, SWRAP_SENDTO, buf, len);
buf 1938 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, to, SWRAP_SENDTO_UNREACH, buf, len);
buf 1940 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, to, SWRAP_SENDTO, buf, ret);
buf 1978 lib/socket_wrapper/socket_wrapper.c return real_recv(s, buf, len, flags);
buf 1983 lib/socket_wrapper/socket_wrapper.c ret = real_recv(s, buf, len, flags);
buf 1989 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, NULL, SWRAP_RECV, buf, ret);
buf 2002 lib/socket_wrapper/socket_wrapper.c return real_send(s, buf, len, flags);
buf 2007 lib/socket_wrapper/socket_wrapper.c ret = real_send(s, buf, len, flags);
buf 2010 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, NULL, SWRAP_SEND, buf, len);
buf 2013 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, NULL, SWRAP_SEND, buf, ret);
buf 2055 lib/socket_wrapper/socket_wrapper.c uint8_t *buf;
buf 2061 lib/socket_wrapper/socket_wrapper.c buf = (uint8_t *)malloc(ret);
buf 2062 lib/socket_wrapper/socket_wrapper.c if (!buf) {
buf 2070 lib/socket_wrapper/socket_wrapper.c memcpy(buf + ofs,
buf 2077 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, NULL, SWRAP_RECV, buf, ret);
buf 2078 lib/socket_wrapper/socket_wrapper.c free(buf);
buf 2118 lib/socket_wrapper/socket_wrapper.c uint8_t *buf;
buf 2124 lib/socket_wrapper/socket_wrapper.c buf = (uint8_t *)malloc(ret);
buf 2125 lib/socket_wrapper/socket_wrapper.c if (!buf) {
buf 2133 lib/socket_wrapper/socket_wrapper.c memcpy(buf + ofs,
buf 2140 lib/socket_wrapper/socket_wrapper.c swrap_dump_packet(si, NULL, SWRAP_SEND, buf, ret);
buf 2141 lib/socket_wrapper/socket_wrapper.c free(buf);
buf 104 lib/socket_wrapper/socket_wrapper.h #define recvfrom(s,buf,len,flags,from,fromlen) swrap_recvfrom(s,buf,len,flags,from,fromlen)
buf 109 lib/socket_wrapper/socket_wrapper.h #define sendto(s,buf,len,flags,to,tolen) swrap_sendto(s,buf,len,flags,to,tolen)
buf 119 lib/socket_wrapper/socket_wrapper.h #define recv(s,buf,len,flags) swrap_recv(s,buf,len,flags)
buf 124 lib/socket_wrapper/socket_wrapper.h #define send(s,buf,len,flags) swrap_send(s,buf,len,flags)
buf 90 lib/tdb/common/io.c memcpy(off + (char *)tdb->map_ptr, buf, len);
buf 92 lib/tdb/common/io.c ssize_t written = pwrite(tdb->fd, buf, len, off);
buf 99 lib/tdb/common/io.c written = pwrite(tdb->fd, (const void *)((const char *)buf+written),
buf 123 lib/tdb/common/io.c uint32_t i, *p = (uint32_t *)buf;
buf 126 lib/tdb/common/io.c return buf;
buf 139 lib/tdb/common/io.c memcpy(buf, off + (char *)tdb->map_ptr, len);
buf 141 lib/tdb/common/io.c ssize_t ret = pread(tdb->fd, buf, len, off);
buf 153 lib/tdb/common/io.c tdb_convert(buf, len);
buf 235 lib/tdb/common/io.c char buf[8192];
buf 263 lib/tdb/common/io.c memset(buf, TDB_PAD_BYTE, sizeof(buf));
buf 265 lib/tdb/common/io.c size_t n = addition>sizeof(buf)?sizeof(buf):addition;
buf 266 lib/tdb/common/io.c ssize_t written = pwrite(tdb->fd, buf, n, size);
buf 269 lib/tdb/common/io.c written = pwrite(tdb->fd, buf, n, size);
buf 383 lib/tdb/common/io.c unsigned char *buf;
buf 390 lib/tdb/common/io.c if (!(buf = (unsigned char *)malloc(len))) {
buf 395 lib/tdb/common/io.c return TDB_ERRCODE(TDB_ERR_OOM, buf);
buf 397 lib/tdb/common/io.c if (tdb->methods->tdb_read(tdb, offset, buf, len, 0) == -1) {
buf 398 lib/tdb/common/io.c SAFE_FREE(buf);
buf 401 lib/tdb/common/io.c return buf;
buf 136 lib/tdb/common/transaction.c if (transaction_read(tdb, off, buf, len2, cv) != 0) {
buf 141 lib/tdb/common/transaction.c buf = (void *)(len2 + (char *)buf);
buf 154 lib/tdb/common/transaction.c if (tdb->transaction->io_methods->tdb_read(tdb, off, buf, len, cv) != 0) {
buf 168 lib/tdb/common/transaction.c memcpy(buf, tdb->transaction->blocks[blk] + (off % tdb->transaction->block_size), len);
buf 170 lib/tdb/common/transaction.c tdb_convert(buf, len);
buf 195 lib/tdb/common/transaction.c memcpy(&tdb->transaction->hash_heads[chain], buf, len);
buf 201 lib/tdb/common/transaction.c if (transaction_write(tdb, off, buf, len2) != 0) {
buf 206 lib/tdb/common/transaction.c if (buf != NULL) {
buf 207 lib/tdb/common/transaction.c buf = (const void *)(len2 + (const char *)buf);
buf 267 lib/tdb/common/transaction.c if (buf == NULL) {
buf 270 lib/tdb/common/transaction.c memcpy(tdb->transaction->blocks[blk] + off, buf, len);
buf 300 lib/tdb/common/transaction.c if (transaction_write_existing(tdb, off, buf, len2) != 0) {
buf 305 lib/tdb/common/transaction.c if (buf != NULL) {
buf 306 lib/tdb/common/transaction.c buf = (const void *)(len2 + (const char *)buf);
buf 331 lib/tdb/common/transaction.c memcpy(tdb->transaction->blocks[blk] + off, buf, len);
buf 100 lib/tdb/tools/tdbtest.c char *buf;
buf 102 lib/tdb/tools/tdbtest.c buf = (char *)malloc(len+1);
buf 105 lib/tdb/tools/tdbtest.c buf[i] = 'a' + (rand() % 26);
buf 107 lib/tdb/tools/tdbtest.c buf[i] = 0;
buf 108 lib/tdb/tools/tdbtest.c return buf;
buf 127 lib/tdb/tools/tdbtool.c if (buf[len - 1] == 0)
buf 131 lib/tdb/tools/tdbtool.c printf("%c",isprint(buf[i])?buf[i]:'.');
buf 140 lib/tdb/tools/tdbtool.c printf("%02X ",(int)((unsigned char)buf[i]));
buf 144 lib/tdb/tools/tdbtool.c print_asc(&buf[i-16],8); printf(" ");
buf 145 lib/tdb/tools/tdbtool.c print_asc(&buf[i-8],8); printf("\n");
buf 159 lib/tdb/tools/tdbtool.c print_asc(&buf[i-(i%16)],n); printf(" ");
buf 161 lib/tdb/tools/tdbtool.c if (n>0) print_asc(&buf[i-n],n);
buf 63 lib/tdb/tools/tdbtorture.c char *buf;
buf 65 lib/tdb/tools/tdbtorture.c buf = (char *)malloc(len+1);
buf 68 lib/tdb/tools/tdbtorture.c buf[i] = 'a' + (rand() % 26);
buf 70 lib/tdb/tools/tdbtorture.c buf[i] = 0;
buf 71 lib/tdb/tools/tdbtorture.c return buf;
buf 147 lib/util/byteorder.h #define CVAL(buf,pos) ((uint_t)(((const uint8_t *)(buf))[pos]))
buf 148 lib/util/byteorder.h #define CVAL_NC(buf,pos) (((uint8_t *)(buf))[pos]) /* Non-const version of CVAL */
buf 149 lib/util/byteorder.h #define PVAL(buf,pos) (CVAL(buf,pos))
buf 150 lib/util/byteorder.h #define SCVAL(buf,pos,val) (CVAL_NC(buf,pos) = (val))
buf 154 lib/util/byteorder.h #define _PTRPOS(buf,pos) (((const uint8_t *)(buf))+(pos))
buf 155 lib/util/byteorder.h #define SVAL(buf,pos) ld_le16((const uint16_t *)_PTRPOS(buf,pos))
buf 156 lib/util/byteorder.h #define IVAL(buf,pos) ld_le32((const uint32_t *)_PTRPOS(buf,pos))
buf 157 lib/util/byteorder.h #define SSVAL(buf,pos,val) st_le16((uint16_t *)_PTRPOS(buf,pos), val)
buf 158 lib/util/byteorder.h #define SIVAL(buf,pos,val) st_le32((uint32_t *)_PTRPOS(buf,pos), val)
buf 159 lib/util/byteorder.h #define SVALS(buf,pos) ((int16_t)SVAL(buf,pos))
buf 160 lib/util/byteorder.h #define IVALS(buf,pos) ((int32_t)IVAL(buf,pos))
buf 161 lib/util/byteorder.h #define SSVALS(buf,pos,val) SSVAL((buf),(pos),((int16_t)(val)))
buf 162 lib/util/byteorder.h #define SIVALS(buf,pos,val) SIVAL((buf),(pos),((int32_t)(val)))
buf 166 lib/util/byteorder.h #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8)
buf 167 lib/util/byteorder.h #define IVAL(buf,pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16)
buf 168 lib/util/byteorder.h #define SSVALX(buf,pos,val) (CVAL_NC(buf,pos)=(uint8_t)((val)&0xFF),CVAL_NC(buf,pos+1)=(uint8_t)((val)>>8))
buf 169 lib/util/byteorder.h #define SIVALX(buf,pos,val) (SSVALX(buf,pos,val&0xFFFF),SSVALX(buf,pos+2,val>>16))
buf 170 lib/util/byteorder.h #define SVALS(buf,pos) ((int16_t)SVAL(buf,pos))
buf 171 lib/util/byteorder.h #define IVALS(buf,pos) ((int32_t)IVAL(buf,pos))
buf 172 lib/util/byteorder.h #define SSVAL(buf,pos,val) SSVALX((buf),(pos),((uint16_t)(val)))
buf 173 lib/util/byteorder.h #define SIVAL(buf,pos,val) SIVALX((buf),(pos),((uint32_t)(val)))
buf 174 lib/util/byteorder.h #define SSVALS(buf,pos,val) SSVALX((buf),(pos),((int16_t)(val)))
buf 175 lib/util/byteorder.h #define SIVALS(buf,pos,val) SIVALX((buf),(pos),((int32_t)(val)))
buf 187 lib/util/byteorder.h #define SVAL(buf,pos) (*(const uint16_t *)((const char *)(buf) + (pos)))
buf 188 lib/util/byteorder.h #define SVAL_NC(buf,pos) (*(uint16_t *)((char *)(buf) + (pos))) /* Non const version of above. */
buf 189 lib/util/byteorder.h #define IVAL(buf,pos) (*(const uint32_t *)((const char *)(buf) + (pos)))
buf 190 lib/util/byteorder.h #define IVAL_NC(buf,pos) (*(uint32_t *)((char *)(buf) + (pos))) /* Non const version of above. */
buf 191 lib/util/byteorder.h #define SVALS(buf,pos) (*(const int16_t *)((const char *)(buf) + (pos)))
buf 192 lib/util/byteorder.h #define SVALS_NC(buf,pos) (*(int16_t *)((char *)(buf) + (pos))) /* Non const version of above. */
buf 193 lib/util/byteorder.h #define IVALS(buf,pos) (*(const int32_t *)((const char *)(buf) + (pos)))
buf 194 lib/util/byteorder.h #define IVALS_NC(buf,pos) (*(int32_t *)((char *)(buf) + (pos))) /* Non const version of above. */
buf 197 lib/util/byteorder.h #define SSVAL(buf,pos,val) SVAL_NC(buf,pos)=((uint16_t)(val))
buf 198 lib/util/byteorder.h #define SIVAL(buf,pos,val) IVAL_NC(buf,pos)=((uint32_t)(val))
buf 199 lib/util/byteorder.h #define SSVALS(buf,pos,val) SVALS_NC(buf,pos)=((int16_t)(val))
buf 200 lib/util/byteorder.h #define SIVALS(buf,pos,val) IVALS_NC(buf,pos)=((int32_t)(val))
buf 208 lib/util/byteorder.h #define RSVAL(buf,pos) SREV(SVAL(buf,pos))
buf 209 lib/util/byteorder.h #define RSVALS(buf,pos) SREV(SVALS(buf,pos))
buf 210 lib/util/byteorder.h #define RIVAL(buf,pos) IREV(IVAL(buf,pos))
buf 211 lib/util/byteorder.h #define RIVALS(buf,pos) IREV(IVALS(buf,pos))
buf 212 lib/util/byteorder.h #define RSSVAL(buf,pos,val) SSVAL(buf,pos,SREV(val))
buf 213 lib/util/byteorder.h #define RSSVALS(buf,pos,val) SSVALS(buf,pos,SREV(val))
buf 214 lib/util/byteorder.h #define RSIVAL(buf,pos,val) SIVAL(buf,pos,IREV(val))
buf 215 lib/util/byteorder.h #define RSIVALS(buf,pos,val) SIVALS(buf,pos,IREV(val))
buf 364 lib/util/charset/charcnv.c uint8_t buf[4];
buf 391 lib/util/charset/charcnv.c outbuf = (char *)buf;
buf 395 lib/util/charset/charcnv.c outbuf = (char *)buf;
buf 410 lib/util/charset/charcnv.c return (codepoint_t)SVAL(buf, 0);
buf 415 lib/util/charset/charcnv.c (buf[2] | ((buf[3] & 0x3)<<8) |
buf 416 lib/util/charset/charcnv.c (buf[0]<<10) | ((buf[1] & 0x3)<<18));
buf 437 lib/util/charset/charcnv.c uint8_t buf[4];
buf 455 lib/util/charset/charcnv.c inbuf = (char *)buf;
buf 456 lib/util/charset/charcnv.c SSVAL(buf, 0, c);
buf 466 lib/util/charset/charcnv.c buf[0] = (c>>10) & 0xFF;
buf 467 lib/util/charset/charcnv.c buf[1] = (c>>18) | 0xd8;
buf 468 lib/util/charset/charcnv.c buf[2] = c & 0xFF;
buf 469 lib/util/charset/charcnv.c buf[3] = ((c>>8) & 0x3) | 0xdc;
buf 473 lib/util/charset/charcnv.c inbuf = (char *)buf;
buf 421 lib/util/charset/iconv.c char buf[6];
buf 437 lib/util/charset/iconv.c snprintf(buf, 6, "@%04x", SVAL(*inbuf, 0));
buf 438 lib/util/charset/iconv.c memcpy(*outbuf, buf, 5);
buf 117 lib/util/charset/tests/charset.c char buf[20];
buf 118 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(NULL, buf, " ", 20), "null ptr works");
buf 125 lib/util/charset/tests/charset.c char buf[20];
buf 126 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 127 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "foo", "token matches");
buf 130 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 131 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "bar", "token matches");
buf 134 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 135 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "bla", "token matches");
buf 138 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(&teststr, buf, " ", 20), "finding token doesn't work");
buf 145 lib/util/charset/tests/charset.c char buf[20];
buf 146 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, NULL, 20), "finding token works");
buf 147 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "foo", "token matches");
buf 150 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, NULL, 20), "finding token works");
buf 151 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "bar", "token matches");
buf 154 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, NULL, 20), "finding token works");
buf 155 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "bla", "token matches");
buf 158 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(&teststr, buf, NULL, 20), "finding token doesn't work");
buf 165 lib/util/charset/tests/charset.c char buf[20];
buf 166 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, ",", 20), "finding token works");
buf 167 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "foo bla", "token matches");
buf 170 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(&teststr, buf, ",", 20), "finding token doesn't work");
buf 177 lib/util/charset/tests/charset.c char buf[20];
buf 178 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 179 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "foo bar", "token matches");
buf 182 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 183 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "bla", "token matches");
buf 186 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(&teststr, buf, " ", 20), "finding token doesn't work");
buf 193 lib/util/charset/tests/charset.c char buf[20];
buf 194 lib/util/charset/tests/charset.c torture_assert(tctx, next_token(&teststr, buf, " ", 20), "finding token works");
buf 195 lib/util/charset/tests/charset.c torture_assert_str_equal(tctx, buf, "foo bar bla", "token matches");
buf 198 lib/util/charset/tests/charset.c torture_assert(tctx, !next_token(&teststr, buf, " ", 20), "finding token doesn't work");
buf 80 lib/util/charset/tests/iconv.c ret = iconv(cd, &ptr_in, &size_in, &buf, &size_out);
buf 105 lib/util/charset/tests/iconv.c ret = iconv(cd, &buf, &size_in, &ptr_out, &size_out);
buf 120 lib/util/charset/tests/iconv.c printf("%02x ", buf[i]);
buf 287 lib/util/charset/tests/iconv.c uint8_t buf[10];
buf 291 lib/util/charset/tests/iconv.c size = push_codepoint(lp_iconv_convenience(tctx->lp_ctx), (char *)buf, codepoint);
buf 297 lib/util/charset/tests/iconv.c buf[size] = random();
buf 298 lib/util/charset/tests/iconv.c buf[size+1] = random();
buf 299 lib/util/charset/tests/iconv.c buf[size+2] = random();
buf 300 lib/util/charset/tests/iconv.c buf[size+3] = random();
buf 302 lib/util/charset/tests/iconv.c c = next_codepoint_convenience(lp_iconv_convenience(tctx->lp_ctx), (char *)buf, &size2);
buf 404 lib/util/charset/tests/iconv.c uint16_t *buf;
buf 416 lib/util/charset/tests/iconv.c buf = talloc_size(mem_ctx, len*2);
buf 417 lib/util/charset/tests/iconv.c generate_random_buffer((uint8_t *)buf, len*2);
buf 421 lib/util/charset/tests/iconv.c if (!convert_string_talloc(mem_ctx, CH_UTF16MUNGED, CH_UTF8, (void *)buf, len*2, (void**)&dest, &ret, false)) {
buf 136 lib/util/genrand.c unsigned char buf[1011]; /* deliberate weird size */
buf 146 lib/util/genrand.c while ((n = read(fd, (char *)buf, sizeof(buf))) > 0) {
buf 147 lib/util/genrand.c mdfour(tmp_md4, buf, n);
buf 94 lib/util/params.c char *buf;
buf 103 lib/util/params.c if (f->p >= f->buf+f->size) return EOF;
buf 508 lib/util/params.c ret->buf = file_load(FileName, &ret->size, 0, ret);
buf 509 lib/util/params.c if( NULL == ret->buf )
buf 518 lib/util/params.c ret->p = ret->buf;
buf 217 lib/util/time.c SIVAL(buf,offset,x);
buf 229 lib/util/time.c SIVAL(buf,offset,x);
buf 242 lib/util/time.c SIVAL(buf,offset,unixdate);
buf 321 lib/util/time.c char *buf;
buf 334 lib/util/time.c buf = talloc_strdup(mem_ctx, asctime(tm));
buf 335 lib/util/time.c if (buf[strlen(buf)-1] == '\n') {
buf 336 lib/util/time.c buf[strlen(buf)-1] = 0;
buf 340 lib/util/time.c buf = talloc_strdup(mem_ctx, tempTime);
buf 343 lib/util/time.c return buf;
buf 287 lib/util/util.c DEBUGADD(level,("%c", isprint(buf[i])?buf[i]:'.'));
buf 314 lib/util/util.c (memcmp(&buf[i], &empty, 16) == 0))
buf 325 lib/util/util.c DEBUGADD(level,("%02X ",(int)buf[i]));
buf 330 lib/util/util.c print_asc(level,&buf[i-16],8); DEBUGADD(level,(" "));
buf 331 lib/util/util.c print_asc(level,&buf[i-8],8); DEBUGADD(level,("\n"));
buf 335 lib/util/util.c (memcmp(&buf[i], &empty, 16) == 0)) {
buf 351 lib/util/util.c print_asc(level,&buf[i-(i%16)],n); DEBUGADD(level,( " " ));
buf 353 lib/util/util.c if (n>0) print_asc(level,&buf[i-n],n);
buf 366 lib/util/util.c _dump_data(level, buf, len, false);
buf 377 lib/util/util.c _dump_data(level, buf, len, true);
buf 703 lib/util/util.c char *p=buf;
buf 708 lib/util/util.c p = buf;
buf 801 lib/util/util.c for (len = 0; SVAL(buf,len); len += 2) ;
buf 69 lib/util/xfile.c SAFE_FREE(f->buf);
buf 70 lib/util/xfile.c f->buf = 0;
buf 90 lib/util/xfile.c if (f->buf) return 1;
buf 92 lib/util/xfile.c f->buf = (char *)malloc(f->bufsize);
buf 93 lib/util/xfile.c if (!f->buf) return 0;
buf 94 lib/util/xfile.c f->next = f->buf;
buf 143 lib/util/xfile.c if (f->buf) {
buf 145 lib/util/xfile.c memset(f->buf, 0, f->bufsize);
buf 146 lib/util/xfile.c SAFE_FREE(f->buf);
buf 165 lib/util/xfile.c (!f->buf && !x_allocate_buffer(f))) {
buf 182 lib/util/xfile.c memcpy(f->buf + f->bufused, total+(const char *)p, n);
buf 249 lib/util/xfile.c ret = write(f->fd, f->buf, f->bufused);
buf 255 lib/util/xfile.c memmove(f->buf, ret + (char *)f->buf, f->bufused);
buf 265 lib/util/xfile.c x_setvbuf(f, buf, buf?X_IOFBF:X_IONBF, size);
buf 271 lib/util/xfile.c x_setvbuf(f, buf, buf?X_IOFBF:X_IONBF, XBUFSIZE);
buf 302 lib/util/xfile.c if (!f->buf && !x_allocate_buffer(f)) return;
buf 304 lib/util/xfile.c n = read(f->fd, f->buf, f->bufsize);
buf 307 lib/util/xfile.c f->next = f->buf;
buf 28 lib/util/xfile.h char *buf;
buf 14 lib/zlib/adler32.c #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
buf 15 lib/zlib/adler32.c #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
buf 16 lib/zlib/adler32.c #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
buf 17 lib/zlib/adler32.c #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4);
buf 18 lib/zlib/adler32.c #define DO16(buf) DO8(buf,0); DO8(buf,8);
buf 70 lib/zlib/adler32.c adler += buf[0];
buf 80 lib/zlib/adler32.c if (buf == Z_NULL)
buf 86 lib/zlib/adler32.c adler += *buf++;
buf 100 lib/zlib/adler32.c DO16(buf); /* 16 sums unrolled */
buf 101 lib/zlib/adler32.c buf += 16;
buf 111 lib/zlib/adler32.c DO16(buf);
buf 112 lib/zlib/adler32.c buf += 16;
buf 115 lib/zlib/adler32.c adler += *buf++;
buf 418 lib/zlib/contrib/blast/blast.c *buf = hold;
buf 424 lib/zlib/contrib/blast/blast.c return fwrite(buf, 1, len, (FILE *)how) != len;
buf 87 lib/zlib/contrib/iostream2/zstream.h int read(void* buf, size_t len) {
buf 88 lib/zlib/contrib/iostream2/zstream.h return ::gzread(m_fp, buf, len);
buf 208 lib/zlib/contrib/iostream2/zstream.h int write(const void* buf, size_t len) {
buf 209 lib/zlib/contrib/iostream2/zstream.h return ::gzwrite(m_fp, (voidp) buf, len);
buf 15 lib/zlib/contrib/iostream3/test.cc char buf[80];
buf 27 lib/zlib/contrib/iostream3/test.cc while (inf.getline(buf,80,'\n')) {
buf 28 lib/zlib/contrib/iostream3/test.cc std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
buf 43 lib/zlib/contrib/iostream3/test.cc while (inf.getline(buf,80,'\n')) {
buf 44 lib/zlib/contrib/iostream3/test.cc std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
buf 125 lib/zlib/contrib/minizip/crypt.h buf[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, header[n], t);
buf 127 lib/zlib/contrib/minizip/crypt.h buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t);
buf 128 lib/zlib/contrib/minizip/crypt.h buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t);
buf 97 lib/zlib/contrib/minizip/ioapi.c ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
buf 109 lib/zlib/contrib/minizip/ioapi.c ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
buf 62 lib/zlib/contrib/minizip/ioapi.h #define ZREAD(filefunc,filestream,buf,size) ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
buf 63 lib/zlib/contrib/minizip/ioapi.h #define ZWRITE(filefunc,filestream,buf,size) ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
buf 128 lib/zlib/contrib/minizip/iowin32.c if (!ReadFile(hFile, buf, size, &ret, NULL))
buf 152 lib/zlib/contrib/minizip/iowin32.c if (!WriteFile(hFile, buf, size, &ret, NULL))
buf 252 lib/zlib/contrib/minizip/miniunz.c void* buf;
buf 266 lib/zlib/contrib/minizip/miniunz.c buf = (void*)malloc(size_buf);
buf 267 lib/zlib/contrib/minizip/miniunz.c if (buf==NULL)
buf 365 lib/zlib/contrib/minizip/miniunz.c err = unzReadCurrentFile(uf,buf,size_buf);
buf 372 lib/zlib/contrib/minizip/miniunz.c if (fwrite(buf,err,1,fout)!=1)
buf 400 lib/zlib/contrib/minizip/miniunz.c free(buf);
buf 164 lib/zlib/contrib/minizip/minizip.c size_read = (int)fread(buf,1,size_buf,fin);
buf 173 lib/zlib/contrib/minizip/minizip.c calculate_crc = crc32(calculate_crc,buf,size_read);
buf 198 lib/zlib/contrib/minizip/minizip.c void* buf=NULL;
buf 240 lib/zlib/contrib/minizip/minizip.c buf = (void*)malloc(size_buf);
buf 241 lib/zlib/contrib/minizip/minizip.c if (buf==NULL)
buf 349 lib/zlib/contrib/minizip/minizip.c err = getFileCrc(filenameinzip,buf,size_buf,&crcFile);
buf 375 lib/zlib/contrib/minizip/minizip.c size_read = (int)fread(buf,1,size_buf,fin);
buf 385 lib/zlib/contrib/minizip/minizip.c err = zipWriteInFileInZip (zf,buf,size_read);
buf 418 lib/zlib/contrib/minizip/minizip.c free(buf);
buf 335 lib/zlib/contrib/minizip/unzip.c unsigned char* buf;
buf 350 lib/zlib/contrib/minizip/unzip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4);
buf 351 lib/zlib/contrib/minizip/unzip.c if (buf==NULL)
buf 370 lib/zlib/contrib/minizip/unzip.c if (ZREAD(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
buf 374 lib/zlib/contrib/minizip/unzip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
buf 375 lib/zlib/contrib/minizip/unzip.c ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
buf 384 lib/zlib/contrib/minizip/unzip.c TRYFREE(buf);
buf 1247 lib/zlib/contrib/minizip/unzip.c pfile_in_zip_read_info->stream.next_out = (Bytef*)buf;
buf 1459 lib/zlib/contrib/minizip/unzip.c if (buf==NULL)
buf 1479 lib/zlib/contrib/minizip/unzip.c buf,read_now)!=read_now)
buf 219 lib/zlib/contrib/minizip/zip.c from_copy = (unsigned char*)buf;
buf 272 lib/zlib/contrib/minizip/zip.c unsigned char buf[4];
buf 276 lib/zlib/contrib/minizip/zip.c buf[n] = (unsigned char)(x & 0xff);
buf 283 lib/zlib/contrib/minizip/zip.c buf[n] = 0xff;
buf 287 lib/zlib/contrib/minizip/zip.c if (ZWRITE(*pzlib_filefunc_def,filestream,buf,nbByte)!=(uLong)nbByte)
buf 299 lib/zlib/contrib/minizip/zip.c unsigned char* buf=(unsigned char*)dest;
buf 302 lib/zlib/contrib/minizip/zip.c buf[n] = (unsigned char)(x & 0xff);
buf 310 lib/zlib/contrib/minizip/zip.c buf[n] = 0xff;
buf 444 lib/zlib/contrib/minizip/zip.c unsigned char* buf;
buf 459 lib/zlib/contrib/minizip/zip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4);
buf 460 lib/zlib/contrib/minizip/zip.c if (buf==NULL)
buf 479 lib/zlib/contrib/minizip/zip.c if (ZREAD(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
buf 483 lib/zlib/contrib/minizip/zip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
buf 484 lib/zlib/contrib/minizip/zip.c ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
buf 493 lib/zlib/contrib/minizip/zip.c TRYFREE(buf);
buf 981 lib/zlib/contrib/minizip/zip.c zi->ci.stream.next_in = (void*)buf;
buf 983 lib/zlib/contrib/minizip/zip.c zi->ci.crc32 = crc32(zi->ci.crc32,buf,len);
buf 795 lib/zlib/contrib/puff/puff.c unsigned char *buf;
buf 806 lib/zlib/contrib/puff/puff.c buf = malloc(size);
buf 807 lib/zlib/contrib/puff/puff.c if (buf != NULL && fread(buf, 1, size, in) != size) {
buf 808 lib/zlib/contrib/puff/puff.c free(buf);
buf 809 lib/zlib/contrib/puff/puff.c buf = NULL;
buf 813 lib/zlib/contrib/puff/puff.c return buf;
buf 215 lib/zlib/crc32.c #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
buf 224 lib/zlib/crc32.c if (buf == Z_NULL) return 0UL;
buf 237 lib/zlib/crc32.c return crc32_little(crc, buf, len);
buf 239 lib/zlib/crc32.c return crc32_big(crc, buf, len);
buf 272 lib/zlib/crc32.c while (len && ((ptrdiff_t)buf & 3)) {
buf 273 lib/zlib/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8);
buf 277 lib/zlib/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf;
buf 286 lib/zlib/crc32.c buf = (const unsigned char FAR *)buf4;
buf 289 lib/zlib/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8);
buf 312 lib/zlib/crc32.c while (len && ((ptrdiff_t)buf & 3)) {
buf 313 lib/zlib/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8);
buf 317 lib/zlib/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf;
buf 328 lib/zlib/crc32.c buf = (const unsigned char FAR *)buf4;
buf 331 lib/zlib/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8);
buf 973 lib/zlib/deflate.c zmemcpy(buf, strm->next_in, len);
buf 93 lib/zlib/examples/gun.c *buf = next;
buf 133 lib/zlib/examples/gun.c me->crc = crc32(me->crc, buf, len);
buf 141 lib/zlib/examples/gun.c ret = (int)write(me->outfile, buf, ret);
buf 144 lib/zlib/examples/gun.c buf += ret;
buf 172 lib/zlib/examples/gzappend.c unsigned char *buf; /* buffer */
buf 182 lib/zlib/examples/gzappend.c len = read(in->fd, in->buf, 1 << in->size);
buf 185 lib/zlib/examples/gzappend.c in->next = in->buf;
buf 270 lib/zlib/examples/gzappend.c gz.buf = malloc(CHUNK);
buf 271 lib/zlib/examples/gzappend.c if (gz.buf == NULL) bye("out of memory", "");
buf 354 lib/zlib/examples/gzappend.c if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
buf 355 lib/zlib/examples/gzappend.c *gz.buf = (unsigned char)(*gz.buf ^ (1 << ((8 - lastbit) & 7)));
buf 357 lib/zlib/examples/gzappend.c if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name);
buf 373 lib/zlib/examples/gzappend.c if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
buf 374 lib/zlib/examples/gzappend.c deflatePrime(strm, 8 - left, *gz.buf);
buf 380 lib/zlib/examples/gzappend.c free(gz.buf);
buf 82 lib/zlib/examples/gzjoin.c unsigned char *buf; /* allocated buffer of length CHUNK */
buf 91 lib/zlib/examples/gzjoin.c if (in->buf != NULL)
buf 92 lib/zlib/examples/gzjoin.c free(in->buf);
buf 106 lib/zlib/examples/gzjoin.c in->buf = malloc(CHUNK);
buf 108 lib/zlib/examples/gzjoin.c if (in->buf == NULL || in->fd == -1) {
buf 113 lib/zlib/examples/gzjoin.c in->next = in->buf;
buf 128 lib/zlib/examples/gzjoin.c in->next = in->buf;
buf 130 lib/zlib/examples/gzjoin.c len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left);
buf 182 lib/zlib/examples/gzjoin.c if (read(in->fd, in->buf, 1) != 1)
buf 320 lib/zlib/examples/gzjoin.c start = in->buf;
buf 361 lib/zlib/examples/gzjoin.c start = in->buf;
buf 76 lib/zlib/examples/gzlog.c val = (unsigned long)(*buf++);
buf 78 lib/zlib/examples/gzlog.c val += (unsigned long)(*buf++) << n;
buf 88 lib/zlib/examples/gzlog.c val = (off_t)(*buf++);
buf 90 lib/zlib/examples/gzlog.c val += (off_t)(*buf++) << n;
buf 100 lib/zlib/examples/gzlog.c *buf++ = val & 0xff;
buf 111 lib/zlib/examples/gzlog.c *buf++ = val & 0xff;
buf 293 lib/zlib/examples/zran.c strm.next_out = buf;
buf 355 lib/zlib/examples/zran.c unsigned char buf[CHUNK];
buf 391 lib/zlib/examples/zran.c len = extract(in, index, offset, buf, CHUNK);
buf 396 lib/zlib/examples/zran.c fwrite(buf, 1, len, stdout);
buf 398 lib/zlib/gzio.c Bytef *start = (Bytef*)buf; /* starting point for crc computation */
buf 406 lib/zlib/gzio.c next_out = (Byte*)buf;
buf 407 lib/zlib/gzio.c s->stream.next_out = (Bytef*)buf;
buf 543 lib/zlib/gzio.c char *b = buf;
buf 544 lib/zlib/gzio.c if (buf == Z_NULL || len <= 0) return Z_NULL;
buf 546 lib/zlib/gzio.c while (--len > 0 && gzread(file, buf, 1) == 1 && *buf++ != '\n') ;
buf 547 lib/zlib/gzio.c *buf = '\0';
buf 548 lib/zlib/gzio.c return b == buf && len > 0 ? Z_NULL : b;
buf 566 lib/zlib/gzio.c s->stream.next_in = (const Bytef*)buf;
buf 587 lib/zlib/gzio.c s->crc = crc32(s->crc, (const Bytef *)buf, len);
buf 603 lib/zlib/gzio.c char buf[Z_PRINTF_BUFSIZE];
buf 607 lib/zlib/gzio.c buf[sizeof(buf) - 1] = 0;
buf 611 lib/zlib/gzio.c (void)vsprintf(buf, format, va);
buf 613 lib/zlib/gzio.c for (len = 0; len < sizeof(buf); len++)
buf 614 lib/zlib/gzio.c if (buf[len] == 0) break;
buf 616 lib/zlib/gzio.c len = vsprintf(buf, format, va);
buf 621 lib/zlib/gzio.c (void)vsnprintf(buf, sizeof(buf), format, va);
buf 623 lib/zlib/gzio.c len = strlen(buf);
buf 625 lib/zlib/gzio.c len = vsnprintf(buf, sizeof(buf), format, va);
buf 629 lib/zlib/gzio.c if (len <= 0 || len >= (int)sizeof(buf) || buf[sizeof(buf) - 1] != 0)
buf 631 lib/zlib/gzio.c return gzwrite(file, buf, (unsigned)len);
buf 642 lib/zlib/gzio.c char buf[Z_PRINTF_BUFSIZE];
buf 645 lib/zlib/gzio.c buf[sizeof(buf) - 1] = 0;
buf 648 lib/zlib/gzio.c sprintf(buf, format, a1, a2, a3, a4, a5, a6, a7, a8,
buf 650 lib/zlib/gzio.c for (len = 0; len < sizeof(buf); len++)
buf 651 lib/zlib/gzio.c if (buf[len] == 0) break;
buf 653 lib/zlib/gzio.c len = sprintf(buf, format, a1, a2, a3, a4, a5, a6, a7, a8,
buf 658 lib/zlib/gzio.c snprintf(buf, sizeof(buf), format, a1, a2, a3, a4, a5, a6, a7, a8,
buf 660 lib/zlib/gzio.c len = strlen(buf);
buf 662 lib/zlib/gzio.c len = snprintf(buf, sizeof(buf), format, a1, a2, a3, a4, a5, a6, a7, a8,
buf 666 lib/zlib/gzio.c if (len <= 0 || len >= sizeof(buf) || buf[sizeof(buf) - 1] != 0)
buf 668 lib/zlib/gzio.c return gzwrite(file, buf, len);
buf 378 lib/zlib/inflate.c (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
buf 380 lib/zlib/inflate.c # define UPDATE(check, buf, len) adler32(check, buf, len)
buf 1250 lib/zlib/inflate.c if ((int)(buf[next]) == (got < 2 ? 0 : 0xff))
buf 1252 lib/zlib/inflate.c else if (buf[next])
buf 1267 lib/zlib/inflate.c unsigned char buf[4]; /* to restore bit buffer to byte string */
buf 1282 lib/zlib/inflate.c buf[len++] = (unsigned char)(state->hold);
buf 1287 lib/zlib/inflate.c syncsearch(&(state->have), buf, len);
buf 102 lib/zlib/minigzip.c local char buf[BUFLEN];
buf 113 lib/zlib/minigzip.c len = (int)fread(buf, 1, sizeof(buf), in);
buf 120 lib/zlib/minigzip.c if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err));
buf 138 lib/zlib/minigzip.c caddr_t buf; /* mmap'ed buffer for the entire input file */
buf 148 lib/zlib/minigzip.c buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
buf 149 lib/zlib/minigzip.c if (buf == (caddr_t)(-1)) return Z_ERRNO;
buf 152 lib/zlib/minigzip.c len = gzwrite(out, (char *)buf, (unsigned)buf_len);
buf 156 lib/zlib/minigzip.c munmap(buf, buf_len);
buf 170 lib/zlib/minigzip.c local char buf[BUFLEN];
buf 175 lib/zlib/minigzip.c len = gzread(in, buf, sizeof(buf));
buf 179 lib/zlib/minigzip.c if ((int)fwrite(buf, 1, (unsigned)len, out) != len) {
buf 226 lib/zlib/minigzip.c local char buf[MAX_NAME_LEN];
buf 232 lib/zlib/minigzip.c strcpy(buf, file);
buf 236 lib/zlib/minigzip.c outfile = buf;
buf 240 lib/zlib/minigzip.c infile = buf;
buf 878 lib/zlib/trees.c copy_block(s, buf, (unsigned)stored_len, 1); /* with header */
buf 965 lib/zlib/trees.c Assert(buf != (char*)0, "lost buf");
buf 970 lib/zlib/trees.c if (buf != (char*)0) { /* force stored block */
buf 972 lib/zlib/trees.c if (stored_len+4 <= opt_lenb && buf != (char*)0) {
buf 981 lib/zlib/trees.c _tr_stored_block(s, buf, stored_len, eof);
buf 1217 lib/zlib/trees.c put_byte(s, *buf++);
buf 218 lib/zlib/zutil.c voidpf buf = opaque; /* just to make some compilers happy */
buf 225 lib/zlib/zutil.c buf = farmalloc(bsize);
buf 226 lib/zlib/zutil.c if (*(ush*)&buf != 0) return buf;
buf 228 lib/zlib/zutil.c buf = farmalloc(bsize + 16L);
buf 230 lib/zlib/zutil.c if (buf == NULL || next_ptr >= MAX_PTR) return NULL;
buf 231 lib/zlib/zutil.c table[next_ptr].org_ptr = buf;
buf 234 lib/zlib/zutil.c *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4;
buf 235 lib/zlib/zutil.c *(ush*)&buf = 0;
buf 236 lib/zlib/zutil.c table[next_ptr++].new_ptr = buf;
buf 237 lib/zlib/zutil.c return buf;
buf 34 libcli/ldap/ldap_ndr.c uint8_t buf[4];
buf 36 libcli/ldap/ldap_ndr.c SIVAL(buf, 0, value);
buf 37 libcli/ldap/ldap_ndr.c val.data = buf;
buf 610 librpc/gen_ndr/lsa.h struct lsa_DATA_BUF *buf;/* [unique] */
buf 3926 librpc/gen_ndr/ndr_lsa.c NDR_CHECK(ndr_push_unique_ptr(ndr, r->buf));
buf 3929 librpc/gen_ndr/ndr_lsa.c if (r->buf) {
buf 3930 librpc/gen_ndr/ndr_lsa.c NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->buf));
buf 3944 librpc/gen_ndr/ndr_lsa.c NDR_PULL_ALLOC(ndr, r->buf);
buf 3946 librpc/gen_ndr/ndr_lsa.c r->buf = NULL;
buf 3950 librpc/gen_ndr/ndr_lsa.c if (r->buf) {
buf 3952 librpc/gen_ndr/ndr_lsa.c NDR_PULL_SET_MEM_CTX(ndr, r->buf, 0);
buf 3953 librpc/gen_ndr/ndr_lsa.c NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->buf));
buf 3964 librpc/gen_ndr/ndr_lsa.c ndr_print_ptr(ndr, "buf", r->buf);
buf 3966 librpc/gen_ndr/ndr_lsa.c if (r->buf) {
buf 3967 librpc/gen_ndr/ndr_lsa.c ndr_print_lsa_DATA_BUF(ndr, "buf", r->buf);
buf 81 librpc/tools/ndrdump.c char buf[255];
buf 84 librpc/tools/ndrdump.c while((num_read = read(STDIN_FILENO, buf, 255)) > 0) {
buf 93 librpc/tools/ndrdump.c memcpy(result + total_len, buf, num_read);
buf 66 nsswitch/nsstest.c static char buf[1000];
buf 69 nsswitch/nsstest.c status = _nss_getpwent_r(&pwd, buf, sizeof(buf), &nss_errno);
buf 85 nsswitch/nsstest.c static char buf[1000];
buf 88 nsswitch/nsstest.c status = _nss_getpwnam_r(name, &pwd, buf, sizeof(buf), &nss_errno);
buf 104 nsswitch/nsstest.c static char buf[1000];
buf 107 nsswitch/nsstest.c status = _nss_getpwuid_r(uid, &pwd, buf, sizeof(buf), &nss_errno);
buf 144 nsswitch/nsstest.c static char *buf;
buf 148 nsswitch/nsstest.c if (!buf) buf = malloc_array_p(char, buflen);
buf 151 nsswitch/nsstest.c status = _nss_getgrent_r(&grp, buf, buflen, &nss_errno);
buf 154 nsswitch/nsstest.c buf = realloc_p(buf, char, buflen);
buf 172 nsswitch/nsstest.c static char *buf;
buf 176 nsswitch/nsstest.c if (!buf) buf = malloc_array_p(char, buflen);
buf 178 nsswitch/nsstest.c status = _nss_getgrnam_r(name, &grp, buf, buflen, &nss_errno);
buf 181 nsswitch/nsstest.c buf = realloc_p(buf, char, buflen);
buf 199 nsswitch/nsstest.c static char *buf;
buf 203 nsswitch/nsstest.c if (!buf) buf = malloc_array_p(char, buflen);
buf 205 nsswitch/nsstest.c status = _nss_getgrgid_r(gid, &grp, buf, buflen, &nss_errno);
buf 208 nsswitch/nsstest.c buf = realloc_p(buf, char, buflen);
buf 121 nsswitch/winbind_nss_hpux.h nss_XbyY_buf_t buf;
buf 103 nsswitch/winbind_nss_solaris.c char* buffer = NSS_ARGS(args)->buf.buffer;
buf 104 nsswitch/winbind_nss_solaris.c int buflen = NSS_ARGS(args)->buf.buflen;
buf 105 nsswitch/winbind_nss_solaris.c struct passwd* result = (struct passwd*) NSS_ARGS(args)->buf.result;
buf 130 nsswitch/winbind_nss_solaris.c struct passwd* result = (struct passwd*) NSS_ARGS(args)->buf.result;
buf 136 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buffer,
buf 137 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buflen,
buf 149 nsswitch/winbind_nss_solaris.c struct passwd* result = (struct passwd*) NSS_ARGS(args)->buf.result;
buf 154 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buffer,
buf 155 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buflen,
buf 218 nsswitch/winbind_nss_solaris.c char* buffer = NSS_ARGS(args)->buf.buffer;
buf 219 nsswitch/winbind_nss_solaris.c int buflen = NSS_ARGS(args)->buf.buflen;
buf 220 nsswitch/winbind_nss_solaris.c struct group* result = (struct group*) NSS_ARGS(args)->buf.result;
buf 245 nsswitch/winbind_nss_solaris.c struct group* result = (struct group*) NSS_ARGS(args)->buf.result;
buf 250 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buffer,
buf 251 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buflen,
buf 264 nsswitch/winbind_nss_solaris.c struct group* result = (struct group*) NSS_ARGS(args)->buf.result;
buf 269 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buffer,
buf 270 nsswitch/winbind_nss_solaris.c NSS_ARGS(args)->buf.buflen,
buf 358 nsswitch/winbind_nss_solaris.c struct hostent *he = (struct hostent *)argp->buf.result;
buf 359 nsswitch/winbind_nss_solaris.c char *buffer = argp->buf.buffer;
buf 360 nsswitch/winbind_nss_solaris.c int buflen = argp->buf.buflen;
buf 456 nsswitch/winbind_nss_solaris.c if(len > he->h_addr_list - (char**)argp->buf.buffer) {
buf 185 source3/auth/pampass.c all_string_sub(buf, "\\n", "", 0);
buf 186 source3/auth/pampass.c all_string_sub(buf, "\\r", "", 0);
buf 187 source3/auth/pampass.c all_string_sub(buf, "\\s", " ", 0);
buf 188 source3/auth/pampass.c all_string_sub(buf, "\\t", "\t", 0);
buf 193 source3/auth/pampass.c fstring_sub(buf, "%u", username);
buf 194 source3/auth/pampass.c all_string_sub(buf, "%o", oldpass, sizeof(fstring));
buf 195 source3/auth/pampass.c all_string_sub(buf, "%n", newpass, sizeof(fstring));
buf 470 source3/client/cifs.upcall.c char *buf, *princ = NULL, *ccname = NULL;
buf 511 source3/client/cifs.upcall.c rc = keyctl_describe_alloc(key, &buf);
buf 519 source3/client/cifs.upcall.c syslog(LOG_DEBUG, "key description: %s", buf);
buf 521 source3/client/cifs.upcall.c if ((strncmp(buf, "cifs.resolver", sizeof("cifs.resolver")-1) == 0) ||
buf 522 source3/client/cifs.upcall.c (strncmp(buf, "dns_resolver", sizeof("dns_resolver")-1) == 0)) {
buf 523 source3/client/cifs.upcall.c rc = cifs_resolver(key, buf);
buf 527 source3/client/cifs.upcall.c have = decode_key_description(buf, &arg);
buf 528 source3/client/cifs.upcall.c SAFE_FREE(buf);
buf 235 source3/client/client.c result = readfile(buf, n, state->f);
buf 461 source3/client/client.c char *buf = NULL;
buf 464 source3/client/client.c if (next_token_talloc(talloc_tos(), &cmd_ptr, &buf,NULL)) {
buf 465 source3/client/client.c rc = do_cd(buf);
buf 882 source3/client/client.c char *buf = NULL;
buf 891 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 892 source3/client/client.c normalize_name(buf);
buf 893 source3/client/client.c if (*buf == CLI_DIRSEP_CHAR) {
buf 894 source3/client/client.c mask = talloc_strdup(ctx, buf);
buf 896 source3/client/client.c mask = talloc_asprintf_append(mask, "%s", buf);
buf 928 source3/client/client.c char *buf = NULL;
buf 943 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 944 source3/client/client.c normalize_name(buf);
buf 945 source3/client/client.c if (*buf == CLI_DIRSEP_CHAR) {
buf 946 source3/client/client.c mask = talloc_strdup(ctx, buf);
buf 948 source3/client/client.c mask = talloc_asprintf_append(mask, "%s", buf);
buf 993 source3/client/client.c if (writefile(*pfd, buf, n) == -1) {
buf 1334 source3/client/client.c char *buf = NULL;
buf 1342 source3/client/client.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1347 source3/client/client.c if (*buf == CLI_DIRSEP_CHAR) {
buf 1348 source3/client/client.c mget_mask = talloc_strdup(ctx, buf);
buf 1351 source3/client/client.c "%s", buf);
buf 1439 source3/client/client.c char *buf = NULL;
buf 1446 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1452 source3/client/client.c mask = talloc_asprintf_append(mask, "%s", buf);
buf 1509 source3/client/client.c char *buf;
buf 1516 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
buf 1520 source3/client/client.c name = talloc_asprintf_append(name, "%s", buf);
buf 1593 source3/client/client.c char *buf;
buf 1600 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
buf 1604 source3/client/client.c name = talloc_asprintf_append(name, "%s", buf);
buf 1736 source3/client/client.c char *buf;
buf 1748 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1749 source3/client/client.c rname = talloc_asprintf_append(rname, "%s", buf);
buf 2022 source3/client/client.c char *buf = NULL;
buf 2025 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf,NULL)) {
buf 2030 source3/client/client.c job = atoi(buf);
buf 2032 source3/client/client.c } while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL));
buf 2133 source3/client/client.c char *buf = NULL;
buf 2144 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2148 source3/client/client.c mask = talloc_asprintf_append(mask, "%s", buf);
buf 2165 source3/client/client.c char *buf = NULL;
buf 2170 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2175 source3/client/client.c attribute = (uint16)strtol(buf, (char **)NULL, 16);
buf 2177 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2184 source3/client/client.c buf);
buf 2207 source3/client/client.c char *buf = NULL;
buf 2212 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2219 source3/client/client.c buf);
buf 2293 source3/client/client.c char *buf = NULL;
buf 2299 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2306 source3/client/client.c buf);
buf 2311 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2315 source3/client/client.c mode = (mode_t)strtol(buf, (char **)NULL, 8);
buf 2341 source3/client/client.c char *buf = NULL;
buf 2347 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2354 source3/client/client.c buf);
buf 2359 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2363 source3/client/client.c mode = (mode_t)strtol(buf, (char **)NULL, 8);
buf 2383 source3/client/client.c char *buf = NULL;
buf 2387 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2394 source3/client/client.c buf);
buf 2417 source3/client/client.c char *buf = NULL;
buf 2421 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2428 source3/client/client.c buf);
buf 2450 source3/client/client.c char *buf = NULL;
buf 2453 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2458 source3/client/client.c fnum = atoi(buf);
buf 2568 source3/client/client.c char *buf = NULL;
buf 2573 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2577 source3/client/client.c fnum = atoi(buf);
buf 2579 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2584 source3/client/client.c if (*buf == 'r' || *buf == 'R') {
buf 2586 source3/client/client.c } else if (*buf == 'w' || *buf == 'W') {
buf 2593 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2598 source3/client/client.c start = (uint64_t)strtol(buf, (char **)NULL, 16);
buf 2600 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2605 source3/client/client.c len = (uint64_t)strtol(buf, (char **)NULL, 16);
buf 2617 source3/client/client.c char *buf = NULL;
buf 2621 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2625 source3/client/client.c fnum = atoi(buf);
buf 2627 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2632 source3/client/client.c start = (uint64_t)strtol(buf, (char **)NULL, 16);
buf 2634 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2639 source3/client/client.c len = (uint64_t)strtol(buf, (char **)NULL, 16);
buf 2657 source3/client/client.c char *buf = NULL;
buf 2661 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 2668 source3/client/client.c buf);
buf 2695 source3/client/client.c char *buf = NULL;
buf 2700 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 2708 source3/client/client.c buf);
buf 2746 source3/client/client.c char *buf = NULL;
buf 2751 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 2759 source3/client/client.c buf);
buf 2798 source3/client/client.c char *buf = NULL;
buf 2804 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 2817 source3/client/client.c mode = (mode_t)strtol(buf, NULL, 8);
buf 3218 source3/client/client.c char *buf, *buf2, *buf3;
buf 3222 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 3229 source3/client/client.c uid = (uid_t)atoi(buf);
buf 3266 source3/client/client.c char *buf, *buf2;
buf 3271 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 3280 source3/client/client.c buf);
buf 3342 source3/client/client.c char *buf, *buf2;
buf 3346 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) ||
buf 3355 source3/client/client.c buf);
buf 3399 source3/client/client.c char *buf;
buf 3403 source3/client/client.c ok = next_token_talloc(ctx, &cmd_ptr,&buf,NULL);
buf 3404 source3/client/client.c if (ok && (sys_stat(buf,&sbuf) == 0)) {
buf 3427 source3/client/client.c char *buf;
buf 3429 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 3430 source3/client/client.c archive_level = atoi(buf);
buf 3505 source3/client/client.c char *buf;
buf 3508 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 3509 source3/client/client.c if (chdir(buf) == -1) {
buf 3511 source3/client/client.c buf, strerror(errno));
buf 3570 source3/client/client.c char *buf;
buf 3588 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
buf 3590 source3/client/client.c "%s", buf);
buf 3767 source3/client/client.c char *buf;
buf 3769 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 3774 source3/client/client.c cli->vuid = atoi(buf);
buf 3852 source3/client/client.c char *buf;
buf 3855 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 3869 source3/client/client.c iosize = strtol(buf,NULL,0);
buf 4021 source3/client/client.c char *buf;
buf 4023 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 4024 source3/client/client.c if ((i = process_tok(buf)) >= 0)
buf 4281 source3/client/client.c const char *buf, *sp;
buf 4285 source3/client/client.c buf = smb_readline_get_line_buffer();
buf 4286 source3/client/client.c if (buf == NULL)
buf 4289 source3/client/client.c sp = strchr(buf, ' ');
buf 4294 source3/client/client.c if ((strncmp(commands[i].name, buf, sp - buf) == 0) &&
buf 4295 source3/client/client.c (commands[i].name[sp - buf] == 0)) {
buf 4305 source3/client/client.c if (sp == (buf + start))
buf 583 source3/client/clitar.c memset(buf, 0, (size_t)bufsize);
buf 586 source3/client/clitar.c berr = dotarbuf(tarhandle, buf, bytestowrite) != bytestowrite;
buf 1272 source3/client/clitar.c char *buf;
buf 1275 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1280 source3/client/clitar.c block=atoi(buf);
buf 1298 source3/client/clitar.c char *buf;
buf 1300 source3/client/clitar.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1301 source3/client/clitar.c if (strequal(buf, "full"))
buf 1303 source3/client/clitar.c else if (strequal(buf, "inc"))
buf 1305 source3/client/clitar.c else if (strequal(buf, "reset"))
buf 1307 source3/client/clitar.c else if (strequal(buf, "noreset"))
buf 1309 source3/client/clitar.c else if (strequal(buf, "system"))
buf 1311 source3/client/clitar.c else if (strequal(buf, "nosystem"))
buf 1313 source3/client/clitar.c else if (strequal(buf, "hidden"))
buf 1315 source3/client/clitar.c else if (strequal(buf, "nohidden"))
buf 1317 source3/client/clitar.c else if (strequal(buf, "verbose") || strequal(buf, "noquiet"))
buf 1319 source3/client/clitar.c else if (strequal(buf, "quiet") || strequal(buf, "noverbose"))
buf 1322 source3/client/clitar.c DEBUG(0, ("tarmode: unrecognised option %s\n", buf));
buf 1323 source3/client/clitar.c TALLOC_FREE(buf);
buf 1343 source3/client/clitar.c char *buf;
buf 1350 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1358 source3/client/clitar.c buf);
buf 1363 source3/client/clitar.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1364 source3/client/clitar.c q=buf;
buf 1460 source3/client/clitar.c char *buf;
buf 1465 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
buf 1471 source3/client/clitar.c if (!tar_parseargs(argcl, argl, buf, 0)) {
buf 1647 source3/client/clitar.c char buf[PATH_MAX + 1];
buf 1657 source3/client/clitar.c buf[PATH_MAX] = '\0'; /* guarantee null-termination */
buf 1666 source3/client/clitar.c while ((! error) && (x_fgets(buf, sizeof(buf)-1, inclusion))) {
buf 1676 source3/client/clitar.c if (buf[strlen(buf)-1] == '\n') {
buf 1677 source3/client/clitar.c buf[strlen(buf)-1] = '\0';
buf 1680 source3/client/clitar.c if ((strlen(buf) + 1 + inclusion_buffer_sofar) >= inclusion_buffer_size) {
buf 1691 source3/client/clitar.c safe_strcpy(inclusion_buffer + inclusion_buffer_sofar, buf, inclusion_buffer_size - inclusion_buffer_sofar);
buf 1692 source3/client/clitar.c inclusion_buffer_sofar += strlen(buf) + 1;
buf 124 source3/groupdb/mapping_tdb.c char *key, *buf;
buf 136 source3/groupdb/mapping_tdb.c buf = TALLOC_ARRAY(key, char, len);
buf 137 source3/groupdb/mapping_tdb.c if (!buf) {
buf 141 source3/groupdb/mapping_tdb.c len = tdb_pack((uint8 *)buf, len, "ddff", map->gid,
buf 146 source3/groupdb/mapping_tdb.c make_tdb_data((uint8_t *)buf, len), TDB_REPLACE);
buf 37 source3/include/ads.h ADS_STATUS (*wrap)(struct ads_struct *, uint8 *buf, uint32 len);
buf 111 source3/include/ads.h uint8 *buf;
buf 120 source3/include/ads.h uint8 *buf;
buf 404 source3/include/includes.h #define IVAL2_TO_SMB_BIG_UINT(buf,off) ( (((uint64_t)(IVAL((buf),(off)))) & ((uint64_t)0xFFFFFFFF)) | \
buf 405 source3/include/includes.h (( ((uint64_t)(IVAL((buf),(off+4)))) & ((uint64_t)0xFFFFFFFF) ) << 32 ) )
buf 427 source3/include/includes.h #define IVAL_TO_SMB_OFF_T(buf,off) ((SMB_OFF_T)(( ((uint64_t)(IVAL((buf),(off)))) & ((uint64_t)0xFFFFFFFF) )))
buf 431 source3/include/includes.h #define IVAL_TO_SMB_OFF_T(buf,off) ((SMB_OFF_T)(( ((uint32)(IVAL((buf),(off)))) & 0xFFFFFFFF )))
buf 241 source3/include/samba_linux_quota.h #define V2_GETENTRIES(buf) ((struct v2_disk_dqblk *)(((char *)(buf)) + sizeof(struct v2_disk_dqdbheader)))
buf 633 source3/include/smb.h const uint8_t *buf;
buf 733 source3/include/smb.h DATA_BLOB buf;
buf 1438 source3/include/smb.h #define smb_base(buf) (((char *)(buf))+4)
buf 129 source3/include/smb_macros.h #define smb_buf(buf) (((char *)(buf)) + smb_size + CVAL(buf,smb_wct)*2)
buf 130 source3/include/smb_macros.h #define smb_buflen(buf) (SVAL(buf,smb_vwv0 + (int)CVAL(buf, smb_wct)*2))
buf 133 source3/include/smb_macros.h #define smb_bufrem(buf, p) (smb_buflen(buf)-PTR_DIFF(p, smb_buf(buf)))
buf 134 source3/include/smb_macros.h #define smbreq_bufrem(req, p) (req->buflen - PTR_DIFF(p, req->buf))
buf 138 source3/include/smb_macros.h #define smb_offset(p,buf) (PTR_DIFF(p,buf+4))
buf 140 source3/include/smb_macros.h #define smb_len(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|((PVAL(buf,1)&1)<<16))
buf 141 source3/include/smb_macros.h #define _smb_setlen(buf,len) do { buf[0] = 0; buf[1] = ((len)&0x10000)>>16; \
buf 142 source3/include/smb_macros.h buf[2] = ((len)&0xFF00)>>8; buf[3] = (len)&0xFF; } while (0)
buf 144 source3/include/smb_macros.h #define smb_len_large(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|(PVAL(buf,1)<<16))
buf 145 source3/include/smb_macros.h #define _smb_setlen_large(buf,len) do { buf[0] = 0; buf[1] = ((len)&0xFF0000)>>16; \
buf 146 source3/include/smb_macros.h buf[2] = ((len)&0xFF00)>>8; buf[3] = (len)&0xFF; } while (0)
buf 177 source3/include/smb_macros.h #define dptr_zero(buf) (IVAL(buf,1) == 0)
buf 369 source3/include/vfs.h char *(*getwd)(struct vfs_handle_struct *handle, char *buf);
buf 377 source3/include/vfs.h int (*vfs_readlink)(struct vfs_handle_struct *handle, const char *path, char *buf, size_t bufsiz);
buf 74 source3/include/vfs_macros.h #define SMB_VFS_GETWD(conn, buf) ((conn)->vfs.ops.getwd((conn)->vfs.handles.getwd, (buf)))
buf 82 source3/include/vfs_macros.h #define SMB_VFS_READLINK(conn, path, buf, bufsiz) ((conn)->vfs.ops.vfs_readlink((conn)->vfs.handles.vfs_readlink, (path), (buf), (bufsiz)))
buf 208 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_GETWD(conn, buf) ((conn)->vfs_opaque.ops.getwd((conn)->vfs_opaque.handles.getwd, (buf)))
buf 216 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_READLINK(conn, path, buf, bufsiz) ((conn)->vfs_opaque.ops.vfs_readlink((conn)->vfs_opaque.handles.vfs_readlink, (path), (buf), (bufsiz)))
buf 343 source3/include/vfs_macros.h #define SMB_VFS_NEXT_GETWD(handle, buf) ((handle)->vfs_next.ops.getwd((handle)->vfs_next.handles.getwd, (buf)))
buf 351 source3/include/vfs_macros.h #define SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz) ((handle)->vfs_next.ops.vfs_readlink((handle)->vfs_next.handles.vfs_readlink, (path), (buf), (bufsiz)))
buf 183 source3/lib/afs_settoken.c char buf[1024];
buf 184 source3/lib/afs_settoken.c char *p = buf;
buf 214 source3/lib/afs_settoken.c iob.in = buf;
buf 215 source3/lib/afs_settoken.c iob.in_size = PTR_DIFF(p,buf);
buf 216 source3/lib/afs_settoken.c iob.out = buf;
buf 217 source3/lib/afs_settoken.c iob.out_size = sizeof(buf);
buf 1920 source3/lib/charcnv.c uint8_t buf[4];
buf 1950 source3/lib/charcnv.c outbuf = (char *)buf;
buf 1957 source3/lib/charcnv.c outbuf = (char *)buf;
buf 1973 source3/lib/charcnv.c return (codepoint_t)SVAL(buf, 0);
buf 1979 source3/lib/charcnv.c codepoint_t w1 = SVAL(buf,0) & ~0xD800;
buf 1980 source3/lib/charcnv.c codepoint_t w2 = SVAL(buf,2) & ~0xDC00;
buf 168 source3/lib/ctdbd_conn.c msglen = *((uint32 *)buf);
buf 228 source3/lib/ctdbd_conn.c state->req.data = talloc_move(state->mem_ctx, &buf);
buf 504 source3/lib/ctdbd_conn.c msg = (struct ctdb_req_message *)buf;
buf 509 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 519 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 541 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 551 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 557 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 564 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 1041 source3/lib/ctdbd_conn.c m = (struct ctdb_req_message *)buf;
buf 1045 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 1053 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 1070 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 1080 source3/lib/ctdbd_conn.c TALLOC_FREE(buf);
buf 228 source3/lib/debug.c char *buf = NULL;
buf 255 source3/lib/debug.c b = buf = (char *)SMB_MALLOC(dim+1);
buf 256 source3/lib/debug.c if (!buf) {
buf 278 source3/lib/debug.c return buf;
buf 60 source3/lib/file_id.c SIVAL(buf, 0, id->devid&0xFFFFFFFF);
buf 61 source3/lib/file_id.c SIVAL(buf, 4, id->devid>>32);
buf 62 source3/lib/file_id.c SIVAL(buf, 8, id->inode&0xFFFFFFFF);
buf 63 source3/lib/file_id.c SIVAL(buf, 12, id->inode>>32);
buf 71 source3/lib/file_id.c SIVAL(buf, 0, id->devid&0xFFFFFFFF);
buf 72 source3/lib/file_id.c SIVAL(buf, 4, id->devid>>32);
buf 73 source3/lib/file_id.c SIVAL(buf, 8, id->inode&0xFFFFFFFF);
buf 74 source3/lib/file_id.c SIVAL(buf, 12, id->inode>>32);
buf 75 source3/lib/file_id.c SIVAL(buf, 16, id->extid&0xFFFFFFFF);
buf 76 source3/lib/file_id.c SIVAL(buf, 20, id->extid>>32);
buf 85 source3/lib/file_id.c id->devid = IVAL(buf, 0);
buf 86 source3/lib/file_id.c id->devid |= ((uint64_t)IVAL(buf,4))<<32;
buf 87 source3/lib/file_id.c id->inode = IVAL(buf, 8);
buf 88 source3/lib/file_id.c id->inode |= ((uint64_t)IVAL(buf,12))<<32;
buf 89 source3/lib/file_id.c id->extid = IVAL(buf, 16);
buf 90 source3/lib/file_id.c id->extid |= ((uint64_t)IVAL(buf,20))<<32;
buf 253 source3/lib/gencache.c unsigned char *buf = NULL;
buf 273 source3/lib/gencache.c buf = (unsigned char *)databuf.dptr;
buf 276 source3/lib/gencache.c len += tdb_unpack(buf+len, buflen-len, "fB",
buf 333 source3/lib/gencache.c unsigned char *buf = NULL;
buf 350 source3/lib/gencache.c len += tdb_pack(buf+len, buflen-len, "fB",
buf 359 source3/lib/gencache.c SAFE_FREE(buf);
buf 360 source3/lib/gencache.c buf = SMB_MALLOC_ARRAY(unsigned char, len);
buf 361 source3/lib/gencache.c if (!buf) {
buf 368 source3/lib/gencache.c databuf = make_tdb_data(buf, len);
buf 383 source3/lib/gencache.c SAFE_FREE(buf);
buf 454 source3/lib/iconv.c char buf[6];
buf 470 source3/lib/iconv.c snprintf(buf, 6, "@%04x", SVAL(*inbuf, 0));
buf 471 source3/lib/iconv.c memcpy(*outbuf, buf, 5);
buf 48 source3/lib/ldb/common/ldb_ldif.c char *buf;
buf 83 source3/lib/ldb/common/ldb_ldif.c buf = (char *)value->data;
buf 85 source3/lib/ldb/common/ldb_ldif.c bytes = read(f, buf, size);
buf 92 source3/lib/ldb/common/ldb_ldif.c buf += bytes;
buf 158 source3/lib/ldb/common/ldb_ldif.c const uint8_t *d = (const uint8_t *)buf;
buf 223 source3/lib/ldb/common/ldb_ldif.c ret = fprintf_fn(private_data, "%c", buf[i]);
buf 244 source3/lib/ldb/common/ldb_ldif.c char *b = ldb_base64_encode(ldb, buf, len);
buf 105 source3/lib/ldb/common/ldb_parse.c unsigned char *buf = val.data;
buf 108 source3/lib/ldb/common/ldb_parse.c if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
buf 117 source3/lib/ldb/common/ldb_parse.c if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
buf 118 source3/lib/ldb/common/ldb_parse.c snprintf(ret+len, 4, "\\%02X", buf[i]);
buf 121 source3/lib/ldb/common/ldb_parse.c ret[len++] = buf[i];
buf 89 source3/lib/messages.c const void *buf;
buf 119 source3/lib/messages.c (uint8 *)msg_all->buf, msg_all->len);
buf 170 source3/lib/messages.c msg_all.buf = buf;
buf 358 source3/lib/messages.c DATA_BLOB blob = data_blob_const(buf, len);
buf 374 source3/lib/messages.c rec->src, &rec->buf);
buf 84 source3/lib/messages_ctdbd.c msg.buf = *data;
buf 367 source3/lib/messages_local.c rec[msg_array->num_messages].buf = *data;
buf 40 source3/lib/netapi/examples/localgroup/localgroup_add.c uint8_t *buf = NULL;
buf 85 source3/lib/netapi/examples/localgroup/localgroup_add.c buf = (uint8_t *)&g1;
buf 89 source3/lib/netapi/examples/localgroup/localgroup_add.c buf = (uint8_t *)&g0;
buf 94 source3/lib/netapi/examples/localgroup/localgroup_add.c buf,
buf 315 source3/lib/netapi/netapi.c void *buf = NULL;
buf 325 source3/lib/netapi/netapi.c buf = talloc_size(NULL, byte_count);
buf 326 source3/lib/netapi/netapi.c if (!buf) {
buf 331 source3/lib/netapi/netapi.c *buffer = buf;
buf 132 source3/lib/packet.c uint8_t *buf;
buf 144 source3/lib/packet.c buf = ctx->in.data;
buf 148 source3/lib/packet.c buf = (uint8_t *)TALLOC_MEMDUP(ctx, ctx->in.data, length);
buf 149 source3/lib/packet.c if (buf == NULL) {
buf 159 source3/lib/packet.c *status = callback(buf, length, priv);
buf 90 source3/lib/pidfile.c char buf[20];
buf 139 source3/lib/pidfile.c memset(buf, 0, sizeof(buf));
buf 140 source3/lib/pidfile.c slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) sys_getpid());
buf 141 source3/lib/pidfile.c if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
buf 410 source3/lib/popt_common.c fstring buf;
buf 424 source3/lib/popt_common.c if (!x_fgets(buf, sizeof(buf), auth))
buf 426 source3/lib/popt_common.c len = strlen(buf);
buf 428 source3/lib/popt_common.c if ((len) && (buf[len-1]=='\n'))
buf 430 source3/lib/popt_common.c buf[len-1] = '\0';
buf 438 source3/lib/popt_common.c param = buf;
buf 439 source3/lib/popt_common.c if (!(ptr = strchr_m (buf, '=')))
buf 456 source3/lib/popt_common.c memset(buf, 0, sizeof(buf));
buf 125 source3/lib/system.c ret = read(fd, buf, count);
buf 139 source3/lib/system.c ret = write(fd, buf, count);
buf 180 source3/lib/system.c ret = pread64(fd, buf, count, off);
buf 182 source3/lib/system.c ret = pread(fd, buf, count, off);
buf 200 source3/lib/system.c ret = pwrite64(fd, buf, count, off);
buf 202 source3/lib/system.c ret = pwrite(fd, buf, count, off);
buf 246 source3/lib/system.c ret = recv(fd, buf, count, flags);
buf 260 source3/lib/system.c ret = recvfrom(s, buf, len, flags, from, fromlen);
buf 1414 source3/lib/system.c char *buf;
buf 1467 source3/lib/system.c buf = memmove(list + len, list, list_size);
buf 1470 source3/lib/system.c len = buf[i];
buf 1473 source3/lib/system.c strncpy(list, buf + i + 1, len);
buf 255 source3/lib/time.c SIVAL(buf,offset,x);
buf 267 source3/lib/time.c SIVAL(buf,offset,x);
buf 281 source3/lib/time.c SIVAL(buf,offset,unixdate);
buf 291 source3/lib/time.c put_dos_date(buf, offset, unixdate, server_zone_offset);
buf 296 source3/lib/time.c put_dos_date2(buf, offset, unixdate, server_zone_offset);
buf 301 source3/lib/time.c put_dos_date3(buf, offset, unixdate, server_zone_offset);
buf 777 source3/lib/time.c put_dos_date(buf, offset, unixdate, cli->serverzone);
buf 782 source3/lib/time.c put_dos_date2(buf, offset, unixdate, cli->serverzone);
buf 787 source3/lib/time.c put_dos_date3(buf, offset, unixdate, cli->serverzone);
buf 596 source3/lib/util.c SMB_STRUCT_STAT buf;
buf 597 source3/lib/util.c buf.st_size = 0;
buf 598 source3/lib/util.c if(sys_stat(file_name,&buf) != 0)
buf 600 source3/lib/util.c return get_file_size_stat(&buf);
buf 636 source3/lib/util.c smb_len(buf),
buf 637 source3/lib/util.c (int)CVAL(buf,smb_com),
buf 638 source3/lib/util.c (int)CVAL(buf,smb_rcls),
buf 639 source3/lib/util.c (int)CVAL(buf,smb_reh),
buf 640 source3/lib/util.c (int)SVAL(buf,smb_err),
buf 641 source3/lib/util.c (int)CVAL(buf,smb_flg),
buf 642 source3/lib/util.c (int)SVAL(buf,smb_flg2)));
buf 644 source3/lib/util.c (int)SVAL(buf,smb_tid),
buf 645 source3/lib/util.c (int)SVAL(buf,smb_pid),
buf 646 source3/lib/util.c (int)SVAL(buf,smb_uid),
buf 647 source3/lib/util.c (int)SVAL(buf,smb_mid)));
buf 648 source3/lib/util.c DEBUGADD(5,("smt_wct=%d\n",(int)CVAL(buf,smb_wct)));
buf 650 source3/lib/util.c for (i=0;i<(int)CVAL(buf,smb_wct);i++)
buf 652 source3/lib/util.c SVAL(buf,smb_vwv+2*i),SVAL(buf,smb_vwv+2*i)));
buf 654 source3/lib/util.c bcc = (int)SVAL(buf,smb_vwv+2*(CVAL(buf,smb_wct)));
buf 664 source3/lib/util.c dump_data(10, (uint8 *)smb_buf(buf), bcc);
buf 673 source3/lib/util.c _smb_setlen(buf,len);
buf 675 source3/lib/util.c SCVAL(buf,4,0xFF);
buf 676 source3/lib/util.c SCVAL(buf,5,'E');
buf 677 source3/lib/util.c SSVAL(buf,6,enc_ctx_num);
buf 686 source3/lib/util.c _smb_setlen(buf,len);
buf 688 source3/lib/util.c SCVAL(buf,4,0xFF);
buf 689 source3/lib/util.c SCVAL(buf,5,'S');
buf 690 source3/lib/util.c SCVAL(buf,6,'M');
buf 691 source3/lib/util.c SCVAL(buf,7,'B');
buf 700 source3/lib/util.c int num_words = CVAL(buf,smb_wct);
buf 701 source3/lib/util.c SSVAL(buf,smb_vwv + num_words*SIZEOFWORD,num_bytes);
buf 702 source3/lib/util.c _smb_setlen(buf,smb_size + num_words*2 + num_bytes - 4);
buf 2641 source3/lib/util.c return buf;
buf 2644 source3/lib/util.c if (buf != NULL) {
buf 2645 source3/lib/util.c old_size = talloc_get_size(buf);
buf 2648 source3/lib/util.c result = (char *)TALLOC_REALLOC(mem_ctx, buf, old_size + blob.length);
buf 30 source3/lib/util_file.c char buf[1024];
buf 41 source3/lib/util_file.c while ((n = read(fd, buf, sizeof(buf))) > 0) {
buf 48 source3/lib/util_file.c memcpy(p+total, buf, n);
buf 78 source3/lib/util_reg.c const smb_ucs2_t *p = (const smb_ucs2_t *)buf;
buf 135 source3/lib/util_reg_api.c char buf[4];
buf 136 source3/lib/util_reg_api.c SIVAL(buf, 0, value->v.dword);
buf 137 source3/lib/util_reg_api.c *presult = data_blob_talloc(mem_ctx, (void *)buf, 4);
buf 525 source3/lib/util_sid.c char *buf, *s;
buf 527 source3/lib/util_sid.c buf = (char *)SMB_MALLOC(len);
buf 528 source3/lib/util_sid.c if (!buf)
buf 530 source3/lib/util_sid.c sid_linearize(buf, len, sid);
buf 531 source3/lib/util_sid.c s = binary_string_rfc2254(buf, len);
buf 532 source3/lib/util_sid.c free(buf);
buf 543 source3/lib/util_sid.c char *buf, *s;
buf 545 source3/lib/util_sid.c buf = (char *)SMB_MALLOC(len);
buf 546 source3/lib/util_sid.c if (!buf)
buf 548 source3/lib/util_sid.c sid_linearize(buf, len, sid);
buf 549 source3/lib/util_sid.c s = binary_string(buf, len);
buf 550 source3/lib/util_sid.c free(buf);
buf 465 source3/lib/util_sock.c ret = (ssize_t)sys_recvfrom(fd,buf,len,0,
buf 524 source3/lib/util_sock.c readret = sys_read(fd, buf + nread, maxcnt - nread);
buf 593 source3/lib/util_sock.c readret = sys_read(fd, buf+nread, maxcnt-nread);
buf 753 source3/lib/util_sock.c unsigned char buf[4];
buf 755 source3/lib/util_sock.c buf[0] = SMBkeepalive;
buf 756 source3/lib/util_sock.c buf[1] = buf[2] = buf[3] = 0;
buf 758 source3/lib/util_sock.c return(write_data(client,(char *)buf,4) == 4);
buf 329 source3/lib/util_str.c buf += strlen(buf) + 1;
buf 330 source3/lib/util_str.c return(buf);
buf 343 source3/lib/util_str.c if (end_ptr < base || !base || !buf || buf >= end_ptr) {
buf 348 source3/lib/util_str.c while (*buf) {
buf 349 source3/lib/util_str.c buf++;
buf 350 source3/lib/util_str.c if (buf >= end_ptr) {
buf 355 source3/lib/util_str.c buf++;
buf 356 source3/lib/util_str.c return buf;
buf 1542 source3/lib/util_str.c s[j+1] = hex[((unsigned char)buf[i]) >> 4];
buf 1543 source3/lib/util_str.c s[j+2] = hex[((unsigned char)buf[i]) & 0xF];
buf 1559 source3/lib/util_str.c s[j] = hex[((unsigned char)buf[i]) >> 4];
buf 1560 source3/lib/util_str.c s[j+1] = hex[((unsigned char)buf[i]) & 0xF];
buf 135 source3/lib/util_tdb.c uint8 *buf0 = buf;
buf 145 source3/lib/util_tdb.c SSVAL(buf, 0, bt);
buf 151 source3/lib/util_tdb.c SSVAL(buf, 0, w);
buf 157 source3/lib/util_tdb.c SIVAL(buf, 0, d);
buf 164 source3/lib/util_tdb.c SIVAL(buf, 0, d);
buf 171 source3/lib/util_tdb.c memcpy(buf, s, len);
buf 178 source3/lib/util_tdb.c memcpy(buf, s, len);
buf 185 source3/lib/util_tdb.c SIVAL(buf, 0, i);
buf 186 source3/lib/util_tdb.c memcpy(buf+4, s, i);
buf 196 source3/lib/util_tdb.c buf += len;
buf 204 source3/lib/util_tdb.c fmt0, bufsize0, (int)PTR_DIFF(buf, buf0)));
buf 206 source3/lib/util_tdb.c return PTR_DIFF(buf, buf0);
buf 215 source3/lib/util_tdb.c result = tdb_pack_va(buf, bufsize, fmt, ap);
buf 231 source3/lib/util_tdb.c *buf = TALLOC_REALLOC_ARRAY(mem_ctx, *buf, uint8,
buf 234 source3/lib/util_tdb.c *buf = SMB_REALLOC_ARRAY(*buf, uint8, (*len) + len1);
buf 237 source3/lib/util_tdb.c if (*buf == NULL) {
buf 242 source3/lib/util_tdb.c len2 = tdb_pack_va((*buf)+(*len), len1, fmt, ap);
buf 270 source3/lib/util_tdb.c const uint8 *buf0 = buf;
buf 283 source3/lib/util_tdb.c *bt = SVAL(buf, 0);
buf 290 source3/lib/util_tdb.c *w = SVAL(buf, 0);
buf 297 source3/lib/util_tdb.c *d = IVAL(buf, 0);
buf 309 source3/lib/util_tdb.c *p = (void *)(IVAL(buf, 0) ? (void *)1 : NULL);
buf 314 source3/lib/util_tdb.c len = strlen((const char *)buf) + 1;
buf 315 source3/lib/util_tdb.c *ps = SMB_STRDUP((const char *)buf);
buf 319 source3/lib/util_tdb.c len = strlen((const char *)buf) + 1;
buf 322 source3/lib/util_tdb.c memcpy(s, buf, len);
buf 330 source3/lib/util_tdb.c *i = IVAL(buf, 0);
buf 341 source3/lib/util_tdb.c memcpy(*b, buf+4, *i);
buf 351 source3/lib/util_tdb.c buf += len;
buf 358 source3/lib/util_tdb.c fmt0, bufsize0, (int)PTR_DIFF(buf, buf0)));
buf 360 source3/lib/util_tdb.c return PTR_DIFF(buf, buf0);
buf 40 source3/lib/util_transfer_file.c char *buf;
buf 47 source3/lib/util_transfer_file.c if ((buf = SMB_MALLOC_ARRAY(char, TRANSFER_BUF_SIZE)) == NULL) {
buf 54 source3/lib/util_transfer_file.c read_ret = (*read_fn)(in_file, buf, num_to_read_thistime);
buf 58 source3/lib/util_transfer_file.c SAFE_FREE(buf);
buf 68 source3/lib/util_transfer_file.c write_ret = (*write_fn)(out_file, buf + num_written,
buf 75 source3/lib/util_transfer_file.c SAFE_FREE(buf);
buf 88 source3/lib/util_transfer_file.c SAFE_FREE(buf);
buf 96 source3/lib/util_transfer_file.c return sys_read(*fd, buf, len);
buf 103 source3/lib/util_transfer_file.c return sys_write(*fd, buf, len);
buf 151 source3/lib/util_unistr.c char buf[10];
buf 155 source3/lib/util_unistr.c len1 = convert_string(CH_UTF16LE, CH_DOS, &c, 2, buf, sizeof(buf),False);
buf 159 source3/lib/util_unistr.c len2 = convert_string(CH_DOS, CH_UTF16LE, buf, len1, &c2, 2,False);
buf 116 source3/lib/wb_reqtrans.c struct winbindd_request *req = (struct winbindd_request *)buf;
buf 147 source3/lib/wb_reqtrans.c uint8_t *buf;
buf 149 source3/lib/wb_reqtrans.c ret = read_packet_recv(subreq, state, &buf, &err);
buf 156 source3/lib/wb_reqtrans.c state->wb_req = (struct winbindd_request *)buf;
buf 160 source3/lib/wb_reqtrans.c (char *)buf + sizeof(struct winbindd_request);
buf 275 source3/lib/wb_reqtrans.c struct winbindd_response *resp = (struct winbindd_response *)buf;
buf 295 source3/lib/wb_reqtrans.c uint8_t *buf;
buf 299 source3/lib/wb_reqtrans.c ret = read_packet_recv(subreq, state, &buf, &err);
buf 306 source3/lib/wb_reqtrans.c state->wb_resp = (struct winbindd_response *)buf;
buf 310 source3/lib/wb_reqtrans.c (char *)buf + sizeof(struct winbindd_response);
buf 115 source3/libaddns/dnsgss.c struct dns_buffer *buf;
buf 144 source3/libaddns/dnsgss.c err = dns_marshall_request(req, req, &buf);
buf 147 source3/libaddns/dnsgss.c err = dns_send(conn, buf);
buf 163 source3/libaddns/dnsgss.c struct dns_buffer *buf;
buf 166 source3/libaddns/dnsgss.c err = dns_receive(mem_ctx, conn, &buf);
buf 169 source3/libaddns/dnsgss.c err = dns_unmarshall_request(buf, buf, &resp);
buf 192 source3/libaddns/dnsgss.c TALLOC_FREE(buf);
buf 275 source3/libaddns/dnsgss.c struct dns_buffer *buf;
buf 282 source3/libaddns/dnsgss.c err = dns_marshall_update_request(req, req, &buf);
buf 285 source3/libaddns/dnsgss.c err = dns_domain_name_from_string(buf, keyname, &key);
buf 288 source3/libaddns/dnsgss.c err = dns_domain_name_from_string(buf, algorithmname, &algorithm);
buf 291 source3/libaddns/dnsgss.c dns_marshall_domain_name(buf, key);
buf 292 source3/libaddns/dnsgss.c dns_marshall_uint16(buf, DNS_CLASS_ANY);
buf 293 source3/libaddns/dnsgss.c dns_marshall_uint32(buf, 0); /* TTL */
buf 294 source3/libaddns/dnsgss.c dns_marshall_domain_name(buf, algorithm);
buf 295 source3/libaddns/dnsgss.c dns_marshall_uint16(buf, 0); /* Time prefix for 48-bit time_t */
buf 296 source3/libaddns/dnsgss.c dns_marshall_uint32(buf, time_signed);
buf 297 source3/libaddns/dnsgss.c dns_marshall_uint16(buf, fudge);
buf 298 source3/libaddns/dnsgss.c dns_marshall_uint16(buf, 0); /* error */
buf 299 source3/libaddns/dnsgss.c dns_marshall_uint16(buf, 0); /* other len */
buf 301 source3/libaddns/dnsgss.c err = buf->error;
buf 302 source3/libaddns/dnsgss.c if (!ERR_DNS_IS_OK(buf->error)) goto error;
buf 304 source3/libaddns/dnsgss.c msg.value = (void *)buf->data;
buf 305 source3/libaddns/dnsgss.c msg.length = buf->offset;
buf 319 source3/libaddns/dnsgss.c err = dns_create_tsig_record(buf, keyname, algorithmname, time_signed,
buf 328 source3/libaddns/dnsgss.c TALLOC_FREE(buf);
buf 53 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 55 source3/libaddns/dnsmarshall.c if (buf->offset + len < buf->offset) {
buf 59 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_INVALID_PARAMETER;
buf 63 source3/libaddns/dnsmarshall.c if ((buf->offset + len) > 0xffff) {
buf 67 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_INVALID_PARAMETER;
buf 71 source3/libaddns/dnsmarshall.c if (buf->offset + len > buf->size) {
buf 72 source3/libaddns/dnsmarshall.c size_t new_size = buf->offset + len;
buf 81 source3/libaddns/dnsmarshall.c if (!(new_data = TALLOC_REALLOC_ARRAY(buf, buf->data, uint8,
buf 83 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 87 source3/libaddns/dnsmarshall.c buf->size = new_size;
buf 88 source3/libaddns/dnsmarshall.c buf->data = new_data;
buf 91 source3/libaddns/dnsmarshall.c memcpy(buf->data + buf->offset, data, len);
buf 92 source3/libaddns/dnsmarshall.c buf->offset += len;
buf 99 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, (uint8 *)&n_val, sizeof(n_val));
buf 105 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, (uint8 *)&n_val, sizeof(n_val));
buf 111 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 113 source3/libaddns/dnsmarshall.c if ((len > buf->size) || (buf->offset + len > buf->size)) {
buf 114 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_INVALID_MESSAGE;
buf 118 source3/libaddns/dnsmarshall.c memcpy((void *)data, (const void *)(buf->data + buf->offset), len);
buf 119 source3/libaddns/dnsmarshall.c buf->offset += len;
buf 128 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, (uint8 *)&n_val, sizeof(n_val));
buf 129 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 138 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, (uint8 *)&n_val, sizeof(n_val));
buf 139 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 157 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, (uint8 *)&len, sizeof(len));
buf 158 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 160 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, (uint8 *)label->label, len);
buf 161 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 164 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, (uint8 *)&end_char, 1);
buf 175 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 181 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_INVALID_MESSAGE;
buf 185 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, &len, sizeof(len));
buf 186 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 201 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, &low, sizeof(low));
buf 202 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 204 source3/libaddns/dnsmarshall.c new_buf = *buf;
buf 210 source3/libaddns/dnsmarshall.c buf->error = new_buf.error;
buf 215 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_INVALID_NAME;
buf 220 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 227 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 231 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, (uint8 *)label->label, len);
buf 232 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) goto error;
buf 234 source3/libaddns/dnsmarshall.c dns_unmarshall_label(label, level+1, buf, &label->next);
buf 235 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) goto error;
buf 251 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) return;
buf 254 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 258 source3/libaddns/dnsmarshall.c dns_unmarshall_label(name, 0, buf, &name->pLabelList);
buf 260 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) {
buf 271 source3/libaddns/dnsmarshall.c dns_marshall_domain_name(buf, q->name);
buf 272 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, q->q_type);
buf 273 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, q->q_class);
buf 282 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 285 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 289 source3/libaddns/dnsmarshall.c dns_unmarshall_domain_name(q, buf, &q->name);
buf 290 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &q->q_type);
buf 291 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &q->q_class);
buf 293 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 301 source3/libaddns/dnsmarshall.c dns_marshall_domain_name(buf, r->name);
buf 302 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, r->type);
buf 303 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, r->r_class);
buf 304 source3/libaddns/dnsmarshall.c dns_marshall_uint32(buf, r->ttl);
buf 305 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, r->data_length);
buf 306 source3/libaddns/dnsmarshall.c dns_marshall_buffer(buf, r->data, r->data_length);
buf 315 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 318 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 322 source3/libaddns/dnsmarshall.c dns_unmarshall_domain_name(r, buf, &r->name);
buf 323 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &r->type);
buf 324 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &r->r_class);
buf 325 source3/libaddns/dnsmarshall.c dns_unmarshall_uint32(buf, &r->ttl);
buf 326 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &r->data_length);
buf 329 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 333 source3/libaddns/dnsmarshall.c buf->error = ERROR_DNS_NO_MEMORY;
buf 336 source3/libaddns/dnsmarshall.c dns_unmarshall_buffer(buf, r->data, r->data_length);
buf 339 source3/libaddns/dnsmarshall.c if (!(ERR_DNS_IS_OK(buf->error))) return;
buf 348 source3/libaddns/dnsmarshall.c struct dns_buffer *buf;
buf 351 source3/libaddns/dnsmarshall.c if (!(buf = dns_create_buffer(mem_ctx))) {
buf 355 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->id);
buf 356 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->flags);
buf 357 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->num_questions);
buf 358 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->num_answers);
buf 359 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->num_auths);
buf 360 source3/libaddns/dnsmarshall.c dns_marshall_uint16(buf, req->num_additionals);
buf 363 source3/libaddns/dnsmarshall.c dns_marshall_question(buf, req->questions[i]);
buf 366 source3/libaddns/dnsmarshall.c dns_marshall_rr(buf, req->answers[i]);
buf 369 source3/libaddns/dnsmarshall.c dns_marshall_rr(buf, req->auths[i]);
buf 372 source3/libaddns/dnsmarshall.c dns_marshall_rr(buf, req->additionals[i]);
buf 375 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) {
buf 376 source3/libaddns/dnsmarshall.c DNS_ERROR err = buf->error;
buf 377 source3/libaddns/dnsmarshall.c TALLOC_FREE(buf);
buf 381 source3/libaddns/dnsmarshall.c *pbuf = buf;
buf 397 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->id);
buf 398 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->flags);
buf 399 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->num_questions);
buf 400 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->num_answers);
buf 401 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->num_auths);
buf 402 source3/libaddns/dnsmarshall.c dns_unmarshall_uint16(buf, &req->num_additionals);
buf 404 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) goto error;
buf 430 source3/libaddns/dnsmarshall.c dns_unmarshall_question(req->questions, buf,
buf 434 source3/libaddns/dnsmarshall.c dns_unmarshall_rr(req->answers, buf,
buf 438 source3/libaddns/dnsmarshall.c dns_unmarshall_rr(req->auths, buf,
buf 442 source3/libaddns/dnsmarshall.c dns_unmarshall_rr(req->additionals, buf,
buf 446 source3/libaddns/dnsmarshall.c if (!ERR_DNS_IS_OK(buf->error)) {
buf 447 source3/libaddns/dnsmarshall.c err = buf->error;
buf 455 source3/libaddns/dnsmarshall.c err = buf->error;
buf 523 source3/libaddns/dnsmarshall.c return dns_unmarshall_request(mem_ctx, buf,
buf 184 source3/libaddns/dnsrecord.c struct dns_buffer *buf;
buf 188 source3/libaddns/dnsrecord.c if (!(buf = dns_create_buffer(mem_ctx))) {
buf 192 source3/libaddns/dnsrecord.c err = dns_domain_name_from_string(buf, algorithm_name, &algorithm);
buf 195 source3/libaddns/dnsrecord.c dns_marshall_domain_name(buf, algorithm);
buf 196 source3/libaddns/dnsrecord.c dns_marshall_uint32(buf, inception);
buf 197 source3/libaddns/dnsrecord.c dns_marshall_uint32(buf, expiration);
buf 198 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, mode);
buf 199 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, error);
buf 200 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, key_length);
buf 201 source3/libaddns/dnsrecord.c dns_marshall_buffer(buf, key, key_length);
buf 202 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, 0); /* Other Size */
buf 204 source3/libaddns/dnsrecord.c if (!ERR_DNS_IS_OK(buf->error)) {
buf 205 source3/libaddns/dnsrecord.c err = buf->error;
buf 210 source3/libaddns/dnsrecord.c buf->offset, buf->data, prec);
buf 213 source3/libaddns/dnsrecord.c TALLOC_FREE(buf);
buf 221 source3/libaddns/dnsrecord.c struct dns_buffer buf;
buf 228 source3/libaddns/dnsrecord.c buf.data = rec->data;
buf 229 source3/libaddns/dnsrecord.c buf.size = rec->data_length;
buf 230 source3/libaddns/dnsrecord.c buf.offset = 0;
buf 231 source3/libaddns/dnsrecord.c buf.error = ERROR_DNS_SUCCESS;
buf 233 source3/libaddns/dnsrecord.c dns_unmarshall_domain_name(tkey, &buf, &tkey->algorithm);
buf 234 source3/libaddns/dnsrecord.c dns_unmarshall_uint32(&buf, &tmp_inception);
buf 235 source3/libaddns/dnsrecord.c dns_unmarshall_uint32(&buf, &tmp_expiration);
buf 236 source3/libaddns/dnsrecord.c dns_unmarshall_uint16(&buf, &tkey->mode);
buf 237 source3/libaddns/dnsrecord.c dns_unmarshall_uint16(&buf, &tkey->error);
buf 238 source3/libaddns/dnsrecord.c dns_unmarshall_uint16(&buf, &tkey->key_length);
buf 240 source3/libaddns/dnsrecord.c if (!ERR_DNS_IS_OK(buf.error)) goto error;
buf 244 source3/libaddns/dnsrecord.c buf.error = ERROR_DNS_NO_MEMORY;
buf 251 source3/libaddns/dnsrecord.c dns_unmarshall_buffer(&buf, tkey->key, tkey->key_length);
buf 252 source3/libaddns/dnsrecord.c if (!ERR_DNS_IS_OK(buf.error)) goto error;
buf 262 source3/libaddns/dnsrecord.c return buf.error;
buf 272 source3/libaddns/dnsrecord.c struct dns_buffer *buf;
buf 276 source3/libaddns/dnsrecord.c if (!(buf = dns_create_buffer(mem_ctx))) {
buf 280 source3/libaddns/dnsrecord.c err = dns_domain_name_from_string(buf, algorithm_name, &algorithm);
buf 283 source3/libaddns/dnsrecord.c dns_marshall_domain_name(buf, algorithm);
buf 284 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, 0); /* time prefix */
buf 285 source3/libaddns/dnsrecord.c dns_marshall_uint32(buf, time_signed);
buf 286 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, fudge);
buf 287 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, mac_length);
buf 288 source3/libaddns/dnsrecord.c dns_marshall_buffer(buf, mac, mac_length);
buf 289 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, original_id);
buf 290 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, error);
buf 291 source3/libaddns/dnsrecord.c dns_marshall_uint16(buf, 0); /* Other Size */
buf 293 source3/libaddns/dnsrecord.c if (!ERR_DNS_IS_OK(buf->error)) {
buf 294 source3/libaddns/dnsrecord.c err = buf->error;
buf 299 source3/libaddns/dnsrecord.c buf->offset, buf->data, prec);
buf 302 source3/libaddns/dnsrecord.c TALLOC_FREE(buf);
buf 174 source3/libaddns/dnssock.c uint16 len = htons(buf->offset);
buf 180 source3/libaddns/dnssock.c return write_all(conn->s, buf->data, buf->offset);
buf 188 source3/libaddns/dnssock.c ret = sendto(conn->s, buf->data, buf->offset, 0,
buf 192 source3/libaddns/dnssock.c if (ret != buf->offset) {
buf 202 source3/libaddns/dnssock.c return dns_send_tcp(conn, buf);
buf 206 source3/libaddns/dnssock.c return dns_send_udp(conn, buf);
buf 251 source3/libaddns/dnssock.c struct dns_buffer *buf;
buf 255 source3/libaddns/dnssock.c if (!(buf = TALLOC_ZERO_P(mem_ctx, struct dns_buffer))) {
buf 264 source3/libaddns/dnssock.c buf->size = ntohs(len);
buf 266 source3/libaddns/dnssock.c if (buf->size) {
buf 267 source3/libaddns/dnssock.c if (!(buf->data = TALLOC_ARRAY(buf, uint8, buf->size))) {
buf 268 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 272 source3/libaddns/dnssock.c buf->data = NULL;
buf 275 source3/libaddns/dnssock.c err = read_all(conn->s, buf->data, buf->size);
buf 277 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 281 source3/libaddns/dnssock.c *presult = buf;
buf 289 source3/libaddns/dnssock.c struct dns_buffer *buf;
buf 292 source3/libaddns/dnssock.c if (!(buf = TALLOC_ZERO_P(mem_ctx, struct dns_buffer))) {
buf 300 source3/libaddns/dnssock.c if (!(buf->data = TALLOC_ARRAY(buf, uint8, 512))) {
buf 301 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 305 source3/libaddns/dnssock.c received = recv(conn->s, (void *)buf->data, 512, 0);
buf 308 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 313 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 317 source3/libaddns/dnssock.c buf->size = received;
buf 318 source3/libaddns/dnssock.c buf->offset = 0;
buf 320 source3/libaddns/dnssock.c *presult = buf;
buf 342 source3/libaddns/dnssock.c struct dns_buffer *buf = NULL;
buf 345 source3/libaddns/dnssock.c err = dns_marshall_request(conn, req, &buf);
buf 348 source3/libaddns/dnssock.c err = dns_send(conn, buf);
buf 350 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 352 source3/libaddns/dnssock.c err = dns_receive(mem_ctx, conn, &buf);
buf 355 source3/libaddns/dnssock.c err = dns_unmarshall_request(mem_ctx, buf, resp);
buf 358 source3/libaddns/dnssock.c TALLOC_FREE(buf);
buf 377 source3/libads/dns.c *buf = buffer;
buf 3230 source3/libads/ldap.c fstring buf;
buf 3233 source3/libads/ldap.c buf_len = strhex_to_str(buf, sizeof(buf), p, strlen(p));
buf 3238 source3/libads/ldap.c if (!sid_parse(buf, buf_len, sid)) {
buf 103 source3/libads/ndr.c ndr_print_array_uint8(ndr, "buf", r->ldap.in.buf, r->ldap.in.size);
buf 112 source3/libads/ndr.c ndr_print_array_uint8(ndr, "buf", r->ldap.out.buf, r->ldap.out.size);
buf 31 source3/libads/sasl.c uint8 *dptr = ads->ldap.out.buf + (4 + NTLMSSP_SIG_SIZE);
buf 34 source3/libads/sasl.c memcpy(dptr, buf, len);
buf 52 source3/libads/sasl.c memcpy(ads->ldap.out.buf + 4,
buf 70 source3/libads/sasl.c uint8 *dptr = ads->ldap.in.buf + (4 + NTLMSSP_SIG_SIZE);
buf 74 source3/libads/sasl.c sig = data_blob_const(ads->ldap.in.buf + 4, NTLMSSP_SIG_SIZE);
buf 278 source3/libads/sasl.c unwrapped.value = buf;
buf 300 source3/libads/sasl.c memcpy(ads->ldap.out.buf + 4, wrapped.value, wrapped.length);
buf 319 source3/libads/sasl.c wrapped.value = ads->ldap.in.buf + 4;
buf 337 source3/libads/sasl.c memcpy(ads->ldap.in.buf + 4, unwrapped.value, unwrapped.length);
buf 46 source3/libads/sasl_wrapping.c ads->ldap.in.buf = talloc_array(ads->ldap.mem_ctx,
buf 48 source3/libads/sasl_wrapping.c if (!ads->ldap.in.buf) {
buf 62 source3/libads/sasl_wrapping.c ads->ldap.in.buf = talloc_realloc(ads->ldap.mem_ctx,
buf 63 source3/libads/sasl_wrapping.c ads->ldap.in.buf,
buf 65 source3/libads/sasl_wrapping.c if (!ads->ldap.in.buf) {
buf 74 source3/libads/sasl_wrapping.c talloc_free(ads->ldap.in.buf);
buf 76 source3/libads/sasl_wrapping.c ads->ldap.in.buf = NULL;
buf 94 source3/libads/sasl_wrapping.c ads->ldap.in.buf + ads->ldap.in.ofs,
buf 101 source3/libads/sasl_wrapping.c ads->ldap.in.needed = RIVAL(ads->ldap.in.buf, 0);
buf 121 source3/libads/sasl_wrapping.c ads->ldap.in.buf + ads->ldap.in.ofs,
buf 148 source3/libads/sasl_wrapping.c memcpy(buf, ads->ldap.in.buf + ads->ldap.in.ofs, ret);
buf 178 source3/libads/sasl_wrapping.c ads->ldap.out.buf = talloc_array(ads->ldap.mem_ctx,
buf 180 source3/libads/sasl_wrapping.c if (!ads->ldap.out.buf) {
buf 189 source3/libads/sasl_wrapping.c talloc_free(ads->ldap.out.buf);
buf 191 source3/libads/sasl_wrapping.c ads->ldap.out.buf = NULL;
buf 216 source3/libads/sasl_wrapping.c status = ads->ldap.wrap_ops->wrap(ads, (uint8 *)buf, rlen);
buf 222 source3/libads/sasl_wrapping.c RSIVAL(ads->ldap.out.buf, 0, ads->ldap.out.left - 4);
buf 228 source3/libads/sasl_wrapping.c ads->ldap.out.buf + ads->ldap.out.ofs,
buf 393 source3/libgpo/gpext/registry.c uint16_t *buf = NULL;
buf 413 source3/libgpo/gpext/registry.c buf = (uint16 *)file_load(real_filename, &n, 0, NULL);
buf 414 source3/libgpo/gpext/registry.c if (!buf) {
buf 424 source3/libgpo/gpext/registry.c if (!prs_copy_data_in(&ps, (char *)buf, n)) {
buf 458 source3/libgpo/gpext/registry.c TALLOC_FREE(buf);
buf 127 source3/librpc/gen_ndr/messaging.h DATA_BLOB buf;
buf 89 source3/librpc/gen_ndr/ndr_messaging.c NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->buf));
buf 106 source3/librpc/gen_ndr/ndr_messaging.c NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->buf));
buf 123 source3/librpc/gen_ndr/ndr_messaging.c ndr_print_DATA_BLOB(ndr, "buf", r->buf);
buf 33 source3/libsmb/async_smb.c uint32_t flags2 = SVAL(buf, smb_flg2);
buf 36 source3/libsmb/async_smb.c return NT_STATUS(IVAL(buf, smb_rcls));
buf 42 source3/libsmb/async_smb.c if (CVAL(buf, smb_rcls) == 0)
buf 45 source3/libsmb/async_smb.c return NT_STATUS_DOS(CVAL(buf, smb_rcls), SVAL(buf,smb_err));
buf 169 source3/libsmb/async_smb.c cmd = CVAL(buf, smb_com);
buf 175 source3/libsmb/async_smb.c while (CVAL(buf, ofs) != 0xff) {
buf 177 source3/libsmb/async_smb.c if (!is_andx_req(CVAL(buf, ofs))) {
buf 185 source3/libsmb/async_smb.c ofs = SVAL(buf, ofs+2) + 4 + 1;
buf 187 source3/libsmb/async_smb.c SMB_ASSERT(ofs+4 < talloc_get_size(buf));
buf 693 source3/libsmb/async_smb.c size_t buflen = talloc_get_size(buf);
buf 699 source3/libsmb/async_smb.c wct = CVAL(buf, ofs);
buf 706 source3/libsmb/async_smb.c return (CVAL(buf, ofs+1) != 0xff);
buf 102 source3/libsmb/clidgram.c memcpy(p2,buf,len);
buf 30 source3/libsmb/clientgen.c memset(buf + smb_size,'\0',num_words*2 + num_bytes);
buf 32 source3/libsmb/clientgen.c SCVAL(buf,smb_wct,num_words);
buf 33 source3/libsmb/clientgen.c SSVAL(buf,smb_vwv + num_words*SIZEOFWORD,num_bytes);
buf 34 source3/libsmb/clientgen.c smb_setlen(buf,smb_size + num_words*2 + num_bytes - 4);
buf 246 source3/libsmb/clientgen.c ret = write_data(fd,buf,len);
buf 369 source3/libsmb/clientgen.c SIVAL(buf,smb_rcls,0);
buf 370 source3/libsmb/clientgen.c SSVAL(buf,smb_pid,cli->pid);
buf 371 source3/libsmb/clientgen.c memset(buf+smb_pidhigh, 0, 12);
buf 372 source3/libsmb/clientgen.c SSVAL(buf,smb_uid,cli->vuid);
buf 373 source3/libsmb/clientgen.c SSVAL(buf,smb_mid,cli->mid);
buf 380 source3/libsmb/clientgen.c SCVAL(buf,smb_flg,0x0);
buf 383 source3/libsmb/clientgen.c SCVAL(buf,smb_flg,0x8);
buf 394 source3/libsmb/clientgen.c SSVAL(buf,smb_flg2, flags2);
buf 924 source3/libsmb/clifile.c if (buf == NULL) {
buf 928 source3/libsmb/clifile.c buflen = talloc_get_size(buf);
buf 933 source3/libsmb/clifile.c buf = TALLOC_REALLOC_ARRAY(NULL, buf, uint8_t, buflen + 1);
buf 934 source3/libsmb/clifile.c if (buf == NULL) {
buf 937 source3/libsmb/clifile.c buf[buflen] = '\0';
buf 948 source3/libsmb/clifile.c buf = TALLOC_REALLOC_ARRAY(NULL, buf, uint8_t,
buf 950 source3/libsmb/clifile.c if (buf == NULL) {
buf 955 source3/libsmb/clifile.c memcpy(buf + buflen, converted, converted_size);
buf 963 source3/libsmb/clifile.c return buf;
buf 1407 source3/libsmb/clikrb5.c nstring buf;
buf 1419 source3/libsmb/clikrb5.c put_name(buf, global_myname(), ' ', 0x20);
buf 1451 source3/libsmb/clikrb5.c memcpy(addrs[0]->contents, buf, addrs[0]->length);
buf 1483 source3/libsmb/clikrb5.c memcpy(addrs->val[0].address.data, buf, addrs->val[0].address.length);
buf 1608 source3/libsmb/clikrb5.c char buf[256];
buf 1609 source3/libsmb/clikrb5.c krb5_error_code ret = krb5_enctype_to_string(enctype, buf, 256); /* MIT */
buf 1613 source3/libsmb/clikrb5.c *etype_s = SMB_STRDUP(buf);
buf 29 source3/libsmb/clioplock.c char buf[smb_size+16];
buf 32 source3/libsmb/clioplock.c cli->outbuf = buf;
buf 34 source3/libsmb/clioplock.c memset(buf,'\0',smb_size);
buf 35 source3/libsmb/clioplock.c cli_set_message(buf,8,0,True);
buf 37 source3/libsmb/clioplock.c SCVAL(buf,smb_com,SMBlockingX);
buf 38 source3/libsmb/clioplock.c SSVAL(buf,smb_tid, cli->cnum);
buf 40 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv0,0xFF);
buf 41 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv1,0);
buf 42 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv2,fnum);
buf 44 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv3,0x102); /* levelII oplock break ack */
buf 46 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv3,2); /* exclusive oplock break ack */
buf 47 source3/libsmb/clioplock.c SIVAL(buf,smb_vwv4,0); /* timoeut */
buf 48 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv6,0); /* unlockcount */
buf 49 source3/libsmb/clioplock.c SSVAL(buf,smb_vwv7,0); /* lockcount */
buf 147 source3/libsmb/clireadwrite.c uint8_t *buf;
buf 185 source3/libsmb/clireadwrite.c buf = (uint8_t *)smb_base(cli_req->inbuf) + SVAL(vwv+6, 0);
buf 188 source3/libsmb/clireadwrite.c || (size && (buf < bytes))) {
buf 205 source3/libsmb/clireadwrite.c uint8_t *buf;
buf 229 source3/libsmb/clireadwrite.c state->buf = NULL;
buf 248 source3/libsmb/clireadwrite.c uint8_t *buf;
buf 251 source3/libsmb/clireadwrite.c status = cli_read_andx_recv(subreq, &received, &buf);
buf 265 source3/libsmb/clireadwrite.c state->buf = buf;
buf 280 source3/libsmb/clireadwrite.c if (state->buf == NULL) {
buf 281 source3/libsmb/clireadwrite.c state->buf = talloc_array(state, uint8_t, state->size);
buf 282 source3/libsmb/clireadwrite.c if (async_req_nomem(state->buf, req)) {
buf 286 source3/libsmb/clireadwrite.c memcpy(state->buf + state->received, buf, received);
buf 317 source3/libsmb/clireadwrite.c *rcvbuf = state->buf;
buf 324 source3/libsmb/clireadwrite.c uint8_t *buf;
buf 344 source3/libsmb/clireadwrite.c NTSTATUS (*sink)(char *buf, size_t n, void *priv);
buf 510 source3/libsmb/clireadwrite.c &pull_subreq->buf);
buf 543 source3/libsmb/clireadwrite.c status = state->sink((char *)top_read->buf,
buf 645 source3/libsmb/clireadwrite.c memcpy(*pbuf, buf, n);
buf 657 source3/libsmb/clireadwrite.c cli_read_sink, &buf, &ret);
buf 739 source3/libsmb/clireadwrite.c memcpy(p, buf, size);
buf 755 source3/libsmb/clireadwrite.c return cli_send_smb_direct_writeX(cli, buf, size);
buf 798 source3/libsmb/clireadwrite.c buf + bsent,
buf 856 source3/libsmb/clireadwrite.c memcpy(p, buf + total, size); p += size;
buf 922 source3/libsmb/clireadwrite.c 2, size, buf);
buf 960 source3/libsmb/clireadwrite.c const uint8_t *buf;
buf 988 source3/libsmb/clireadwrite.c state->buf = buf;
buf 994 source3/libsmb/clireadwrite.c state->mode, state->buf, state->offset,
buf 1041 source3/libsmb/clireadwrite.c state->buf + state->written,
buf 1061 source3/libsmb/clireadwrite.c uint8_t *buf;
buf 1073 source3/libsmb/clireadwrite.c size_t (*source)(uint8_t *buf, size_t n, void *priv);
buf 1105 source3/libsmb/clireadwrite.c substate->buf = talloc_array(substate, uint8_t, state->chunk_size);
buf 1106 source3/libsmb/clireadwrite.c if (!substate->buf) {
buf 1110 source3/libsmb/clireadwrite.c substate->size = state->source(substate->buf,
buf 1123 source3/libsmb/clireadwrite.c substate->buf,
buf 1089 source3/libsmb/clitrans.c memcpy(blob->data + displacement, buf, thistime);
buf 205 source3/libsmb/libsmb_compat.c return smbc_getFunctionRead(statcont)(statcont, file, buf, bufsize);
buf 214 source3/libsmb/libsmb_compat.c return smbc_getFunctionWrite(statcont)(statcont, file, buf, bufsize);
buf 276 source3/libsmb/libsmb_file.c if (buf == NULL) {
buf 310 source3/libsmb/libsmb_file.c ret = cli_read(targetcli, file->cli_fd, (char *)buf, offset, count);
buf 365 source3/libsmb/libsmb_file.c if (buf == NULL) {
buf 402 source3/libsmb/libsmb_file.c 0, (char *)buf, offset, count);
buf 99 source3/libsmb/libsmb_printjob.c char buf[4096];
buf 142 source3/libsmb/libsmb_printjob.c buf, sizeof(buf))) > 0) {
buf 147 source3/libsmb/libsmb_printjob.c buf, bytes)) < 0) {
buf 936 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 950 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize, "%d",
buf 959 source3/libsmb/libsmb_xattr.c buf += n;
buf 986 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 998 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize, "%s",
buf 1007 source3/libsmb/libsmb_xattr.c buf += n;
buf 1032 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1044 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1053 source3/libsmb/libsmb_xattr.c buf += n;
buf 1085 source3/libsmb/libsmb_xattr.c buf, bufsize,
buf 1109 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1131 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1144 source3/libsmb/libsmb_xattr.c buf += n;
buf 1193 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1210 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1219 source3/libsmb/libsmb_xattr.c buf += n;
buf 1238 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1254 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1264 source3/libsmb/libsmb_xattr.c buf += n;
buf 1284 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1298 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1307 source3/libsmb/libsmb_xattr.c buf += n;
buf 1326 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1340 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1349 source3/libsmb/libsmb_xattr.c buf += n;
buf 1368 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1382 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1391 source3/libsmb/libsmb_xattr.c buf += n;
buf 1410 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1424 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1433 source3/libsmb/libsmb_xattr.c buf += n;
buf 1452 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1468 source3/libsmb/libsmb_xattr.c n = snprintf(buf, bufsize,
buf 1478 source3/libsmb/libsmb_xattr.c buf += n;
buf 303 source3/libsmb/nmblib.c if (buf) {
buf 304 source3/libsmb/nmblib.c buf[offset] = 0x20;
buf 310 source3/libsmb/nmblib.c if (buf) {
buf 311 source3/libsmb/nmblib.c buf[offset+1+2*m] = 'A' + ((buf1[m]>>4)&0xF);
buf 312 source3/libsmb/nmblib.c buf[offset+2+2*m] = 'A' + (buf1[m]&0xF);
buf 317 source3/libsmb/nmblib.c if (buf) {
buf 318 source3/libsmb/nmblib.c buf[offset] = 0;
buf 324 source3/libsmb/nmblib.c if (buf) {
buf 325 source3/libsmb/nmblib.c safe_strcpy(&buf[offset+1],name->scope,
buf 328 source3/libsmb/nmblib.c p = &buf[offset+1];
buf 330 source3/libsmb/nmblib.c buf[offset] = PTR_DIFF(p,&buf[offset+1]);
buf 331 source3/libsmb/nmblib.c offset += (buf[offset] + 1);
buf 332 source3/libsmb/nmblib.c p = &buf[offset+1];
buf 334 source3/libsmb/nmblib.c buf[offset] = strlen(&buf[offset+1]);
buf 412 source3/libsmb/nmblib.c int l = put_nmb_name(buf,offset,&recs[i].rr_name);
buf 415 source3/libsmb/nmblib.c if (buf) {
buf 416 source3/libsmb/nmblib.c RSSVAL(buf,offset,recs[i].rr_type);
buf 417 source3/libsmb/nmblib.c RSSVAL(buf,offset+2,recs[i].rr_class);
buf 418 source3/libsmb/nmblib.c RSIVAL(buf,offset+4,recs[i].ttl);
buf 419 source3/libsmb/nmblib.c RSSVAL(buf,offset+8,recs[i].rdlength);
buf 420 source3/libsmb/nmblib.c memcpy(buf+offset+10,recs[i].rdata,recs[i].rdlength);
buf 440 source3/libsmb/nmblib.c if (buf) {
buf 441 source3/libsmb/nmblib.c buf[offset] = (0xC0 | ((ptr_offset >> 8) & 0xFF));
buf 442 source3/libsmb/nmblib.c buf[offset+1] = (ptr_offset & 0xFF);
buf 446 source3/libsmb/nmblib.c if (buf) {
buf 447 source3/libsmb/nmblib.c RSSVAL(buf,offset,rec->rr_type);
buf 448 source3/libsmb/nmblib.c RSSVAL(buf,offset+2,rec->rr_class);
buf 449 source3/libsmb/nmblib.c RSIVAL(buf,offset+4,rec->ttl);
buf 450 source3/libsmb/nmblib.c RSSVAL(buf,offset+8,rec->rdlength);
buf 451 source3/libsmb/nmblib.c memcpy(buf+offset+10,rec->rdata,rec->rdlength);
buf 752 source3/libsmb/nmblib.c ok = parse_nmb(buf,length,&p->packet.nmb);
buf 756 source3/libsmb/nmblib.c ok = parse_dgram(buf,length,&p->packet.dgram);
buf 778 source3/libsmb/nmblib.c char buf[MAX_DGRAM_SIZE];
buf 781 source3/libsmb/nmblib.c length = read_udp_v4_socket(fd,buf,sizeof(buf),&sa);
buf 786 source3/libsmb/nmblib.c packet = parse_packet(buf,
buf 826 source3/libsmb/nmblib.c ret = (sendto(fd,buf,len,0,(struct sockaddr *)&sock_out,
buf 846 source3/libsmb/nmblib.c unsigned char *ubuf = (unsigned char *)buf;
buf 850 source3/libsmb/nmblib.c if (buf) {
buf 872 source3/libsmb/nmblib.c if (buf) {
buf 882 source3/libsmb/nmblib.c if (buf) {
buf 922 source3/libsmb/nmblib.c unsigned char *ubuf = (unsigned char *)buf;
buf 930 source3/libsmb/nmblib.c if (buf) {
buf 968 source3/libsmb/nmblib.c if (buf) {
buf 1051 source3/libsmb/nmblib.c len = build_nmb(buf,buflen,&p->packet.nmb);
buf 1055 source3/libsmb/nmblib.c len = build_dgram(buf,buflen,&p->packet.dgram);
buf 1068 source3/libsmb/nmblib.c char buf[1024];
buf 1071 source3/libsmb/nmblib.c memset(buf,'\0',sizeof(buf));
buf 1073 source3/libsmb/nmblib.c len = build_packet(buf, sizeof(buf), p);
buf 1078 source3/libsmb/nmblib.c return(send_udp(p->fd,buf,len,p->ip,p->port));
buf 1166 source3/libsmb/nmblib.c char *buf;
buf 1168 source3/libsmb/nmblib.c buf = &dgram->data[0];
buf 1169 source3/libsmb/nmblib.c buf -= 4;
buf 1171 source3/libsmb/nmblib.c buf = smb_buf(buf);
buf 1173 source3/libsmb/nmblib.c if (memcmp(buf, mailslot_name, strlen(mailslot_name)+1) == 0) {
buf 1286 source3/libsmb/nmblib.c nstring buf;
buf 1298 source3/libsmb/nmblib.c put_name(buf, "*", '\0', 0x00);
buf 1309 source3/libsmb/nmblib.c put_name(buf, buf_dos, ' ', name_type);
buf 1318 source3/libsmb/nmblib.c p[i*2] = ( (buf[i] >> 4) & 0x000F ) + 'A';
buf 1319 source3/libsmb/nmblib.c p[(i*2)+1] = (buf[i] & 0x000F) + 'A';
buf 1352 source3/libsmb/nmblib.c unsigned char c = *(unsigned char *)(buf+ofs);
buf 1355 source3/libsmb/nmblib.c uint16 l = RSVAL(buf, ofs) & 0x3FFF;
buf 1356 source3/libsmb/nmblib.c DEBUG(5,("name ptr to pos %d from %d is %s\n",l,ofs,buf+l));
buf 1357 source3/libsmb/nmblib.c return(buf + l);
buf 1359 source3/libsmb/nmblib.c return(buf+ofs);
buf 1369 source3/libsmb/nmblib.c char *p = name_ptr(buf,ofs);
buf 1370 source3/libsmb/nmblib.c int d = PTR_DIFF(p,buf+ofs);
buf 28 source3/libsmb/smb_seal.c if (smb_len(buf) < 8) {
buf 32 source3/libsmb/smb_seal.c if (buf[4] == 0xFF) {
buf 33 source3/libsmb/smb_seal.c if (buf[5] == 'S' && buf [6] == 'M' && buf[7] == 'B') {
buf 37 source3/libsmb/smb_seal.c if (buf[5] == 'E') {
buf 38 source3/libsmb/smb_seal.c *p_enc_ctx_num = SVAL(buf,6);
buf 65 source3/libsmb/smb_seal.c size_t buf_len = smb_len(buf) + 4; /* Don't forget the 4 length bytes. */
buf 74 source3/libsmb/smb_seal.c inbuf = (char *)smb_xmemdup(buf, buf_len);
buf 94 source3/libsmb/smb_seal.c memcpy(buf + 8, inbuf + 8 + NTLMSSP_SIG_SIZE, data_len);
buf 97 source3/libsmb/smb_seal.c smb_setlen(buf,data_len + 4);
buf 117 source3/libsmb/smb_seal.c size_t data_len = smb_len(buf) - 4; /* Ignore the 0xFF SMB bytes. */
buf 135 source3/libsmb/smb_seal.c memcpy(buf_out + 8 + NTLMSSP_SIG_SIZE, buf + 8, data_len);
buf 137 source3/libsmb/smb_seal.c smb_set_enclen(buf_out, smb_len(buf) + NTLMSSP_SIG_SIZE, enc_ctx_num);
buf 175 source3/libsmb/smb_seal.c size_t buf_len = smb_len(buf) + 4; /* Don't forget the 4 length bytes. */
buf 181 source3/libsmb/smb_seal.c in_buf.value = buf + 8;
buf 206 source3/libsmb/smb_seal.c memcpy(buf + 8, out_buf.value, out_buf.length);
buf 208 source3/libsmb/smb_seal.c smb_setlen(buf, out_buf.length + 4);
buf 229 source3/libsmb/smb_seal.c size_t buf_len = smb_len(buf) + 4; /* Don't forget the 4 length bytes. */
buf 237 source3/libsmb/smb_seal.c in_buf.value = buf + 8;
buf 327 source3/libsmb/smb_seal.c return common_ntlm_decrypt_buffer(es->s.ntlmssp_state, buf);
buf 330 source3/libsmb/smb_seal.c return common_gss_decrypt_buffer(es->s.gss_state, buf);
buf 398 source3/libsmb/smb_seal.c if (!NT_STATUS_IS_OK(get_enc_ctx_num((const uint8_t *)buf,
buf 404 source3/libsmb/smb_seal.c SAFE_FREE(buf);
buf 412 source3/libsmb/smb_seal.c rel_buf.value = buf;
buf 413 source3/libsmb/smb_seal.c rel_buf.length = smb_len(buf) + 4;
buf 454 source3/libsmb/smb_seal.c if(CVAL(buf,0)) {
buf 461 source3/libsmb/smb_seal.c common_free_enc_buffer(cli->trans_enc_state, buf);
buf 497 source3/libsmb/smb_seal.c if (CVAL(buf,0)) {
buf 504 source3/libsmb/smb_seal.c return common_encrypt_buffer(cli->trans_enc_state, buf, buf_out);
buf 311 source3/libsmb/smb_signing.c MD5Update(&md5_ctx, buf + 4, smb_ss_field - 4);
buf 317 source3/libsmb/smb_signing.c MD5Update(&md5_ctx, buf + offset_end_of_sig,
buf 318 source3/libsmb/smb_signing.c smb_len(buf) - (offset_end_of_sig - 4));
buf 593 source3/libsmb/smb_signing.c cli->sign_info.sign_outgoing_message(buf, &cli->sign_info);
buf 604 source3/libsmb/smb_signing.c if (!cli->sign_info.check_incoming_message(buf, &cli->sign_info, True)) {
buf 336 source3/libsmb/smbdes.c unsigned char buf[8];
buf 338 source3/libsmb/smbdes.c des_crypt56(buf, in, key, 1);
buf 339 source3/libsmb/smbdes.c des_crypt56(out, buf, key+9, 1);
buf 345 source3/libsmb/smbdes.c unsigned char buf[8];
buf 349 source3/libsmb/smbdes.c des_crypt56(buf, in, key, 1);
buf 351 source3/libsmb/smbdes.c des_crypt56(out, buf, key2, 1);
buf 360 source3/libsmb/smbdes.c unsigned char buf[8];
buf 361 source3/libsmb/smbdes.c des_crypt56(buf, in, key, forw);
buf 362 source3/libsmb/smbdes.c des_crypt56(out, buf, key+7, forw);
buf 43 source3/libsmb/unexpected.c char buf[1024];
buf 57 source3/libsmb/unexpected.c memset(buf,'\0',sizeof(buf));
buf 61 source3/libsmb/unexpected.c SIVAL(buf,0,enc_ip);
buf 62 source3/libsmb/unexpected.c SSVAL(buf,4,p->port);
buf 64 source3/libsmb/unexpected.c len = build_packet(&buf[6], sizeof(buf)-6, p) + 6;
buf 74 source3/libsmb/unexpected.c dbuf.dptr = (uint8_t *)buf;
buf 244 source3/modules/vfs_cap.c return SMB_VFS_NEXT_READLINK(handle, cappath, buf, bufsiz);
buf 252 source3/modules/vfs_catia.c return SMB_VFS_NEXT_GETWD(handle, buf);
buf 270 source3/modules/vfs_catia.c return SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz);
buf 1022 source3/modules/vfs_default.c result = readlink(path, buf, bufsiz);
buf 41 source3/modules/vfs_expand_msdfs.c char buf[1024];
buf 42 source3/modules/vfs_expand_msdfs.c char *space = buf;
buf 55 source3/modules/vfs_expand_msdfs.c while (x_fgets(buf, sizeof(buf), f) != NULL) {
buf 58 source3/modules/vfs_expand_msdfs.c if ((strlen(buf) > 0) && (buf[strlen(buf)-1] == '\n'))
buf 59 source3/modules/vfs_expand_msdfs.c buf[strlen(buf)-1] = '\0';
buf 61 source3/modules/vfs_expand_msdfs.c DEBUG(10, ("Scanning line [%s]\n", buf));
buf 63 source3/modules/vfs_expand_msdfs.c space = strchr_m(buf, ' ');
buf 66 source3/modules/vfs_expand_msdfs.c DEBUG(0, ("Ignoring invalid line %s\n", buf));
buf 73 source3/modules/vfs_expand_msdfs.c buf, strlen(buf)) == 0) {
buf 198 source3/modules/vfs_expand_msdfs.c safe_strcpy(buf, target, bufsiz-1);
buf 199 source3/modules/vfs_expand_msdfs.c return strlen(buf);
buf 1605 source3/modules/vfs_full_audit.c result = SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz);
buf 364 source3/modules/vfs_onefs_shadow_copy.c (handle, cpath ?: path, buf, bufsiz),
buf 404 source3/modules/vfs_shadow_copy2.c SHADOW2_NEXT(READLINK, (handle, name, buf, bufsiz), int, -1);
buf 73 source3/modules/vfs_streams_depot.c char buf;
buf 82 source3/modules/vfs_streams_depot.c &buf, sizeof(buf)) != sizeof(buf)) {
buf 87 source3/modules/vfs_streams_depot.c if (buf != '1') {
buf 88 source3/modules/vfs_streams_depot.c DEBUG(10, ("got wrong buffer content: '%c'\n", buf));
buf 98 source3/modules/vfs_streams_depot.c char buf = '1';
buf 108 source3/modules/vfs_streams_depot.c &buf, sizeof(buf), 0);
buf 151 source3/modules/vfs_tsmsm.c char *buf = NULL;
buf 195 source3/modules/vfs_tsmsm.c buf = talloc_zero_size(tsmd, buflen);
buf 196 source3/modules/vfs_tsmsm.c if (buf == NULL) {
buf 207 source3/modules/vfs_tsmsm.c DM_NO_TOKEN, &dmname, buflen, buf, &rlen);
buf 227 source3/modules/vfs_tsmsm.c memcmp(buf, tsmd->attrib_value, buflen) == 0);
buf 240 source3/modules/vfs_tsmsm.c talloc_free(buf);
buf 262 source3/nmbd/nmbd_elections.c int version = CVAL(buf,0);
buf 263 source3/nmbd/nmbd_elections.c uint32 criterion = IVAL(buf,1);
buf 264 source3/nmbd/nmbd_elections.c int timeup = IVAL(buf,5)/1000;
buf 271 source3/nmbd/nmbd_elections.c pull_ascii_nstring(server_name, sizeof(server_name), buf+13);
buf 98 source3/nmbd/nmbd_incomingdgrams.c int ttl = IVAL(buf,1)/1000;
buf 100 source3/nmbd/nmbd_incomingdgrams.c uint32 servertype = IVAL(buf,23);
buf 109 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_fstring(comment, buf+31);
buf 111 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(announce_name, sizeof(announce_name), buf+5);
buf 198 source3/nmbd/nmbd_incomingdgrams.c int ttl = IVAL(buf,1)/1000;
buf 201 source3/nmbd/nmbd_incomingdgrams.c uint32 servertype = IVAL(buf,23);
buf 208 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(workgroup_announce_name,sizeof(workgroup_announce_name),buf+5);
buf 209 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(master_name,sizeof(master_name),buf+31);
buf 255 source3/nmbd/nmbd_incomingdgrams.c int ttl = IVAL(buf,1)/1000;
buf 257 source3/nmbd/nmbd_incomingdgrams.c uint32 servertype = IVAL(buf,23);
buf 266 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(server_name,sizeof(server_name),buf+5);
buf 267 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_fstring(comment, buf+31);
buf 375 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(local_master_name,sizeof(local_master_name),buf);
buf 421 source3/nmbd/nmbd_incomingdgrams.c uint32 servertype = IVAL(buf,1);
buf 422 source3/nmbd/nmbd_incomingdgrams.c int osmajor=CVAL(buf,5); /* major version of node software */
buf 423 source3/nmbd/nmbd_incomingdgrams.c int osminor=CVAL(buf,6); /* minor version of node software */
buf 424 source3/nmbd/nmbd_incomingdgrams.c int ttl = SVAL(buf,7);
buf 431 source3/nmbd/nmbd_incomingdgrams.c char *s = get_safe_str_ptr(buf,len,buf,9);
buf 437 source3/nmbd/nmbd_incomingdgrams.c s = skip_string(buf,len,s);
buf 443 source3/nmbd/nmbd_incomingdgrams.c pull_ascii_nstring(announce_name,sizeof(announce_name),buf+9);
buf 645 source3/nmbd/nmbd_incomingdgrams.c unsigned char max_number_requested = CVAL(buf,0);
buf 646 source3/nmbd/nmbd_incomingdgrams.c uint32 token = IVAL(buf,1); /* Sender's key index for the workgroup. */
buf 727 source3/nmbd/nmbd_incomingdgrams.c int state = CVAL(buf,0);
buf 315 source3/nmbd/nmbd_incomingrequests.c char *countptr, *buf, *bufend, *buf0;
buf 335 source3/nmbd/nmbd_incomingrequests.c countptr = buf = rdata;
buf 336 source3/nmbd/nmbd_incomingrequests.c buf += 1;
buf 337 source3/nmbd/nmbd_incomingrequests.c buf0 = buf;
buf 343 source3/nmbd/nmbd_incomingrequests.c while (buf < bufend) {
buf 357 source3/nmbd/nmbd_incomingrequests.c push_ascii_nstring(buf, name);
buf 358 source3/nmbd/nmbd_incomingrequests.c len = strlen(buf);
buf 359 source3/nmbd/nmbd_incomingrequests.c memset(buf + len, ' ', MAX_NETBIOSNAME_LEN - len - 1);
buf 360 source3/nmbd/nmbd_incomingrequests.c buf[MAX_NETBIOSNAME_LEN - 1] = '\0';
buf 364 source3/nmbd/nmbd_incomingrequests.c buf[15] = name_type;
buf 365 source3/nmbd/nmbd_incomingrequests.c set_nb_flags( &buf[16],namerec->data.nb_flags );
buf 366 source3/nmbd/nmbd_incomingrequests.c buf[16] |= NB_ACTIVE; /* all our names are active */
buf 368 source3/nmbd/nmbd_incomingrequests.c buf += 18;
buf 389 source3/nmbd/nmbd_incomingrequests.c buf = buf0 + 18*names_added;
buf 412 source3/nmbd/nmbd_incomingrequests.c memset(buf,'\0',46);
buf 414 source3/nmbd/nmbd_incomingrequests.c buf += 46;
buf 423 source3/nmbd/nmbd_incomingrequests.c PTR_DIFF(buf,rdata)); /* data length. */
buf 78 source3/nmbd/nmbd_packets.c return ((((uint16)*buf)&0xFFFF) & NB_FLGMSK);
buf 83 source3/nmbd/nmbd_packets.c *buf++ = ((nb_flags & NB_FLGMSK) & 0xFF);
buf 84 source3/nmbd/nmbd_packets.c *buf = '\0';
buf 1056 source3/nmbd/nmbd_packets.c int command = CVAL(buf,0);
buf 1078 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1079 source3/nmbd/nmbd_packets.c process_host_announce(subrec, p, buf+1);
buf 1082 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1083 source3/nmbd/nmbd_packets.c process_workgroup_announce(subrec, p, buf+1);
buf 1086 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1087 source3/nmbd/nmbd_packets.c process_local_master_announce(subrec, p, buf+1);
buf 1090 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1091 source3/nmbd/nmbd_packets.c process_announce_request(subrec, p, buf+1);
buf 1094 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1095 source3/nmbd/nmbd_packets.c process_election(subrec, p, buf+1);
buf 1098 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1099 source3/nmbd/nmbd_packets.c process_get_backup_list_request(subrec, p, buf+1);
buf 1102 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1108 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1109 source3/nmbd/nmbd_packets.c process_reset_browser(subrec, p, buf+1);
buf 1115 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1116 source3/nmbd/nmbd_packets.c process_master_browser_announce(subrec, p, buf+1);
buf 1122 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1128 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1143 source3/nmbd/nmbd_packets.c int command = SVAL(buf,0);
buf 1166 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 1167 source3/nmbd/nmbd_packets.c process_lm_host_announce(subrec, p, buf+1, len > 1 ? len-1 : 0);
buf 1170 source3/nmbd/nmbd_packets.c process_lm_announce_request(subrec, p, buf+1, len > 1 ? len-1 : 0);
buf 1207 source3/nmbd/nmbd_packets.c char *buf;
buf 1238 source3/nmbd/nmbd_packets.c buf = &dgram->data[0];
buf 1239 source3/nmbd/nmbd_packets.c buf -= 4; /* XXXX for the pseudo tcp length - someday I need to get rid of this */
buf 1241 source3/nmbd/nmbd_packets.c if (CVAL(buf,smb_com) != SMBtrans)
buf 1244 source3/nmbd/nmbd_packets.c len = SVAL(buf,smb_vwv11);
buf 1245 source3/nmbd/nmbd_packets.c buf2 = smb_base(buf) + SVAL(buf,smb_vwv12);
buf 1281 source3/nmbd/nmbd_packets.c inet_ntoa(p->ip), smb_buf(buf),CVAL(buf2,0),len));
buf 1284 source3/nmbd/nmbd_packets.c if (strequal(smb_buf(buf),BROWSE_MAILSLOT)) {
buf 1290 source3/nmbd/nmbd_packets.c if (strequal(smb_buf(buf),LANMAN_MAILSLOT)) {
buf 1296 source3/nmbd/nmbd_packets.c if (strequal(smb_buf(buf),NET_LOGON_MAILSLOT)) {
buf 1302 source3/nmbd/nmbd_packets.c if (strequal(smb_buf(buf),NT_LOGON_MAILSLOT)) {
buf 1939 source3/nmbd/nmbd_packets.c memcpy(p2,buf,len);
buf 1955 source3/nmbd/nmbd_packets.c debug_browse_data(buf, len);
buf 115 source3/nmbd/nmbd_processlogon.c code = get_safe_SVAL(buf,len,buf,0,-1);
buf 122 source3/nmbd/nmbd_processlogon.c char *q = buf + 2;
buf 124 source3/nmbd/nmbd_processlogon.c char *user = skip_string(buf,len,machine);
buf 126 source3/nmbd/nmbd_processlogon.c if (!user || PTR_DIFF(user, buf) >= len) {
buf 130 source3/nmbd/nmbd_processlogon.c getdc = skip_string(buf,len,user);
buf 132 source3/nmbd/nmbd_processlogon.c if (!getdc || PTR_DIFF(getdc, buf) >= len) {
buf 136 source3/nmbd/nmbd_processlogon.c q = skip_string(buf,len,getdc);
buf 138 source3/nmbd/nmbd_processlogon.c if (!q || PTR_DIFF(q + 5, buf) > len) {
buf 185 source3/nmbd/nmbd_processlogon.c char *q = buf + 2;
buf 193 source3/nmbd/nmbd_processlogon.c getdc = skip_string(buf,len,machine);
buf 195 source3/nmbd/nmbd_processlogon.c if (!getdc || PTR_DIFF(getdc, buf) >= len) {
buf 199 source3/nmbd/nmbd_processlogon.c q = skip_string(buf,len,getdc);
buf 201 source3/nmbd/nmbd_processlogon.c if (!q || PTR_DIFF(q, buf) >= len) {
buf 205 source3/nmbd/nmbd_processlogon.c q = ALIGN2(q, buf);
buf 213 source3/nmbd/nmbd_processlogon.c if (len - PTR_DIFF(q, buf) <= 3) {
buf 218 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(q, buf) >= len) {
buf 224 source3/nmbd/nmbd_processlogon.c q = skip_unibuf(unicomp, PTR_DIFF(buf + len, unicomp));
buf 226 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(q, buf) >= len) {
buf 231 source3/nmbd/nmbd_processlogon.c if (len - PTR_DIFF(q, buf) > 8) {
buf 244 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(q + 8, buf) > len) {
buf 318 source3/nmbd/nmbd_processlogon.c char *q = buf + 2;
buf 323 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(q, buf) >= len) {
buf 329 source3/nmbd/nmbd_processlogon.c uniuser = skip_unibuf(unicomp, PTR_DIFF(buf+len, unicomp));
buf 331 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(uniuser, buf) >= len) {
buf 336 source3/nmbd/nmbd_processlogon.c getdc = skip_unibuf(uniuser,PTR_DIFF(buf+len, uniuser));
buf 338 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(getdc, buf) >= len) {
buf 343 source3/nmbd/nmbd_processlogon.c q = skip_string(buf,len,getdc);
buf 345 source3/nmbd/nmbd_processlogon.c if (!q || PTR_DIFF(q + 8, buf) >= len) {
buf 356 source3/nmbd/nmbd_processlogon.c if (domainsidsize < (len - PTR_DIFF(q, buf)) && (domainsidsize != 0)) {
buf 358 source3/nmbd/nmbd_processlogon.c q = ALIGN4(q, buf);
buf 361 source3/nmbd/nmbd_processlogon.c DEBUG(5,("process_logon_packet: len = %d PTR_DIFF(q, buf) = %ld\n", len, (unsigned long)PTR_DIFF(q, buf) ));
buf 363 source3/nmbd/nmbd_processlogon.c if (len - PTR_DIFF(q, buf) > 8) {
buf 370 source3/nmbd/nmbd_processlogon.c if (dom_len < (len - PTR_DIFF(q, buf)) && (dom_len != 0)) {
buf 376 source3/nmbd/nmbd_processlogon.c if (PTR_DIFF(q + 8, buf) > len) {
buf 2426 source3/nmbd/nmbd_winsserver.c if (buf==NULL) {
buf 2431 source3/nmbd/nmbd_winsserver.c record=(WINS_RECORD *)buf;
buf 936 source3/passdb/passdb.c if(sampass == NULL || buf == NULL) {
buf 944 source3/passdb/passdb.c len = tdb_unpack (buf, buflen, SAMU_BUFFER_FORMAT_V0,
buf 1122 source3/passdb/passdb.c if(sampass == NULL || buf == NULL) {
buf 1130 source3/passdb/passdb.c len = tdb_unpack (buf, buflen, SAMU_BUFFER_FORMAT_V1,
buf 1314 source3/passdb/passdb.c if(sampass == NULL || buf == NULL) {
buf 1322 source3/passdb/passdb.c len = tdb_unpack (buf, buflen, SAMU_BUFFER_FORMAT_V2,
buf 1549 source3/passdb/passdb.c if(sampass == NULL || buf == NULL) {
buf 1557 source3/passdb/passdb.c len = tdb_unpack (buf, buflen, SAMU_BUFFER_FORMAT_V3,
buf 1783 source3/passdb/passdb.c *buf = NULL;
buf 1956 source3/passdb/passdb.c if ( (*buf=(uint8*)SMB_MALLOC(len)) == NULL) {
buf 1962 source3/passdb/passdb.c buflen = tdb_pack(*buf, len, SAMU_BUFFER_FORMAT_V3,
buf 2000 source3/passdb/passdb.c SAFE_FREE (*buf);
buf 2010 source3/passdb/passdb.c return init_samu_from_buffer_v3(sampass, buf, buflen);
buf 2016 source3/passdb/passdb.c return init_buffer_from_samu_v3(buf, sampass, size_only);
buf 2028 source3/passdb/passdb.c return init_samu_from_buffer_v0(sampass, buf, buflen);
buf 2030 source3/passdb/passdb.c return init_samu_from_buffer_v1(sampass, buf, buflen);
buf 2032 source3/passdb/passdb.c return init_samu_from_buffer_v2(sampass, buf, buflen);
buf 2034 source3/passdb/passdb.c return init_samu_from_buffer_v3(sampass, buf, buflen);
buf 2036 source3/passdb/passdb.c return init_samu_from_buffer_v4(sampass, buf, buflen);
buf 2048 source3/passdb/passdb.c return init_buffer_from_samu_v4(buf, sampass, size_only);
buf 2056 source3/passdb/passdb.c uint8 *buf = NULL;
buf 2059 source3/passdb/passdb.c len = init_buffer_from_samu(&buf, src, False);
buf 2060 source3/passdb/passdb.c if (len == -1 || !buf) {
buf 2061 source3/passdb/passdb.c SAFE_FREE(buf);
buf 2065 source3/passdb/passdb.c if (!init_samu_from_buffer( dst, SAMU_BUFFER_LATEST, buf, len )) {
buf 2066 source3/passdb/passdb.c free(buf);
buf 2075 source3/passdb/passdb.c free(buf);
buf 2080 source3/passdb/passdb.c free(buf);
buf 739 source3/passdb/pdb_tdb.c uint8 *buf = NULL;
buf 747 source3/passdb/pdb_tdb.c if ( (data.dsize=init_buffer_from_samu(&buf, newpwd, False)) == -1 ) {
buf 751 source3/passdb/pdb_tdb.c data.dptr = buf;
buf 776 source3/passdb/pdb_tdb.c SAFE_FREE(buf);
buf 166 source3/printing/lpq_parse.c buf->job = atoi(tok[JOBTOK]);
buf 167 source3/printing/lpq_parse.c buf->size = atoi(tok[TOTALTOK]);
buf 168 source3/printing/lpq_parse.c buf->status = strequal(tok[RANKTOK],"active")?LPQ_PRINTING:LPQ_QUEUED;
buf 169 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 170 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[USERTOK]);
buf 171 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[FILETOK]);
buf 180 source3/printing/lpq_parse.c fstrcat(buf->fs_file, " ");
buf 181 source3/printing/lpq_parse.c fstrcat(buf->fs_file, tok[i]);
buf 184 source3/printing/lpq_parse.c buf->fs_file[sizeof(buf->fs_file)-1] = '\0';
buf 188 source3/printing/lpq_parse.c buf->priority = atoi(tok[PRIOTOK]);
buf 190 source3/printing/lpq_parse.c buf->priority = 1;
buf 283 source3/printing/lpq_parse.c buf->job = atoi(tokarr[LPRNG_JOBTOK]);
buf 284 source3/printing/lpq_parse.c buf->size = atoi(tokarr[LPRNG_TOTALTOK]);
buf 287 source3/printing/lpq_parse.c buf->status = LPQ_PRINTING;
buf 289 source3/printing/lpq_parse.c buf->status = LPQ_PRINTED;
buf 291 source3/printing/lpq_parse.c buf->status = LPQ_QUEUED;
buf 293 source3/printing/lpq_parse.c buf->status = LPQ_PAUSED;
buf 296 source3/printing/lpq_parse.c buf->priority = *tokarr[LPRNG_PRIOTOK] -'A';
buf 298 source3/printing/lpq_parse.c buf->time = LPRng_time(tokarr[LPRNG_TIMETOK]);
buf 300 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tokarr[LPRNG_USERTOK]);
buf 306 source3/printing/lpq_parse.c if ((ptr = strchr_m(buf->fs_user,'@')) != NULL) {
buf 310 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tokarr[LPRNG_FILETOK]);
buf 319 source3/printing/lpq_parse.c fstrcat(buf->fs_file, " ");
buf 320 source3/printing/lpq_parse.c fstrcat(buf->fs_file, tokarr[i]);
buf 323 source3/printing/lpq_parse.c buf->fs_file[sizeof(buf->fs_file)-1] = '\0';
buf 368 source3/printing/lpq_parse.c buf->size = atoi(tok[4]) * 1024;
buf 386 source3/printing/lpq_parse.c buf->job = atoi(tok[1]);
buf 387 source3/printing/lpq_parse.c buf->status = strequal(tok[0],"HELD")?LPQ_PAUSED:LPQ_QUEUED;
buf 388 source3/printing/lpq_parse.c buf->priority = 0;
buf 389 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 390 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[3]);
buf 391 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[2]);
buf 404 source3/printing/lpq_parse.c buf->size = atoi(tok[8]) * 1024;
buf 422 source3/printing/lpq_parse.c buf->job = atoi(tok[3]);
buf 423 source3/printing/lpq_parse.c buf->status = strequal(tok[2],"RUNNING")?LPQ_PRINTING:LPQ_QUEUED;
buf 424 source3/printing/lpq_parse.c buf->priority = 0;
buf 425 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 426 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[5]);
buf 427 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[4]);
buf 508 source3/printing/lpq_parse.c buf->size = atoi(tok[1]);
buf 509 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[0]);
buf 512 source3/printing/lpq_parse.c buf->time = jobtime;
buf 513 source3/printing/lpq_parse.c buf->job = jobid;
buf 514 source3/printing/lpq_parse.c buf->status = jobstat;
buf 515 source3/printing/lpq_parse.c buf->priority = jobprio;
buf 517 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,jobuser);
buf 519 source3/printing/lpq_parse.c buf->fs_user[0] = '\0';
buf 653 source3/printing/lpq_parse.c buf->job = atoi(tok[1]);
buf 654 source3/printing/lpq_parse.c buf->size = atoi(tok[3]);
buf 656 source3/printing/lpq_parse.c buf->status = LPQ_PRINTING;
buf 658 source3/printing/lpq_parse.c buf->status = LPQ_PAUSED;
buf 660 source3/printing/lpq_parse.c buf->status = LPQ_QUEUED;
buf 662 source3/printing/lpq_parse.c buf->priority = 0;
buf 663 source3/printing/lpq_parse.c buf->time = EntryTime(tok, 4, count, 7);
buf 664 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[2]);
buf 665 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[2]);
buf 728 source3/printing/lpq_parse.c buf->job = atoi(tok[2]);
buf 729 source3/printing/lpq_parse.c buf->size = atoi(tok[4]);
buf 730 source3/printing/lpq_parse.c buf->status = strequal(tok[3],"active")?LPQ_PRINTING:LPQ_QUEUED;
buf 731 source3/printing/lpq_parse.c buf->priority = 0;
buf 732 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 733 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[1]);
buf 734 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[6]);
buf 808 source3/printing/lpq_parse.c buf->job = atoi(tok[4]);
buf 810 source3/printing/lpq_parse.c buf->size = atoi(tok[7]);
buf 812 source3/printing/lpq_parse.c buf->size *= 1024;
buf 815 source3/printing/lpq_parse.c buf->size *= 1024*1024;
buf 818 source3/printing/lpq_parse.c buf->status = strequal(tok[0],"active")?LPQ_PRINTING:LPQ_QUEUED;
buf 819 source3/printing/lpq_parse.c buf->priority = 0;
buf 820 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 821 source3/printing/lpq_parse.c fstrcpy(buf->fs_user,tok[1]);
buf 822 source3/printing/lpq_parse.c fstrcpy(buf->fs_file,tok[6]);
buf 898 source3/printing/lpq_parse.c buf->job = atoi(parse_line->jobid);
buf 899 source3/printing/lpq_parse.c buf->priority = 0;
buf 900 source3/printing/lpq_parse.c buf->size = atoi(parse_line->size);
buf 901 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 902 source3/printing/lpq_parse.c fstrcpy(buf->fs_user, parse_line->owner);
buf 903 source3/printing/lpq_parse.c fstrcpy(buf->fs_file, parse_line->jobname);
buf 905 source3/printing/lpq_parse.c buf->status = LPQ_PRINTING;
buf 907 source3/printing/lpq_parse.c buf->status = LPQ_PAUSED;
buf 909 source3/printing/lpq_parse.c buf->status = LPQ_QUEUED;
buf 959 source3/printing/lpq_parse.c buf->job = atoi(parse_line->jobid);
buf 964 source3/printing/lpq_parse.c fstrcpy(buf->fs_file, parse_line->jobname);
buf 966 source3/printing/lpq_parse.c buf->priority = 0;
buf 967 source3/printing/lpq_parse.c buf->size = atoi(parse_line->size);
buf 968 source3/printing/lpq_parse.c buf->time = time(NULL);
buf 984 source3/printing/lpq_parse.c fstrcpy(buf->fs_user, parse_line->owner);
buf 986 source3/printing/lpq_parse.c buf->status = LPQ_PRINTING;
buf 988 source3/printing/lpq_parse.c buf->status = LPQ_PAUSED;
buf 990 source3/printing/lpq_parse.c buf->status = LPQ_QUEUED;
buf 1025 source3/printing/lpq_parse.c buf->job = atoi(tok);
buf 1028 source3/printing/lpq_parse.c buf->size = atoi(tok);
buf 1031 source3/printing/lpq_parse.c buf->status = atoi(tok);
buf 1034 source3/printing/lpq_parse.c buf->time = atoi(tok);
buf 1037 source3/printing/lpq_parse.c fstrcpy(buf->fs_user, tok);
buf 1040 source3/printing/lpq_parse.c fstrcpy(buf->fs_file, tok);
buf 1064 source3/printing/lpq_parse.c ret = parse_lpq_sysv(line,buf,first);
buf 1067 source3/printing/lpq_parse.c ret = parse_lpq_aix(line,buf,first);
buf 1070 source3/printing/lpq_parse.c ret = parse_lpq_hpux(line,buf,first);
buf 1073 source3/printing/lpq_parse.c ret = parse_lpq_qnx(line,buf,first);
buf 1076 source3/printing/lpq_parse.c ret = parse_lpq_lprng(line,buf,first);
buf 1079 source3/printing/lpq_parse.c ret = parse_lpq_plp(line,buf,first);
buf 1082 source3/printing/lpq_parse.c ret = parse_lpq_nt(line,buf,first);
buf 1085 source3/printing/lpq_parse.c ret = parse_lpq_os2(line,buf,first);
buf 1090 source3/printing/lpq_parse.c ret = parse_lpq_vlp(line,buf,first);
buf 1094 source3/printing/lpq_parse.c ret = parse_lpq_bsd(line,buf,first);
buf 33 source3/printing/notify.c uint8 *buf;
buf 81 source3/printing/notify.c uint8 *buf = NULL;
buf 89 source3/printing/notify.c len += tdb_pack(buf + len, buflen - len, "f", msg->printer);
buf 91 source3/printing/notify.c len += tdb_pack(buf + len, buflen - len, "ddddddd",
buf 98 source3/printing/notify.c len += tdb_pack(buf + len, buflen - len, "dd",
buf 101 source3/printing/notify.c len += tdb_pack(buf + len, buflen - len, "B",
buf 105 source3/printing/notify.c buf = (uint8 *)TALLOC_REALLOC(send_ctx, buf, len);
buf 106 source3/printing/notify.c if (!buf)
buf 112 source3/printing/notify.c q->buf = buf;
buf 126 source3/printing/notify.c char *buf;
buf 149 source3/printing/notify.c buf = (char *)TALLOC(send_ctx, offset);
buf 150 source3/printing/notify.c if (!buf) {
buf 158 source3/printing/notify.c SIVAL(buf,offset,msg_count);
buf 164 source3/printing/notify.c SIVAL(buf,offset,pq->buflen);
buf 166 source3/printing/notify.c memcpy(buf + offset, pq->buf, pq->buflen);
buf 192 source3/printing/notify.c (uint8 *)buf, offset);
buf 314 source3/printing/notify.c pnqueue->buf = NULL;
buf 809 source3/printing/nt_printing.c char *buf = NULL;
buf 824 source3/printing/nt_printing.c buf = TALLOC_ARRAY(ctx, char, len);
buf 825 source3/printing/nt_printing.c if (!buf) {
buf 828 source3/printing/nt_printing.c len = tdb_pack((uint8 *)buf, len, "dddddddd",
buf 837 source3/printing/nt_printing.c dbuf.dptr = (uint8 *)buf;
buf 840 source3/printing/nt_printing.c TALLOC_FREE(buf);
buf 844 source3/printing/nt_printing.c TALLOC_FREE(buf);
buf 1041 source3/printing/nt_printing.c char *buf = NULL;
buf 1044 source3/printing/nt_printing.c if ((buf=(char *)SMB_MALLOC(DOS_HEADER_SIZE)) == NULL) {
buf 1050 source3/printing/nt_printing.c if ((byte_count = vfs_read_data(fsp, buf, DOS_HEADER_SIZE)) < DOS_HEADER_SIZE) {
buf 1057 source3/printing/nt_printing.c if (SVAL(buf,DOS_HEADER_MAGIC_OFFSET) != DOS_HEADER_MAGIC) {
buf 1059 source3/printing/nt_printing.c fname, SVAL(buf,DOS_HEADER_MAGIC_OFFSET)));
buf 1064 source3/printing/nt_printing.c if (SMB_VFS_LSEEK(fsp, SVAL(buf,DOS_HEADER_LFANEW_OFFSET), SEEK_SET) == (SMB_OFF_T)-1) {
buf 1072 source3/printing/nt_printing.c if ((byte_count = vfs_read_data(fsp, buf, NE_HEADER_SIZE)) < NE_HEADER_SIZE) {
buf 1080 source3/printing/nt_printing.c if (IVAL(buf,PE_HEADER_SIGNATURE_OFFSET) == PE_HEADER_SIGNATURE) {
buf 1086 source3/printing/nt_printing.c SVAL(buf,PE_HEADER_OPTIONAL_HEADER_SIZE)-(NE_HEADER_SIZE-PE_HEADER_SIZE),
buf 1094 source3/printing/nt_printing.c num_sections = SVAL(buf,PE_HEADER_NUMBER_OF_SECTIONS);
buf 1099 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1100 source3/printing/nt_printing.c if ((buf=(char *)SMB_MALLOC(section_table_bytes)) == NULL) {
buf 1106 source3/printing/nt_printing.c if ((byte_count = vfs_read_data(fsp, buf, section_table_bytes)) < section_table_bytes) {
buf 1116 source3/printing/nt_printing.c if (strcmp(".rsrc", &buf[sec_offset+PE_HEADER_SECT_NAME_OFFSET]) == 0) {
buf 1117 source3/printing/nt_printing.c unsigned int section_pos = IVAL(buf,sec_offset+PE_HEADER_SECT_PTR_DATA_OFFSET);
buf 1118 source3/printing/nt_printing.c unsigned int section_bytes = IVAL(buf,sec_offset+PE_HEADER_SECT_SIZE_DATA_OFFSET);
buf 1123 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1124 source3/printing/nt_printing.c if ((buf=(char *)SMB_MALLOC(section_bytes)) == NULL) {
buf 1137 source3/printing/nt_printing.c if ((byte_count = vfs_read_data(fsp, buf, section_bytes)) < section_bytes) {
buf 1148 source3/printing/nt_printing.c if (buf[i] == 'V' && buf[i+1] == '\0' && buf[i+2] == 'S') {
buf 1152 source3/printing/nt_printing.c if (IVAL(buf,pos) == VS_MAGIC_VALUE) {
buf 1153 source3/printing/nt_printing.c *major = IVAL(buf,pos+VS_MAJOR_OFFSET);
buf 1154 source3/printing/nt_printing.c *minor = IVAL(buf,pos+VS_MINOR_OFFSET);
buf 1160 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1170 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1173 source3/printing/nt_printing.c } else if (SVAL(buf,NE_HEADER_SIGNATURE_OFFSET) == NE_HEADER_SIGNATURE) {
buf 1174 source3/printing/nt_printing.c if (CVAL(buf,NE_HEADER_TARGET_OS_OFFSET) != NE_HEADER_TARGOS_WIN ) {
buf 1176 source3/printing/nt_printing.c fname, CVAL(buf,NE_HEADER_TARGET_OS_OFFSET)));
buf 1183 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1184 source3/printing/nt_printing.c if ((buf=(char *)SMB_MALLOC(VS_NE_BUF_SIZE)) == NULL) {
buf 1193 source3/printing/nt_printing.c while((byte_count = vfs_read_data(fsp, buf, VS_NE_BUF_SIZE)) > 0) {
buf 1199 source3/printing/nt_printing.c if (buf[i] != 'V') continue;
buf 1206 source3/printing/nt_printing.c memcpy(buf, &buf[i], byte_count-i);
buf 1207 source3/printing/nt_printing.c if ((bc = vfs_read_data(fsp, &buf[byte_count-i], VS_NE_BUF_SIZE-
buf 1225 source3/printing/nt_printing.c if (strcmp(&buf[i], VS_SIGNATURE) == 0) {
buf 1229 source3/printing/nt_printing.c if (IVAL(buf,i+sizeof(VS_SIGNATURE)+skip) != 0xfeef04bd) continue;
buf 1231 source3/printing/nt_printing.c *major = IVAL(buf,i+sizeof(VS_SIGNATURE)+skip+VS_MAJOR_OFFSET);
buf 1232 source3/printing/nt_printing.c *minor = IVAL(buf,i+sizeof(VS_SIGNATURE)+skip+VS_MINOR_OFFSET);
buf 1237 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1245 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1251 source3/printing/nt_printing.c fname, IVAL(buf,PE_HEADER_SIGNATURE_OFFSET)));
buf 1254 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 1258 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 2058 source3/printing/nt_printing.c uint8 *buf;
buf 2119 source3/printing/nt_printing.c buf = NULL;
buf 2124 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "dffffffff",
buf 2137 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "f",
buf 2143 source3/printing/nt_printing.c buf = (uint8 *)SMB_REALLOC(buf, len);
buf 2144 source3/printing/nt_printing.c if (!buf) {
buf 2153 source3/printing/nt_printing.c dbuf.dptr = buf;
buf 2162 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 2357 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "p", nt_devmode);
buf 2362 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "ffwwwwwwwwwwwwwwwwwwddddddddddddddp",
buf 2402 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "B",
buf 2436 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "pPdB",
buf 2455 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "pPdB",
buf 2470 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "p", NULL);
buf 2512 source3/printing/nt_printing.c uint8 *buf;
buf 2546 source3/printing/nt_printing.c buf = NULL;
buf 2551 source3/printing/nt_printing.c len += tdb_pack(buf+len, buflen-len, "dddddddddddfffffPfffff",
buf 2575 source3/printing/nt_printing.c len += pack_devicemode(info->devmode, buf+len, buflen-len);
buf 2576 source3/printing/nt_printing.c retlen = pack_values( info->data, buf+len, buflen-len );
buf 2584 source3/printing/nt_printing.c buf = (uint8 *)SMB_REALLOC(buf, len);
buf 2585 source3/printing/nt_printing.c if (!buf) {
buf 2596 source3/printing/nt_printing.c dbuf.dptr = buf;
buf 2605 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 2721 source3/printing/nt_printing.c len += tdb_unpack(buf+len, buflen-len, "p", nt_devmode);
buf 2725 source3/printing/nt_printing.c len += tdb_unpack(buf+len, buflen-len, "ffwwwwwwwwwwwwwwwwwwddddddddddddddp",
buf 2768 source3/printing/nt_printing.c len += tdb_unpack(buf+len, buflen-len, "B", &extra_len, &devmode.nt_dev_private);
buf 3678 source3/printing/nt_printing.c len += tdb_unpack(buf+len, buflen-len, "p", ®val_p);
buf 3684 source3/printing/nt_printing.c len += tdb_unpack(buf+len, buflen-len, "fdB",
buf 4393 source3/printing/nt_printing.c uint8 *buf;
buf 4398 source3/printing/nt_printing.c buf = NULL;
buf 4403 source3/printing/nt_printing.c len += pack_devicemode(info->devmode, buf+len, buflen-len);
buf 4405 source3/printing/nt_printing.c retlen = pack_values( info->data, buf+len, buflen-len );
buf 4413 source3/printing/nt_printing.c buf = (uint8 *)SMB_REALLOC(buf, len);
buf 4414 source3/printing/nt_printing.c if (!buf) {
buf 4429 source3/printing/nt_printing.c dbuf.dptr = buf;
buf 4438 source3/printing/nt_printing.c SAFE_FREE(buf);
buf 78 source3/printing/print_svid.c char *buf = lines[i];
buf 81 source3/printing/print_svid.c if (((tmp = strchr_m(buf, ' ')) == NULL) ||
buf 62 source3/printing/printing.c uint8 buf[2];
buf 92 source3/printing/printing.c SSVAL(buf,0,rap_jobid);
buf 93 source3/printing/printing.c data.dptr = buf;
buf 106 source3/printing/printing.c uint8 buf[2];
buf 113 source3/printing/printing.c SSVAL(buf,0,rap_jobid);
buf 114 source3/printing/printing.c key.dptr = buf;
buf 141 source3/printing/printing.c uint8 buf[2];
buf 167 source3/printing/printing.c SSVAL(buf,0,rap_jobid);
buf 168 source3/printing/printing.c data.dptr = buf;
buf 288 source3/printing/printing.c if ( !buf || !pjob )
buf 291 source3/printing/printing.c len += tdb_unpack(buf+len, buflen-len, "dddddddddffff",
buf 309 source3/printing/printing.c if ( (used = unpack_devicemode(&pjob->nt_devmode, buf+len, buflen-len)) == -1 )
buf 525 source3/printing/printing.c uint8 *buf = NULL;
buf 543 source3/printing/printing.c len += tdb_pack(buf+len, buflen-len, "dddddddddffff",
buf 558 source3/printing/printing.c len += pack_devicemode(pjob->nt_devmode, buf+len, buflen-len);
buf 561 source3/printing/printing.c buf = (uint8 *)SMB_REALLOC(buf, len);
buf 562 source3/printing/printing.c if (!buf) {
buf 573 source3/printing/printing.c new_data.dptr = buf;
buf 601 source3/printing/printing.c SAFE_FREE( buf );
buf 2226 source3/printing/printing.c return_code = write_data_at_offset(pjob->fd, buf, size, pos);
buf 1109 source3/registry/reg_backend_db.c char *buf;
buf 1151 source3/registry/reg_backend_db.c buf = talloc_array(ctr, char, len);
buf 1152 source3/registry/reg_backend_db.c if (buf == NULL) {
buf 1155 source3/registry/reg_backend_db.c p = buf + 4 + 4*num_subkeys;
buf 1157 source3/registry/reg_backend_db.c SIVAL(buf, 0, num_subkeys);
buf 1160 source3/registry/reg_backend_db.c ptrdiff_t offset = p - buf;
buf 1161 source3/registry/reg_backend_db.c SIVAL(buf, 4 + 4*i, offset);
buf 1167 source3/registry/reg_backend_db.c regdb, sorted_keyname, make_tdb_data((uint8_t *)buf, len),
buf 1347 source3/registry/reg_backend_db.c uint8 *buf;
buf 1375 source3/registry/reg_backend_db.c buf = value.dptr;
buf 1377 source3/registry/reg_backend_db.c len = tdb_unpack( buf, buflen, "d", &num_items);
buf 1380 source3/registry/reg_backend_db.c len += tdb_unpack(buf+len, buflen-len, "f", subkeyname);
buf 1413 source3/registry/reg_backend_db.c len += tdb_unpack(buf+len, buflen-len, "d", &num_values);
buf 1422 source3/registry/reg_backend_db.c len += tdb_unpack(buf+len, buflen-len, "fdB",
buf 1460 source3/registry/reg_backend_db.c len += tdb_pack( buf+len, buflen-len, "d", num_values );
buf 1466 source3/registry/reg_backend_db.c len += tdb_pack(buf+len, buflen-len, "fdB",
buf 79 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN];
buf 112 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 113 source3/registry/reg_perfcount.c memcpy(buf, dbuf.dptr, dbuf.dsize);
buf 114 source3/registry/reg_perfcount.c retval = (uint32)atoi(buf);
buf 304 source3/registry/reg_perfcount.c memset(buf, 0, buflen);
buf 306 source3/registry/reg_perfcount.c snprintf(buf, buflen,"%d%s", key_part1, key_part2);
buf 308 source3/registry/reg_perfcount.c snprintf(buf, buflen, "%d", key_part1);
buf 310 source3/registry/reg_perfcount.c *key = string_tdb_data(buf);
buf 351 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN];
buf 353 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, objInd, "inst");
buf 359 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 360 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 362 source3/registry/reg_perfcount.c return (uint32)atoi(buf);
buf 479 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN];
buf 489 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, CounterIndex, "type");
buf 496 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 497 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 498 source3/registry/reg_perfcount.c obj->counters[obj->NumCounters].CounterType = atoi(buf);
buf 504 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, CounterIndex, "");
buf 517 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 518 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 519 source3/registry/reg_perfcount.c data32 = strtol(buf, NULL, 0);
buf 530 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 531 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 532 source3/registry/reg_perfcount.c data64 = atof(buf);
buf 543 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 544 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 566 source3/registry/reg_perfcount.c (const void *)buf, dsize);
buf 611 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN];
buf 614 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 615 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 616 source3/registry/reg_perfcount.c begin = index(buf, '[');
buf 617 source3/registry/reg_perfcount.c end = index(buf, ']');
buf 670 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN], temp[PERFCOUNT_MAX_LEN];
buf 677 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, obj->ObjectNameTitleIndex, temp);
buf 685 source3/registry/reg_perfcount.c buf));
buf 702 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, obj->ObjectNameTitleIndex, temp);
buf 708 source3/registry/reg_perfcount.c buf));
buf 713 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 714 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, MIN(PERFCOUNT_MAX_LEN-1,data.dsize));
buf 715 source3/registry/reg_perfcount.c buf[PERFCOUNT_MAX_LEN-1] = '\0';
buf 716 source3/registry/reg_perfcount.c inst->NameLength = rpcstr_push_talloc(ps->mem_ctx, &name, buf);
buf 829 source3/registry/reg_perfcount.c char buf[PERFCOUNT_MAX_LEN];
buf 831 source3/registry/reg_perfcount.c _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, key_part1, key_part2);
buf 840 source3/registry/reg_perfcount.c memset(buf, 0, PERFCOUNT_MAX_LEN);
buf 841 source3/registry/reg_perfcount.c memcpy(buf, data.dptr, data.dsize);
buf 844 source3/registry/reg_perfcount.c *retval = atof(buf);
buf 223 source3/registry/reg_util.c uint16 *buf, *b;
buf 231 source3/registry/reg_util.c if ( !(buf = TALLOC_ARRAY( NULL, uint16, 2 )) ) {
buf 244 source3/registry/reg_util.c b = TALLOC_REALLOC_ARRAY( NULL, buf, uint16, buf_size+sz.uni_str_len+1 );
buf 250 source3/registry/reg_util.c buf = b;
buf 254 source3/registry/reg_util.c memcpy( buf+buf_size, sz.buffer, sz.uni_str_len*2 );
buf 261 source3/registry/reg_util.c buf[buf_size++] = 0x0;
buf 263 source3/registry/reg_util.c *buffer = buf;
buf 56 source3/rpc_client/rpc_transport_smbd.c void (*fn)(char *buf, size_t len, void *priv);
buf 72 source3/rpc_client/rpc_transport_smbd.c char buf[1024];
buf 79 source3/rpc_client/rpc_transport_smbd.c nread = read(conn->stdout_fd, buf, sizeof(buf)-1);
buf 91 source3/rpc_client/rpc_transport_smbd.c buf[nread] = '\0';
buf 94 source3/rpc_client/rpc_transport_smbd.c conn->stdout_callback.fn(buf, nread,
buf 140 source3/rpc_parse/parse_misc.c if (buf) {
buf 142 source3/rpc_parse/parse_misc.c len = strlen(buf) + 1;
buf 147 source3/rpc_parse/parse_misc.c if (buf == NULL || len == 0) {
buf 170 source3/rpc_parse/parse_misc.c if (buf) {
buf 171 source3/rpc_parse/parse_misc.c rpcstr_push((char *)str->buffer, buf, len, STR_TERMINATE);
buf 191 source3/rpc_parse/parse_prs.c ps->data_p = buf;
buf 1293 source3/rpc_server/srv_pipe_hnd.c prs_give_memory(&hdr_prs, (char *)buf, RPC_HEADER_LEN, false);
buf 1118 source3/rpc_server/srv_spoolss_nt.c offset += tdb_unpack((uint8_t *)buf + offset, len - offset, "f",
buf 1121 source3/rpc_server/srv_spoolss_nt.c offset += tdb_unpack((uint8_t *)buf + offset, len - offset, "ddddddd",
buf 1126 source3/rpc_server/srv_spoolss_nt.c tdb_unpack((uint8_t *)buf + offset, len - offset, "dd",
buf 1129 source3/rpc_server/srv_spoolss_nt.c tdb_unpack((uint8_t *)buf + offset, len - offset, "B",
buf 1158 source3/rpc_server/srv_spoolss_nt.c char *buf = (char *)data->data;
buf 1170 source3/rpc_server/srv_spoolss_nt.c msg_count = IVAL(buf, 0);
buf 1171 source3/rpc_server/srv_spoolss_nt.c msg_ptr = buf + 4;
buf 1195 source3/rpc_server/srv_spoolss_nt.c if (msg_ptr + 4 - buf > data->length) {
buf 1203 source3/rpc_server/srv_spoolss_nt.c if (msg_ptr + msg_len - buf > data->length) {
buf 9632 source3/rpc_server/srv_spoolss_nt.c ndr_err = ndr_push_struct_blob(buf, mem_ctx, NULL, &ui,
buf 9671 source3/rpc_server/srv_spoolss_nt.c ndr_err = ndr_pull_struct_blob(buf, mem_ctx, NULL, port1,
buf 9687 source3/rpc_server/srv_spoolss_nt.c ndr_err = ndr_pull_struct_blob(buf, mem_ctx, NULL, port2,
buf 295 source3/smbd/blocking.c data = (uint8_t *)blr->req->buf
buf 386 source3/smbd/blocking.c data = (uint8_t *)blr->req->buf
buf 318 source3/smbd/chgpasswd.c all_string_sub(buf, "\\n", "\n", 0);
buf 319 source3/smbd/chgpasswd.c all_string_sub(buf, "\\r", "\r", 0);
buf 320 source3/smbd/chgpasswd.c all_string_sub(buf, "\\s", " ", 0);
buf 321 source3/smbd/chgpasswd.c all_string_sub(buf, "\\t", "\t", 0);
buf 92 source3/smbd/dir.c memset(buf+1,' ',11);
buf 95 source3/smbd/dir.c push_ascii(buf+1,mask2,8, 0);
buf 96 source3/smbd/dir.c push_ascii(buf+9,p+1,3, 0);
buf 99 source3/smbd/dir.c push_ascii(buf+1,mask2,11, 0);
buf 102 source3/smbd/dir.c memset(buf+21,'\0',DIR_STRUCT_SIZE-21);
buf 103 source3/smbd/dir.c SCVAL(buf,21,mode);
buf 104 source3/smbd/dir.c srv_put_dos_date(buf,22,date);
buf 105 source3/smbd/dir.c SSVAL(buf,26,size & 0xFFFF);
buf 106 source3/smbd/dir.c SSVAL(buf,28,(size >> 16)&0xFFFF);
buf 109 source3/smbd/dir.c push_ascii(buf+30,fname,12, uc ? STR_UPPER : 0);
buf 110 source3/smbd/dir.c DEBUG(8,("put name [%s] from [%s] into dir struct\n",buf+30, fname));
buf 719 source3/smbd/dir.c unsigned char *buf = (unsigned char *)buf1;
buf 729 source3/smbd/dir.c buf[0] = key;
buf 730 source3/smbd/dir.c SIVAL(buf,1,offset);
buf 740 source3/smbd/dir.c unsigned int key = *(unsigned char *)buf;
buf 750 source3/smbd/dir.c offset = IVAL(buf,1);
buf 62 source3/smbd/dmapi.c char buf[DM_SESSION_INFO_LEN];
buf 92 source3/smbd/dmapi.c ZERO_STRUCT(buf);
buf 119 source3/smbd/dmapi.c err = dm_query_session(sessions[i], sizeof(buf), buf, &buflen);
buf 120 source3/smbd/dmapi.c buf[sizeof(buf) - 1] = '\0';
buf 121 source3/smbd/dmapi.c if (err == 0 && strcmp(session_name, buf) == 0) {
buf 125 source3/smbd/dmapi.c "named '%s'\n", buf));
buf 647 source3/smbd/ipc.c srvstr_pull_req_talloc(state, req, &state->name, req->buf,
buf 81 source3/smbd/lanman.c char *buf = NULL;
buf 89 source3/smbd/lanman.c buf = talloc_strdup(ctx, src);
buf 90 source3/smbd/lanman.c if (!buf) {
buf 94 source3/smbd/lanman.c buf = talloc_string_sub(ctx, buf,"%S",lp_servicename(snum));
buf 95 source3/smbd/lanman.c if (!buf) {
buf 99 source3/smbd/lanman.c buf = talloc_sub_advanced(ctx,
buf 106 source3/smbd/lanman.c buf);
buf 107 source3/smbd/lanman.c if (!buf) {
buf 111 source3/smbd/lanman.c l = push_ascii(*dst,buf,*p_space_remaining, STR_TERMINATE);
buf 138 source3/smbd/lanman.c char *buf = NULL;
buf 142 source3/smbd/lanman.c buf = talloc_strdup(ctx,s);
buf 143 source3/smbd/lanman.c if (!buf) {
buf 146 source3/smbd/lanman.c buf = talloc_string_sub(ctx,buf,"%S",lp_servicename(snum));
buf 147 source3/smbd/lanman.c if (!buf) {
buf 150 source3/smbd/lanman.c buf = talloc_sub_advanced(ctx,
buf 157 source3/smbd/lanman.c buf);
buf 158 source3/smbd/lanman.c if (!buf) {
buf 161 source3/smbd/lanman.c return strlen(buf) + 1;
buf 167 source3/smbd/lanman.c char *buf = NULL;
buf 172 source3/smbd/lanman.c buf = talloc_strdup(ctx,s);
buf 173 source3/smbd/lanman.c if (!buf) {
buf 176 source3/smbd/lanman.c buf = talloc_string_sub(ctx,buf,"%S",lp_servicename(snum));
buf 177 source3/smbd/lanman.c if (!buf) {
buf 187 source3/smbd/lanman.c buf);
buf 1300 source3/smbd/lanman.c if (!buf) {
buf 1314 source3/smbd/lanman.c p = *buf;
buf 1343 source3/smbd/lanman.c *buf = p + struct_len;
buf 1348 source3/smbd/lanman.c *buf = p2;
buf 1621 source3/smbd/lanman.c if (!buf) {
buf 1640 source3/smbd/lanman.c p = *buf;
buf 1696 source3/smbd/lanman.c (*buf) = p + struct_len;
buf 1701 source3/smbd/lanman.c (*buf) = p2;
buf 4077 source3/smbd/lanman.c char buf[100];
buf 4079 source3/smbd/lanman.c strncpy(buf,SERVICE(snum),sizeof(buf)-1);
buf 4080 source3/smbd/lanman.c buf[sizeof(buf)-1] = 0;
buf 4081 source3/smbd/lanman.c strupper_m(buf);
buf 4084 source3/smbd/lanman.c PACKS(desc,"B9",buf); /* szName */
buf 4095 source3/smbd/lanman.c PACKS(desc,"z",buf); /* pszPrinterName */
buf 76 source3/smbd/map_username.c char buf[512];
buf 146 source3/smbd/map_username.c while((s=fgets_slash(buf,sizeof(buf),f))!=NULL) {
buf 155 source3/smbd/message.c p = (const char *)req->buf + 1;
buf 211 source3/smbd/message.c p = (const char *)req->buf+1;
buf 254 source3/smbd/message.c msg = (const char *)req->buf + 1;
buf 529 source3/smbd/negprot.c if (req->buf[req->buflen-1] != '\0') {
buf 536 source3/smbd/negprot.c p = (const char *)req->buf + 1;
buf 348 source3/smbd/nttrans.c srvstr_pull_req_talloc(ctx, req, &fname, req->buf, STR_TERMINATE);
buf 463 source3/smbd/nttrans.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf,
buf 1341 source3/smbd/nttrans.c p = (const char *)req->buf + 1;
buf 84 source3/smbd/pipes.c srvstr_pull_req_talloc(ctx, req, &pipe_name, req->buf, STR_TERMINATE);
buf 179 source3/smbd/pipes.c data = req->buf + 3;
buf 447 source3/smbd/posix_acls.c if (!check_pai_ok_v1(buf, size)) {
buf 458 source3/smbd/posix_acls.c paiv->sd_type = (CVAL(buf,PAI_V1_FLAG_OFFSET) == PAI_V1_ACL_FLAG_PROTECTED) ?
buf 461 source3/smbd/posix_acls.c paiv->num_entries = SVAL(buf,PAI_V1_NUM_ENTRIES_OFFSET);
buf 462 source3/smbd/posix_acls.c paiv->num_def_entries = SVAL(buf,PAI_V1_NUM_DEFAULT_ENTRIES_OFFSET);
buf 464 source3/smbd/posix_acls.c entry_offset = buf + PAI_V1_ENTRIES_BASE;
buf 525 source3/smbd/posix_acls.c if (!check_pai_ok_v2(buf, size)) {
buf 536 source3/smbd/posix_acls.c paiv->sd_type = SVAL(buf,PAI_V2_TYPE_OFFSET);
buf 538 source3/smbd/posix_acls.c paiv->num_entries = SVAL(buf,PAI_V2_NUM_ENTRIES_OFFSET);
buf 539 source3/smbd/posix_acls.c paiv->num_def_entries = SVAL(buf,PAI_V2_NUM_DEFAULT_ENTRIES_OFFSET);
buf 541 source3/smbd/posix_acls.c entry_offset = buf + PAI_V2_ENTRIES_BASE;
buf 569 source3/smbd/posix_acls.c if (CVAL(buf,PAI_VERSION_OFFSET) == PAI_V1_VERSION) {
buf 570 source3/smbd/posix_acls.c return create_pai_val_v1(buf, size);
buf 571 source3/smbd/posix_acls.c } else if (CVAL(buf,PAI_VERSION_OFFSET) == PAI_V2_VERSION) {
buf 572 source3/smbd/posix_acls.c return create_pai_val_v2(buf, size);
buf 86 source3/smbd/process.c memset(buf + smb_size,'\0',num_words*2 + num_bytes);
buf 88 source3/smbd/process.c SCVAL(buf,smb_wct,num_words);
buf 89 source3/smbd/process.c SSVAL(buf,smb_vwv + num_words*SIZEOFWORD,num_bytes);
buf 90 source3/smbd/process.c smb_setlen(buf,(smb_size + num_words*2 + num_bytes - 4));
buf 374 source3/smbd/process.c req->buf = (const uint8_t *)smb_buf(inbuf);
buf 415 source3/smbd/process.c uint16_t mid = SVAL(msg->buf.data,smb_mid);
buf 418 source3/smbd/process.c inbuf = (uint8_t *)talloc_memdup(mem_ctx, msg->buf.data,
buf 419 source3/smbd/process.c msg->buf.length);
buf 435 source3/smbd/process.c msg->buf.length, 0,
buf 465 source3/smbd/process.c msg->buf = data_blob_talloc(msg, req->inbuf, msg_len);
buf 466 source3/smbd/process.c if(msg->buf.data == NULL) {
buf 515 source3/smbd/process.c if (mid == SVAL(pml->buf.data,smb_mid)) {
buf 519 source3/smbd/process.c (unsigned int)pml->buf.length ));
buf 538 source3/smbd/process.c uint16 msg_mid = SVAL(pml->buf.data,smb_mid);
buf 589 source3/smbd/process.c if (SVAL(pml->buf.data,smb_mid) == mid && !pml->processed) {
buf 605 source3/smbd/process.c if (SVAL(pml->buf.data,smb_mid) == mid) {
buf 1591 source3/smbd/process.c uint8_t *buf;
buf 1697 source3/smbd/process.c already_used = PTR_DIFF(req->buf+req->buflen, smb_base(req->inbuf));
buf 1746 source3/smbd/process.c buf = (uint8_t *)(vwv+wct+1);
buf 1752 source3/smbd/process.c req->buf = buf;
buf 2056 source3/smbd/process.c unsigned char buf[5] = {0x83, 0, 0, 1, 0x81};
buf 2059 source3/smbd/process.c (void)srv_send_smb(smbd_server_fd(),(char *)buf,false, NULL);
buf 530 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 621 source3/smbd/reply.c password = data_blob_talloc(talloc_tos(), req->buf, passlen);
buf 627 source3/smbd/reply.c p = (const char *)req->buf + passlen + 1;
buf 629 source3/smbd/reply.c p = (const char *)req->buf + passlen;
buf 632 source3/smbd/reply.c password = data_blob_talloc(talloc_tos(), req->buf, passlen+1);
buf 635 source3/smbd/reply.c p = (const char *)req->buf + passlen + 1;
buf 884 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &name, (const char *)req->buf + 1,
buf 992 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 1109 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 1295 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 1411 source3/smbd/reply.c char buf[DIR_STRUCT_SIZE];
buf 1412 source3/smbd/reply.c memcpy(buf,status,21);
buf 1413 source3/smbd/reply.c if (!make_dir_struct(ctx,buf,"???????????",volume_label(SNUM(conn)),
buf 1419 source3/smbd/reply.c dptr_fill(buf+12,dptr_num);
buf 1420 source3/smbd/reply.c if (dptr_zero(buf+12) && (status_len==0)) {
buf 1426 source3/smbd/reply.c data_blob_const(buf, sizeof(buf)))
buf 1458 source3/smbd/reply.c char buf[DIR_STRUCT_SIZE];
buf 1459 source3/smbd/reply.c memcpy(buf,status,21);
buf 1461 source3/smbd/reply.c buf,
buf 1472 source3/smbd/reply.c if (!dptr_fill(buf+12,dptr_num)) {
buf 1476 source3/smbd/reply.c data_blob_const(buf, sizeof(buf)))
buf 1568 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 1640 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf+1,
buf 1788 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf,
buf 1986 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf + 1,
buf 2093 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf+1,
buf 2596 source3/smbd/reply.c srvstr_get_path_req_wcard(ctx, req, &name, (const char *)req->buf + 1,
buf 2667 source3/smbd/reply.c char *buf;
buf 2675 source3/smbd/reply.c if (!(buf = SMB_MALLOC_ARRAY(char, bufsize))) {
buf 2688 source3/smbd/reply.c ret = read_file(fsp,buf,startpos,cur_read);
buf 2690 source3/smbd/reply.c SAFE_FREE(buf);
buf 2696 source3/smbd/reply.c memset(buf + ret, '\0', cur_read - ret);
buf 2699 source3/smbd/reply.c if (write_data(smbd_server_fd(),buf,cur_read) != cur_read) {
buf 2700 source3/smbd/reply.c SAFE_FREE(buf);
buf 2707 source3/smbd/reply.c SAFE_FREE(buf);
buf 2733 source3/smbd/reply.c char *buf = SMB_CALLOC_ARRAY(char, SHORT_SEND_BUFSIZE);
buf 2734 source3/smbd/reply.c if (!buf) {
buf 2760 source3/smbd/reply.c if (write_data(smbd_server_fd(), buf, to_write) != to_write) {
buf 2766 source3/smbd/reply.c SAFE_FREE(buf);
buf 3582 source3/smbd/reply.c char *buf = NULL;
buf 3682 source3/smbd/reply.c buf = TALLOC_ARRAY(NULL, char, 65540);
buf 3683 source3/smbd/reply.c if (!buf) {
buf 3692 source3/smbd/reply.c memcpy(buf, req->inbuf, smb_size);
buf 3693 source3/smbd/reply.c srv_set_message(buf,Protocol>PROTOCOL_COREPLUS?1:0,0,True);
buf 3694 source3/smbd/reply.c SCVAL(buf,smb_com,SMBwritebraw);
buf 3695 source3/smbd/reply.c SSVALS(buf,smb_vwv0,0xFFFF);
buf 3696 source3/smbd/reply.c show_msg(buf);
buf 3698 source3/smbd/reply.c buf,
buf 3706 source3/smbd/reply.c status = read_smb_length(smbd_server_fd(), buf, SMB_SECONDARY_WAIT,
buf 3730 source3/smbd/reply.c status = read_data(smbd_server_fd(), buf+4, numtowrite);
buf 3739 source3/smbd/reply.c nwritten = write_file(req,fsp,buf+4,startpos+nwritten,numtowrite);
buf 3741 source3/smbd/reply.c TALLOC_FREE(buf);
buf 3757 source3/smbd/reply.c TALLOC_FREE(buf);
buf 3845 source3/smbd/reply.c data = (const char *)req->buf + 3;
buf 3959 source3/smbd/reply.c data = (const char *)req->buf + 3;
buf 4551 source3/smbd/reply.c data = (const char *)req->buf + 1;
buf 4779 source3/smbd/reply.c memcpy(smb_buf(req->outbuf), req->buf, req->buflen);
buf 5045 source3/smbd/reply.c numtowrite = SVAL(req->buf, 1);
buf 5053 source3/smbd/reply.c data = (const char *)req->buf + 3;
buf 5081 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &directory, (const char *)req->buf + 1,
buf 5358 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &directory, (const char *)req->buf + 1,
buf 6207 source3/smbd/reply.c p = (const char *)req->buf + 1;
buf 6469 source3/smbd/reply.c p = (const char *)req->buf;
buf 6937 source3/smbd/reply.c data = req->buf;
buf 308 source3/smbd/seal.c if(CVAL(buf,0)) {
buf 313 source3/smbd/seal.c common_free_enc_buffer(srv_trans_enc_ctx->es, buf);
buf 324 source3/smbd/seal.c if(CVAL(buf,0)) {
buf 329 source3/smbd/seal.c return common_decrypt_buffer(srv_trans_enc_ctx->es, buf);
buf 341 source3/smbd/seal.c *buf_out = buf;
buf 344 source3/smbd/seal.c if(CVAL(buf,0)) {
buf 349 source3/smbd/seal.c return common_encrypt_buffer(srv_trans_enc_ctx->es, buf, buf_out);
buf 1171 source3/smbd/sesssetup.c p = req->buf;
buf 1187 source3/smbd/sesssetup.c p2 = (char *)req->buf + data_blob_len;
buf 1447 source3/smbd/sesssetup.c lm_resp = data_blob(req->buf, passlen1);
buf 1449 source3/smbd/sesssetup.c plaintext_password = data_blob(req->buf, passlen1+1);
buf 1455 source3/smbd/sesssetup.c req->buf + passlen1, STR_TERMINATE);
buf 1464 source3/smbd/sesssetup.c const uint8_t *p = req->buf;
buf 1465 source3/smbd/sesssetup.c const uint8_t *save_p = req->buf;
buf 1550 source3/smbd/sesssetup.c req->buf,
buf 1558 source3/smbd/sesssetup.c req->buf,
buf 275 source3/smbd/utmp.c struct stat buf;
buf 303 source3/smbd/utmp.c if (fstat(fd, &buf) == 0) {
buf 305 source3/smbd/utmp.c (void) ftruncate(fd, buf.st_size);
buf 397 source3/smbd/vfs.c ssize_t ret = SMB_VFS_READ(fsp, buf + total,
buf 419 source3/smbd/vfs.c ssize_t ret = SMB_VFS_PREAD(fsp, buf + total,
buf 688 source3/smbd/vfs.c return SMB_VFS_READ(fsp, buf, len);
buf 695 source3/smbd/vfs.c return SMB_VFS_WRITE(fsp, buf, len);
buf 815 source3/torture/cmd_vfs.c char buf[PATH_MAX];
buf 816 source3/torture/cmd_vfs.c if (SMB_VFS_GETWD(vfs->conn, buf) == NULL) {
buf 821 source3/torture/cmd_vfs.c printf("getwd: %s\n", buf);
buf 46 source3/torture/msgtest.c char buf[12];
buf 87 source3/torture/msgtest.c safe_strcpy(buf, "1234567890", sizeof(buf)-1);
buf 93 source3/torture/msgtest.c (uint8 *)buf, 11);
buf 121 source3/torture/msgtest.c (uint8 *)buf, 11)))
buf 26 source3/torture/nbio.c static char buf[70000];
buf 185 source3/torture/nbio.c if (buf[0] == 0) memset(buf, 1, sizeof(buf));
buf 188 source3/torture/nbio.c if (cli_write(c, ftable[i].fd, 0, buf, offset, size) != ret_size) {
buf 202 source3/torture/nbio.c if ((ret=cli_read(c, ftable[i].fd, buf, offset, size)) != ret_size) {
buf 72 source3/torture/nsstest.c static char buf[1000];
buf 78 source3/torture/nsstest.c status = _nss_getpwent_r(&pwd, buf, sizeof(buf), &nss_errno);
buf 96 source3/torture/nsstest.c static char buf[1000];
buf 102 source3/torture/nsstest.c status = _nss_getpwnam_r(name, &pwd, buf, sizeof(buf), &nss_errno);
buf 120 source3/torture/nsstest.c static char buf[1000];
buf 126 source3/torture/nsstest.c status = _nss_getpwuid_r(uid, &pwd, buf, sizeof(buf), &nss_errno);
buf 175 source3/torture/nsstest.c static char *buf;
buf 182 source3/torture/nsstest.c if (!buf)
buf 183 source3/torture/nsstest.c buf = SMB_MALLOC_ARRAY(char, buflen);
buf 186 source3/torture/nsstest.c status = _nss_getgrent_r(&grp, buf, buflen, &nss_errno);
buf 189 source3/torture/nsstest.c buf = SMB_REALLOC_ARRAY(buf, char, buflen);
buf 190 source3/torture/nsstest.c if (!buf) {
buf 196 source3/torture/nsstest.c SAFE_FREE(buf);
buf 201 source3/torture/nsstest.c SAFE_FREE(buf);
buf 214 source3/torture/nsstest.c static char *buf;
buf 221 source3/torture/nsstest.c if (!buf)
buf 222 source3/torture/nsstest.c buf = SMB_MALLOC_ARRAY(char, buflen);
buf 224 source3/torture/nsstest.c status = _nss_getgrnam_r(name, &grp, buf, buflen, &nss_errno);
buf 227 source3/torture/nsstest.c buf = SMB_REALLOC_ARRAY(buf, char, buflen);
buf 228 source3/torture/nsstest.c if (!buf) {
buf 234 source3/torture/nsstest.c SAFE_FREE(buf);
buf 239 source3/torture/nsstest.c SAFE_FREE(buf);
buf 252 source3/torture/nsstest.c static char *buf;
buf 259 source3/torture/nsstest.c if (!buf)
buf 260 source3/torture/nsstest.c buf = SMB_MALLOC_ARRAY(char, buflen);
buf 263 source3/torture/nsstest.c status = _nss_getgrgid_r(gid, &grp, buf, buflen, &nss_errno);
buf 266 source3/torture/nsstest.c buf = SMB_REALLOC_ARRAY(buf, char, buflen);
buf 267 source3/torture/nsstest.c if (!buf) {
buf 273 source3/torture/nsstest.c SAFE_FREE(buf);
buf 278 source3/torture/nsstest.c SAFE_FREE(buf);
buf 234 source3/torture/pdbtest.c uint8 *buf;
buf 293 source3/torture/pdbtest.c buf = (uint8 *)TALLOC(ctx, NT_HASH_LEN);
buf 295 source3/torture/pdbtest.c buf = (uint8 *)TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN);
buf 302 source3/torture/pdbtest.c buf[i] = (uint8) rand();
buf 304 source3/torture/pdbtest.c pdb_set_nt_passwd(out, buf, PDB_SET);
buf 306 source3/torture/pdbtest.c buf[i] = (uint8) rand();
buf 308 source3/torture/pdbtest.c pdb_set_lanman_passwd(out, buf, PDB_SET);
buf 310 source3/torture/pdbtest.c buf[i] = (uint8) rand();
buf 312 source3/torture/pdbtest.c pdb_set_pw_history(out, buf, history, PDB_SET);
buf 424 source3/torture/torture.c char buf[1024];
buf 427 source3/torture/torture.c memset(buf, '\0', sizeof(buf));
buf 463 source3/torture/torture.c if (cli_write(c, fnum, 0, (char *)buf,
buf 464 source3/torture/torture.c sizeof(pid)+(j*sizeof(buf)),
buf 465 source3/torture/torture.c sizeof(buf)) != sizeof(buf)) {
buf 529 source3/torture/torture.c char buf[131072];
buf 537 source3/torture/torture.c for (i = 0; i < sizeof(buf); i += sizeof(uint32))
buf 539 source3/torture/torture.c SIVAL(buf, i, sys_random());
buf 568 source3/torture/torture.c for (count = 0; count < sizeof(buf); count += sent)
buf 574 source3/torture/torture.c countprev += (sizeof(buf) / 20);
buf 580 source3/torture/torture.c if (sent > sizeof(buf) - count)
buf 582 source3/torture/torture.c sent = sizeof(buf) - count;
buf 585 source3/torture/torture.c if (cli_write(c, fnum, 0, buf+count, count, (size_t)sent) != sent) {
buf 593 source3/torture/torture.c sizeof(buf)-count);
buf 597 source3/torture/torture.c count, (unsigned long)sizeof(buf)-count,
buf 604 source3/torture/torture.c if (memcmp(buf_rd+count, buf+count, sent) != 0)
buf 607 source3/torture/torture.c printf("offset: %d req %ld recvd %ld\n", count, (unsigned long)sizeof(buf)-count, (unsigned long)sent);
buf 630 source3/torture/torture.c char buf[131072];
buf 657 source3/torture/torture.c size_t buf_size = ((unsigned)sys_random()%(sizeof(buf)-1))+ 1;
buf 662 source3/torture/torture.c generate_random_buffer((unsigned char *)buf, buf_size);
buf 664 source3/torture/torture.c if (cli_write(c1, fnum1, 0, buf, 0, buf_size) != buf_size) {
buf 678 source3/torture/torture.c if (memcmp(buf_rd, buf, buf_size) != 0)
buf 760 source3/torture/torture.c char buf[126*1024];
buf 767 source3/torture/torture.c memset(buf,'\0',sizeof(buf));
buf 781 source3/torture/torture.c cli_write(cli1, fnum1, 0, buf, 0, sizeof(buf));
buf 788 source3/torture/torture.c if (fsize == sizeof(buf))
buf 815 source3/torture/torture.c cli_smbwrite(cli1, fnum1, buf, 0, sizeof(buf));
buf 822 source3/torture/torture.c if (fsize == sizeof(buf))
buf 1107 source3/torture/torture.c char buf[4];
buf 1111 source3/torture/torture.c memset(buf, '\0', sizeof(buf));
buf 1131 source3/torture/torture.c if (cli_write(cli, fnum1, 0, buf, 130, 4) != 4) {
buf 1152 source3/torture/torture.c if (cli_write(cli, fnum1, 0, buf, 130, 4) == 4) {
buf 1163 source3/torture/torture.c if (cli_write(cli, fnum1, 0, buf, 130, 4) == 4) {
buf 1174 source3/torture/torture.c if (cli_write(cli, fnum1, 0, buf, 130, 4) == 4) {
buf 1631 source3/torture/torture.c char buf[1000];
buf 1648 source3/torture/torture.c memset(buf, 0, sizeof(buf));
buf 1650 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
buf 1719 source3/torture/torture.c (cli_read(cli2, fnum2, buf, 120, 4) == 4);
buf 1724 source3/torture/torture.c (cli_write(cli2, fnum2, 0, buf, 130, 4) == 4);
buf 1740 source3/torture/torture.c (cli_read(cli2, fnum2, buf, 150, 4) == 4) &&
buf 1741 source3/torture/torture.c !(cli_write(cli2, fnum2, 0, buf, 150, 4) == 4) &&
buf 1748 source3/torture/torture.c (cli_write(cli2, fnum2, 0, buf, 160, 4) == 4) &&
buf 1749 source3/torture/torture.c (cli_read(cli2, fnum2, buf, 160, 4) == 4);
buf 1755 source3/torture/torture.c (cli_write(cli2, fnum2, 0, buf, 170, 4) == 4) &&
buf 1756 source3/torture/torture.c (cli_read(cli2, fnum2, buf, 170, 4) == 4);
buf 1763 source3/torture/torture.c !(cli_write(cli2, fnum2, 0, buf, 190, 4) == 4) &&
buf 1764 source3/torture/torture.c (cli_read(cli2, fnum2, buf, 190, 4) == 4);
buf 1802 source3/torture/torture.c char buf[1000];
buf 1820 source3/torture/torture.c memset(buf, 0, sizeof(buf));
buf 1822 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
buf 1965 source3/torture/torture.c char buf[200];
buf 1980 source3/torture/torture.c memset(buf, 0, sizeof(buf));
buf 1982 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
buf 1996 source3/torture/torture.c if (cli_read(cli1, fnum1, buf, 130, 4) != 4) {
buf 2003 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 130, 4) != 4) {
buf 2016 source3/torture/torture.c if (cli_read(cli1, fnum1, buf, 130, 4) != 4) {
buf 2022 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 130, 4) != 4) {
buf 2043 source3/torture/torture.c if (cli_read(cli1, fnum1, buf, 130, 4) != 4) {
buf 2050 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 130, 4) != 4) {
buf 2059 source3/torture/torture.c if (cli_read(cli1, fnum1, buf, 130, 4) != 4) {
buf 2070 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 130, 4) != 4) {
buf 2102 source3/torture/torture.c char buf[1024];
buf 2129 source3/torture/torture.c if (cli_read(cli2, fnum1, buf, 0, 13) == 13) {
buf 2131 source3/torture/torture.c buf);
buf 2156 source3/torture/torture.c char buf[1024];
buf 2191 source3/torture/torture.c if (cli_read(cli, fnum1, buf, 0, 13) == 13) {
buf 2193 source3/torture/torture.c buf);
buf 2213 source3/torture/torture.c if (cli_read(cli, fnum1, buf, 0, 13) == 13) {
buf 2215 source3/torture/torture.c buf);
buf 2340 source3/torture/torture.c *buf = (char)sys_random();
buf 2341 source3/torture/torture.c buf++;
buf 2670 source3/torture/torture.c char *buf = NULL;
buf 2674 source3/torture/torture.c if (!cli_qfileinfo_test(pcli, fnum, level, &buf, &len)) {
buf 2679 source3/torture/torture.c dump_data(0, (uint8 *)buf, len);
buf 2682 source3/torture/torture.c SAFE_FREE(buf);
buf 2777 source3/torture/torture.c char buf[4];
buf 2846 source3/torture/torture.c if (cli_read(cli1, fnum1, buf, 0, 4) != 0) {
buf 2872 source3/torture/torture.c cli_read(cli1, fnum1, buf, 0, 4);
buf 2875 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 0, 4) != 4) {
buf 2919 source3/torture/torture.c char buf[4] = "abcd";
buf 2939 source3/torture/torture.c cli_write(cli, fnum, 0, buf, 0, 4);
buf 2951 source3/torture/torture.c cli_write(cli, fnum, 0, buf, 0, 4);
buf 3769 source3/torture/torture.c char buf[20];
buf 3856 source3/torture/torture.c memset(buf, '\0', 20);
buf 3858 source3/torture/torture.c if (cli_write(cli1, fnum1, 0, buf, 0, 20) != 20) {
buf 5146 source3/torture/torture.c memset(buf, 0, thistime);
buf 269 source3/torture/vfstest.c char *buf;
buf 277 source3/torture/vfstest.c while(next_token_talloc(mem_ctx, &p, &buf, " ")) {
buf 279 source3/torture/vfstest.c argv[argc] = SMB_STRDUP(buf);
buf 332 source3/torture/vfstest.c char *buf;
buf 341 source3/torture/vfstest.c if (!next_token_talloc(mem_ctx, &p, &buf, " ")) {
buf 347 source3/torture/vfstest.c len = strlen(buf);
buf 348 source3/torture/vfstest.c if (buf[len-1] == '\n')
buf 349 source3/torture/vfstest.c buf[len-1] = '\0';
buf 357 source3/torture/vfstest.c if (strequal(buf, temp_set->name)) {
buf 368 source3/torture/vfstest.c if (!found && buf[0]) {
buf 369 source3/torture/vfstest.c printf("command not found: %s\n", buf);
buf 731 source3/utils/ntlm_auth.c if (strlen(buf) < 2) {
buf 732 source3/utils/ntlm_auth.c DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
buf 737 source3/utils/ntlm_auth.c if (strlen(buf) > 3) {
buf 738 source3/utils/ntlm_auth.c if(strncmp(buf, "SF ", 3) == 0){
buf 742 source3/utils/ntlm_auth.c buf+3);
buf 746 source3/utils/ntlm_auth.c request = base64_decode_data_blob(buf + 3);
buf 751 source3/utils/ntlm_auth.c if ((strncmp(buf, "PW ", 3) == 0)) {
buf 770 source3/utils/ntlm_auth.c if (strncmp(buf, "YR", 2) == 0) {
buf 774 source3/utils/ntlm_auth.c } else if (strncmp(buf, "KK", 2) == 0) {
buf 776 source3/utils/ntlm_auth.c } else if (strncmp(buf, "GF", 2) == 0) {
buf 787 source3/utils/ntlm_auth.c } else if (strncmp(buf, "GK", 2) == 0) {
buf 801 source3/utils/ntlm_auth.c DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
buf 867 source3/utils/ntlm_auth.c if (strlen(buf) < 2) {
buf 868 source3/utils/ntlm_auth.c DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
buf 873 source3/utils/ntlm_auth.c if (strlen(buf) > 3) {
buf 874 source3/utils/ntlm_auth.c if(strncmp(buf, "SF ", 3) == 0) {
buf 878 source3/utils/ntlm_auth.c buf+3);
buf 882 source3/utils/ntlm_auth.c request = base64_decode_data_blob(buf + 3);
buf 887 source3/utils/ntlm_auth.c if (strncmp(buf, "PW ", 3) == 0) {
buf 926 source3/utils/ntlm_auth.c if (strncmp(buf, "YR", 2) == 0) {
buf 930 source3/utils/ntlm_auth.c } else if (strncmp(buf, "TT", 2) == 0) {
buf 932 source3/utils/ntlm_auth.c } else if (strncmp(buf, "GF", 2) == 0) {
buf 944 source3/utils/ntlm_auth.c } else if (strncmp(buf, "GK", 2) == 0 ) {
buf 960 source3/utils/ntlm_auth.c DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
buf 1036 source3/utils/ntlm_auth.c user=buf;
buf 1038 source3/utils/ntlm_auth.c pass=(char *)memchr(buf,' ',length);
buf 1133 source3/utils/ntlm_auth.c if (strlen(buf) < 2) {
buf 1134 source3/utils/ntlm_auth.c DEBUG(1, ("SPENGO query [%s] invalid", buf));
buf 1139 source3/utils/ntlm_auth.c if (strncmp(buf, "YR", 2) == 0) {
buf 1142 source3/utils/ntlm_auth.c } else if (strncmp(buf, "KK", 2) == 0) {
buf 1145 source3/utils/ntlm_auth.c DEBUG(1, ("SPENGO query [%s] invalid", buf));
buf 1150 source3/utils/ntlm_auth.c if ( (strlen(buf) == 2)) {
buf 1161 source3/utils/ntlm_auth.c if (strlen(buf) <= 3) {
buf 1162 source3/utils/ntlm_auth.c DEBUG(1, ("GSS-SPNEGO query [%s] invalid\n", buf));
buf 1167 source3/utils/ntlm_auth.c token = base64_decode_data_blob(buf + 3);
buf 1172 source3/utils/ntlm_auth.c DEBUG(1, ("GSS-SPNEGO query [%s] invalid", buf));
buf 1611 source3/utils/ntlm_auth.c if (strlen(buf) <= 3) {
buf 1612 source3/utils/ntlm_auth.c DEBUG(1, ("SPNEGO query [%s] too short\n", buf));
buf 1617 source3/utils/ntlm_auth.c request = base64_decode_data_blob(buf+3);
buf 1619 source3/utils/ntlm_auth.c if (strncmp(buf, "PW ", 3) == 0) {
buf 1637 source3/utils/ntlm_auth.c if ( (strncmp(buf, "TT ", 3) != 0) &&
buf 1638 source3/utils/ntlm_auth.c (strncmp(buf, "AF ", 3) != 0) &&
buf 1639 source3/utils/ntlm_auth.c (strncmp(buf, "NA ", 3) != 0) ) {
buf 1640 source3/utils/ntlm_auth.c DEBUG(1, ("SPNEGO request [%s] invalid\n", buf));
buf 1653 source3/utils/ntlm_auth.c DEBUG(1, ("Could not read SPNEGO data for [%s]\n", buf));
buf 1730 source3/utils/ntlm_auth.c DEBUG(1, ("Got an SPNEGO token I could not handle [%s]!\n", buf));
buf 1753 source3/utils/ntlm_auth.c if (strequal(buf, ".")) {
buf 1862 source3/utils/ntlm_auth.c request = buf;
buf 1946 source3/utils/ntlm_auth.c if (strequal(buf, ".")) {
buf 2062 source3/utils/ntlm_auth.c request = buf;
buf 2146 source3/utils/ntlm_auth.c char *buf;
buf 2151 source3/utils/ntlm_auth.c buf = talloc_strdup(state->mem_ctx, "");
buf 2152 source3/utils/ntlm_auth.c if (!buf) {
buf 2173 source3/utils/ntlm_auth.c buf = talloc_strdup_append_buffer(buf, tmp);
buf 2179 source3/utils/ntlm_auth.c talloc_free(buf);
buf 2183 source3/utils/ntlm_auth.c c = strchr(buf, '\n');
buf 2187 source3/utils/ntlm_auth.c length = c-buf;
buf 2189 source3/utils/ntlm_auth.c DEBUG(10, ("Got '%s' from squid (length: %d).\n",buf,length));
buf 2191 source3/utils/ntlm_auth.c if (buf[0] == '\0') {
buf 2194 source3/utils/ntlm_auth.c talloc_free(buf);
buf 2198 source3/utils/ntlm_auth.c fn(state, buf, length);
buf 2199 source3/utils/ntlm_auth.c talloc_free(buf);
buf 59 source3/utils/smbcontrol.c (uint8 *)buf, len));
buf 61 source3/utils/smbcontrol.c ret = message_send_all(msg_ctx, msg_type, buf, len, &n_sent);
buf 178 source3/utils/smbcontrol.c fgets(buf, bufsz, fp);
buf 181 source3/utils/smbcontrol.c return buf;
buf 922 source3/utils/smbcontrol.c uint8 buf[4];
buf 926 source3/utils/smbcontrol.c SIVAL(buf, 0, time(NULL));
buf 927 source3/utils/smbcontrol.c d.dptr = buf;
buf 1006 source3/utils/smbcontrol.c uint8_t *buf = NULL;
buf 1026 source3/utils/smbcontrol.c buf = SMB_MALLOC_ARRAY(uint8_t, buf_len);
buf 1027 source3/utils/smbcontrol.c if (!buf) {
buf 1031 source3/utils/smbcontrol.c memcpy(buf, &myid, sizeof(myid));
buf 1032 source3/utils/smbcontrol.c memcpy(&buf[sizeof(myid)], domain, domain_len);
buf 1035 source3/utils/smbcontrol.c buf, buf_len))
buf 1037 source3/utils/smbcontrol.c SAFE_FREE(buf);
buf 1045 source3/utils/smbcontrol.c SAFE_FREE(buf);
buf 54 source3/utils/smbfilter.c int msg_type = CVAL(buf,0);
buf 55 source3/utils/smbfilter.c int type = CVAL(buf,smb_com);
buf 64 source3/utils/smbfilter.c x = CVAL(buf, smb_vwv1);
buf 66 source3/utils/smbfilter.c SCVAL(buf, smb_vwv1, x);
buf 69 source3/utils/smbfilter.c x = IVAL(buf,smb_vwv9+1);
buf 71 source3/utils/smbfilter.c SIVAL(buf, smb_vwv9+1, x);
buf 79 source3/utils/smbfilter.c int msg_type = CVAL(buf,0);
buf 80 source3/utils/smbfilter.c int type = CVAL(buf,smb_com);
buf 89 source3/utils/smbfilter.c name_extract(buf,4,name1);
buf 90 source3/utils/smbfilter.c name_extract(buf,4 + name_len(buf + 4),name2);
buf 99 source3/utils/smbfilter.c memcpy(buf+4, mangled,
buf 112 source3/utils/smbfilter.c x = IVAL(buf,smb_vwv11);
buf 114 source3/utils/smbfilter.c d_printf("pwlen=%d/%d\n", SVAL(buf, smb_vwv7), SVAL(buf, smb_vwv8));
buf 116 source3/utils/smbfilter.c save_file("sessionsetup.dat", smb_buf(buf), SVAL(buf, smb_vwv7));
buf 118 source3/utils/smbfilter.c SIVAL(buf, smb_vwv11, x);
buf 355 source3/utils/smbpasswd.c static fstring buf;
buf 377 source3/utils/smbpasswd.c slprintf(buf, sizeof(buf)-1, "%s$", user_name);
buf 378 source3/utils/smbpasswd.c fstrcpy(user_name, buf);
buf 380 source3/utils/smbpasswd.c static fstring buf;
buf 394 source3/utils/smbpasswd.c slprintf(buf, sizeof(buf) - 1, "%s$", user_name);
buf 395 source3/utils/smbpasswd.c fstrcpy(user_name, buf);
buf 434 source3/utils/status_profile.c char buf[40];
buf 440 source3/utils/status_profile.c buf[0] = '\0';
buf 452 source3/utils/status_profile.c if (buf[0] == '\0') {
buf 453 source3/utils/status_profile.c snprintf(buf, sizeof(buf),
buf 459 source3/utils/status_profile.c buf, name, step / delta_sec,
buf 461 source3/utils/status_profile.c buf[0] = '\0';
buf 96 source3/web/cgi.c char *p=buf;
buf 432 source3/web/cgi.c char buf[1024];
buf 453 source3/web/cgi.c snprintf(buf, sizeof(buf), "%s/index.html", file);
buf 454 source3/web/cgi.c if (!file_exist_stat(buf, &st) || !S_ISREG(st.st_mode))
buf 462 source3/web/cgi.c snprintf(buf, sizeof(buf), "%s", file);
buf 470 source3/web/cgi.c fd = web_open(buf,O_RDONLY,0);
buf 476 source3/web/cgi.c if ((p=strrchr_m(buf, '.'))) {
buf 500 source3/web/cgi.c while ((l=read(fd,buf,sizeof(buf)))>0) {
buf 501 source3/web/cgi.c if (fwrite(buf, 1, l, stdout) != l) {
buf 105 source3/web/statuspage.c char *buf;
buf 106 source3/web/statuspage.c buf = talloc_strdup(ctx, time_to_asc(t));
buf 107 source3/web/statuspage.c if (!buf) {
buf 110 source3/web/statuspage.c buf = talloc_all_string_sub(ctx,
buf 111 source3/web/statuspage.c buf,
buf 114 source3/web/statuspage.c if (!buf) {
buf 117 source3/web/statuspage.c return buf;
buf 188 source3/web/statuspage.c char buf[30];
buf 189 source3/web/statuspage.c slprintf(buf,sizeof(buf)-1,"kill_%s", procid_str_static(&crec->pid));
buf 190 source3/web/statuspage.c if (cgi_variable(buf)) {
buf 147 source3/web/swat.c char buf[1024];
buf 158 source3/web/swat.c while ((ret = read(fd, buf, sizeof(buf))) > 0) {
buf 159 source3/web/swat.c if (write(1, buf, ret) == -1) {
buf 435 source3/winbindd/winbindd_cache.c uint8 buf[8];
buf 444 source3/winbindd/winbindd_cache.c SIVAL(buf, 0, domain->sequence_number);
buf 445 source3/winbindd/winbindd_cache.c SIVAL(buf, 4, domain->last_seq_check);
buf 446 source3/winbindd/winbindd_cache.c data.dptr = buf;
buf 3951 source3/winbindd/winbindd_cache.c *buf = buffer;
buf 3971 source3/winbindd/winbindd_cache.c len += tdb_unpack( buf+len, buflen-len, "d", &num_domains);
buf 3984 source3/winbindd/winbindd_cache.c len += tdb_unpack( buf+len, buflen-len, "fffddd",
buf 1075 source3/winbindd/winbindd_dual.c char *buf = NULL;
buf 1077 source3/winbindd/winbindd_dual.c if ((buf = talloc_asprintf(mem_ctx, "global:%s ",
buf 1084 source3/winbindd/winbindd_dual.c if ((buf = talloc_asprintf_append_buffer(buf, "%s:%s ",
buf 1092 source3/winbindd/winbindd_dual.c buf = talloc_asprintf_append_buffer(buf, "\n");
buf 1094 source3/winbindd/winbindd_dual.c DEBUG(5,("collect_onlinestatus: %s", buf));
buf 1096 source3/winbindd/winbindd_dual.c return buf;
buf 246 source3/winbindd/winbindd_group.c char *buf = NULL;
buf 348 source3/winbindd/winbindd_group.c if (!(buf = (char *)SMB_MALLOC(buf_len))) {
buf 352 source3/winbindd/winbindd_group.c memcpy(buf, name, buf_len);
buf 362 source3/winbindd/winbindd_group.c *gr_mem = buf;
buf 368 source3/winbindd/winbindd_group.c (unsigned int)buf_len, *num_gr_mem ? buf : "NULL"));
buf 533 source3/winbindd/winbindd_group.c char **names = NULL, *buf = NULL;
buf 685 source3/winbindd/winbindd_group.c if (!buf) {
buf 692 source3/winbindd/winbindd_group.c parse_add_domuser(&buf[buf_ndx], names[i], &len);
buf 694 source3/winbindd/winbindd_group.c buf[buf_ndx] = ',';
buf 701 source3/winbindd/winbindd_group.c if (!buf && buf_len != 0) {
buf 702 source3/winbindd/winbindd_group.c if (!(buf = (char *)SMB_MALLOC(buf_len))) {
buf 707 source3/winbindd/winbindd_group.c memset(buf, 0, buf_len);
buf 713 source3/winbindd/winbindd_group.c if (buf && buf_ndx > 0) {
buf 714 source3/winbindd/winbindd_group.c buf[buf_ndx - 1] = '\0';
buf 717 source3/winbindd/winbindd_group.c *gr_mem = buf;
buf 722 source3/winbindd/winbindd_group.c (unsigned int)buf_len, *num_gr_mem ? buf : "NULL"));
buf 1197 source3/winbindd/winbindd_util.c safe_strcpy((char *)buf, user, *len);
buf 228 source4/auth/gensec/socket.c return socket_recv(gensec_socket->socket, buf, wantlen, nread);
buf 258 source4/auth/gensec/socket.c memcpy(buf, gensec_socket->read_buffer.data, *nread);
buf 62 source4/client/cifsddio.c ret = read(IO_HANDLE_TO_FD(handle), buf, wanted);
buf 81 source4/client/cifsddio.c ret = write(IO_HANDLE_TO_FD(handle), buf, wanted);
buf 173 source4/client/cifsddio.c r.readx.out.data = buf;
buf 208 source4/client/cifsddio.c w.writex.in.data = buf;
buf 414 source4/client/cifsddio.c if (!h->io_read(h, buf + (*buf_size), block_size, &read_size)) {
buf 460 source4/client/cifsddio.c if (!h->io_write(h, buf, *buf_size, &write_size)) {
buf 478 source4/client/cifsddio.c if (!h->io_write(h, buf + total_size, block_size, &write_size)) {
buf 515 source4/client/cifsddio.c memmove(buf, buf + total_size, remain);
buf 1087 source4/client/client.c uint8_t *buf = NULL;
buf 1140 source4/client/client.c buf = (uint8_t *)malloc(maxwrite);
buf 1141 source4/client/client.c if (!buf) {
buf 1149 source4/client/client.c if ((n = readfile(buf,n,f,ctx->translation)) < 1) {
buf 1158 source4/client/client.c ret = smbcli_write(ctx->cli->tree, fnum, 0, buf, nread + start, n);
buf 1172 source4/client/client.c SAFE_FREE(buf);
buf 1181 source4/client/client.c SAFE_FREE(buf);
buf 1324 source4/client/client.c static char *buf;
buf 1326 source4/client/client.c buf = talloc_strndup(NULL, dname, len);
buf 1327 source4/client/client.c dname = buf;
buf 2885 source4/client/client.c const char *buf, *sp;
buf 2889 source4/client/client.c buf = smb_readline_get_line_buffer();
buf 2890 source4/client/client.c if (buf == NULL)
buf 2893 source4/client/client.c sp = strchr(buf, ' ');
buf 2898 source4/client/client.c if ((strncmp(commands[i].name, text, sp - buf) == 0) && (commands[i].name[sp - buf] == 0))
buf 2906 source4/client/client.c if (sp == (buf + start))
buf 614 source4/client/smbmount.c fstring buf;
buf 628 source4/client/smbmount.c if (!fgets (buf, sizeof(buf), auth))
buf 630 source4/client/smbmount.c len = strlen(buf);
buf 632 source4/client/smbmount.c if ((len) && (buf[len-1]=='\n'))
buf 634 source4/client/smbmount.c buf[len-1] = '\0';
buf 642 source4/client/smbmount.c param = buf;
buf 643 source4/client/smbmount.c if (!(ptr = strchr (buf, '=')))
buf 661 source4/client/smbmount.c memset(buf, 0, sizeof(buf));
buf 201 source4/heimdal/kdc/524.c free(buf);
buf 210 source4/heimdal/kdc/524.c buf,
buf 250 source4/heimdal/kdc/524.c unsigned char buf[MAX_KTXT_LEN + 4 * 4];
buf 260 source4/heimdal/kdc/524.c buf + sizeof(buf) - 1, sizeof(buf),
buf 273 source4/heimdal/kdc/524.c ret = encrypt_v4_ticket(context, config, buf + sizeof(buf) - len, len,
buf 306 source4/heimdal/kdc/524.c unsigned char buf[MAX_KTXT_LEN + 4 * 4];
buf 378 source4/heimdal/kdc/524.c memset(buf, 0, sizeof(buf));
buf 379 source4/heimdal/kdc/524.c sp = krb5_storage_from_mem(buf, sizeof(buf));
buf 216 source4/heimdal/kdc/digest.c krb5_data buf;
buf 231 source4/heimdal/kdc/digest.c krb5_data_zero(&buf);
buf 353 source4/heimdal/kdc/digest.c &req->innerReq, &buf);
buf 359 source4/heimdal/kdc/digest.c ret = decode_DigestReqInner(buf.data, buf.length, &ireq, NULL);
buf 360 source4/heimdal/kdc/digest.c krb5_data_free(&buf);
buf 455 source4/heimdal/kdc/digest.c ret = krb5_storage_to_data(sp, &buf);
buf 469 source4/heimdal/kdc/digest.c buf.data,
buf 470 source4/heimdal/kdc/digest.c buf.length,
buf 474 source4/heimdal/kdc/digest.c krb5_data_free(&buf);
buf 478 source4/heimdal/kdc/digest.c ASN1_MALLOC_ENCODE(Checksum, buf.data, buf.length, &res, &size, ret);
buf 485 source4/heimdal/kdc/digest.c if (size != buf.length)
buf 488 source4/heimdal/kdc/digest.c hex_encode(buf.data, buf.length, &r.u.initReply.opaque);
buf 489 source4/heimdal/kdc/digest.c free(buf.data);
buf 524 source4/heimdal/kdc/digest.c buf.length = strlen(ireq.u.digestRequest.opaque);
buf 525 source4/heimdal/kdc/digest.c buf.data = malloc(buf.length);
buf 526 source4/heimdal/kdc/digest.c if (buf.data == NULL) {
buf 532 source4/heimdal/kdc/digest.c ret = hex_decode(ireq.u.digestRequest.opaque, buf.data, buf.length);
buf 538 source4/heimdal/kdc/digest.c buf.length = ret;
buf 540 source4/heimdal/kdc/digest.c ret = decode_Checksum(buf.data, buf.length, &res, NULL);
buf 541 source4/heimdal/kdc/digest.c free(buf.data);
buf 547 source4/heimdal/kdc/digest.c ret = krb5_storage_to_data(sp, &buf);
buf 584 source4/heimdal/kdc/digest.c buf.data, buf.length, &res);
buf 1083 source4/heimdal/kdc/digest.c ret = krb5_storage_to_data(sp, &buf);
buf 1094 source4/heimdal/kdc/digest.c buf.data, buf.length, &r.u.ntlmInitReply.opaque);
buf 1095 source4/heimdal/kdc/digest.c krb5_data_free(&buf);
buf 1141 source4/heimdal/kdc/digest.c ireq.u.ntlmRequest.opaque.length, &buf);
buf 1150 source4/heimdal/kdc/digest.c sp = krb5_storage_from_data(&buf);
buf 1168 source4/heimdal/kdc/digest.c krb5_data_free(&buf);
buf 1386 source4/heimdal/kdc/digest.c ASN1_MALLOC_ENCODE(DigestRepInner, buf.data, buf.length, &r, &size, ret);
buf 1391 source4/heimdal/kdc/digest.c if (size != buf.length)
buf 1414 source4/heimdal/kdc/digest.c buf.data, buf.length, 0,
buf 1451 source4/heimdal/kdc/digest.c krb5_data_free(&buf);
buf 889 source4/heimdal/kdc/kaserver.c sp = krb5_storage_from_mem (buf, len);
buf 894 source4/heimdal/kdc/kaserver.c buf += RX_HEADER_SIZE;
buf 54 source4/heimdal/kdc/kerberos4.c return len > 0 && *buf == 4;
buf 159 source4/heimdal/kdc/kerberos4.c sp = krb5_storage_from_mem(buf, len);
buf 409 source4/heimdal/kdc/kerberos4.c auth.data = buf;
buf 726 source4/heimdal/kdc/kerberos4.c memset((unsigned char*)buf - *size + 1, 0, *size);
buf 727 source4/heimdal/kdc/kerberos4.c memcpy((unsigned char*)buf - *size + 1, data.data, data.length);
buf 267 source4/heimdal/kdc/kerberos5.c unsigned char *buf;
buf 273 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(EncTicketPart, buf, buf_size, et, &len, ret);
buf 280 source4/heimdal/kdc/kerberos5.c free(buf);
buf 288 source4/heimdal/kdc/kerberos5.c free(buf);
buf 297 source4/heimdal/kdc/kerberos5.c buf,
buf 301 source4/heimdal/kdc/kerberos5.c free(buf);
buf 310 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(EncASRepPart, buf, buf_size, ek, &len, ret);
buf 312 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(EncTGSRepPart, buf, buf_size, ek, &len, ret);
buf 319 source4/heimdal/kdc/kerberos5.c free(buf);
buf 326 source4/heimdal/kdc/kerberos5.c free(buf);
buf 335 source4/heimdal/kdc/kerberos5.c buf,
buf 339 source4/heimdal/kdc/kerberos5.c free(buf);
buf 340 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(AS_REP, buf, buf_size, rep, &len, ret);
buf 345 source4/heimdal/kdc/kerberos5.c buf,
buf 349 source4/heimdal/kdc/kerberos5.c free(buf);
buf 350 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(TGS_REP, buf, buf_size, rep, &len, ret);
buf 359 source4/heimdal/kdc/kerberos5.c free(buf);
buf 364 source4/heimdal/kdc/kerberos5.c reply->data = buf;
buf 471 source4/heimdal/kdc/kerberos5.c unsigned char *buf;
buf 532 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(ETYPE_INFO, buf, len, &pa, &len, ret);
buf 538 source4/heimdal/kdc/kerberos5.c free(buf);
buf 543 source4/heimdal/kdc/kerberos5.c md->val[md->len - 1].padata_value.data = buf;
buf 633 source4/heimdal/kdc/kerberos5.c unsigned char *buf;
buf 688 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(ETYPE_INFO2, buf, len, &pa, &len, ret);
buf 694 source4/heimdal/kdc/kerberos5.c free(buf);
buf 699 source4/heimdal/kdc/kerberos5.c md->val[md->len - 1].padata_value.data = buf;
buf 1305 source4/heimdal/kdc/kerberos5.c unsigned char *buf;
buf 1350 source4/heimdal/kdc/kerberos5.c ASN1_MALLOC_ENCODE(METHOD_DATA, buf, len, &method_data, &len, ret);
buf 1353 source4/heimdal/kdc/kerberos5.c e_data.data = buf;
buf 942 source4/heimdal/kdc/krb5tgs.c unsigned char *buf;
buf 970 source4/heimdal/kdc/krb5tgs.c ASN1_MALLOC_ENCODE(KDC_REQ_BODY, buf, buf_size, b, &len, ret);
buf 977 source4/heimdal/kdc/krb5tgs.c free(buf);
buf 985 source4/heimdal/kdc/krb5tgs.c free(buf);
buf 993 source4/heimdal/kdc/krb5tgs.c buf,
buf 996 source4/heimdal/kdc/krb5tgs.c free(buf);
buf 104 source4/heimdal/kdc/pkinit.c u_char *buf = NULL;
buf 119 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(KDC_REQ_BODY, buf, buf_size, &req->req_body, &len, ret);
buf 131 source4/heimdal/kdc/pkinit.c buf,
buf 134 source4/heimdal/kdc/pkinit.c free(buf);
buf 681 source4/heimdal/kdc/pkinit.c krb5_data buf, signed_data;
buf 685 source4/heimdal/kdc/pkinit.c krb5_data_zero(&buf);
buf 727 source4/heimdal/kdc/pkinit.c buf.data, buf.length,
buf 760 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(ReplyKeyPack, buf.data, buf.length, &kp, &size,ret);
buf 768 source4/heimdal/kdc/pkinit.c if (buf.length != size)
buf 793 source4/heimdal/kdc/pkinit.c buf.data,
buf 794 source4/heimdal/kdc/pkinit.c buf.length,
buf 804 source4/heimdal/kdc/pkinit.c krb5_data_free(&buf);
buf 811 source4/heimdal/kdc/pkinit.c &buf);
buf 815 source4/heimdal/kdc/pkinit.c signed_data = buf;
buf 823 source4/heimdal/kdc/pkinit.c evAlg, &buf);
buf 828 source4/heimdal/kdc/pkinit.c &buf,
buf 832 source4/heimdal/kdc/pkinit.c krb5_data_free(&buf);
buf 850 source4/heimdal/kdc/pkinit.c krb5_data signed_data, buf;
buf 858 source4/heimdal/kdc/pkinit.c krb5_data_zero(&buf);
buf 867 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(DHPublicKey, buf.data, buf.length, &i, &size, ret);
buf 873 source4/heimdal/kdc/pkinit.c if (buf.length != size)
buf 876 source4/heimdal/kdc/pkinit.c dh_info.subjectPublicKey.length = buf.length * 8;
buf 877 source4/heimdal/kdc/pkinit.c dh_info.subjectPublicKey.data = buf.data;
buf 881 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(KDCDHKeyInfo, buf.data, buf.length, &dh_info, &size,
buf 888 source4/heimdal/kdc/pkinit.c if (buf.length != size)
buf 918 source4/heimdal/kdc/pkinit.c buf.data,
buf 919 source4/heimdal/kdc/pkinit.c buf.length,
buf 944 source4/heimdal/kdc/pkinit.c krb5_data_free(&buf);
buf 966 source4/heimdal/kdc/pkinit.c void *buf;
buf 1076 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(PA_PK_AS_REP, buf, len, &rep, &size, ret);
buf 1133 source4/heimdal/kdc/pkinit.c ASN1_MALLOC_ENCODE(PA_PK_AS_REP_Win2k, buf, len, &rep, &size, ret);
buf 1147 source4/heimdal/kdc/pkinit.c ret = krb5_padata_add(context, md, pa_type, buf, len);
buf 1150 source4/heimdal/kdc/pkinit.c free(buf);
buf 1530 source4/heimdal/kdc/pkinit.c char buf[1024];
buf 1538 source4/heimdal/kdc/pkinit.c while (fgets(buf, sizeof(buf), f) != NULL) {
buf 1541 source4/heimdal/kdc/pkinit.c buf[strcspn(buf, "\n")] = '\0';
buf 1544 source4/heimdal/kdc/pkinit.c p = buf + strspn(buf, " \t");
buf 1553 source4/heimdal/kdc/pkinit.c lineno, buf);
buf 1561 source4/heimdal/kdc/pkinit.c lineno, buf);
buf 75 source4/heimdal/kdc/process.c if(decode_AS_REQ(buf, len, &req, &i) == 0){
buf 78 source4/heimdal/kdc/process.c req_buffer.data = buf;
buf 85 source4/heimdal/kdc/process.c }else if(decode_TGS_REQ(buf, len, &req, &i) == 0){
buf 89 source4/heimdal/kdc/process.c }else if(decode_Ticket(buf, len, &ticket, &i) == 0){
buf 93 source4/heimdal/kdc/process.c }else if(decode_DigestREQ(buf, len, &digestreq, &i) == 0){
buf 97 source4/heimdal/kdc/process.c } else if (_kdc_try_kx509_request(buf, len, &kx509req, &i) == 0) {
buf 101 source4/heimdal/kdc/process.c } else if(_kdc_maybe_version4(buf, len)){
buf 103 source4/heimdal/kdc/process.c ret = _kdc_do_version4(context, config, buf, len, reply, from,
buf 107 source4/heimdal/kdc/process.c ret = _kdc_do_kaserver(context, config, buf, len, reply, from,
buf 136 source4/heimdal/kdc/process.c if(decode_AS_REQ(buf, len, &req, &i) == 0){
buf 139 source4/heimdal/kdc/process.c req_buffer.data = buf;
buf 146 source4/heimdal/kdc/process.c }else if(decode_TGS_REQ(buf, len, &req, &i) == 0){
buf 174 source4/heimdal/kdc/process.c d.data = rk_UNCONST(buf);
buf 368 source4/heimdal/kuser/kinit.c data.length = buf->length;
buf 369 source4/heimdal/kuser/kinit.c data.data = buf->data;
buf 48 source4/heimdal/lib/asn1/asn1_gen.c char buf[2048];
buf 73 source4/heimdal/lib/asn1/asn1_gen.c while (fgets(buf, sizeof(buf), f) != NULL) {
buf 81 source4/heimdal/lib/asn1/asn1_gen.c buf[strcspn(buf, "\r\n")] = '\0';
buf 82 source4/heimdal/lib/asn1/asn1_gen.c if (buf[0] == '#' || buf[0] == '\0')
buf 85 source4/heimdal/lib/asn1/asn1_gen.c ptr = buf;
buf 257 source4/heimdal/lib/asn1/der_put.c unsigned char *buf = data->data;
buf 276 source4/heimdal/lib/asn1/der_put.c *p = buf[i] ^ 0xff;
buf 290 source4/heimdal/lib/asn1/der_put.c memcpy(p + 1, buf, data->length);
buf 932 source4/heimdal/lib/asn1/lex.c buf[n] = (char) c; \
buf 934 source4/heimdal/lib/asn1/lex.c buf[n++] = (char) c; \
buf 942 source4/heimdal/lib/asn1/lex.c while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
buf 1589 source4/heimdal/lib/asn1/lex.c char buf[1024];
buf 1590 source4/heimdal/lib/asn1/lex.c char *p = buf;
buf 1616 source4/heimdal/lib/asn1/lex.c while(p > buf && isspace((unsigned char)p[-1]))
buf 1626 source4/heimdal/lib/asn1/lex.c fprintf(stderr, "string -- %s\n", buf);
buf 1627 source4/heimdal/lib/asn1/lex.c yylval.name = estrdup(buf);
buf 2448 source4/heimdal/lib/asn1/lex.c char *buf;
buf 2454 source4/heimdal/lib/asn1/lex.c buf = (char *) yyalloc(n );
buf 2455 source4/heimdal/lib/asn1/lex.c if ( ! buf )
buf 2459 source4/heimdal/lib/asn1/lex.c buf[i] = yybytes[i];
buf 2461 source4/heimdal/lib/asn1/lex.c buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
buf 2463 source4/heimdal/lib/asn1/lex.c b = yy_scan_buffer(buf,n );
buf 136 source4/heimdal/lib/com_err/com_err.c static char buf[6];
buf 146 source4/heimdal/lib/com_err/com_err.c p = buf;
buf 157 source4/heimdal/lib/com_err/com_err.c return(buf);
buf 613 source4/heimdal/lib/com_err/lex.c buf[n] = (char) c; \
buf 615 source4/heimdal/lib/com_err/lex.c buf[n++] = (char) c; \
buf 623 source4/heimdal/lib/com_err/lex.c while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
buf 1624 source4/heimdal/lib/com_err/lex.c char *buf;
buf 1630 source4/heimdal/lib/com_err/lex.c buf = (char *) yyalloc(n );
buf 1631 source4/heimdal/lib/com_err/lex.c if ( ! buf )
buf 1635 source4/heimdal/lib/com_err/lex.c buf[i] = yybytes[i];
buf 1637 source4/heimdal/lib/com_err/lex.c buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
buf 1639 source4/heimdal/lib/com_err/lex.c b = yy_scan_buffer(buf,n );
buf 203 source4/heimdal/lib/gssapi/krb5/cfx.c u_char *tmp, buf[256];
buf 216 source4/heimdal/lib/gssapi/krb5/cfx.c if (rrc <= sizeof(buf)) {
buf 217 source4/heimdal/lib/gssapi/krb5/cfx.c tmp = buf;
buf 234 source4/heimdal/lib/gssapi/krb5/cfx.c if (rrc > sizeof(buf))
buf 406 source4/heimdal/lib/gssapi/krb5/cfx.c char *buf;
buf 409 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(input_message_buffer->length + sizeof(*token));
buf 410 source4/heimdal/lib/gssapi/krb5/cfx.c if (buf == NULL) {
buf 416 source4/heimdal/lib/gssapi/krb5/cfx.c memcpy(buf, input_message_buffer->value, input_message_buffer->length);
buf 417 source4/heimdal/lib/gssapi/krb5/cfx.c memcpy(buf + input_message_buffer->length, token, sizeof(*token));
buf 420 source4/heimdal/lib/gssapi/krb5/cfx.c usage, 0, buf,
buf 428 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 432 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 703 source4/heimdal/lib/gssapi/krb5/cfx.c u_char *buf;
buf 714 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(len);
buf 715 source4/heimdal/lib/gssapi/krb5/cfx.c if (buf == NULL) {
buf 721 source4/heimdal/lib/gssapi/krb5/cfx.c memcpy(buf, message_buffer->value, message_buffer->length);
buf 723 source4/heimdal/lib/gssapi/krb5/cfx.c token = (gss_cfx_mic_token)(buf + message_buffer->length);
buf 751 source4/heimdal/lib/gssapi/krb5/cfx.c usage, 0, buf, len, &cksum);
buf 755 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 766 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 776 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 796 source4/heimdal/lib/gssapi/krb5/cfx.c u_char *buf, *p;
buf 877 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(message_buffer->length + sizeof(*token));
buf 878 source4/heimdal/lib/gssapi/krb5/cfx.c if (buf == NULL) {
buf 883 source4/heimdal/lib/gssapi/krb5/cfx.c memcpy(buf, message_buffer->value, message_buffer->length);
buf 884 source4/heimdal/lib/gssapi/krb5/cfx.c memcpy(buf + message_buffer->length, token, sizeof(*token));
buf 888 source4/heimdal/lib/gssapi/krb5/cfx.c buf,
buf 894 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 898 source4/heimdal/lib/gssapi/krb5/cfx.c free(buf);
buf 48 source4/heimdal/lib/gssapi/krb5/display_name.c char *buf;
buf 54 source4/heimdal/lib/gssapi/krb5/display_name.c KRB5_PRINCIPAL_UNPARSE_DISPLAY, &buf);
buf 59 source4/heimdal/lib/gssapi/krb5/display_name.c len = strlen (buf);
buf 63 source4/heimdal/lib/gssapi/krb5/display_name.c free (buf);
buf 67 source4/heimdal/lib/gssapi/krb5/display_name.c memcpy (output_name_buffer->value, buf, len);
buf 69 source4/heimdal/lib/gssapi/krb5/display_name.c free (buf);
buf 152 source4/heimdal/lib/gssapi/krb5/display_status.c char *buf;
buf 167 source4/heimdal/lib/gssapi/krb5/display_status.c asprintf(&buf, "%s",
buf 170 source4/heimdal/lib/gssapi/krb5/display_status.c asprintf (&buf, "%s %s",
buf 176 source4/heimdal/lib/gssapi/krb5/display_status.c buf = strdup(buf2);
buf 179 source4/heimdal/lib/gssapi/krb5/display_status.c asprintf(&buf, "unknown mech error-code %u",
buf 187 source4/heimdal/lib/gssapi/krb5/display_status.c if (buf == NULL) {
buf 195 source4/heimdal/lib/gssapi/krb5/display_status.c status_string->length = strlen(buf);
buf 196 source4/heimdal/lib/gssapi/krb5/display_status.c status_string->value = buf;
buf 47 source4/heimdal/lib/gssapi/krb5/export_name.c char *buf, *name;
buf 69 source4/heimdal/lib/gssapi/krb5/export_name.c buf = exported_name->value;
buf 70 source4/heimdal/lib/gssapi/krb5/export_name.c memcpy(buf, "\x04\x01", 2);
buf 71 source4/heimdal/lib/gssapi/krb5/export_name.c buf += 2;
buf 72 source4/heimdal/lib/gssapi/krb5/export_name.c buf[0] = ((GSS_KRB5_MECHANISM->length + 2) >> 8) & 0xff;
buf 73 source4/heimdal/lib/gssapi/krb5/export_name.c buf[1] = (GSS_KRB5_MECHANISM->length + 2) & 0xff;
buf 74 source4/heimdal/lib/gssapi/krb5/export_name.c buf+= 2;
buf 75 source4/heimdal/lib/gssapi/krb5/export_name.c buf[0] = 0x06;
buf 76 source4/heimdal/lib/gssapi/krb5/export_name.c buf[1] = (GSS_KRB5_MECHANISM->length) & 0xFF;
buf 77 source4/heimdal/lib/gssapi/krb5/export_name.c buf+= 2;
buf 79 source4/heimdal/lib/gssapi/krb5/export_name.c memcpy(buf, GSS_KRB5_MECHANISM->elements, GSS_KRB5_MECHANISM->length);
buf 80 source4/heimdal/lib/gssapi/krb5/export_name.c buf += GSS_KRB5_MECHANISM->length;
buf 82 source4/heimdal/lib/gssapi/krb5/export_name.c buf[0] = (len >> 24) & 0xff;
buf 83 source4/heimdal/lib/gssapi/krb5/export_name.c buf[1] = (len >> 16) & 0xff;
buf 84 source4/heimdal/lib/gssapi/krb5/export_name.c buf[2] = (len >> 8) & 0xff;
buf 85 source4/heimdal/lib/gssapi/krb5/export_name.c buf[3] = (len) & 0xff;
buf 86 source4/heimdal/lib/gssapi/krb5/export_name.c buf += 4;
buf 88 source4/heimdal/lib/gssapi/krb5/export_name.c memcpy (buf, name, len);
buf 80 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c unsigned char buf[4];
buf 95 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c _gsskrb5_encode_om_uint32(tkt_flags, buf);
buf 96 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c value.length = sizeof(buf);
buf 97 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c value.value = buf;
buf 402 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c unsigned char buf[4];
buf 417 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c _gsskrb5_encode_om_uint32(authtime, buf);
buf 418 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c value.length = sizeof(buf);
buf 419 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c value.value = buf;
buf 164 source4/heimdal/lib/gssapi/mech/gss_display_status.c char *buf;
buf 167 source4/heimdal/lib/gssapi/mech/gss_display_status.c asprintf(&buf, "%s", supplementary_error(
buf 170 source4/heimdal/lib/gssapi/mech/gss_display_status.c asprintf (&buf, "%s %s",
buf 174 source4/heimdal/lib/gssapi/mech/gss_display_status.c if (buf == NULL)
buf 177 source4/heimdal/lib/gssapi/mech/gss_display_status.c status_string->length = strlen(buf);
buf 178 source4/heimdal/lib/gssapi/mech/gss_display_status.c status_string->value = buf;
buf 185 source4/heimdal/lib/gssapi/mech/gss_display_status.c char *buf;
buf 193 source4/heimdal/lib/gssapi/mech/gss_display_status.c asprintf (&buf, "unknown mech-code %lu for mech %.*s",
buf 199 source4/heimdal/lib/gssapi/mech/gss_display_status.c if (buf == NULL)
buf 202 source4/heimdal/lib/gssapi/mech/gss_display_status.c status_string->length = strlen(buf);
buf 203 source4/heimdal/lib/gssapi/mech/gss_display_status.c status_string->value = buf;
buf 40 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c gss_buffer_desc buf;
buf 45 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c &ctx->gc_ctx, &buf);
buf 52 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c interprocess_token->length = buf.length
buf 71 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c memcpy(p + 2 + m->gm_mech_oid.length, buf.value, buf.length);
buf 72 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c gss_release_buffer(minor_status, &buf);
buf 41 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c gss_buffer_desc buf;
buf 60 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c buf.length = len - 2 - mech_oid.length;
buf 61 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c buf.value = p + 2 + mech_oid.length;
buf 74 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c &buf, &ctx->gc_ctx);
buf 591 source4/heimdal/lib/gssapi/mech/gss_krb5.c unsigned char *buf = data_set->elements[0].value;
buf 592 source4/heimdal/lib/gssapi/mech/gss_krb5.c *authtime = (buf[3] <<24) | (buf[2] << 16) |
buf 593 source4/heimdal/lib/gssapi/mech/gss_krb5.c (buf[1] << 8) | (buf[0] << 0);
buf 201 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c char buf[256];
buf 236 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c while (fgets(buf, sizeof(buf), fp)) {
buf 237 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c if (*buf == '#')
buf 239 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c p = buf;
buf 471 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gss_buffer_desc buf;
buf 473 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c buf.length = 0;
buf 474 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c buf.value = NULL;
buf 508 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (buf.length != buf_len)
buf 517 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (buf.value)
buf 518 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c free(buf.value);
buf 523 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (buf.value)
buf 524 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c free(buf.value);
buf 200 source4/heimdal/lib/gssapi/spnego/init_sec_context.c u_char *buf;
buf 308 source4/heimdal/lib/gssapi/spnego/init_sec_context.c buf = malloc(buf_size);
buf 309 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (buf == NULL) {
buf 316 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ret = encode_NegTokenInit(buf + buf_size - 1,
buf 325 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ret = der_put_length_and_tag(buf + buf_size - buf_len - 1,
buf 337 source4/heimdal/lib/gssapi/spnego/init_sec_context.c free(buf);
buf 343 source4/heimdal/lib/gssapi/spnego/init_sec_context.c data.value = buf;
buf 356 source4/heimdal/lib/gssapi/spnego/init_sec_context.c free (buf);
buf 874 source4/heimdal/lib/hcrypto/des.c char buf[512];
buf 877 source4/heimdal/lib/hcrypto/des.c ret = UI_UTIL_read_pw_string(buf, sizeof(buf) - 1, prompt, verify);
buf 879 source4/heimdal/lib/hcrypto/des.c DES_string_to_key(buf, key);
buf 863 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf + ctx->buf_len, in, inlen);
buf 869 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf + ctx->buf_len, in, left);
buf 870 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, ctx->buf, blocksize);
buf 871 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf, 0, blocksize);
buf 893 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf, in, ctx->buf_len);
buf 930 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf + ctx->buf_len, 0, left);
buf 931 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, ctx->buf, blocksize);
buf 932 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf, 0, blocksize);
buf 1563 source4/heimdal/lib/hcrypto/evp.c unsigned char *buf;
buf 1572 source4/heimdal/lib/hcrypto/evp.c buf = malloc(EVP_MD_size(md));
buf 1573 source4/heimdal/lib/hcrypto/evp.c if (buf == NULL)
buf 1582 source4/heimdal/lib/hcrypto/evp.c EVP_DigestUpdate(&c, buf, mds);
buf 1591 source4/heimdal/lib/hcrypto/evp.c EVP_DigestFinal_ex(&c, buf, &mds);
buf 1596 source4/heimdal/lib/hcrypto/evp.c EVP_DigestUpdate(&c, buf, mds);
buf 1597 source4/heimdal/lib/hcrypto/evp.c EVP_DigestFinal_ex(&c, buf, &mds);
buf 1605 source4/heimdal/lib/hcrypto/evp.c memcpy(key, buf, sz);
buf 1614 source4/heimdal/lib/hcrypto/evp.c memcpy(iv, &buf[i], sz);
buf 1624 source4/heimdal/lib/hcrypto/evp.c free(buf);
buf 162 source4/heimdal/lib/hcrypto/evp.h unsigned char buf[EVP_MAX_BLOCK_LENGTH];
buf 49 source4/heimdal/lib/hcrypto/hmac.c if (ctx->buf) {
buf 50 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->buf, 0, ctx->key_length);
buf 51 source4/heimdal/lib/hcrypto/hmac.c free(ctx->buf);
buf 52 source4/heimdal/lib/hcrypto/hmac.c ctx->buf = NULL;
buf 88 source4/heimdal/lib/hcrypto/hmac.c if (ctx->buf) {
buf 89 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->buf, 0, ctx->key_length);
buf 90 source4/heimdal/lib/hcrypto/hmac.c free (ctx->buf);
buf 93 source4/heimdal/lib/hcrypto/hmac.c ctx->buf = malloc(ctx->key_length);
buf 100 source4/heimdal/lib/hcrypto/hmac.c EVP_Digest(key, keylen, ctx->buf, NULL, ctx->md, engine);
buf 101 source4/heimdal/lib/hcrypto/hmac.c key = ctx->buf;
buf 139 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestFinal_ex(ctx->ctx, ctx->buf, NULL);
buf 143 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestUpdate(ctx->ctx, ctx->buf, ctx->key_length);
buf 65 source4/heimdal/lib/hcrypto/hmac.h void *buf;
buf 1961 source4/heimdal/lib/hcrypto/imath/imath.c CHECK(z != NULL && buf != NULL);
buf 1963 source4/heimdal/lib/hcrypto/imath/imath.c res = s_tobin(z, buf, &limpos, PAD_FOR_2C);
buf 1966 source4/heimdal/lib/hcrypto/imath/imath.c s_2comp(buf, limpos);
buf 1981 source4/heimdal/lib/hcrypto/imath/imath.c CHECK(z != NULL && buf != NULL && len > 0);
buf 1992 source4/heimdal/lib/hcrypto/imath/imath.c if(buf[0] >> (CHAR_BIT - 1)) {
buf 1994 source4/heimdal/lib/hcrypto/imath/imath.c s_2comp(buf, len);
buf 1998 source4/heimdal/lib/hcrypto/imath/imath.c for(tmp = buf, i = len; i > 0; --i, ++tmp) {
buf 2005 source4/heimdal/lib/hcrypto/imath/imath.c s_2comp(buf, len);
buf 2041 source4/heimdal/lib/hcrypto/imath/imath.c CHECK(z != NULL && buf != NULL);
buf 2043 source4/heimdal/lib/hcrypto/imath/imath.c return s_tobin(z, buf, &limit, NO_PADDING);
buf 2056 source4/heimdal/lib/hcrypto/imath/imath.c CHECK(z != NULL && buf != NULL && len > 0);
buf 2066 source4/heimdal/lib/hcrypto/imath/imath.c for(tmp = buf, i = len; i > 0; --i, ++tmp) {
buf 3260 source4/heimdal/lib/hcrypto/imath/imath.c unsigned char c = ~buf[i];
buf 3266 source4/heimdal/lib/hcrypto/imath/imath.c buf[i] = c;
buf 3288 source4/heimdal/lib/hcrypto/imath/imath.c buf[pos++] = (unsigned char)d;
buf 3302 source4/heimdal/lib/hcrypto/imath/imath.c if(pad != 0 && (buf[pos - 1] >> (CHAR_BIT - 1))) {
buf 3304 source4/heimdal/lib/hcrypto/imath/imath.c buf[pos++] = 0;
buf 3310 source4/heimdal/lib/hcrypto/imath/imath.c REV(unsigned char, buf, pos);
buf 3344 source4/heimdal/lib/hcrypto/imath/imath.c fprintf(stderr, "%0*X", (int)(MP_DIGIT_BIT / 4), buf[i]);
buf 254 source4/heimdal/lib/hcrypto/rand-fortuna.c unsigned char buf[BLOCK];
buf 270 source4/heimdal/lib/hcrypto/rand-fortuna.c md_result(&st->pool[k], buf);
buf 271 source4/heimdal/lib/hcrypto/rand-fortuna.c md_update(&key_md, buf, BLOCK);
buf 291 source4/heimdal/lib/hcrypto/rand-fortuna.c memset(buf, 0, BLOCK);
buf 366 source4/heimdal/lib/hcrypto/rand-fortuna.c unsigned char buf[BLOCK];
buf 374 source4/heimdal/lib/hcrypto/rand-fortuna.c encrypt_counter(st, buf);
buf 375 source4/heimdal/lib/hcrypto/rand-fortuna.c encrypt_counter(st, buf + CIPH_BLOCK);
buf 376 source4/heimdal/lib/hcrypto/rand-fortuna.c md_update(&st->pool[i], buf, BLOCK);
buf 378 source4/heimdal/lib/hcrypto/rand-fortuna.c memset(buf, 0, BLOCK);
buf 459 source4/heimdal/lib/hcrypto/rand-fortuna.c unsigned char buf[INIT_BYTES];
buf 460 source4/heimdal/lib/hcrypto/rand-fortuna.c if ((*hc_rand_unix_method.bytes)(buf, sizeof(buf)) == 1) {
buf 461 source4/heimdal/lib/hcrypto/rand-fortuna.c add_entropy(&main_state, buf, sizeof(buf));
buf 463 source4/heimdal/lib/hcrypto/rand-fortuna.c memset(buf, 0, sizeof(buf));
buf 468 source4/heimdal/lib/hcrypto/rand-fortuna.c uint32_t buf[INIT_BYTES / sizeof(uint32_t)];
buf 471 source4/heimdal/lib/hcrypto/rand-fortuna.c for (i = 0; i < sizeof(buf)/sizeof(buf[0]); i++)
buf 472 source4/heimdal/lib/hcrypto/rand-fortuna.c buf[i] = arc4random();
buf 473 source4/heimdal/lib/hcrypto/rand-fortuna.c add_entropy(&main_state, (void *)buf, sizeof(buf));
buf 482 source4/heimdal/lib/hcrypto/rand-fortuna.c unsigned char buf[INIT_BYTES];
buf 483 source4/heimdal/lib/hcrypto/rand-fortuna.c if ((*hc_rand_egd_method.bytes)(buf, sizeof(buf)) == 1) {
buf 484 source4/heimdal/lib/hcrypto/rand-fortuna.c add_entropy(&main_state, buf, sizeof(buf));
buf 486 source4/heimdal/lib/hcrypto/rand-fortuna.c memset(buf, 0, sizeof(buf));
buf 496 source4/heimdal/lib/hcrypto/rand-fortuna.c unsigned char buf[INIT_BYTES];
buf 502 source4/heimdal/lib/hcrypto/rand-fortuna.c if ((*hc_rand_timer_method.bytes)(u.buf, sizeof(u.buf)) == 1)
buf 503 source4/heimdal/lib/hcrypto/rand-fortuna.c add_entropy(&main_state, u.buf, sizeof(u.buf));
buf 264 source4/heimdal/lib/hcrypto/rand.c unsigned char buf[128];
buf 275 source4/heimdal/lib/hcrypto/rand.c slen = read(fd, buf, sizeof(buf));
buf 278 source4/heimdal/lib/hcrypto/rand.c RAND_seed(buf, slen);
buf 298 source4/heimdal/lib/hcrypto/rand.c unsigned char buf[128];
buf 309 source4/heimdal/lib/hcrypto/rand.c res = RAND_bytes(buf, sizeof(buf));
buf 312 source4/heimdal/lib/hcrypto/rand.c if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
buf 316 source4/heimdal/lib/hcrypto/rand.c len += sizeof(buf);
buf 102 source4/heimdal/lib/hcrypto/ui.c p = buf;
buf 114 source4/heimdal/lib/hcrypto/ui.c of = (p == buf + len);
buf 146 source4/heimdal/lib/hcrypto/ui.c ret = read_string("", prompt, buf, length, 0);
buf 161 source4/heimdal/lib/hcrypto/ui.c if (strcmp(buf2, buf) != 0)
buf 368 source4/heimdal/lib/hdb/hdb.c char *buf = NULL;
buf 377 source4/heimdal/lib/hdb/hdb.c buf = malloc(len);
buf 378 source4/heimdal/lib/hdb/hdb.c if (buf == NULL) {
buf 382 source4/heimdal/lib/hdb/hdb.c buf[0] = '\0';
buf 386 source4/heimdal/lib/hdb/hdb.c strlcat(buf, ", ", len);
buf 387 source4/heimdal/lib/hdb/hdb.c strlcat(buf, h->prefix, len);
buf 389 source4/heimdal/lib/hdb/hdb.c *list = buf;
buf 89 source4/heimdal/lib/hdb/keys.c char buf[3][256];
buf 103 source4/heimdal/lib/hdb/keys.c if(strsep_copy(&p, ":", buf[num_buf], sizeof(buf[num_buf])) == -1)
buf 114 source4/heimdal/lib/hdb/keys.c if(strcmp(buf[i], "des") == 0) {
buf 117 source4/heimdal/lib/hdb/keys.c } else if(strcmp(buf[i], "des3") == 0) {
buf 122 source4/heimdal/lib/hdb/keys.c ret = krb5_string_to_enctype(context, buf[i], &e);
buf 136 source4/heimdal/lib/hdb/keys.c if(strcmp(buf[i], "pw-salt") == 0) {
buf 142 source4/heimdal/lib/hdb/keys.c } else if(strcmp(buf[i], "afs3-salt") == 0) {
buf 156 source4/heimdal/lib/hdb/keys.c salt->saltvalue.data = strdup(buf[i]);
buf 161 source4/heimdal/lib/hdb/keys.c salt->saltvalue.length = strlen(buf[i]);
buf 205 source4/heimdal/lib/hdb/mkey.c unsigned char buf[256];
buf 217 source4/heimdal/lib/hdb/mkey.c len = read(fd, buf, sizeof(buf));
buf 226 source4/heimdal/lib/hdb/mkey.c ret = decode_EncryptionKey(buf, len, &key, &ret_len);
buf 227 source4/heimdal/lib/hdb/mkey.c memset(buf, 0, sizeof(buf));
buf 252 source4/heimdal/lib/hdb/mkey.c unsigned char buf[256];
buf 263 source4/heimdal/lib/hdb/mkey.c len = read(fd, buf, sizeof(buf));
buf 279 source4/heimdal/lib/hdb/mkey.c ret = krb5_data_copy(&key.keyvalue, buf, len);
buf 280 source4/heimdal/lib/hdb/mkey.c memset(buf, 0, sizeof(buf));
buf 294 source4/heimdal/lib/hdb/mkey.c unsigned char buf[16];
buf 312 source4/heimdal/lib/hdb/mkey.c if(fread(buf, 1, 2, f) != 2) {
buf 329 source4/heimdal/lib/hdb/mkey.c } else if(buf[0] == 0x30 && len <= 127 && buf[1] == len - 2) {
buf 331 source4/heimdal/lib/hdb/mkey.c } else if(buf[0] == 5 && buf[1] >= 1 && buf[1] <= 2) {
buf 810 source4/heimdal/lib/hx509/cert.c char buf[256], *name;
buf 812 source4/heimdal/lib/hx509/cert.c unparse_flags(missing, asn1_KeyUsage_units(), buf, sizeof(buf));
buf 816 source4/heimdal/lib/hx509/cert.c "from certifiate %s", buf, name);
buf 3271 source4/heimdal/lib/hx509/cert.c char *buf;
buf 3278 source4/heimdal/lib/hx509/cert.c asprintf(&buf, "%d", _hx509_cert_get_version(_hx509_get_cert(cert)));
buf 3279 source4/heimdal/lib/hx509/cert.c ret = hx509_env_add(context, &envcert, "version", buf);
buf 3280 source4/heimdal/lib/hx509/cert.c free(buf);
buf 3289 source4/heimdal/lib/hx509/cert.c ret = hx509_name_to_string(name, &buf);
buf 3295 source4/heimdal/lib/hx509/cert.c ret = hx509_env_add(context, &envcert, "subject", buf);
buf 3305 source4/heimdal/lib/hx509/cert.c ret = hx509_name_to_string(name, &buf);
buf 3310 source4/heimdal/lib/hx509/cert.c ret = hx509_env_add(context, &envcert, "issuer", buf);
buf 3311 source4/heimdal/lib/hx509/cert.c hx509_xfree(buf);
buf 3328 source4/heimdal/lib/hx509/cert.c ret = der_print_heim_oid(&eku.val[i], '.', &buf);
buf 3334 source4/heimdal/lib/hx509/cert.c ret = hx509_env_add(context, &enveku, buf, "oid-name-here");
buf 3335 source4/heimdal/lib/hx509/cert.c free(buf);
buf 90 source4/heimdal/lib/hx509/cms.c if (buf) {
buf 96 source4/heimdal/lib/hx509/cms.c ci.content->data = malloc(buf->length);
buf 101 source4/heimdal/lib/hx509/cms.c memcpy(ci.content->data, buf->data, buf->length);
buf 102 source4/heimdal/lib/hx509/cms.c ci.content->length = buf->length;
buf 1103 source4/heimdal/lib/hx509/cms.c heim_octet_string buf, content, sigdata = { 0, NULL };
buf 1215 source4/heimdal/lib/hx509/cms.c buf.data,
buf 1216 source4/heimdal/lib/hx509/cms.c buf.length,
buf 1225 source4/heimdal/lib/hx509/cms.c if (size != buf.length)
buf 1231 source4/heimdal/lib/hx509/cms.c &buf);
buf 1239 source4/heimdal/lib/hx509/cms.c buf.data,
buf 1240 source4/heimdal/lib/hx509/cms.c buf.length,
buf 1246 source4/heimdal/lib/hx509/cms.c if (size != buf.length)
buf 1252 source4/heimdal/lib/hx509/cms.c &buf);
buf 193 source4/heimdal/lib/hx509/file.c char buf[1024];
buf 200 source4/heimdal/lib/hx509/file.c while (fgets(buf, sizeof(buf), f) != NULL) {
buf 204 source4/heimdal/lib/hx509/file.c i = strcspn(buf, "\n");
buf 205 source4/heimdal/lib/hx509/file.c if (buf[i] == '\n') {
buf 206 source4/heimdal/lib/hx509/file.c buf[i] = '\0';
buf 210 source4/heimdal/lib/hx509/file.c if (buf[i] == '\r') {
buf 211 source4/heimdal/lib/hx509/file.c buf[i] = '\0';
buf 218 source4/heimdal/lib/hx509/file.c if (strncmp("-----BEGIN ", buf, 11) == 0) {
buf 219 source4/heimdal/lib/hx509/file.c type = strdup(buf + 11);
buf 229 source4/heimdal/lib/hx509/file.c p = strchr(buf, ':');
buf 236 source4/heimdal/lib/hx509/file.c if (buf[0] == '\0') {
buf 240 source4/heimdal/lib/hx509/file.c p = strchr(buf, ':');
buf 245 source4/heimdal/lib/hx509/file.c ret = hx509_pem_add_header(&headers, buf, p);
buf 253 source4/heimdal/lib/hx509/file.c if (strncmp("-----END ", buf, 9) == 0) {
buf 259 source4/heimdal/lib/hx509/file.c i = base64_decode(buf, p);
buf 328 source4/heimdal/lib/hx509/ks_p12.c void *buf;
buf 365 source4/heimdal/lib/hx509/ks_p12.c ret = rk_undumpdata(residue, &buf, &len);
buf 371 source4/heimdal/lib/hx509/ks_p12.c ret = decode_PKCS12_PFX(buf, len, &pfx, NULL);
buf 372 source4/heimdal/lib/hx509/ks_p12.c rk_xfree(buf);
buf 195 source4/heimdal/lib/hx509/print.c char buf[256];
buf 203 source4/heimdal/lib/hx509/print.c unparse_flags(KeyUsage2int(ku), asn1_KeyUsage_units(), buf, sizeof(buf));
buf 204 source4/heimdal/lib/hx509/print.c *s = strdup(buf);
buf 537 source4/heimdal/lib/hx509/sel-lex.c #define YY_INPUT(buf,res,maxsize) (res = lex_input(buf, maxsize))
buf 615 source4/heimdal/lib/hx509/sel-lex.c buf[n] = (char) c; \
buf 617 source4/heimdal/lib/hx509/sel-lex.c buf[n++] = (char) c; \
buf 625 source4/heimdal/lib/hx509/sel-lex.c while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
buf 1610 source4/heimdal/lib/hx509/sel-lex.c char *buf;
buf 1616 source4/heimdal/lib/hx509/sel-lex.c buf = (char *) yyalloc(n );
buf 1617 source4/heimdal/lib/hx509/sel-lex.c if ( ! buf )
buf 1621 source4/heimdal/lib/hx509/sel-lex.c buf[i] = yybytes[i];
buf 1623 source4/heimdal/lib/hx509/sel-lex.c buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
buf 1625 source4/heimdal/lib/hx509/sel-lex.c b = yy_scan_buffer(buf,n );
buf 1894 source4/heimdal/lib/hx509/sel-lex.c memcpy(buf, _hx509_expr_input.buf + _hx509_expr_input.offset, n);
buf 209 source4/heimdal/lib/hx509/sel.c _hx509_expr_input.buf = buf;
buf 210 source4/heimdal/lib/hx509/sel.c _hx509_expr_input.length = strlen(buf);
buf 61 source4/heimdal/lib/hx509/sel.h const char *buf;
buf 67 source4/heimdal/lib/krb5/addr_families.c unsigned char buf[4];
buf 70 source4/heimdal/lib/krb5/addr_families.c memcpy (buf, &sin4->sin_addr, 4);
buf 71 source4/heimdal/lib/krb5/addr_families.c return krb5_data_copy(&a->address, buf, 4);
buf 119 source4/heimdal/lib/krb5/addr_families.c unsigned char buf[4];
buf 122 source4/heimdal/lib/krb5/addr_families.c memcpy(buf, addr, 4);
buf 123 source4/heimdal/lib/krb5/addr_families.c return krb5_data_copy(&a->address, buf, 4);
buf 244 source4/heimdal/lib/krb5/addr_families.c unsigned char buf[4];
buf 254 source4/heimdal/lib/krb5/addr_families.c memcpy (buf, IN6_ADDR_V6_TO_V4(&sin6->sin6_addr), 4);
buf 255 source4/heimdal/lib/krb5/addr_families.c return krb5_data_copy(&a->address, buf, 4);
buf 343 source4/heimdal/lib/krb5/addr_families.c char buf[128], buf2[3];
buf 345 source4/heimdal/lib/krb5/addr_families.c if(inet_ntop(AF_INET6, addr->address.data, buf, sizeof(buf)) == NULL)
buf 351 source4/heimdal/lib/krb5/addr_families.c buf[0] = '\0';
buf 355 source4/heimdal/lib/krb5/addr_families.c strlcat(buf, ":", sizeof(buf));
buf 356 source4/heimdal/lib/krb5/addr_families.c strlcat(buf, buf2, sizeof(buf));
buf 359 source4/heimdal/lib/krb5/addr_families.c return snprintf(str, len, "IPv6:%s", buf);
buf 460 source4/heimdal/lib/krb5/addr_families.c char buf[1024], *p;
buf 476 source4/heimdal/lib/krb5/addr_families.c if (strlcpy(buf, address, sizeof(buf)) > sizeof(buf))
buf 478 source4/heimdal/lib/krb5/addr_families.c buf[p - address] = '\0';
buf 479 source4/heimdal/lib/krb5/addr_families.c ret = krb5_parse_address(context, buf, &addrmask);
buf 504 source4/heimdal/lib/krb5/addr_families.c strsep_copy(&address, "-", buf, sizeof(buf));
buf 505 source4/heimdal/lib/krb5/addr_families.c ret = krb5_parse_address(context, buf, &low);
buf 513 source4/heimdal/lib/krb5/addr_families.c strsep_copy(&address, "-", buf, sizeof(buf));
buf 514 source4/heimdal/lib/krb5/addr_families.c ret = krb5_parse_address(context, buf, &high);
buf 45 source4/heimdal/lib/krb5/build_auth.c u_char *buf;
buf 53 source4/heimdal/lib/krb5/build_auth.c ASN1_MALLOC_ENCODE(EtypeList, buf, buf_size, &etypes, &len, ret);
buf 64 source4/heimdal/lib/krb5/build_auth.c free(buf);
buf 71 source4/heimdal/lib/krb5/build_auth.c ad.val[0].ad_data.data = buf;
buf 73 source4/heimdal/lib/krb5/build_auth.c ASN1_MALLOC_ENCODE(AD_IF_RELEVANT, buf, buf_size, &ad, &len, ret);
buf 90 source4/heimdal/lib/krb5/build_auth.c free(buf);
buf 97 source4/heimdal/lib/krb5/build_auth.c (*auth_data)->val[0].ad_data.data = buf;
buf 113 source4/heimdal/lib/krb5/build_auth.c u_char *buf = NULL;
buf 166 source4/heimdal/lib/krb5/build_auth.c ASN1_MALLOC_ENCODE(Authenticator, buf, buf_size, auth, &len, ret);
buf 178 source4/heimdal/lib/krb5/build_auth.c buf + buf_size - len,
buf 186 source4/heimdal/lib/krb5/build_auth.c free (buf);
buf 200 source4/heimdal/lib/krb5/build_auth.c free (buf);
buf 152 source4/heimdal/lib/krb5/config_file.c char buf[BUFSIZ];
buf 157 source4/heimdal/lib/krb5/config_file.c while(config_fgets(buf, sizeof(buf), f) != NULL) {
buf 161 source4/heimdal/lib/krb5/config_file.c buf[strcspn(buf, "\r\n")] = '\0';
buf 162 source4/heimdal/lib/krb5/config_file.c p = buf;
buf 250 source4/heimdal/lib/krb5/config_file.c char buf[BUFSIZ];
buf 253 source4/heimdal/lib/krb5/config_file.c while (config_fgets(buf, sizeof(buf), f) != NULL) {
buf 257 source4/heimdal/lib/krb5/config_file.c buf[strcspn(buf, "\r\n")] = '\0';
buf 258 source4/heimdal/lib/krb5/config_file.c p = buf;
buf 112 source4/heimdal/lib/krb5/crypto.c const void *buf, size_t len,
buf 117 source4/heimdal/lib/krb5/crypto.c const void *buf, size_t len,
buf 3705 source4/heimdal/lib/krb5/crypto.c char buf[1024], seedfile[256];
buf 3715 source4/heimdal/lib/krb5/crypto.c ret = read(fd, buf, sizeof(buf));
buf 3717 source4/heimdal/lib/krb5/crypto.c RAND_add(buf, ret, 0.0);
buf 3764 source4/heimdal/lib/krb5/crypto.c if (RAND_bytes(buf, len) != 1)
buf 210 source4/heimdal/lib/krb5/fcache.c char buf[128];
buf 217 source4/heimdal/lib/krb5/fcache.c memset(buf, 0, sizeof(buf));
buf 219 source4/heimdal/lib/krb5/fcache.c ssize_t tmp = write(fd, buf, min(sizeof(buf), pos));
buf 865 source4/heimdal/lib/krb5/fcache.c char buf[BUFSIZ];
buf 878 source4/heimdal/lib/krb5/fcache.c while((sz1 = read(fd1, buf, sizeof(buf))) > 0) {
buf 879 source4/heimdal/lib/krb5/fcache.c sz2 = write(fd2, buf, sz1);
buf 50 source4/heimdal/lib/krb5/get_cred.c u_char *buf;
buf 56 source4/heimdal/lib/krb5/get_cred.c ASN1_MALLOC_ENCODE(KDC_REQ_BODY, buf, buf_size, body, &len, ret);
buf 63 source4/heimdal/lib/krb5/get_cred.c in_data.data = buf;
buf 69 source4/heimdal/lib/krb5/get_cred.c free (buf);
buf 88 source4/heimdal/lib/krb5/get_cred.c unsigned char *buf;
buf 92 source4/heimdal/lib/krb5/get_cred.c ASN1_MALLOC_ENCODE(AuthorizationData, buf, buf_size, authdata,
buf 101 source4/heimdal/lib/krb5/get_cred.c free (buf);
buf 108 source4/heimdal/lib/krb5/get_cred.c free (buf);
buf 117 source4/heimdal/lib/krb5/get_cred.c buf,
buf 121 source4/heimdal/lib/krb5/get_cred.c free (buf);
buf 438 source4/heimdal/lib/krb5/get_cred.c void *buf;
buf 472 source4/heimdal/lib/krb5/get_cred.c ASN1_MALLOC_ENCODE(PA_S4U2Self, buf, len, &self, &size, ret);
buf 480 source4/heimdal/lib/krb5/get_cred.c ret = krb5_padata_add(context, &padata, KRB5_PADATA_S4U2SELF, buf, len);
buf 205 source4/heimdal/lib/krb5/get_for_creds.c unsigned char *buf;
buf 394 source4/heimdal/lib/krb5/get_for_creds.c ASN1_MALLOC_ENCODE(EncKrbCredPart, buf, buf_size,
buf 415 source4/heimdal/lib/krb5/get_for_creds.c cred.enc_part.cipher.data = buf;
buf 427 source4/heimdal/lib/krb5/get_for_creds.c free(buf);
buf 434 source4/heimdal/lib/krb5/get_for_creds.c buf,
buf 438 source4/heimdal/lib/krb5/get_for_creds.c free(buf);
buf 446 source4/heimdal/lib/krb5/get_for_creds.c ASN1_MALLOC_ENCODE(KRB_CRED, buf, buf_size, &cred, &len, ret);
buf 453 source4/heimdal/lib/krb5/get_for_creds.c out_data->data = buf;
buf 563 source4/heimdal/lib/krb5/get_in_tkt.c unsigned char *buf;
buf 576 source4/heimdal/lib/krb5/get_in_tkt.c ASN1_MALLOC_ENCODE(PA_ENC_TS_ENC, buf, buf_size, &p, &len, ret);
buf 583 source4/heimdal/lib/krb5/get_in_tkt.c free(buf);
buf 589 source4/heimdal/lib/krb5/get_in_tkt.c buf,
buf 593 source4/heimdal/lib/krb5/get_in_tkt.c free(buf);
buf 598 source4/heimdal/lib/krb5/get_in_tkt.c ASN1_MALLOC_ENCODE(EncryptedData, buf, buf_size, &encdata, &len, ret);
buf 606 source4/heimdal/lib/krb5/get_in_tkt.c pa->padata_value.data = buf;
buf 874 source4/heimdal/lib/krb5/init_creds_pw.c unsigned char *buf;
buf 887 source4/heimdal/lib/krb5/init_creds_pw.c ASN1_MALLOC_ENCODE(PA_ENC_TS_ENC, buf, buf_size, &p, &len, ret);
buf 895 source4/heimdal/lib/krb5/init_creds_pw.c free(buf);
buf 901 source4/heimdal/lib/krb5/init_creds_pw.c buf,
buf 905 source4/heimdal/lib/krb5/init_creds_pw.c free(buf);
buf 910 source4/heimdal/lib/krb5/init_creds_pw.c ASN1_MALLOC_ENCODE(EncryptedData, buf, buf_size, &encdata, &len, ret);
buf 917 source4/heimdal/lib/krb5/init_creds_pw.c ret = krb5_padata_add(context, md, KRB5_PADATA_ENC_TIMESTAMP, buf, len);
buf 919 source4/heimdal/lib/krb5/init_creds_pw.c free(buf);
buf 1051 source4/heimdal/lib/krb5/init_creds_pw.c void *buf;
buf 1063 source4/heimdal/lib/krb5/init_creds_pw.c ASN1_MALLOC_ENCODE(PA_PAC_REQUEST, buf, length,
buf 1070 source4/heimdal/lib/krb5/init_creds_pw.c ret = krb5_padata_add(context, md, KRB5_PADATA_PA_PAC_REQUEST, buf, len);
buf 1072 source4/heimdal/lib/krb5/init_creds_pw.c free(buf);
buf 1406 source4/heimdal/lib/krb5/init_creds_pw.c char buf[BUFSIZ];
buf 1448 source4/heimdal/lib/krb5/init_creds_pw.c buf,
buf 1449 source4/heimdal/lib/krb5/init_creds_pw.c sizeof(buf),
buf 1455 source4/heimdal/lib/krb5/init_creds_pw.c ctx.password = buf;
buf 1470 source4/heimdal/lib/krb5/init_creds_pw.c memset (buf, 0, sizeof(buf));
buf 1493 source4/heimdal/lib/krb5/init_creds_pw.c char buf[BUFSIZ];
buf 1521 source4/heimdal/lib/krb5/init_creds_pw.c password_data.data = buf;
buf 1522 source4/heimdal/lib/krb5/init_creds_pw.c password_data.length = sizeof(buf);
buf 1530 source4/heimdal/lib/krb5/init_creds_pw.c memset (buf, 0, sizeof(buf));
buf 1544 source4/heimdal/lib/krb5/init_creds_pw.c memset(buf, 0, sizeof(buf));
buf 1552 source4/heimdal/lib/krb5/init_creds_pw.c memset(buf, 0, sizeof(buf));
buf 63 source4/heimdal/lib/krb5/keytab_any.c char buf[256];
buf 65 source4/heimdal/lib/krb5/keytab_any.c while (strsep_copy(&name, ",", buf, sizeof(buf)) != -1) {
buf 73 source4/heimdal/lib/krb5/keytab_any.c a->name = strdup(buf);
buf 84 source4/heimdal/lib/krb5/keytab_any.c ret = krb5_kt_resolve (context, buf, &a->kt);
buf 720 source4/heimdal/lib/krb5/keytab_file.c unsigned char buf[128];
buf 725 source4/heimdal/lib/krb5/keytab_file.c memset(buf, 0, sizeof(buf));
buf 727 source4/heimdal/lib/krb5/keytab_file.c krb5_storage_write(cursor.sp, buf, min(len, sizeof(buf)));
buf 728 source4/heimdal/lib/krb5/keytab_file.c len -= min(len, sizeof(buf));
buf 71 source4/heimdal/lib/krb5/keytab_keyfile.c char buf[BUFSIZ], *cp;
buf 83 source4/heimdal/lib/krb5/keytab_keyfile.c if (fgets (buf, sizeof(buf), f) == NULL) {
buf 90 source4/heimdal/lib/krb5/keytab_keyfile.c buf[strcspn(buf, "\n")] = '\0';
buf 93 source4/heimdal/lib/krb5/keytab_keyfile.c d->cell = strdup (buf);
buf 102 source4/heimdal/lib/krb5/keytab_keyfile.c if (fgets (buf, sizeof(buf), f) == NULL) {
buf 111 source4/heimdal/lib/krb5/keytab_keyfile.c buf[strcspn(buf, "\n")] = '\0';
buf 115 source4/heimdal/lib/krb5/keytab_keyfile.c for (cp = buf; *cp != '\0'; cp++)
buf 118 source4/heimdal/lib/krb5/keytab_keyfile.c d->realm = strdup (buf);
buf 409 source4/heimdal/lib/krb5/log.c char buf[64];
buf 418 source4/heimdal/lib/krb5/log.c krb5_format_time(context, t, buf, sizeof(buf), TRUE);
buf 427 source4/heimdal/lib/krb5/log.c (*fac->val[i].log_func)(buf, actual, fac->val[i].data);
buf 49 source4/heimdal/lib/krb5/mk_priv.c u_char *buf = NULL;
buf 101 source4/heimdal/lib/krb5/mk_priv.c ASN1_MALLOC_ENCODE(EncKrbPrivPart, buf, buf_size, &part, &len, ret);
buf 114 source4/heimdal/lib/krb5/mk_priv.c free (buf);
buf 120 source4/heimdal/lib/krb5/mk_priv.c buf + buf_size - len,
buf 125 source4/heimdal/lib/krb5/mk_priv.c free(buf);
buf 128 source4/heimdal/lib/krb5/mk_priv.c free(buf);
buf 131 source4/heimdal/lib/krb5/mk_priv.c ASN1_MALLOC_ENCODE(KRB_PRIV, buf, buf_size, &s, &len, ret);
buf 139 source4/heimdal/lib/krb5/mk_priv.c ret = krb5_data_copy(outbuf, buf + buf_size - len, len);
buf 143 source4/heimdal/lib/krb5/mk_priv.c free(buf);
buf 146 source4/heimdal/lib/krb5/mk_priv.c free (buf);
buf 153 source4/heimdal/lib/krb5/mk_priv.c free (buf);
buf 46 source4/heimdal/lib/krb5/mk_rep.c u_char *buf = NULL;
buf 96 source4/heimdal/lib/krb5/mk_rep.c ASN1_MALLOC_ENCODE(EncAPRepPart, buf, buf_size, &body, &len, ret);
buf 105 source4/heimdal/lib/krb5/mk_rep.c free (buf);
buf 111 source4/heimdal/lib/krb5/mk_rep.c buf + buf_size - len,
buf 115 source4/heimdal/lib/krb5/mk_rep.c free(buf);
buf 52 source4/heimdal/lib/krb5/n-fold.c memcpy(tmp, buf, bytes);
buf 57 source4/heimdal/lib/krb5/n-fold.c tmp[bytes - 1] |= buf[0] >> i;
buf 76 source4/heimdal/lib/krb5/n-fold.c buf[i] = (tmp[b1] << s1) | (tmp[b2] >> s2);
buf 110 source4/heimdal/lib/krb5/n-fold.c unsigned char *buf = malloc(len);
buf 112 source4/heimdal/lib/krb5/n-fold.c if (tmp == NULL || buf == NULL)
buf 115 source4/heimdal/lib/krb5/n-fold.c memcpy(buf, str, len);
buf 118 source4/heimdal/lib/krb5/n-fold.c memcpy(tmp + l, buf, len);
buf 120 source4/heimdal/lib/krb5/n-fold.c ret = rr13(buf, len * 8);
buf 132 source4/heimdal/lib/krb5/n-fold.c memset(buf, 0, len);
buf 133 source4/heimdal/lib/krb5/n-fold.c free(buf);
buf 63 source4/heimdal/lib/krb5/padata.c pa[md->len].padata_value.data = buf;
buf 328 source4/heimdal/lib/krb5/pkinit.c void *buf;
buf 341 source4/heimdal/lib/krb5/pkinit.c ASN1_MALLOC_ENCODE(KDC_REQ_BODY, buf, buf_size, body, &len, ret);
buf 351 source4/heimdal/lib/krb5/pkinit.c buf,
buf 354 source4/heimdal/lib/krb5/pkinit.c free(buf);
buf 485 source4/heimdal/lib/krb5/pkinit.c content_info->content->data = malloc(buf->length);
buf 488 source4/heimdal/lib/krb5/pkinit.c memcpy(content_info->content->data, buf->data, buf->length);
buf 489 source4/heimdal/lib/krb5/pkinit.c content_info->content->length = buf->length;
buf 504 source4/heimdal/lib/krb5/pkinit.c krb5_data buf, sd_buf;
buf 507 source4/heimdal/lib/krb5/pkinit.c krb5_data_zero(&buf);
buf 537 source4/heimdal/lib/krb5/pkinit.c ASN1_MALLOC_ENCODE(AuthPack_Win2k, buf.data, buf.length,
buf 546 source4/heimdal/lib/krb5/pkinit.c if (buf.length != size)
buf 561 source4/heimdal/lib/krb5/pkinit.c ASN1_MALLOC_ENCODE(AuthPack, buf.data, buf.length, &ap, &size, ret);
buf 569 source4/heimdal/lib/krb5/pkinit.c if (buf.length != size)
buf 576 source4/heimdal/lib/krb5/pkinit.c ret = create_signature(context, oid, &buf, ctx->id,
buf 578 source4/heimdal/lib/krb5/pkinit.c krb5_data_free(&buf);
buf 582 source4/heimdal/lib/krb5/pkinit.c ret = hx509_cms_wrap_ContentInfo(oid_id_pkcs7_signedData(), &sd_buf, &buf);
buf 597 source4/heimdal/lib/krb5/pkinit.c winreq.signed_auth_pack = buf;
buf 599 source4/heimdal/lib/krb5/pkinit.c ASN1_MALLOC_ENCODE(PA_PK_AS_REQ_Win2k, buf.data, buf.length,
buf 609 source4/heimdal/lib/krb5/pkinit.c req.signedAuthPack = buf;
buf 633 source4/heimdal/lib/krb5/pkinit.c ASN1_MALLOC_ENCODE(PA_PK_AS_REQ, buf.data, buf.length,
buf 644 source4/heimdal/lib/krb5/pkinit.c if (buf.length != size)
buf 647 source4/heimdal/lib/krb5/pkinit.c ret = krb5_padata_add(context, md, pa_type, buf.data, buf.length);
buf 649 source4/heimdal/lib/krb5/pkinit.c free(buf.data);
buf 1886 source4/heimdal/lib/krb5/pkinit.c char buf[4096];
buf 1899 source4/heimdal/lib/krb5/pkinit.c strlcpy(buf, default_moduli_rfc3526_MODP_group14, sizeof(buf));
buf 1900 source4/heimdal/lib/krb5/pkinit.c ret = _krb5_parse_moduli_line(context, "builtin", 1, buf, &m[0]);
buf 1907 source4/heimdal/lib/krb5/pkinit.c strlcpy(buf, default_moduli_RFC2412_MODP_group2, sizeof(buf));
buf 1908 source4/heimdal/lib/krb5/pkinit.c ret = _krb5_parse_moduli_line(context, "builtin", 1, buf, &m[1]);
buf 1926 source4/heimdal/lib/krb5/pkinit.c while(fgets(buf, sizeof(buf), f) != NULL) {
buf 1929 source4/heimdal/lib/krb5/pkinit.c buf[strcspn(buf, "\n")] = '\0';
buf 1943 source4/heimdal/lib/krb5/pkinit.c ret = _krb5_parse_moduli_line(context, file, lineno, buf, &element);
buf 85 source4/heimdal/lib/krb5/store.c return sp->fetch(sp, buf, len);
buf 91 source4/heimdal/lib/krb5/store.c return sp->store(sp, buf, len);
buf 111 source4/heimdal/lib/krb5/store_mem.c s->base = buf;
buf 113 source4/heimdal/lib/krb5/store_mem.c s->ptr = buf;
buf 142 source4/heimdal/lib/krb5/store_mem.c s->base = rk_UNCONST(buf);
buf 144 source4/heimdal/lib/krb5/store_mem.c s->ptr = rk_UNCONST(buf);
buf 201 source4/heimdal/lib/krb5/ticket.c krb5_data buf;
buf 204 source4/heimdal/lib/krb5/ticket.c ASN1_MALLOC_ENCODE(AuthorizationData, buf.data, buf.length,
buf 211 source4/heimdal/lib/krb5/ticket.c if(buf.length != len)
buf 214 source4/heimdal/lib/krb5/ticket.c ret = krb5_c_verify_checksum(context, sessionkey, 19, &buf,
buf 216 source4/heimdal/lib/krb5/ticket.c krb5_data_free(&buf);
buf 140 source4/heimdal/lib/ntlm/ntlm.c buf->length = len * 2;
buf 141 source4/heimdal/lib/ntlm/ntlm.c buf->data = malloc(buf->length);
buf 142 source4/heimdal/lib/ntlm/ntlm.c if (buf->data == NULL && len != 0) {
buf 143 source4/heimdal/lib/ntlm/ntlm.c heim_ntlm_free_buf(buf);
buf 147 source4/heimdal/lib/ntlm/ntlm.c p = buf->data;
buf 151 source4/heimdal/lib/ntlm/ntlm.c heim_ntlm_free_buf(buf);
buf 170 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_ret_uint16(sp, &buf->length), 0);
buf 171 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_ret_uint16(sp, &buf->allocated), 0);
buf 172 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_ret_uint32(sp, &buf->offset), 0);
buf 181 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_store_uint16(sp, buf->length), 0);
buf 182 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_store_uint16(sp, buf->allocated), 0);
buf 183 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_store_uint32(sp, buf->offset), 0);
buf 235 source4/heimdal/lib/ntlm/ntlm.c struct ntlm_buf buf;
buf 238 source4/heimdal/lib/ntlm/ntlm.c ret = ascii2ucs2le(s, 0, &buf);
buf 242 source4/heimdal/lib/ntlm/ntlm.c buf.data = rk_UNCONST(s);
buf 243 source4/heimdal/lib/ntlm/ntlm.c buf.length = strlen(s);
buf 246 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_storage_write(sp, buf.data, buf.length), buf.length);
buf 248 source4/heimdal/lib/ntlm/ntlm.c heim_ntlm_free_buf(&buf);
buf 263 source4/heimdal/lib/ntlm/ntlm.c buf->data = malloc(desc->length);
buf 264 source4/heimdal/lib/ntlm/ntlm.c buf->length = desc->length;
buf 266 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_storage_read(sp, buf->data, buf->length), buf->length);
buf 276 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_storage_write(sp, buf->data, buf->length), buf->length);
buf 415 source4/heimdal/lib/ntlm/ntlm.c in = krb5_storage_from_readonly_mem(buf->data, buf->length);
buf 560 source4/heimdal/lib/ntlm/ntlm.c in = krb5_storage_from_readonly_mem(buf->data, buf->length);
buf 716 source4/heimdal/lib/ntlm/ntlm.c in = krb5_storage_from_readonly_mem(buf->data, buf->length);
buf 911 source4/heimdal/lib/ntlm/ntlm.c struct ntlm_buf buf;
buf 920 source4/heimdal/lib/ntlm/ntlm.c ret = ascii2ucs2le(password, 0, &buf);
buf 926 source4/heimdal/lib/ntlm/ntlm.c MD4_Update(&ctx, buf.data, buf.length);
buf 928 source4/heimdal/lib/ntlm/ntlm.c heim_ntlm_free_buf(&buf);
buf 1059 source4/heimdal/lib/ntlm/ntlm.c struct ntlm_buf buf;
buf 1061 source4/heimdal/lib/ntlm/ntlm.c ascii2ucs2le(username, 1, &buf);
buf 1062 source4/heimdal/lib/ntlm/ntlm.c HMAC_Update(&c, buf.data, buf.length);
buf 1063 source4/heimdal/lib/ntlm/ntlm.c free(buf.data);
buf 1065 source4/heimdal/lib/ntlm/ntlm.c ascii2ucs2le(target, 1, &buf);
buf 1066 source4/heimdal/lib/ntlm/ntlm.c HMAC_Update(&c, buf.data, buf.length);
buf 1067 source4/heimdal/lib/ntlm/ntlm.c free(buf.data);
buf 55 source4/heimdal/lib/roken/dumpdata.c net_write(fd, buf, size);
buf 70 source4/heimdal/lib/roken/dumpdata.c *buf = NULL;
buf 79 source4/heimdal/lib/roken/dumpdata.c *buf = malloc(sb.st_size);
buf 80 source4/heimdal/lib/roken/dumpdata.c if (*buf == NULL) {
buf 86 source4/heimdal/lib/roken/dumpdata.c sret = net_read(fd, *buf, *size);
buf 91 source4/heimdal/lib/roken/dumpdata.c free(*buf);
buf 92 source4/heimdal/lib/roken/dumpdata.c *buf = NULL;
buf 99 source4/heimdal/lib/roken/getarg.c char buf[128];
buf 132 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 0, args + i, i18n);
buf 133 source4/heimdal/lib/roken/getarg.c printf("Fl %c%s", args[i].short_name, buf);
buf 138 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 1, args + i, i18n);
buf 141 source4/heimdal/lib/roken/getarg.c args[i].long_name, buf);
buf 145 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 0, args + i, i18n);
buf 146 source4/heimdal/lib/roken/getarg.c printf(".Oo Fl %c%s \\*(Ba Xo\n", args[i].short_name, buf);
buf 147 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 1, args + i, i18n);
buf 148 source4/heimdal/lib/roken/getarg.c printf(".Fl -%s%s\n.Xc\n.Oc\n", args[i].long_name, buf);
buf 164 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 0, args + i, i18n);
buf 165 source4/heimdal/lib/roken/getarg.c printf("%s", buf);
buf 174 source4/heimdal/lib/roken/getarg.c print_arg(buf, sizeof(buf), 1, 1, args + i, i18n);
buf 175 source4/heimdal/lib/roken/getarg.c printf("%s\n", buf);
buf 233 source4/heimdal/lib/roken/getarg.c char buf[128];
buf 253 source4/heimdal/lib/roken/getarg.c buf[0] = '\0';
buf 257 source4/heimdal/lib/roken/getarg.c if(buf[0] == '\0')
buf 258 source4/heimdal/lib/roken/getarg.c strlcpy(buf, "[-", sizeof(buf));
buf 261 source4/heimdal/lib/roken/getarg.c strlcat(buf, s, sizeof(buf));
buf 264 source4/heimdal/lib/roken/getarg.c if(buf[0] != '\0') {
buf 265 source4/heimdal/lib/roken/getarg.c strlcat(buf, "]", sizeof(buf));
buf 266 source4/heimdal/lib/roken/getarg.c col = check_column(stderr, col, strlen(buf) + 1, columns);
buf 267 source4/heimdal/lib/roken/getarg.c col += fprintf(stderr, " %s", buf);
buf 274 source4/heimdal/lib/roken/getarg.c buf[0] = '\0';
buf 275 source4/heimdal/lib/roken/getarg.c strlcat(buf, "[--", sizeof(buf));
buf 278 source4/heimdal/lib/roken/getarg.c strlcat(buf, "no-", sizeof(buf));
buf 281 source4/heimdal/lib/roken/getarg.c strlcat(buf, args[i].long_name, sizeof(buf));
buf 283 source4/heimdal/lib/roken/getarg.c len += print_arg(buf + strlen(buf), sizeof(buf) - strlen(buf),
buf 285 source4/heimdal/lib/roken/getarg.c strlcat(buf, "]", sizeof(buf));
buf 287 source4/heimdal/lib/roken/getarg.c strlcat(buf, "...", sizeof(buf));
buf 288 source4/heimdal/lib/roken/getarg.c col = check_column(stderr, col, strlen(buf) + 1, columns);
buf 289 source4/heimdal/lib/roken/getarg.c col += fprintf(stderr, " %s", buf);
buf 292 source4/heimdal/lib/roken/getarg.c snprintf(buf, sizeof(buf), "[-%c", args[i].short_name);
buf 294 source4/heimdal/lib/roken/getarg.c len += print_arg(buf + strlen(buf), sizeof(buf) - strlen(buf),
buf 296 source4/heimdal/lib/roken/getarg.c strlcat(buf, "]", sizeof(buf));
buf 298 source4/heimdal/lib/roken/getarg.c strlcat(buf, "...", sizeof(buf));
buf 299 source4/heimdal/lib/roken/getarg.c col = check_column(stderr, col, strlen(buf) + 1, columns);
buf 300 source4/heimdal/lib/roken/getarg.c col += fprintf(stderr, " %s", buf);
buf 317 source4/heimdal/lib/roken/getarg.c print_arg (buf, sizeof(buf), 0, 0, &args[i], i18n);
buf 318 source4/heimdal/lib/roken/getarg.c count += fprintf(stderr, "%s", buf);
buf 327 source4/heimdal/lib/roken/getarg.c print_arg (buf, sizeof(buf), 0, 1, &args[i], i18n);
buf 328 source4/heimdal/lib/roken/getarg.c count += fprintf(stderr, "%s", buf);
buf 52 source4/heimdal/lib/roken/net_read.c char *cbuf = (char *)buf;
buf 52 source4/heimdal/lib/roken/net_write.c const char *cbuf = (const char *)buf;
buf 280 source4/heimdal/lib/roken/parse_units.c char buf[1024];
buf 293 source4/heimdal/lib/roken/parse_units.c unparse_units (u->mult, u2, buf, sizeof(buf));
buf 294 source4/heimdal/lib/roken/parse_units.c fprintf (f, "1 %*s = %s\n", max_sz, u->name, buf);
buf 106 source4/heimdal/lib/roken/rkpty.c if (strncmp(buf, s, len) != 0)
buf 108 source4/heimdal/lib/roken/rkpty.c return estrdup(buf + len);
buf 142 source4/heimdal/lib/roken/roken_gethostby.c char buf[1024];
buf 170 source4/heimdal/lib/roken/roken_gethostby.c n = read(s, buf + offset, sizeof(buf) - offset);
buf 175 source4/heimdal/lib/roken/roken_gethostby.c buf[offset] = '\0';
buf 177 source4/heimdal/lib/roken/roken_gethostby.c p = strstr(buf, "\r\n\r\n"); /* find end of header */
buf 57 source4/heimdal/lib/roken/strsep_copy.c memcpy(buf, save, l);
buf 58 source4/heimdal/lib/roken/strsep_copy.c buf[l] = '\0';
buf 46 source4/heimdal/lib/roken/xfree.c free(buf);
buf 198 source4/kdc/pac-glue.c unsigned char *buf;
buf 218 source4/kdc/pac-glue.c ASN1_MALLOC_ENCODE(PA_DATA, buf, len, &pa, &len, ret);
buf 221 source4/kdc/pac-glue.c e_data->data = buf;
buf 47 source4/lib/ldb/common/ldb_ldif.c char *buf;
buf 82 source4/lib/ldb/common/ldb_ldif.c buf = (char *)value->data;
buf 84 source4/lib/ldb/common/ldb_ldif.c bytes = read(f, buf, size);
buf 91 source4/lib/ldb/common/ldb_ldif.c buf += bytes;
buf 157 source4/lib/ldb/common/ldb_ldif.c const uint8_t *d = (const uint8_t *)buf;
buf 222 source4/lib/ldb/common/ldb_ldif.c ret = fprintf_fn(private_data, "%c", buf[i]);
buf 243 source4/lib/ldb/common/ldb_ldif.c char *b = ldb_base64_encode(ldb, buf, len);
buf 102 source4/lib/ldb/common/ldb_parse.c unsigned char *buf = val.data;
buf 105 source4/lib/ldb/common/ldb_parse.c if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
buf 114 source4/lib/ldb/common/ldb_parse.c if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
buf 115 source4/lib/ldb/common/ldb_parse.c snprintf(ret+len, 4, "\\%02X", buf[i]);
buf 118 source4/lib/ldb/common/ldb_parse.c ret[len++] = buf[i];
buf 349 source4/lib/registry/patchfile.c char *buf, *buf_ptr;
buf 353 source4/lib/registry/patchfile.c buf = talloc_strdup(ctx, key_name);
buf 354 source4/lib/registry/patchfile.c buf_ptr = buf;
buf 359 source4/lib/registry/patchfile.c error = reg_key_add_abs(ctx, ctx, buf, 0, NULL, &tmp);
buf 68 source4/lib/registry/patchfile_preg.c uint32_t buf;
buf 75 source4/lib/registry/patchfile_preg.c SIVAL(&buf, 0, value_type);
buf 76 source4/lib/registry/patchfile_preg.c write(data->fd, &buf, sizeof(uint32_t));
buf 78 source4/lib/registry/patchfile_preg.c SIVAL(&buf, 0, value_data.length);
buf 79 source4/lib/registry/patchfile_preg.c write(data->fd, &buf, sizeof(uint32_t));
buf 197 source4/lib/registry/patchfile_preg.c char *buf;
buf 206 source4/lib/registry/patchfile_preg.c buf = talloc_array(mem_ctx, char, buf_size);
buf 207 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 241 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 243 source4/lib/registry/patchfile_preg.c *buf_ptr != ';' && buf_ptr-buf < buf_size) {
buf 246 source4/lib/registry/patchfile_preg.c buf[buf_ptr-buf] = '\0';
buf 247 source4/lib/registry/patchfile_preg.c key = talloc_strdup(mem_ctx, buf);
buf 250 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 252 source4/lib/registry/patchfile_preg.c *buf_ptr != ';' && buf_ptr-buf < buf_size) {
buf 255 source4/lib/registry/patchfile_preg.c buf[buf_ptr-buf] = '\0';
buf 256 source4/lib/registry/patchfile_preg.c value_name = talloc_strdup(mem_ctx, buf);
buf 267 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 269 source4/lib/registry/patchfile_preg.c *buf_ptr == ';') && buf_ptr-buf < buf_size) {
buf 281 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 283 source4/lib/registry/patchfile_preg.c *buf_ptr == ';') && buf_ptr-buf < buf_size) {
buf 289 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 296 source4/lib/registry/patchfile_preg.c data = data_blob_talloc(mem_ctx, buf, length);
buf 299 source4/lib/registry/patchfile_preg.c buf_ptr = buf;
buf 301 source4/lib/registry/patchfile_preg.c *buf_ptr == ']') && buf_ptr-buf < buf_size) {
buf 356 source4/lib/registry/patchfile_preg.c talloc_free(buf);
buf 207 source4/lib/socket/socket.c return sock->ops->fn_recv(sock, buf, 1+(random() % wantlen), nread);
buf 209 source4/lib/socket/socket.c return sock->ops->fn_recv(sock, buf, wantlen, nread);
buf 227 source4/lib/socket/socket.c return sock->ops->fn_recvfrom(sock, buf, wantlen, nread,
buf 63 source4/lib/socket/socket.h NTSTATUS (*fn_recv)(struct socket_context *sock, void *buf,
buf 72 source4/lib/socket/socket.h void *buf, size_t wantlen, size_t *nread,
buf 263 source4/lib/socket/socket_ip.c gotlen = recv(sock->fd, buf, wantlen, 0);
buf 303 source4/lib/socket/socket_ip.c gotlen = recvfrom(sock->fd, buf, wantlen, 0,
buf 788 source4/lib/socket/socket_ip.c gotlen = recvfrom(sock->fd, buf, wantlen, 0,
buf 227 source4/lib/socket/socket_unix.c gotlen = recv(sock->fd, buf, wantlen, 0);
buf 119 source4/lib/tls/tls.c *(uint8_t *)buf = tls->first_byte;
buf 124 source4/lib/tls/tls.c status = socket_recv(tls->socket, buf, size, &nread);
buf 162 source4/lib/tls/tls.c b.data = discard_const(buf);
buf 282 source4/lib/tls/tls.c *(uint8_t *)buf = tls->first_byte;
buf 289 source4/lib/tls/tls.c return socket_recv(tls->socket, buf, wantlen, nread);
buf 298 source4/lib/tls/tls.c ret = gnutls_record_recv(tls->session, buf, wantlen);
buf 48 source4/lib/tls/tlscert.c char buf[4096];
buf 139 source4/lib/tls/tlscert.c bufsize = sizeof(buf);
buf 140 source4/lib/tls/tlscert.c TLSCHECK(gnutls_x509_crt_export(crt, GNUTLS_X509_FMT_PEM, buf, &bufsize));
buf 141 source4/lib/tls/tlscert.c file_save(certfile, buf, bufsize);
buf 143 source4/lib/tls/tlscert.c bufsize = sizeof(buf);
buf 144 source4/lib/tls/tlscert.c TLSCHECK(gnutls_x509_crt_export(cacrt, GNUTLS_X509_FMT_PEM, buf, &bufsize));
buf 145 source4/lib/tls/tlscert.c file_save(cafile, buf, bufsize);
buf 147 source4/lib/tls/tlscert.c bufsize = sizeof(buf);
buf 148 source4/lib/tls/tlscert.c TLSCHECK(gnutls_x509_privkey_export(key, GNUTLS_X509_FMT_PEM, buf, &bufsize));
buf 149 source4/lib/tls/tlscert.c file_save(keyfile, buf, bufsize);
buf 733 source4/lib/wmi/wmi_wrap.c char buf[SWIG_PYBUFFER_SIZE * 2];
buf 736 source4/lib/wmi/wmi_wrap.c res = vsnprintf(buf, sizeof(buf), fmt, ap);
buf 738 source4/lib/wmi/wmi_wrap.c return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
buf 336 source4/libcli/auth/smbdes.c uint8_t buf[8];
buf 337 source4/libcli/auth/smbdes.c des_crypt56(buf, in, key, 1);
buf 338 source4/libcli/auth/smbdes.c des_crypt56(out, buf, key+9, 1);
buf 344 source4/libcli/auth/smbdes.c uint8_t buf[8];
buf 347 source4/libcli/auth/smbdes.c des_crypt56(buf, in, key, forw);
buf 349 source4/libcli/auth/smbdes.c des_crypt56(out, buf, key2, forw);
buf 355 source4/libcli/auth/smbdes.c uint8_t buf[8];
buf 356 source4/libcli/auth/smbdes.c des_crypt56(buf, in, key, forw);
buf 357 source4/libcli/auth/smbdes.c des_crypt56(out, buf, key+7, forw);
buf 32 source4/libcli/clireadwrite.c uint8_t *buf = (uint8_t *)_buf;
buf 61 source4/libcli/clireadwrite.c parms.readx.out.data = buf + total;
buf 92 source4/libcli/clireadwrite.c const uint8_t *buf = (const uint8_t *)_buf;
buf 116 source4/libcli/clireadwrite.c parms.writex.in.data = buf;
buf 126 source4/libcli/clireadwrite.c buf += parms.writex.out.nwritten;
buf 138 source4/libcli/clireadwrite.c const uint8_t *buf = (const uint8_t *)_buf;
buf 152 source4/libcli/clireadwrite.c parms.write.in.data = buf + total;
buf 33 source4/libcli/raw/rawdate.c push_dos_date(buf, offset, unixdate, transport->negotiate.server_zone);
buf 43 source4/libcli/raw/rawdate.c push_dos_date2(buf, offset, unixdate, transport->negotiate.server_zone);
buf 53 source4/libcli/raw/rawdate.c push_dos_date3(buf, offset, unixdate, transport->negotiate.server_zone);
buf 484 source4/libcli/raw/smb.h #define smb_base(buf) (((char *)(buf))+4)
buf 613 source4/libcli/raw/smb.h #define smb_len(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|(PVAL(buf,1)<<16))
buf 614 source4/libcli/raw/smb.h #define _smb_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0x10000)>>16; \
buf 615 source4/libcli/raw/smb.h (buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
buf 616 source4/libcli/raw/smb.h #define _smb2_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0xFF0000)>>16; \
buf 617 source4/libcli/raw/smb.h (buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
buf 222 source4/libcli/smb2/request.c if ((uintptr_t)ptr < (uintptr_t)buf->body ||
buf 223 source4/libcli/smb2/request.c (uintptr_t)ptr >= (uintptr_t)buf->body + buf->body_size ||
buf 224 source4/libcli/smb2/request.c size > buf->body_size ||
buf 225 source4/libcli/smb2/request.c (uintptr_t)ptr + size > (uintptr_t)buf->body + buf->body_size) {
buf 239 source4/libcli/smb2/request.c if (buf->dynamic == (buf->body + buf->body_fixed)) {
buf 252 source4/libcli/smb2/request.c uint32_t newsize = buf->size + increase;
buf 257 source4/libcli/smb2/request.c if (newsize <= buf->allocated) return NT_STATUS_OK;
buf 259 source4/libcli/smb2/request.c dynamic_ofs = buf->dynamic - buf->buffer;
buf 261 source4/libcli/smb2/request.c buffer_ptr = talloc_realloc(buf, buf->buffer, uint8_t, newsize);
buf 264 source4/libcli/smb2/request.c buf->buffer = buffer_ptr;
buf 265 source4/libcli/smb2/request.c buf->hdr = buf->buffer + NBT_HDR_SIZE;
buf 266 source4/libcli/smb2/request.c buf->body = buf->hdr + SMB2_HDR_BODY;
buf 267 source4/libcli/smb2/request.c buf->dynamic = buf->buffer + dynamic_ofs;
buf 268 source4/libcli/smb2/request.c buf->allocated = newsize;
buf 280 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 4)) {
buf 289 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 292 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 309 source4/libcli/smb2/request.c uint8_t *ptr = buf->body+ofs;
buf 311 source4/libcli/smb2/request.c if (buf->dynamic == NULL) {
buf 321 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 4)) {
buf 334 source4/libcli/smb2/request.c offset = buf->dynamic - buf->hdr;
buf 337 source4/libcli/smb2/request.c padding_fix = smb2_padding_fix(buf);
buf 342 source4/libcli/smb2/request.c status = smb2_grow_buffer(buf, blob.length + padding_length - padding_fix);
buf 345 source4/libcli/smb2/request.c memset(buf->dynamic, 0, padding_length);
buf 346 source4/libcli/smb2/request.c buf->dynamic += padding_length;
buf 348 source4/libcli/smb2/request.c memcpy(buf->dynamic, blob.data, blob.length);
buf 349 source4/libcli/smb2/request.c buf->dynamic += blob.length;
buf 351 source4/libcli/smb2/request.c buf->size += blob.length + padding_length - padding_fix;
buf 352 source4/libcli/smb2/request.c buf->body_size += blob.length + padding_length;
buf 370 source4/libcli/smb2/request.c uint8_t *ptr = buf->body+ofs;
buf 372 source4/libcli/smb2/request.c if (buf->dynamic == NULL) {
buf 377 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 6)) {
buf 390 source4/libcli/smb2/request.c offset = buf->dynamic - buf->hdr;
buf 393 source4/libcli/smb2/request.c padding_fix = smb2_padding_fix(buf);
buf 398 source4/libcli/smb2/request.c status = smb2_grow_buffer(buf, blob.length + padding_length - padding_fix);
buf 401 source4/libcli/smb2/request.c memset(buf->dynamic, 0, padding_length);
buf 402 source4/libcli/smb2/request.c buf->dynamic += padding_length;
buf 404 source4/libcli/smb2/request.c memcpy(buf->dynamic, blob.data, blob.length);
buf 405 source4/libcli/smb2/request.c buf->dynamic += blob.length;
buf 407 source4/libcli/smb2/request.c buf->size += blob.length + padding_length - padding_fix;
buf 408 source4/libcli/smb2/request.c buf->body_size += blob.length + padding_length;
buf 426 source4/libcli/smb2/request.c uint8_t *ptr = buf->body+ofs;
buf 428 source4/libcli/smb2/request.c if (buf->dynamic == NULL) {
buf 433 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 446 source4/libcli/smb2/request.c offset = buf->dynamic - buf->hdr;
buf 449 source4/libcli/smb2/request.c padding_fix = smb2_padding_fix(buf);
buf 454 source4/libcli/smb2/request.c status = smb2_grow_buffer(buf, blob.length + padding_length - padding_fix);
buf 457 source4/libcli/smb2/request.c memset(buf->dynamic, 0, padding_length);
buf 458 source4/libcli/smb2/request.c buf->dynamic += padding_length;
buf 460 source4/libcli/smb2/request.c memcpy(buf->dynamic, blob.data, blob.length);
buf 461 source4/libcli/smb2/request.c buf->dynamic += blob.length;
buf 463 source4/libcli/smb2/request.c buf->size += blob.length + padding_length - padding_fix;
buf 464 source4/libcli/smb2/request.c buf->body_size += blob.length + padding_length;
buf 482 source4/libcli/smb2/request.c uint8_t *ptr = buf->body+ofs;
buf 484 source4/libcli/smb2/request.c if (buf->dynamic == NULL) {
buf 489 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 502 source4/libcli/smb2/request.c offset = buf->dynamic - buf->hdr;
buf 505 source4/libcli/smb2/request.c padding_fix = smb2_padding_fix(buf);
buf 510 source4/libcli/smb2/request.c status = smb2_grow_buffer(buf, blob.length + padding_length - padding_fix);
buf 513 source4/libcli/smb2/request.c memset(buf->dynamic, 0, padding_length);
buf 514 source4/libcli/smb2/request.c buf->dynamic += padding_length;
buf 516 source4/libcli/smb2/request.c memcpy(buf->dynamic, blob.data, blob.length);
buf 517 source4/libcli/smb2/request.c buf->dynamic += blob.length;
buf 519 source4/libcli/smb2/request.c buf->size += blob.length + padding_length - padding_fix;
buf 520 source4/libcli/smb2/request.c buf->body_size += blob.length + padding_length;
buf 534 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 6)) {
buf 543 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 546 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 558 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 567 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 570 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 585 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 594 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 597 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 609 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 618 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 621 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 633 source4/libcli/smb2/request.c if (smb2_oob(buf, ptr, 8)) {
buf 642 source4/libcli/smb2/request.c if (smb2_oob(buf, buf->hdr + ofs, size)) {
buf 645 source4/libcli/smb2/request.c *blob = data_blob_talloc(mem_ctx, buf->hdr + ofs, size);
buf 662 source4/libcli/smb2/request.c status = smb2_pull_o16s16_blob(buf, mem_ctx, ptr, &blob);
buf 700 source4/libcli/smb2/request.c return smb2_push_o16s16_blob(buf, ofs, data_blob(NULL, 0));
buf 706 source4/libcli/smb2/request.c return smb2_push_o16s16_blob(buf, ofs, blob);
buf 709 source4/libcli/smb2/request.c ret = convert_string_talloc(buf->buffer, CH_UNIX, CH_UTF16,
buf 716 source4/libcli/smb2/request.c status = smb2_push_o16s16_blob(buf, ofs, blob);
buf 37 source4/libcli/smb2/signing.c if (buf->size < NBT_HDR_SIZE + SMB2_HDR_SIGNATURE + 16) {
buf 42 source4/libcli/smb2/signing.c session_id = BVAL(buf->hdr, SMB2_HDR_SESSION_ID);
buf 55 source4/libcli/smb2/signing.c memset(buf->hdr + SMB2_HDR_SIGNATURE, 0, 16);
buf 57 source4/libcli/smb2/signing.c SIVAL(buf->hdr, SMB2_HDR_FLAGS, IVAL(buf->hdr, SMB2_HDR_FLAGS) | SMB2_HDR_FLAG_SIGNED);
buf 61 source4/libcli/smb2/signing.c hmac_sha256_update(buf->buffer+NBT_HDR_SIZE, buf->size-NBT_HDR_SIZE, &m);
buf 63 source4/libcli/smb2/signing.c DEBUG(5,("signed SMB2 message of size %u\n", (unsigned)buf->size - NBT_HDR_SIZE));
buf 65 source4/libcli/smb2/signing.c memcpy(buf->hdr + SMB2_HDR_SIGNATURE, res, 16);
buf 80 source4/libcli/smb2/signing.c if (buf->size < NBT_HDR_SIZE + SMB2_HDR_SIGNATURE + 16) {
buf 85 source4/libcli/smb2/signing.c session_id = BVAL(buf->hdr, SMB2_HDR_SESSION_ID);
buf 97 source4/libcli/smb2/signing.c memcpy(sig, buf->hdr+SMB2_HDR_SIGNATURE, 16);
buf 99 source4/libcli/smb2/signing.c memset(buf->hdr + SMB2_HDR_SIGNATURE, 0, 16);
buf 103 source4/libcli/smb2/signing.c hmac_sha256_update(buf->hdr, buf->size-NBT_HDR_SIZE, &m);
buf 106 source4/libcli/smb2/signing.c memcpy(buf->hdr+SMB2_HDR_SIGNATURE, sig, 16);
buf 110 source4/libcli/smb2/signing.c (unsigned)buf->size-NBT_HDR_SIZE));
buf 96 source4/ntvfs/posix/pvfs_util.c uint8_t *buf = talloc_array(name2, uint8_t, buf_size);
buf 98 source4/ntvfs/posix/pvfs_util.c if (buf == NULL) {
buf 104 source4/ntvfs/posix/pvfs_util.c talloc_free(buf);
buf 111 source4/ntvfs/posix/pvfs_util.c talloc_free(buf);
buf 116 source4/ntvfs/posix/pvfs_util.c ssize_t ret2, ret = read(fd1, buf, buf_size);
buf 123 source4/ntvfs/posix/pvfs_util.c ret2 = write(fd2, buf, ret);
buf 132 source4/ntvfs/posix/pvfs_util.c talloc_free(buf);
buf 141 source4/ntvfs/posix/pvfs_util.c talloc_free(buf);
buf 2624 source4/rpc_server/lsa/dcesrv_lsa.c r->out.old_val->buf = talloc(mem_ctx, struct lsa_DATA_BUF);
buf 2625 source4/rpc_server/lsa/dcesrv_lsa.c if (!r->out.old_val->buf) {
buf 2628 source4/rpc_server/lsa/dcesrv_lsa.c r->out.old_val->buf->size = crypt_secret.length;
buf 2629 source4/rpc_server/lsa/dcesrv_lsa.c r->out.old_val->buf->length = crypt_secret.length;
buf 2630 source4/rpc_server/lsa/dcesrv_lsa.c r->out.old_val->buf->data = crypt_secret.data;
buf 2660 source4/rpc_server/lsa/dcesrv_lsa.c r->out.new_val->buf = talloc(mem_ctx, struct lsa_DATA_BUF);
buf 2661 source4/rpc_server/lsa/dcesrv_lsa.c if (!r->out.new_val->buf) {
buf 2664 source4/rpc_server/lsa/dcesrv_lsa.c r->out.new_val->buf->length = crypt_secret.length;
buf 2665 source4/rpc_server/lsa/dcesrv_lsa.c r->out.new_val->buf->size = crypt_secret.length;
buf 2666 source4/rpc_server/lsa/dcesrv_lsa.c r->out.new_val->buf->data = crypt_secret.data;
buf 2295 source4/smb_server/smb/reply.c uint8_t *buf = talloc_zero_array(req, uint8_t, 4);
buf 2299 source4/smb_server/smb/reply.c SIVAL(buf, 0, 0);
buf 2308 source4/smb_server/smb/reply.c SCVAL(buf,0,0x82);
buf 2309 source4/smb_server/smb/reply.c SCVAL(buf,3,0);
buf 2315 source4/smb_server/smb/reply.c req->out.buffer = buf;
buf 2322 source4/smb_server/smb/reply.c SCVAL(buf, 0, SMBkeepalive);
buf 2323 source4/smb_server/smb/reply.c SCVAL(buf, 3, 0);
buf 2324 source4/smb_server/smb/reply.c req->out.buffer = buf;
buf 33 source4/smb_server/smb/srvtime.c push_dos_date(buf, offset, unixdate, smb_server->negotiate.zone_offset);
buf 43 source4/smb_server/smb/srvtime.c push_dos_date2(buf, offset, unixdate, smb_server->negotiate.zone_offset);
buf 53 source4/smb_server/smb/srvtime.c push_dos_date3(buf, offset, unixdate, smb_server->negotiate.zone_offset);
buf 85 source4/smbd/pidfile.c char buf[20];
buf 111 source4/smbd/pidfile.c memset(buf, 0, sizeof(buf));
buf 112 source4/smbd/pidfile.c slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) getpid());
buf 113 source4/smbd/pidfile.c if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
buf 128 source4/torture/basic/base.c uint8_t buf[1024];
buf 153 source4/torture/basic/base.c torture_assert(tctx, smbcli_read(cli2->tree, fnum1, buf, 0, 13) != 13,
buf 155 source4/torture/basic/base.c "read succeeded! nasty security hole [%s]\n", buf));
buf 405 source4/torture/basic/base.c uint8_t buf[4];
buf 425 source4/torture/basic/base.c memset(buf, 0, 4); /* init buf so valgrind won't complain */
buf 426 source4/torture/basic/base.c if (smbcli_write(cli->tree, fnum1, 0, buf, 130, 4) != 4) {
buf 446 source4/torture/basic/base.c if (smbcli_write(cli->tree, fnum1, 0, buf, 130, 4) == 4) {
buf 457 source4/torture/basic/base.c if (smbcli_write(cli->tree, fnum1, 0, buf, 130, 4) == 4) {
buf 468 source4/torture/basic/base.c if (smbcli_write(cli->tree, fnum1, 0, buf, 130, 4) == 4) {
buf 546 source4/torture/basic/base.c uint8_t buf[131072];
buf 573 source4/torture/basic/base.c size_t buf_size = ((uint_t)random()%(sizeof(buf)-1))+ 1;
buf 580 source4/torture/basic/base.c generate_random_buffer(buf, buf_size);
buf 582 source4/torture/basic/base.c if ((bytes_written = smbcli_write(c1->tree, fnum1, 0, buf, 0, buf_size)) != buf_size) {
buf 596 source4/torture/basic/base.c torture_assert_mem_equal(tctx, buf_rd, buf, buf_size,
buf 768 source4/torture/basic/base.c uint8_t buf[20];
buf 875 source4/torture/basic/base.c memset(buf, '\0', 20);
buf 877 source4/torture/basic/base.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 0, 20) != 20) {
buf 1191 source4/torture/basic/base.c memset(buf, '\0', 20);
buf 1193 source4/torture/basic/base.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 0, 20) != 20) {
buf 1313 source4/torture/basic/base.c char buf[2048];
buf 1316 source4/torture/basic/base.c memset(buf, 0, sizeof(buf));
buf 1324 source4/torture/basic/base.c filesize -= (sizeof(buf) - 1);
buf 1344 source4/torture/basic/base.c res = smbcli_read(cli->tree, fnum, buf,
buf 1345 source4/torture/basic/base.c random() % filesize, sizeof(buf));
buf 1346 source4/torture/basic/base.c torture_assert(tctx, res == sizeof(buf),
buf 1355 source4/torture/basic/base.c res = smbcli_write(cli->tree, fnum, 0, buf,
buf 1356 source4/torture/basic/base.c random() % filesize, sizeof(buf));
buf 1357 source4/torture/basic/base.c torture_assert(tctx, res == sizeof(buf),
buf 146 source4/torture/basic/delaywrite.c char buf[2048];
buf 160 source4/torture/basic/delaywrite.c memset(buf, 'x', 2048);
buf 161 source4/torture/basic/delaywrite.c written = smbcli_write(cli->tree, fnum1, 0, buf, 0, 2048);
buf 327 source4/torture/basic/delaywrite.c char buf[2048];
buf 341 source4/torture/basic/delaywrite.c memset(buf, 'x', 2048);
buf 342 source4/torture/basic/delaywrite.c written = smbcli_write(cli->tree, fnum1, 0, buf, 0, 2048);
buf 506 source4/torture/basic/delaywrite.c char buf[2048];
buf 520 source4/torture/basic/delaywrite.c memset(buf, 'x', 2048);
buf 521 source4/torture/basic/delaywrite.c written = smbcli_write(cli->tree, fnum1, 0, buf, 0, 2048);
buf 678 source4/torture/basic/delaywrite.c char buf[2048];
buf 692 source4/torture/basic/delaywrite.c memset(buf, 'x', 2048);
buf 693 source4/torture/basic/delaywrite.c written = smbcli_write(cli->tree, fnum1, 0, buf, 0, 2048);
buf 1752 source4/torture/basic/denytest.c uint8_t buf[1];
buf 1756 source4/torture/basic/denytest.c ZERO_STRUCT(buf);
buf 1762 source4/torture/basic/denytest.c smbcli_write(cli1->tree, fnum1, 0, buf, 0, sizeof(buf));
buf 1822 source4/torture/basic/denytest.c r.readx.in.mincnt = sizeof(buf);
buf 1823 source4/torture/basic/denytest.c r.readx.in.maxcnt = sizeof(buf);
buf 1826 source4/torture/basic/denytest.c r.readx.out.data = buf;
buf 1834 source4/torture/basic/denytest.c 0, buf, 0, sizeof(buf)) >= 1) {
buf 377 source4/torture/basic/locking.c uint8_t buf[1000];
buf 387 source4/torture/basic/locking.c memset(buf, 0, sizeof(buf));
buf 389 source4/torture/basic/locking.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
buf 458 source4/torture/basic/locking.c (smbcli_read(cli2->tree, fnum2, buf, 120, 4) == 4);
buf 463 source4/torture/basic/locking.c (smbcli_write(cli2->tree, fnum2, 0, buf, 130, 4) == 4);
buf 479 source4/torture/basic/locking.c (smbcli_read(cli2->tree, fnum2, buf, 150, 4) == 4) &&
buf 480 source4/torture/basic/locking.c !(smbcli_write(cli2->tree, fnum2, 0, buf, 150, 4) == 4) &&
buf 487 source4/torture/basic/locking.c (smbcli_write(cli2->tree, fnum2, 0, buf, 160, 4) == 4) &&
buf 488 source4/torture/basic/locking.c (smbcli_read(cli2->tree, fnum2, buf, 160, 4) == 4);
buf 494 source4/torture/basic/locking.c (smbcli_write(cli2->tree, fnum2, 0, buf, 170, 4) == 4) &&
buf 495 source4/torture/basic/locking.c (smbcli_read(cli2->tree, fnum2, buf, 170, 4) == 4);
buf 502 source4/torture/basic/locking.c !(smbcli_write(cli2->tree, fnum2, 0, buf, 190, 4) == 4) &&
buf 503 source4/torture/basic/locking.c (smbcli_read(cli2->tree, fnum2, buf, 190, 4) == 4);
buf 538 source4/torture/basic/locking.c uint8_t buf[1000];
buf 549 source4/torture/basic/locking.c memset(buf, 0, sizeof(buf));
buf 551 source4/torture/basic/locking.c torture_assert(tctx, smbcli_write(cli1->tree, fnum1, 0, buf, 0, sizeof(buf)) == sizeof(buf),
buf 685 source4/torture/basic/locking.c uint8_t buf[200];
buf 693 source4/torture/basic/locking.c memset(buf, 0, sizeof(buf));
buf 695 source4/torture/basic/locking.c torture_assert(tctx, smbcli_write(cli1->tree, fnum1, 0, buf, 0, sizeof(buf)) == sizeof(buf),
buf 706 source4/torture/basic/locking.c torture_assert(tctx, smbcli_read(cli1->tree, fnum1, buf, 130, 4) == 4,
buf 712 source4/torture/basic/locking.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 130, 4) != 4) {
buf 722 source4/torture/basic/locking.c if (smbcli_read(cli1->tree, fnum1, buf, 130, 4) != 4) {
buf 728 source4/torture/basic/locking.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 130, 4) != 4) {
buf 744 source4/torture/basic/locking.c torture_assert(tctx, smbcli_read(cli1->tree, fnum1, buf, 130, 4) == 4,
buf 749 source4/torture/basic/locking.c torture_assert(tctx, smbcli_write(cli1->tree, fnum1, 0, buf, 130, 4) == 4,
buf 756 source4/torture/basic/locking.c if (smbcli_read(cli1->tree, fnum1, buf, 130, 4) != 4) {
buf 765 source4/torture/basic/locking.c if (smbcli_write(cli1->tree, fnum1, 0, buf, 130, 4) != 4) {
buf 58 source4/torture/basic/misc.c uint8_t buf[1024];
buf 70 source4/torture/basic/misc.c generate_random_buffer(buf, sizeof(buf));
buf 99 source4/torture/basic/misc.c if (smbcli_write(c->tree, fnum, 0, buf,
buf 100 source4/torture/basic/misc.c sizeof(pid)+(j*sizeof(buf)),
buf 101 source4/torture/basic/misc.c sizeof(buf)) != sizeof(buf)) {
buf 548 source4/torture/nbench/nbio.c uint8_t *buf;
buf 555 source4/torture/nbench/nbio.c buf = malloc(size);
buf 556 source4/torture/nbench/nbio.c memset(buf, 0xab, size);
buf 564 source4/torture/nbench/nbio.c io.writex.in.data = buf;
buf 568 source4/torture/nbench/nbio.c free(buf);
buf 589 source4/torture/nbench/nbio.c uint8_t *buf;
buf 596 source4/torture/nbench/nbio.c buf = malloc(size);
buf 598 source4/torture/nbench/nbio.c memset(buf, 0x12, size);
buf 605 source4/torture/nbench/nbio.c io.write.in.data = buf;
buf 609 source4/torture/nbench/nbio.c free(buf);
buf 714 source4/torture/nbench/nbio.c uint8_t *buf;
buf 721 source4/torture/nbench/nbio.c buf = malloc(size);
buf 730 source4/torture/nbench/nbio.c io.readx.out.data = buf;
buf 734 source4/torture/nbench/nbio.c free(buf);
buf 1259 source4/torture/ndr/lsa.c torture_assert(tctx, r->in.new_val->buf == NULL, "new val ptr ptr");
buf 442 source4/torture/raw/offline.c char buf[FILE_SIZE];
buf 445 source4/torture/raw/offline.c memset(buf, 1+(i % 255), sizeof(buf));
buf 453 source4/torture/raw/offline.c if (smbcli_write(state[0].tree, fnum, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
buf 1335 source4/torture/raw/open.c const char *buf = "test";
buf 1343 source4/torture/raw/open.c smbcli_write(cli->tree, fnum, 0, buf, 0, sizeof(buf));
buf 1359 source4/torture/raw/open.c io.openxreadx.in.mincnt = sizeof(buf);
buf 1360 source4/torture/raw/open.c io.openxreadx.in.maxcnt = sizeof(buf);
buf 1368 source4/torture/raw/open.c if (memcmp(buf, buf2, sizeof(buf)) != 0) {
buf 1392 source4/torture/raw/open.c const char *buf = "test";
buf 1399 source4/torture/raw/open.c smbcli_write(cli->tree, fnum, 0, buf, 0, sizeof(buf));
buf 46 source4/torture/raw/read.c if (!check_buffer(buf, seed, len, __LINE__)) { \
buf 61 source4/torture/raw/read.c for (i=0;i<len;i++) buf[i] = random();
buf 73 source4/torture/raw/read.c if (buf[i] != v) {
buf 75 source4/torture/raw/read.c line, i, buf[i], v);
buf 91 source4/torture/raw/read.c uint8_t *buf;
buf 97 source4/torture/raw/read.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 118 source4/torture/raw/read.c io.read.out.data = buf;
buf 146 source4/torture/raw/read.c if (memcmp(buf, test_data, strlen(test_data)) != 0) {
buf 148 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data, buf);
buf 158 source4/torture/raw/read.c if (memcmp(buf, test_data+1, strlen(test_data)-1) != 0) {
buf 160 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data+1, buf);
buf 173 source4/torture/raw/read.c setup_buffer(buf, seed, maxsize);
buf 174 source4/torture/raw/read.c smbcli_write(cli->tree, fnum, 0, buf, 0, maxsize);
buf 175 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 182 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.read.out.nread);
buf 193 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 218 source4/torture/raw/read.c uint8_t *buf;
buf 224 source4/torture/raw/read.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 245 source4/torture/raw/read.c io.lockread.out.data = buf;
buf 285 source4/torture/raw/read.c if (memcmp(buf, test_data, strlen(test_data)) != 0) {
buf 287 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data, buf);
buf 301 source4/torture/raw/read.c if (memcmp(buf, test_data+1, strlen(test_data)-1) != 0) {
buf 303 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data+1, buf);
buf 316 source4/torture/raw/read.c setup_buffer(buf, seed, maxsize);
buf 317 source4/torture/raw/read.c smbcli_write(cli->tree, fnum, 0, buf, 0, maxsize);
buf 318 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 328 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.lockread.out.nread);
buf 340 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 363 source4/torture/raw/read.c uint8_t *buf;
buf 369 source4/torture/raw/read.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 392 source4/torture/raw/read.c io.readx.out.data = buf;
buf 429 source4/torture/raw/read.c if (memcmp(buf, test_data, strlen(test_data)) != 0) {
buf 431 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data, buf);
buf 444 source4/torture/raw/read.c if (memcmp(buf, test_data+1, strlen(test_data)-1) != 0) {
buf 446 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data+1, buf);
buf 463 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 472 source4/torture/raw/read.c if (memcmp(buf, test_data, strlen(test_data)) != 0) {
buf 474 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data, buf);
buf 479 source4/torture/raw/read.c setup_buffer(buf, seed, maxsize);
buf 480 source4/torture/raw/read.c smbcli_write(cli->tree, fnum, 0, buf, 0, maxsize);
buf 481 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 492 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readx.out.nread);
buf 508 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readx.out.nread);
buf 511 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 520 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readx.out.nread);
buf 523 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 532 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readx.out.nread);
buf 572 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 619 source4/torture/raw/read.c uint8_t *buf;
buf 625 source4/torture/raw/read.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 647 source4/torture/raw/read.c io.readbraw.out.data = buf;
buf 677 source4/torture/raw/read.c if (memcmp(buf, test_data, strlen(test_data)) != 0) {
buf 679 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data, buf);
buf 690 source4/torture/raw/read.c if (memcmp(buf, test_data+1, strlen(test_data)-1) != 0) {
buf 692 source4/torture/raw/read.c printf("incorrect data at %d!? (%s:%s)\n", __LINE__, test_data+1, buf);
buf 706 source4/torture/raw/read.c setup_buffer(buf, seed, maxsize);
buf 707 source4/torture/raw/read.c smbcli_write(cli->tree, fnum, 0, buf, 0, maxsize);
buf 708 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 717 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readbraw.out.nread);
buf 720 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 727 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readbraw.out.nread);
buf 730 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 737 source4/torture/raw/read.c CHECK_BUFFER(buf, seed, io.readbraw.out.nread);
buf 747 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 756 source4/torture/raw/read.c memset(buf, 0, maxsize);
buf 794 source4/torture/raw/read.c uint8_t *buf;
buf 799 source4/torture/raw/read.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 862 source4/torture/raw/read.c rd.readx.out.data = buf;
buf 877 source4/torture/raw/read.c rd.readx.out.data = buf;
buf 909 source4/torture/raw/read.c rd.readx.out.data = buf;
buf 924 source4/torture/raw/read.c rd.readx.out.data = buf;
buf 464 source4/torture/raw/rename.c char buf[16384];
buf 466 source4/torture/raw/rename.c memset(buf, 1, sizeof(buf));
buf 467 source4/torture/raw/rename.c smbcli_write(cli->tree, fnum, 0, buf, 0, sizeof(buf));
buf 471 source4/torture/raw/rename.c memset(buf, 1, sizeof(buf));
buf 472 source4/torture/raw/rename.c smbcli_write(cli->tree, fnum, 0, buf, 0, sizeof(buf)-1);
buf 49 source4/torture/raw/samba3misc.c char buf[16];
buf 76 source4/torture/raw/samba3misc.c nread = smbcli_read(cli->tree, 4711, buf, 0, sizeof(buf));
buf 115 source4/torture/raw/samba3misc.c nread = smbcli_read(cli->tree, fnum, buf, 0, sizeof(buf));
buf 127 source4/torture/raw/samba3misc.c nread = smbcli_read(tree2, fnum, buf, 0, sizeof(buf));
buf 148 source4/torture/raw/samba3misc.c nread = smbcli_read(tree2, fnum, buf, 0, sizeof(buf));
buf 85 source4/torture/raw/streams.c uint8_t *buf;
buf 107 source4/torture/raw/streams.c buf = talloc_array(mem_ctx, uint8_t, strlen(value)+11);
buf 109 source4/torture/raw/streams.c ret = smbcli_read(cli->tree, fnum, buf, 0, strlen(value)+11);
buf 116 source4/torture/raw/streams.c if (memcmp(buf, value, strlen(value)) != 0) {
buf 518 source4/torture/raw/streams.c uint8_t buf[9];
buf 579 source4/torture/raw/streams.c retsize = smbcli_read(cli->tree, fnum, buf, 0, 9);
buf 36 source4/torture/raw/tconrate.c void * buf;
buf 45 source4/torture/raw/tconrate.c buf = mmap(NULL, bufsz, PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED,
buf 48 source4/torture/raw/tconrate.c buf = mmap(NULL, bufsz, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED,
buf 52 source4/torture/raw/tconrate.c if (buf == MAP_FAILED) {
buf 58 source4/torture/raw/tconrate.c return buf;
buf 47 source4/torture/raw/write.c if (!check_buffer(buf, seed, len, __location__)) { \
buf 75 source4/torture/raw/write.c for (i=0;i<len;i++) buf[i] = random();
buf 87 source4/torture/raw/write.c if (buf[i] != v) {
buf 89 source4/torture/raw/write.c location, i, buf[i], v);
buf 106 source4/torture/raw/write.c uint8_t *buf;
buf 112 source4/torture/raw/write.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 133 source4/torture/raw/write.c io.write.in.data = buf;
buf 138 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 143 source4/torture/raw/write.c io.write.in.data = buf;
buf 148 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 149 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 154 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 155 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 157 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 162 source4/torture/raw/write.c io.write.in.data = buf;
buf 167 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 168 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 4000) != 4000) {
buf 173 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 179 source4/torture/raw/write.c io.write.in.data = buf;
buf 198 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 202 source4/torture/raw/write.c io.write.in.data = buf;
buf 208 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 209 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, io.write.in.offset, 4000) != 4000) {
buf 214 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 234 source4/torture/raw/write.c uint8_t *buf;
buf 246 source4/torture/raw/write.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 268 source4/torture/raw/write.c io.writex.in.data = buf;
buf 273 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 278 source4/torture/raw/write.c io.writex.in.data = buf;
buf 283 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 284 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 289 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 290 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 292 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 297 source4/torture/raw/write.c io.writex.in.data = buf;
buf 302 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 303 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 4000) != 4000) {
buf 308 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 314 source4/torture/raw/write.c io.writex.in.data = buf;
buf 323 source4/torture/raw/write.c io.writex.in.data = buf;
buf 358 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 362 source4/torture/raw/write.c io.writex.in.data = buf;
buf 368 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 369 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, io.writex.in.offset, 4000) != 4000) {
buf 374 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 378 source4/torture/raw/write.c setup_buffer(buf, seed+1, maxsize);
buf 382 source4/torture/raw/write.c io.writex.in.data = buf;
buf 392 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 393 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, io.writex.in.offset, 4000) != 4000) {
buf 398 source4/torture/raw/write.c CHECK_BUFFER(buf, seed+1, 4000);
buf 402 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 422 source4/torture/raw/write.c uint8_t *buf;
buf 428 source4/torture/raw/write.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 449 source4/torture/raw/write.c io.writeunlock.in.data = buf;
buf 454 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 459 source4/torture/raw/write.c io.writeunlock.in.data = buf;
buf 462 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 467 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 468 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 470 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 477 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 478 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 483 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 484 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 486 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 491 source4/torture/raw/write.c io.writeunlock.in.data = buf;
buf 501 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 502 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 4000) != 4000) {
buf 507 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 513 source4/torture/raw/write.c io.writeunlock.in.data = buf;
buf 527 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 531 source4/torture/raw/write.c io.writeunlock.in.data = buf;
buf 539 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 540 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, io.writeunlock.in.offset, 4000) != 4000) {
buf 545 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 565 source4/torture/raw/write.c uint8_t *buf;
buf 571 source4/torture/raw/write.c buf = talloc_zero_array(tctx, uint8_t, maxsize);
buf 592 source4/torture/raw/write.c io.writeclose.in.data = buf;
buf 601 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 606 source4/torture/raw/write.c io.writeclose.in.data = buf;
buf 616 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 621 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 622 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 624 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 632 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 633 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 13) != 13) {
buf 638 source4/torture/raw/write.c CHECK_BUFFER(buf+4, seed, 9);
buf 639 source4/torture/raw/write.c CHECK_VALUE(IVAL(buf,0), 0);
buf 641 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 646 source4/torture/raw/write.c io.writeclose.in.data = buf;
buf 657 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 658 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, 0, 4000) != 4000) {
buf 663 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 669 source4/torture/raw/write.c io.writeclose.in.data = buf;
buf 683 source4/torture/raw/write.c setup_buffer(buf, seed, maxsize);
buf 687 source4/torture/raw/write.c io.writeclose.in.data = buf;
buf 696 source4/torture/raw/write.c memset(buf, 0, maxsize);
buf 697 source4/torture/raw/write.c if (smbcli_read(cli->tree, fnum, buf, io.writeclose.in.offset, 4000) != 4000) {
buf 702 source4/torture/raw/write.c CHECK_BUFFER(buf, seed, 4000);
buf 1276 source4/torture/rpc/lsa.c bufp1.buf = NULL;
buf 1284 source4/torture/rpc/lsa.c if (r4.out.new_val == NULL || r4.out.new_val->buf == NULL) {
buf 1288 source4/torture/rpc/lsa.c blob1.data = r4.out.new_val->buf->data;
buf 1289 source4/torture/rpc/lsa.c blob1.length = r4.out.new_val->buf->size;
buf 1335 source4/torture/rpc/lsa.c bufp1.buf = NULL;
buf 1336 source4/torture/rpc/lsa.c bufp2.buf = NULL;
buf 1345 source4/torture/rpc/lsa.c if (r6.out.new_val->buf == NULL || r6.out.old_val->buf == NULL
buf 1351 source4/torture/rpc/lsa.c blob1.data = r6.out.new_val->buf->data;
buf 1352 source4/torture/rpc/lsa.c blob1.length = r6.out.new_val->buf->size;
buf 1364 source4/torture/rpc/lsa.c blob1.data = r6.out.old_val->buf->data;
buf 1365 source4/torture/rpc/lsa.c blob1.length = r6.out.old_val->buf->length;
buf 1414 source4/torture/rpc/lsa.c bufp1.buf = NULL;
buf 1415 source4/torture/rpc/lsa.c bufp2.buf = NULL;
buf 1425 source4/torture/rpc/lsa.c } else if (r8.out.new_val->buf != NULL) {
buf 1428 source4/torture/rpc/lsa.c } else if (r8.out.old_val->buf == NULL) {
buf 1435 source4/torture/rpc/lsa.c blob1.data = r8.out.old_val->buf->data;
buf 1436 source4/torture/rpc/lsa.c blob1.length = r8.out.old_val->buf->size;
buf 895 source4/torture/rpc/samsync.c bufp1.buf = NULL;
buf 896 source4/torture/rpc/samsync.c bufp2.buf = NULL;
buf 907 source4/torture/rpc/samsync.c if (q.out.old_val->buf == NULL) {
buf 910 source4/torture/rpc/samsync.c lsa_blob1.data = q.out.old_val->buf->data;
buf 911 source4/torture/rpc/samsync.c lsa_blob1.length = q.out.old_val->buf->length;
buf 947 source4/torture/rpc/samsync.c if (q.out.new_val->buf == NULL) {
buf 950 source4/torture/rpc/samsync.c lsa_blob1.data = q.out.new_val->buf->data;
buf 951 source4/torture/rpc/samsync.c lsa_blob1.length = q.out.new_val->buf->length;
buf 114 source4/torture/rpc/session_key.c bufp1.buf = NULL;
buf 119 source4/torture/rpc/session_key.c if (r4.out.new_val == NULL || r4.out.new_val->buf == NULL)
buf 121 source4/torture/rpc/session_key.c blob1.data = r4.out.new_val->buf->data;
buf 122 source4/torture/rpc/session_key.c blob1.length = r4.out.new_val->buf->size;
buf 52 source4/torture/smb2/lock.c uint8_t buf[200];
buf 56 source4/torture/smb2/lock.c ZERO_STRUCT(buf);
buf 61 source4/torture/smb2/lock.c status = smb2_util_write(tree, h, buf, 0, ARRAY_SIZE(buf));
buf 323 source4/torture/smb2/lock.c uint8_t buf[200];
buf 332 source4/torture/smb2/lock.c ZERO_STRUCT(buf);
buf 337 source4/torture/smb2/lock.c status = smb2_util_write(tree, h1, buf, 0, ARRAY_SIZE(buf));
buf 344 source4/torture/smb2/lock.c el[0].length = ARRAY_SIZE(buf)/2;
buf 354 source4/torture/smb2/lock.c el[0].offset = ARRAY_SIZE(buf)/2;
buf 355 source4/torture/smb2/lock.c el[0].length = ARRAY_SIZE(buf)/2;
buf 381 source4/torture/smb2/lock.c wr.in.offset = ARRAY_SIZE(buf)/2;
buf 382 source4/torture/smb2/lock.c wr.in.data = data_blob_const(buf, ARRAY_SIZE(buf)/2);
buf 389 source4/torture/smb2/lock.c rd.in.offset = ARRAY_SIZE(buf)/2;
buf 390 source4/torture/smb2/lock.c rd.in.length = ARRAY_SIZE(buf)/2;
buf 397 source4/torture/smb2/lock.c wr.in.offset = ARRAY_SIZE(buf)/2;
buf 398 source4/torture/smb2/lock.c wr.in.data = data_blob_const(buf, ARRAY_SIZE(buf)/2);
buf 405 source4/torture/smb2/lock.c rd.in.offset = ARRAY_SIZE(buf)/2;
buf 406 source4/torture/smb2/lock.c rd.in.length = ARRAY_SIZE(buf)/2;
buf 414 source4/torture/smb2/lock.c el[0].offset = ARRAY_SIZE(buf)/2;
buf 415 source4/torture/smb2/lock.c el[0].length = ARRAY_SIZE(buf)/2;
buf 424 source4/torture/smb2/lock.c wr.in.offset = ARRAY_SIZE(buf)/2;
buf 425 source4/torture/smb2/lock.c wr.in.data = data_blob_const(buf, ARRAY_SIZE(buf)/2);
buf 432 source4/torture/smb2/lock.c rd.in.offset = ARRAY_SIZE(buf)/2;
buf 433 source4/torture/smb2/lock.c rd.in.length = ARRAY_SIZE(buf)/2;
buf 490 source4/torture/smb2/lock.c uint8_t buf[200];
buf 494 source4/torture/smb2/lock.c ZERO_STRUCT(buf);
buf 499 source4/torture/smb2/lock.c status = smb2_util_write(tree, h, buf, 0, ARRAY_SIZE(buf));
buf 55 source4/torture/smb2/read.c uint8_t buf[70000];
buf 59 source4/torture/smb2/read.c ZERO_STRUCT(buf);
buf 64 source4/torture/smb2/read.c status = smb2_util_write(tree, h, buf, 0, ARRAY_SIZE(buf));
buf 79 source4/torture/smb2/read.c rd.in.offset = sizeof(buf);
buf 85 source4/torture/smb2/read.c rd.in.offset = sizeof(buf);
buf 92 source4/torture/smb2/read.c rd.in.offset = sizeof(buf);
buf 98 source4/torture/smb2/read.c rd.in.offset = sizeof(buf) - 1;
buf 105 source4/torture/smb2/read.c rd.in.offset = sizeof(buf) - 1;
buf 138 source4/torture/smb2/read.c uint8_t buf[70000];
buf 143 source4/torture/smb2/read.c ZERO_STRUCT(buf);
buf 148 source4/torture/smb2/read.c status = smb2_util_write(tree, h, buf, 0, ARRAY_SIZE(buf));
buf 49 source4/torture/smb2/util.c w.in.data = data_blob_const(buf, size);
buf 61 source4/torture/smb2/util.c char buf[7] = "abc";
buf 106 source4/torture/smb2/util.c status = smb2_util_write(tree, *handle, buf, 0, sizeof(buf));
buf 94 source4/torture/util_smb.c char buf[7] = "abc";
buf 111 source4/torture/util_smb.c smbcli_write(cli->tree, fnum, 0, buf, 0, sizeof(buf));
buf 255 source4/utils/ntlm_auth.c user=buf;
buf 257 source4/utils/ntlm_auth.c pass = memchr(buf, ' ', length);
buf 287 source4/utils/ntlm_auth.c if (strlen(buf) < 2) {
buf 288 source4/utils/ntlm_auth.c DEBUG(1, ("query [%s] invalid", buf));
buf 293 source4/utils/ntlm_auth.c if (strlen(buf) > 3) {
buf 294 source4/utils/ntlm_auth.c in = base64_decode_data_blob(NULL, buf + 3);
buf 299 source4/utils/ntlm_auth.c if (strncmp(buf, "PW ", 3) == 0) {
buf 422 source4/utils/ntlm_auth.c if (strlen(buf) < 2) {
buf 423 source4/utils/ntlm_auth.c DEBUG(1, ("query [%s] invalid", buf));
buf 428 source4/utils/ntlm_auth.c if (strlen(buf) > 3) {
buf 429 source4/utils/ntlm_auth.c if(strncmp(buf, "SF ", 3) == 0) {
buf 432 source4/utils/ntlm_auth.c want_feature_list = talloc_strndup(state, buf+3, strlen(buf)-3);
buf 436 source4/utils/ntlm_auth.c in = base64_decode_data_blob(NULL, buf + 3);
buf 441 source4/utils/ntlm_auth.c if (strncmp(buf, "YR", 2) == 0) {
buf 446 source4/utils/ntlm_auth.c } else if ( (strncmp(buf, "OK", 2) == 0)) {
buf 451 source4/utils/ntlm_auth.c } else if ( (strncmp(buf, "TT ", 3) != 0) &&
buf 452 source4/utils/ntlm_auth.c (strncmp(buf, "KK ", 3) != 0) &&
buf 453 source4/utils/ntlm_auth.c (strncmp(buf, "AF ", 3) != 0) &&
buf 454 source4/utils/ntlm_auth.c (strncmp(buf, "NA ", 3) != 0) &&
buf 455 source4/utils/ntlm_auth.c (strncmp(buf, "UG", 2) != 0) &&
buf 456 source4/utils/ntlm_auth.c (strncmp(buf, "PW ", 3) != 0) &&
buf 457 source4/utils/ntlm_auth.c (strncmp(buf, "GK", 2) != 0) &&
buf 458 source4/utils/ntlm_auth.c (strncmp(buf, "GF", 2) != 0)) {
buf 459 source4/utils/ntlm_auth.c DEBUG(1, ("SPNEGO request [%s] invalid\n", buf));
buf 577 source4/utils/ntlm_auth.c if (strncmp(buf, "PW ", 3) == 0) {
buf 591 source4/utils/ntlm_auth.c if (strncmp(buf, "UG", 2) == 0) {
buf 622 source4/utils/ntlm_auth.c if (strncmp(buf, "GK", 2) == 0) {
buf 640 source4/utils/ntlm_auth.c if (strncmp(buf, "GF", 2) == 0) {
buf 748 source4/utils/ntlm_auth.c if (strequal(buf, ".")) {
buf 857 source4/utils/ntlm_auth.c request = buf;
buf 930 source4/utils/ntlm_auth.c char *buf;
buf 944 source4/utils/ntlm_auth.c buf = talloc_strdup(NULL, "");
buf 946 source4/utils/ntlm_auth.c if (buf == NULL) {
buf 967 source4/utils/ntlm_auth.c buf = talloc_strdup_append_buffer(buf, tmp);
buf 973 source4/utils/ntlm_auth.c talloc_free(buf);
buf 977 source4/utils/ntlm_auth.c c = strchr(buf, '\n');
buf 981 source4/utils/ntlm_auth.c length = c-buf;
buf 983 source4/utils/ntlm_auth.c DEBUG(10, ("Got '%s' from squid (length: %d).\n",buf,length));
buf 985 source4/utils/ntlm_auth.c if (buf[0] == '\0') {
buf 988 source4/utils/ntlm_auth.c talloc_free(buf);
buf 993 source4/utils/ntlm_auth.c if (sscanf(buf, "%u ", &mux_id) != 1) {
buf 996 source4/utils/ntlm_auth.c talloc_free(buf);
buf 1005 source4/utils/ntlm_auth.c c=strchr(buf,' ');
buf 1009 source4/utils/ntlm_auth.c talloc_free(buf);
buf 1026 source4/utils/ntlm_auth.c c = buf;
buf 1031 source4/utils/ntlm_auth.c talloc_free(buf);
buf 151 source4/web_server/web_server.c uint8_t buf[1024];
buf 157 source4/web_server/web_server.c status = socket_recv(conn->socket, buf, sizeof(buf), &nread);
buf 161 source4/web_server/web_server.c if (!data_blob_append(web, &web->input.partial, buf, nread))