VirtualBox

Changeset 26608 in vbox for trunk/include


Ignore:
Timestamp:
Feb 17, 2010 12:48:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57801
Message:

IPRT: linux implementation of RTSystemQueryDmiString.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r26163 r26608  
    9898 */
    9999RTDECL(ssize_t) RTLinuxSysFsReadStr(int fd, char *pszBuf, size_t cchBuf);
     100
     101/**
     102 * Reads the remainder of a file opened with RTLinuxSysFsOpen or
     103 * RTLinuxSysFsOpenV.
     104 *
     105 * @returns IPRT status code.
     106 * @param   fd          The file descriptor returned by RTLinuxSysFsOpen or RTLinuxSysFsOpenV.
     107 * @param   pvBuf       Where to store the bits from the file.
     108 * @param   cbBuf       The size of the buffer.
     109 * @param   pcbRead     Where to return the number of bytes read.  Optional.
     110 */
     111RTDECL(int) RTLinuxSysFsReadFile(int fd, void *pvBuf, size_t cbBuf, size_t *pcbRead);
    100112
    101113/**
  • trunk/include/iprt/system.h

    r26600 r26608  
    152152    /** The product version. */
    153153    RTSYSDMISTR_PRODUCT_VERSION,
     154    /** The product UUID. */
     155    RTSYSDMISTR_PRODUCT_UUID,
     156    /** The product serial. */
     157    RTSYSDMISTR_PRODUCT_SERIAL,
    154158    /** The end of the valid strings. */
    155159    RTSYSDMISTR_END,
     
    161165 * Queries a DMI string.
    162166 *
     167 * @returns IPRT status code.
    163168 * @retval  VINF_SUCCESS on success.
    164169 * @retval  VERR_BUFFER_OVERFLOW if the buffer is too small.  The buffer will
     
    171176 *
    172177 * @param   enmString           Which string to query.
    173  * @param   pszBuf              Where to store the string.
     178 * @param   pszBuf              Where to store the string.  This is always
     179 *                              terminated, even on error.
    174180 * @param   cbBuf               The buffer size.
    175181 */
Note: See TracChangeset for help on using the changeset viewer.

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