---
name: "coe"
section: "3"
platform: "linux"
package: "qmail"
version: "1.06-6.2~deb10u1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/coe"
---

# coe(3)

set close-on-exec flag for a descriptor

## NAME

coe - set close-on-exec flag for a descriptor

## SYNTAX

**#include \<coe.h\>**

int **coe**(*fd*);

int *fd*;

## DESCRIPTION

**coe** sets the close-on-exec flag for file descriptor *fd*, returning 0 if it was successful or -1 on error. If **coe** is successful, *fd* will be closed when the process calls **execve**.

## SEE ALSO

[execve(2)](/execve/2.md), [fcntl(2)](/fcntl/2.md)
