---
name: "dpm_abortreq"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpm_abortreq"
---

# dpm\_abortreq(3)

abort a given get, put or copy request

## NAME

dpm\_abortreq - abort a given get, put or copy request

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "dpm\_api.h"**

**int dpm\_abortreq (char \****r\_token***)**

## DESCRIPTION

**dpm\_abortreq** aborts a given get, put or copy request. The request status and the status of every file belonging to this request and still in the queue is set to **DPM\_ABORTED**.

- *r\_token*

  specifies the token returned by a previous get, put or copy request.

## 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

- **EACCES**

  Permission denied.

- **EFAULT**

  *r\_token* is a NULL pointer.

- **EINVAL**

  The length of *r\_token* exceeds **CA\_MAXDPMTOKENLEN** or the token is unknown.

- **SENOSHOST**

  Host unknown.

- **SEINTERNAL**

  Database error.

- **SECOMERR**

  Communication error.
