DOKK / manpages / debian 10 / libdpm-dev / dpm_extendfilelife.3.en
DPM_EXTENDFILELIFE(3) DPM Library Functions DPM_EXTENDFILELIFE(3)

dpm_extendfilelife - extend file lifetime

#include <sys/types.h>
#include "dpm_api.h"

int dpm_extendfilelife (char *r_token, char *surl, time_t lifetime, time_t *actual_lifetime)

dpm_extendfilelife extends file lifetime.

specifies the token returned by a previous get, put or copy request.
specifies the name of the file.
specifies the new lifetime relative to the current time.
will receive the actual lifetime assigned by the server.

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.

File does not exist.
surl is a NULL pointer.
The length of r_token exceeds CA_MAXDPMTOKENLEN or the token is unknown.
The length of the surl exceeds CA_MAXSFNLEN.
Host unknown.
Database error.
Communication error.
$Date: 2006/12/20 15:28:25 $ LCG