2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A which builds after this directory. */ 2N/A/* It would be nice to just use error_message() always. Pity that 2N/A it's defined in a library that depends on this one, and we're not 2N/A allowed to make circular dependencies. */ 2N/A/* We really want a rwlock here, since we should hold it while calling 2N/A the function and copying out its results. But I haven't 2N/A implemented shims for rwlock yet. */ 2N/A/* Solaris Kerberos */ 2N/A /* Try to localize the format string */ 2N/A /* try vasprintf first */ 2N/A /* Try to add file and line suffix. */ 2N/A /* If that failed, try using scratch_buf */ 2N/A /* free old string before setting new one */ 2N/A /* Theoretically, according to ISO C, strerror should be able 2N/A to give us a message back for any int value. However, on 2N/A UNIX at least, the errno codes strerror will actually be 2N/A useful for are positive, so a negative value here would be 2N/A Coverity Prevent thinks we shouldn't be passing negative 2N/A values to strerror, and it's not likely to be useful, so 2N/A Besides, normally we shouldn't get here; fptr should take 2N/A us to a callback function in the com_err library. */