Searched defs:buf (Results 126 - 150 of 4210) sorted by relevance

1234567891011>>

/external/oprofile/libutil/
H A Dop_deviceio.c28 ssize_t op_read_device(fd_t devfd, void * buf, size_t size) argument
34 count = read(devfd, buf, size);
/external/qemu/distrib/ext4_utils/src/
H A Dcrc16.c49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument
51 const u8 *p = buf;
/external/qemu/distrib/libselinux/src/
H A Ddeny_unknown.c16 char buf[20]; local
28 memset(buf, 0, sizeof(buf));
29 ret = read(fd, buf, sizeof(buf) - 1);
34 if (sscanf(buf, "%d", &deny_unknown) != 1)
H A Dfgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dgetenforce.c16 char buf[20]; local
28 memset(buf, 0, sizeof buf);
29 ret = read(fd, buf, sizeof buf - 1);
34 if (sscanf(buf, "%d", &enforce) != 1)
H A Dgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dlgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dpolicyvers.c17 char buf[20]; local
33 memset(buf, 0, sizeof buf);
34 ret = read(fd, buf, sizeof buf - 1);
39 if (sscanf(buf, "%u", &vers) != 1)
H A Dsetenforce.c16 char buf[20]; local
28 snprintf(buf, sizeof buf, "%d", value);
29 ret = write(fd, buf, strlen(buf));
/external/qemu/distrib/libsparse/src/
H A Dsparse_crc32.c101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument
103 const uint8_t *p = buf;
/external/qemu/util/
H A Dhexdump.c18 void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size) argument
29 fprintf(fp, " %02x", (unsigned char)buf[b]);
/external/valgrind/main/coregrind/
H A Dm_vkiscnums.c49 HChar* VG_(sysnum_string)(Word sysnum, SizeT n_buf, HChar* buf) argument
51 VG_(snprintf)(buf, n_buf, "%3ld", sysnum);
52 return buf;
55 HChar* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, HChar* buf) argument
57 return VG_(sysnum_string)(sysnum, n_buf, buf);
64 HChar* VG_(sysnum_string)(Word sysnum, SizeT n_buf, HChar* buf) argument
74 VG_(snprintf)(buf, n_buf, "%s:%3ld",
76 return buf;
79 HChar* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, HChar* buf) argument
81 return VG_(sysnum_string)(sysnum, n_buf, buf);
[all...]
/external/valgrind/main/memcheck/tests/darwin/
H A Daio.c12 char buf[LEN]; local
47 a.aio_buf = buf;
55 if (buf[0] == buf[9]) x++; // undefined -- aio_return() not called yet
59 if (buf[0] == buf[9]) x++;
72 a.aio_buf = buf;
/external/valgrind/main/memcheck/tests/
H A Dstatic_malloc.c3 static char buf[10000]; variable
7 return buf + bufi - i;
/external/valgrind/main/none/tests/s390x/
H A Dmvc.c54 printf("------- Non-destructive overlap buf[0:4] = buf[10:14]\n");
55 char buf[] = "0123456789abcde"; local
56 printf("before: buf = |%s|\n", buf);
58 ::"a" (buf),"a" (buf): "memory");
59 printf("after: buf = |%s|\n", buf);
/external/valgrind/main/none/tests/x86/
H A Dbug125959-x86.c4 unsigned char buf[256]; variable
9 block[0] = (int)&buf[0];
29 buf[i] = (unsigned char) i;
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dieee802_11.h19 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
21 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
26 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
28 char *buf, size_t buflen);
30 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, argument
38 char *buf, size_t buflen)
73 const u8 *buf, size_t len, int ack);
36 ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
H A Dp2p_hostapd.h15 char *buf, size_t buflen);
26 char *buf, size_t buflen)
24 hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dsha256_i.h17 u8 buf[SHA256_BLOCK_SIZE]; member in struct:sha256_state
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dip_addr.c14 const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, argument
21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen);
23 buf[0] = '\0';
27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL)
28 buf[0] = '\0';
32 return buf;
/external/wpa_supplicant_8/src/ap/
H A Dieee802_11.h19 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
21 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
26 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
28 char *buf, size_t buflen);
30 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, argument
38 char *buf, size_t buflen)
73 const u8 *buf, size_t len, int ack);
36 ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
H A Dp2p_hostapd.h15 char *buf, size_t buflen);
26 char *buf, size_t buflen)
24 hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
/external/wpa_supplicant_8/src/crypto/
H A Dsha256_i.h17 u8 buf[SHA256_BLOCK_SIZE]; member in struct:sha256_state
/external/wpa_supplicant_8/src/utils/
H A Dip_addr.c14 const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, argument
21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen);
23 buf[0] = '\0';
27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL)
28 buf[0] = '\0';
32 return buf;
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dieee802_11.h19 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
21 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
26 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
28 char *buf, size_t buflen);
30 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, argument
38 char *buf, size_t buflen)
73 const u8 *buf, size_t len, int ack);
36 ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument

Completed in 1492 milliseconds

1234567891011>>