---
name: "fs3d"
section: "3"
platform: "macos"
package: "ksh"
version: "42"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/fs3d"
---

# fs3d(3)

3D (nDFS) on/off switch

## NAME

fs3d - 3D (nDFS) on/off switch

## SYNOPSIS

```
#include <fs3d.h>
int          fs3d(int op);
```

## DESCRIPTION

$1$2fs3dfs3dfs3dfs3dfs3dfs3dfs3dfs3d controls and queries the **3D** file system (aka**nDFS**) enable state. $1$200000000 is returned if the current process cannot mount **3D** files. *op* may be one of:

- **FS3D\_TEST**

  Returns $1$2FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\]FS3D\_ON \[1\] if **3D** is enabled, $1$2FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\]FS3D\_OFF \[0\] otherwise.

- **FS3D\_ON**

  Enables **3D** and returns the previous $1$23D3D3D3D3D3D3D3D state (either **FS3D\_ON** or **FS3D\_OFF**).

- **FS3D\_LIMIT(***limit***)**

  Sets the viewpath level limit to *limit*. The previous limit is returned.

- **FS3D\_INIT**

  Re-initialize the **3D** tables. Used for debugging.

## SEE ALSO

3D(1)
