Sun Directory Server Enterprise Edition 7.0 Developer's Guide

Returns

This function returns 0 if successful or -1 if prevattr was the last attribute in the entry.