1.\"	$OpenBSD: login_fbtab.3,v 1.9 2003/06/02 11:37:27 jmc Exp $
2.\"
3.\" Copyright 1995 by Wietse Venema.  All rights reserved.  Some individual
4.\" files may be covered by other copyrights.
5.\"
6.\" This material was originally written and compiled by Wietse Venema at
7.\" Eindhoven University of Technology, The Netherlands, in 1990, 1991,
8.\" 1992, 1993, 1994 and 1995.
9.\"
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that this entire copyright notice
12.\" is duplicated in all such copies.
13.\"
14.\" This software is provided "as is" and without any expressed or implied
15.\" warranties, including, without limitation, the implied warranties of
16.\" merchantibility and fitness for any particular purpose.
17.\"
18.Dd June 14, 2002
19.Dt LOGIN_FBTAB 3
20.Os
21.Sh NAME
22.Nm login_fbtab
23.Nd implement device security based on
24.Pa /etc/fbtab
25.Sh SYNOPSIS
26.Fd #include <sys/types.h>
27.Fd #include <util.h>
28.Ft void
29.Fn login_fbtab "const char *tty" "uid_t uid" "gid_t gid"
30.Sh DESCRIPTION
31The
32.Fn login_fbtab
33function reads the
34.Pa /etc/fbtab
35file and implements device security as described in the
36.Xr fbtab 5
37manual page.
38.Sh FILES
39.Bl -tag -width /etc/fbtab -compact
40.It Pa /etc/fbtab
41.El
42.Sh DIAGNOSTICS
43Problems are reported via the
44.Xr syslogd 8
45daemon with the severity of
46.Dv LOG_ERR .
47.Sh SEE ALSO
48.Xr fbtab 5
49.Sh AUTHORS
50.Bd -unfilled
51Wietse Venema (wietse@wzv.win.tue.nl)
52Eindhoven University of Technology
53The Netherlands
54.Ed
55.Sh CAVEATS
56Previous versions of this routine used
57.Xr strtok 3 ,
58which can cause conflicts with other uses of that routine.
59This may be an issue when porting programs to
60.Ox 3.1
61and below.
62