/external/oprofile/libutil/ |
H A D | op_deviceio.c | 28 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 D | crc16.c | 49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument 51 const u8 *p = buf;
|
/external/qemu/distrib/libselinux/src/ |
H A D | deny_unknown.c | 16 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 D | fgetfilecon.c | 12 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 D | getenforce.c | 16 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 D | getfilecon.c | 12 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 D | lgetfilecon.c | 12 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 D | policyvers.c | 17 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 D | setenforce.c | 16 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 D | sparse_crc32.c | 101 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 D | hexdump.c | 18 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 D | m_vkiscnums.c | 49 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 D | aio.c | 12 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 D | static_malloc.c | 3 static char buf[10000]; variable 7 return buf + bufi - i;
|
/external/valgrind/main/none/tests/s390x/ |
H A D | mvc.c | 54 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 D | bug125959-x86.c | 4 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 D | ieee802_11.h | 19 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 D | p2p_hostapd.h | 15 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 D | sha256_i.h | 17 u8 buf[SHA256_BLOCK_SIZE]; member in struct:sha256_state
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | ip_addr.c | 14 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 D | ieee802_11.h | 19 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 D | p2p_hostapd.h | 15 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 D | sha256_i.h | 17 u8 buf[SHA256_BLOCK_SIZE]; member in struct:sha256_state
|
/external/wpa_supplicant_8/src/utils/ |
H A D | ip_addr.c | 14 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 D | ieee802_11.h | 19 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
|