Scroll to navigation

DPM_EXTENDFILELIFE(3) DPM Library Functions DPM_EXTENDFILELIFE(3)

NAME

dpm_extendfilelife - extend file lifetime

SYNOPSIS

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

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

DESCRIPTION

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.

RETURN VALUE

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

ERRORS

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