fixup krb5_storage_truncate return value, add krb5_{store,ret}_data_xdr, doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24234 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -60,10 +60,12 @@ fd_seek(krb5_storage * sp, off_t offset, int whence)
|
||||
return lseek(FD(sp), offset, whence);
|
||||
}
|
||||
|
||||
static off_t
|
||||
static int
|
||||
fd_trunc(krb5_storage * sp, off_t offset)
|
||||
{
|
||||
return ftruncate(FD(sp), offset);
|
||||
if (ftruncate(FD(sp), offset) == -1)
|
||||
return errno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -72,6 +74,19 @@ fd_free(krb5_storage * sp)
|
||||
close(FD(sp));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return A krb5_storage on success, or NULL on out of memory error.
|
||||
*
|
||||
* @ingroup krb5_storage
|
||||
*
|
||||
* @sa krb5_storage_from_emem()
|
||||
* @sa krb5_storage_from_mem()
|
||||
* @sa krb5_storage_from_readonly_mem()
|
||||
* @sa krb5_storage_from_data()
|
||||
*/
|
||||
|
||||
krb5_storage * KRB5_LIB_FUNCTION
|
||||
krb5_storage_from_fd(int fd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user