/freebsd-10.0-release/usr.sbin/bluetooth/sdpd/ |
H A D | dun.c | 41 uint8_t *buf, uint8_t const * const eob, 49 buf, eob, 56 uint8_t *buf, uint8_t const * const eob, 65 buf, eob, 72 uint8_t *buf, uint8_t const * const eob, 78 buf, eob, 84 uint8_t *buf, uint8_t const * const eob, 91 buf, eob, 97 uint8_t *buf, uint8_t const * const eob, 103 if (buf 40 dun_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 55 dun_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 71 dun_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 83 dun_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 96 dun_profile_create_audio_feedback_support( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument [all...] |
/freebsd-10.0-release/usr.sbin/mlxcontrol/ |
H A D | util.c | 47 static char buf[32]; local 49 sprintf(buf, "%s%s", _PATH_DEV, ctrlrname(unit)); 50 return(buf); 57 static char buf[32]; local 59 sprintf(buf, "mlx%d", unit); 60 return(buf); 67 static char buf[32]; local 69 sprintf(buf, "%s%s", _PATH_DEV, drivename(unit)); 70 return(buf); 77 static char buf[3 local [all...] |
/freebsd-10.0-release/sys/compat/linux/ |
H A D | linux_stats.c | 118 (dev = findcdev(buf->st_rdev)) != NULL) { 127 tbuf.st_dev = minor(buf->st_dev) & 0xf; 128 tbuf.st_rdev = buf->st_rdev & 0xff; 138 translate_fd_major_minor(struct thread *td, int fd, struct stat *buf) argument 147 if ((!S_ISCHR(buf->st_mode) && !S_ISBLK(buf->st_mode)) || 154 buf->st_rdev = (major << 8 | minor); 161 buf->st_rdev = (major << 8 | minor); 168 newstat_copyout(struct stat *buf, void *ubuf) argument 173 tbuf.st_dev = minor(buf 196 struct stat buf; local 238 struct stat buf; local 255 stat_copyout(struct stat *buf, void *ubuf) argument 288 struct stat buf; local 310 struct stat buf; local 505 stat64_copyout(struct stat *buf, void *ubuf) argument 541 struct stat buf; local 583 struct stat buf; local 604 struct stat buf; local [all...] |
/freebsd-10.0-release/contrib/atf/atf-c/detail/ |
H A D | sanity.c | 46 char buf[4096]; local 49 vsnprintf(buf, sizeof(buf), fmt, ap); 51 warnx("%s", buf);
|
/freebsd-10.0-release/contrib/groff/src/libs/libgroff/ |
H A D | iftoa.c | 30 static char buf[INT_DIGITS + 3]; local 31 char *p = buf + INT_DIGITS + 2; 33 buf[INT_DIGITS + 2] = '\0'; 55 for (q = buf + INT_DIGITS + 2; q[-1] == '0'; --q)
|
/freebsd-10.0-release/contrib/ipfilter/lib/ |
H A D | printip.c | 30 char buf[INET6_ADDRSTRLEN + 1]; local 33 buf[0] = '\0'; 34 str = inet_ntop(AF_INET6, addr, buf, sizeof(buf) - 1);
|
/freebsd-10.0-release/contrib/sendmail/libsm/ |
H A D | t-strio.c | 21 char buf[20]; local 26 (void) memset(buf, '.', 20); 27 sm_strio_init(&f, buf, 10); 31 SM_TEST(strcmp(buf, r) == 0);
|
/freebsd-10.0-release/crypto/heimdal/appl/test/ |
H A D | nt_gss_common.h | 36 void nt_write_token (int sock, gss_buffer_t buf); 37 void nt_read_token (int sock, gss_buffer_t buf);
|
/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | dumpdata.c | 43 rk_dumpdata (const char *filename, const void *buf, size_t size) argument 50 net_write(fd, buf, size); 59 rk_undumpdata(const char *filename, void **buf, size_t *size) argument 65 *buf = NULL; 74 *buf = malloc(sb.st_size); 75 if (*buf == NULL) { 81 sret = net_read(fd, *buf, *size); 86 free(*buf); 87 *buf = NULL;
|
/freebsd-10.0-release/crypto/openssl/crypto/rand/ |
H A D | rand.h | 83 void (*seed)(const void *buf, int num); 84 int (*bytes)(unsigned char *buf, int num); 86 void (*add)(const void *buf, int num, double entropy); 87 int (*pseudorand)(unsigned char *buf, int num); 102 int RAND_bytes(unsigned char *buf,int num); 103 int RAND_pseudo_bytes(unsigned char *buf,int num); 104 void RAND_seed(const void *buf,int num); 105 void RAND_add(const void *buf,int num,double entropy); 110 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
|
/freebsd-10.0-release/lib/libc/rpc/ |
H A D | rpc_callmsg.c | 63 int32_t *buf; local 76 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT 80 if (buf != NULL) { 81 IXDR_PUT_INT32(buf, cmsg->rm_xid); 82 IXDR_PUT_ENUM(buf, cmsg->rm_direction); 86 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers); 90 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_prog); 91 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_vers); 92 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_proc); 94 IXDR_PUT_ENUM(buf, o [all...] |
/freebsd-10.0-release/lib/libc/stdio/ |
H A D | gets.c | 50 gets(char *buf) argument 64 for (s = buf; (c = __sgetc(stdin)) != '\n';) 66 if (s == buf) { 75 return (buf);
|
H A D | xprintf_vis.c | 51 char *p, *buf; local 63 buf = malloc(l * 4 + 1); 64 if (buf == NULL) 67 ret = strvisx(buf, p, l, VIS_WHITE | VIS_HTTPSTYLE); 69 ret = strvisx(buf, p, l, VIS_WHITE | VIS_OCTAL); 71 ret = strvisx(buf, p, l, VIS_WHITE); 73 ret = strvisx(buf, p, l, VIS_WHITE | VIS_CSTYLE | VIS_OCTAL); 74 ret += __printf_out(io, pi, buf, ret); 76 free(buf);
|
/freebsd-10.0-release/lib/libc/stdlib/ |
H A D | l64a.c | 26 static char buf[8]; local 28 (void)l64a_r(value, buf, sizeof(buf)); 29 return (buf);
|
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/ |
H A D | alloc.c | 206 struct mlx4_buf *buf) 211 buf->nbufs = 1; 212 buf->npages = 1; 213 buf->page_shift = get_order(size) + PAGE_SHIFT; 214 buf->direct.buf = dma_alloc_coherent(&dev->pdev->dev, 216 if (!buf->direct.buf) 219 buf->direct.map = t; 221 while (t & ((1 << buf 205 mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf) argument 274 mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf) argument [all...] |
/freebsd-10.0-release/sys/rpc/ |
H A D | rpc_callmsg.c | 59 int32_t *buf; local 69 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT 73 if (buf != NULL) { 74 IXDR_PUT_INT32(buf, cmsg->rm_xid); 75 IXDR_PUT_ENUM(buf, cmsg->rm_direction); 79 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers); 83 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_prog); 84 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_vers); 85 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_proc); 87 IXDR_PUT_ENUM(buf, o [all...] |
/freebsd-10.0-release/tools/regression/pipe/ |
H A D | bigpipetest.c | 18 void write_frame(int fd, char *buf, unsigned long buflen) argument 35 i = write(fd, buf, buflen); 41 buf += i; 48 char buf[BIG_PIPE_SIZE]; /* any value over PIPE_SIZE should do */ local 68 i = read(fd[0], buf, 256); /* any small size should do */ 78 memset(buf, 0, sizeof buf); 79 for (i = 0; i < 1000; i++) write_frame(fd[1], buf, sizeof buf);
|
/freebsd-10.0-release/usr.bin/cksum/ |
H A D | sum1.c | 53 u_char buf[8192]; local 60 while ((nr = read(fd, buf, sizeof(buf))) > 0) 61 for (total += nr, p = buf; nr--; ++p) {
|
H A D | sum2.c | 52 u_char buf[8192]; local 62 while ((nr = read(fd, buf, sizeof(buf))) > 0) 63 for (total += nr, p = buf; nr--; ++p)
|
/freebsd-10.0-release/usr.bin/fold/ |
H A D | fold.c | 157 static wchar_t *buf; local 165 wprintf(L"%.*ls\n", indx, buf); 172 while (--i >= 0 && !iswblank(buf[i])) 178 wprintf(L"%.*ls\n", space, buf); 179 wmemmove(buf, buf + space, indx - space); 183 col = newpos(col, buf[i]); 185 wprintf(L"%.*ls\n", indx, buf); 192 buf = realloc(buf, sizeo 209 char buf[MB_LEN_MAX]; local [all...] |
/freebsd-10.0-release/usr.bin/tset/ |
H A D | misc.c | 49 char buf[1024]; local 54 while ((nr = read(fd, buf, sizeof(buf))) > 0) 55 if ((nw = write(STDERR_FILENO, buf, nr)) == -1)
|
/freebsd-10.0-release/contrib/ntp/ntpd/ |
H A D | refclock_pcf.c | 135 char buf[LENPCF]; local 141 buf[0] = 0; 142 if (read(pp->io.fd, buf, sizeof(buf)) < sizeof(buf) || buf[0] != 9) { 147 tm.tm_mday = buf[11] * 10 + buf[10]; 148 tm.tm_mon = buf[13] * 10 + buf[1 [all...] |
/freebsd-10.0-release/sys/dev/ppbus/ |
H A D | pcfclock.c | 92 #define PCFCLOCK_CORRECT_SYNC(buf) (buf[0] == 9) 94 #define NR(buf, off) (buf[off+1]*10+buf[off]) 97 #define PCFCLOCK_CORRECT_FORMAT(buf) (\ 98 NR(buf, 14) <= 99 && \ 99 NR(buf, 12) <= 12 && \ 100 NR(buf, 10) <= 31 && \ 101 NR(buf, 204 pcfclock_display_data(struct cdev *dev, char buf[18]) argument 226 pcfclock_read_data(struct cdev *dev, char *buf, ssize_t bits) argument 265 pcfclock_read_dev(struct cdev *dev, char *buf, int maxretries) argument 299 char buf[18]; local [all...] |
/freebsd-10.0-release/contrib/ncurses/ncurses/trace/ |
H A D | lib_tracebits.c | 85 lookup_bits(char *buf, const BITNAMES * table, const char *label, unsigned int val) argument 89 (void) strcat(buf, label); 90 (void) strcat(buf, ": {"); 94 (void) strcat(buf, sp->name); 95 (void) strcat(buf, ", "); 97 if (buf[strlen(buf) - 2] == ',') 98 buf[strlen(buf) - 2] = '\0'; 99 (void) strcat(buf, "} "); 106 char *buf; local [all...] |
/freebsd-10.0-release/crypto/openssh/ |
H A D | entropy.c | 65 * Collect 'len' bytes of entropy into 'buf' from PRNGD/EGD daemon 73 get_random_bytes_prngd(unsigned char *buf, int len, argument 144 if (atomicio(read, fd, buf, len) != (size_t)len) { 164 seed_from_prngd(unsigned char *buf, size_t bytes) argument 168 if (get_random_bytes_prngd(buf, bytes, PRNGD_PORT, NULL) == 0) 173 if (get_random_bytes_prngd(buf, bytes, 0, PRNGD_SOCKET) == 0) 182 u_char buf[RANDOM_SEED_SIZE]; local 184 if (RAND_bytes(buf, sizeof(buf)) <= 0) { 189 buffer_put_string(m, buf, sizeo 195 u_char *buf; local 210 unsigned char buf[RANDOM_SEED_SIZE]; local [all...] |