VirtualBox

Changeset 86579 in vbox for trunk/include/iprt/linux


Ignore:
Timestamp:
Oct 14, 2020 8:53:56 PM (4 years ago)
Author:
vboxsync
Message:

IPRT/sysfs.h: Added RTLinuxConstructPath and RTLinuxConstructPathV. bugref:9224

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/linux/sysfs.h

    r82968 r86579  
    446446                                   const char *pszPattern, ...) RT_IPRT_FORMAT_ATTR(5, 6);
    447447
     448/**
     449 * Constructs the path of a sysfs file from the format parameters passed,
     450 * prepending "/sys/" if the path is relative.
     451 *
     452 * @returns IPRT status code.
     453 * @param   pszPath    Where to write the path.
     454 * @param   cbPath     The size of the buffer pointed to by @a pszPath.
     455 * @param   pszFormat  The name format, either absolute or relative to "/sys/".
     456 * @param   va         The format args.
     457 */
     458RTDECL(int) RTLinuxConstructPathV(char *pszPath, size_t cbPath, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0);
     459
     460/**
     461 * Constructs the path of a sysfs file from the format parameters passed,
     462 * prepending "/sys/" if the path is relative.
     463 *
     464 * @returns IPRT status code.
     465 * @param   pszPath    Where to write the path.
     466 * @param   cbPath     The size of the buffer pointed to by @a pszPath.
     467 * @param   pszFormat  The name format, either absolute or relative to "/sys/".
     468 * @param   ...        The format args.
     469 */
     470RTDECL(int) RTLinuxConstructPath(char *pszPath, size_t cbPath, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
     471
    448472/** @} */
    449473
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette