Home
last modified time | relevance | path

Searched refs:snprintf_s (Results 1 - 21 of 21) sorted by relevance

/third_party/bounds_checking_function/src/
H A Dsnprintf_s.c11 * Description: snprintf_s function
20 * The snprintf_s function is equivalent to the snprintf function
22 * The snprintf_s function formats and stores count or fewer characters in
31 * in bytes for snprintf_s or size in words for snwprintf_s.
47 int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, ...) in snprintf_s() function
60 EXPORT_SYMBOL(snprintf_s); variable
/third_party/musl/libc-test/src/functionalext/unittest/
H A Dunit_test_hilog_adapter.c93 int res = snprintf_s(finalCommand, COMMAND_SIZE, READ_SIZE, "%s%s", command, needToMatch); in CheckHiLogPrint()
95 printf("CheckHiLogPrint command generate snprintf_s failed\n"); in CheckHiLogPrint()
127 int res = snprintf_s(proc_path, PROC_PATH_LENGTH, PROC_PATH_LENGTH - 1, "/proc/%d/fd", getpid()); in CheckHiLogdLinked()
129 printf("CheckHiLogdLinked getpid snprintf_s failed\n"); in CheckHiLogdLinked()
142 res = snprintf_s(fd_path, sizeof(fd_path), sizeof(fd_path) - 1, "%s/%s", proc_path, entry->d_name); in CheckHiLogdLinked()
144 printf("CheckHiLogdLinked fd search snprintf_s failed\n"); in CheckHiLogdLinked()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c142 ret_s = snprintf_s(buf, buf_len, buf_len - 1, in wpa_driver_nl80211_driver_cmd()
165 ret_s = snprintf_s(buf, buf_len, buf_len - 1, "POWERMODE = %d\n", state); in wpa_driver_nl80211_driver_cmd()
503 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "TX_POWER %d", power); in wpa_driver_set_tx_power()
662 len = snprintf_s(buff, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
664 len = snprintf_s(ioctl_data.buf, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c143 ret_s = snprintf_s(buf, buf_len, buf_len - 1, in wpa_driver_nl80211_driver_cmd()
176 ret_s = snprintf_s(buf, buf_len, buf_len - 1, "POWERMODE = %d\n", state); in wpa_driver_nl80211_driver_cmd()
527 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "TX_POWER %d", power); in wpa_driver_set_tx_power()
692 len = snprintf_s(ioctl_data.buf, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
/third_party/NuttX/fs/driver/
H A Dfs_blockproxy.c100 ret = snprintf_s(devbuf, 16, 14, "/dev/tmp%06lx", (unsigned long)devno); in unique_chardev()
/third_party/musl/libc-test/src/functionalext/supplement/lock_info/
H A Dpthread_internal_lock_info.c47 int res = snprintf_s(finalCommand, COMMAND_SIZE, READ_SIZE, "%s%s", command, needToMatch); in CheckHiLogPrint()
49 t_error("CheckHiLogPrint command generate snprintf_s failed\n"); in CheckHiLogPrint()
/third_party/FreeBSD/sys/dev/usb/
H A Dusb_util.c125 if (snprintf_s(p, p_len, p_len - 1, "%x.%02x", bcd >> 8, bcd & 0xff)) { in usb_printbcd()
H A Dusb_device.c1593 (void)snprintf_s(udev->ugen_name, sizeof(udev->ugen_name), in usb_alloc_device()
1882 (void)snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, USB_DEVICE_DIR "/%u.%u.%u", in usb_make_dev()
1885 (void)snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, USB_DEVICE_DIR "/%s", in usb_make_dev()
2195 (void)snprintf_s(dst_ptr, dst_len, dst_len - 1, "%s %s, class %d/%d, rev %x.%02x/" in usb_devinfo()
2204 (void)snprintf_s(dst_ptr, dst_len, dst_len - 1, "%s %s, rev %x.%02x/" in usb_devinfo()
2297 (void)snprintf_s(temp_ptr, temp_size, temp_size - 1, "vendor 0x%04x", vendor_id); in usbd_set_device_strings()
2301 (void)snprintf_s(temp_ptr, temp_size, temp_size - 1, "product 0x%04x", product_id); in usbd_set_device_strings()
H A Dusb_dev.c1552 if (snprintf_s(devname, sizeof(devname), sizeof(devname) - 1, in usb_fifo_attach()
1559 if (snprintf_s(devname, sizeof(devname), sizeof(devname) - 1, in usb_fifo_attach()
H A Dusb_generic.c736 error = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%s: <%s>", ptr, desc); in ugen_get_iface_driver()
/third_party/NuttX/drivers/pipes/
H A Dpipe.c273 snprintf_s(devname, sizeof(devname), sizeof(devname) - 1, "/dev/pipe%d", pipeno); in pipe()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
H A Dusbd_generic_epfile.c599 (void)snprintf_s(dev_name, sizeof(dev_name), sizeof(dev_name) - 1, in generic_epfile_release()
657 ret = snprintf_s(dev_name, GENERIC_PATH_LEN, GENERIC_PATH_LEN - 1, in generic_epfiles_create()
H A Dusbd_generic_ep0.c1177 ret = snprintf_s(dev_name, GENERIC_PATH_LEN, GENERIC_PATH_LEN - 1, in generic_create_ep0()
1242 ret = snprintf_s(dev_name, sizeof(dev_name), sizeof(dev_name) - 1, in generic_remove_ep0()
H A Dusbd_config.c1206 ret = snprintf_s(devName, strlen(USB_FCONFIG_DEV) + 1, strlen(USB_FCONFIG_DEV), in fconfig_fops_init()
/third_party/bounds_checking_function/include/
H A Dsecurectype.h120 /* VS 2005 have vsnprintf_s function Adapt the snprintf_s of the security function */
121 #define snprintf_s _snprintf_s macro
H A Dsecurec.h266 * Description: The snprintf_s function is equivalent to the snprintf function except for
275 SECUREC_API int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format,
294 * Description: The snprintf_truncated_s function is equivalent to the snprintf_s function except
/third_party/FreeBSD/sys/dev/usb/serial/
H A Dusb_serial.c193 (void)snprintf_s(ssc->sc_ttyname, sizeof(ssc->sc_ttyname), sizeof(ssc->sc_ttyname) - 1, in ucom_attach()
310 ret = snprintf_s(sc->sc_name, TTY_NAME_LEN, TTY_NAME_LEN - 1, "/dev/ttyUSB%d", sc->sc_subunit); in ucom_attach_tty()
312 usb_err("snprintf_s failed\n"); in ucom_attach_tty()
364 (void)snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "ttyname=" UCOM_TTY_PREFIX in ucom_set_pnpinfo_usb()
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_mass_storage.c1045 (void)snprintf_s(node_name, sizeof(node_name), sizeof(node_name) - 1, "%s%0d", dev_path, i); in fmass_parts_registered()
1606 (void)snprintf_s(mass_dev->inquiry_str, sizeof(mass_dev->inquiry_str), sizeof(mass_dev->inquiry_str) - 1, in usbclass_mass_bind()
/third_party/FreeBSD/sys/dev/usb/storage/
H A Dumass.c940 (void)snprintf_s((char *)sc->sc_name, sizeof(sc->sc_name), sizeof(sc->sc_name) - 1, in umass_attach()
3548 ret = snprintf_s(devname, MASS_NAME, MASS_NAME - 1, "%s%c", UMASS_ATTACH_PRENAME, name_suf); in devunit_to_devname()
3550 usb_err("snprintf_s failed!, ret:%d\n", ret); in devunit_to_devname()
/third_party/FreeBSD/sys/kern/
H A Dsubr_bus.c1295 if (snprintf_s(dev->nameunit, buflen, buflen - 1, "%s%d", dc->name, dev->unit) < 0) { in devclass_add_device()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dctrl_iface.c5366 ret = snprintf_s(pos, end - pos, (end - pos - 1), "hilink=%d\n", bss->hilink);

Completed in 40 milliseconds