.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.Dd July 9, 2009
.Dd November 28, 2022
.Dt FTOK 3
.Os
.Sh NAME
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/types.h
.In sys/ipc.h
.Ft key_t
.Fn ftok "const char *path" "int id"
.Dd February 3, 2017
.Dt GETPEEREID 3
.In unistd.h
.Ft int
.Fn getpeereid "int s" "uid_t *euid" "gid_t *egid"
.\" From: @(#)getpwent.3 8.2 (Berkeley) 12/11/93
.Dd April 16, 2003
.Dt GETPWENT 3
.In pwd.h
.Ft struct passwd *
.Fn getpwent void
.\" The following requests are required for all man pages.
.Dd November 13, 2020
.Dt SETPROCTITLE 3
.Nm setproctitle_fast
.Nd set process title
.Ft void
.Fn setproctitle "const char *fmt" "..."
.\" @(#)tcgetpgrp.3 8.1 (Berkeley) 6/4/93
.Dd June 4, 1993
.Dt TCGETPGRP 3
.Ft pid_t
.Fn tcgetpgrp "int fd"
.Dd April 15, 2008
.Dt TCGETSID 3
.In termios.h
.Fn tcgetsid "int fd"
.\" @(#)tcsetpgrp.3 8.1 (Berkeley) 6/4/93
.Dt TCSETPGRP 3
.Fn tcsetpgrp "int fd" "pid_t pgrp_id"
.Dd May 4, 2009
.Dt TCSETSID 3
.Fn tcsetsid "int fd" "pid_t pid"