VirtualBox

Changeset 6454 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jan 22, 2008 4:46:25 PM (17 years ago)
Author:
vboxsync
Message:

Solaris is not longer restricting us to 255 bytes, raised chunk size to 2048.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp

    r6447 r6454  
    5151{
    5252    /*
    53      * Solaris does not accept more than 255 bytes of data per ioctl request,
    54      * so split large string into 128 byte chunks to prevent truncation.
     53     * *BSD does not accept more than 4KB per ioctl request,
     54     * so, split it up into 2KB chunks.
    5555     */
    56 #define STEP 128 /** @todo increase to 512 when solaris ioctl code is fixed. (darwin limits us to 1024 IIRC) */
     56#define STEP 2048
    5757    int rc = VINF_SUCCESS;
    5858    for (size_t off = 0; off < cb && RT_SUCCESS(rc); off += STEP)
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