Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/dup.2
| Show All 26 Lines | |||||
| .\" | .\" | ||||
| .Dd December 1, 2017 | .Dd December 1, 2017 | ||||
| .Dt DUP 2 | .Dt DUP 2 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm dup , | .Nm dup , | ||||
| .Nm dup2 | .Nm dup2 | ||||
| .Nd duplicate an existing file descriptor | .Nd duplicate an existing file descriptor | ||||
| .Sh LIBRARY | |||||
| .Lb libc | |||||
| .Sh SYNOPSIS | .Sh SYNOPSIS | ||||
| .Lb libc | |||||
| .In unistd.h | .In unistd.h | ||||
| .Ft int | .Ft int | ||||
| .Fn dup "int oldd" | .Fn dup "int oldd" | ||||
| .Ft int | .Ft int | ||||
| .Fn dup2 "int oldd" "int newd" | .Fn dup2 "int oldd" "int newd" | ||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||
| The | The | ||||
| .Fn dup | .Fn dup | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||