Update synopses to match u_int/u_long/etc. changes. Do not bump date as it's not a substantive change.diff -r1.14 -r1.15 src/lib/libc/net/getifaddrs.3
(dholland)
--- src/lib/libc/net/getifaddrs.3 2013/04/07 23:12:36 1.14
+++ src/lib/libc/net/getifaddrs.3 2016/01/23 00:43:42 1.15
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: getifaddrs.3,v 1.14 2013/04/07 23:12:36 wiz Exp $ | 1 | .\" $NetBSD: getifaddrs.3,v 1.15 2016/01/23 00:43:42 dholland Exp $ | |
2 | .\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp | 2 | .\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp | |
3 | .\" | 3 | .\" | |
4 | .\" Copyright (c) 1995, 1999 | 4 | .\" Copyright (c) 1995, 1999 | |
5 | .\" Berkeley Software Design, Inc. All rights reserved. | 5 | .\" Berkeley Software Design, Inc. All rights reserved. | |
6 | .\" | 6 | .\" | |
7 | .\" Redistribution and use in source and binary forms, with or without | 7 | .\" Redistribution and use in source and binary forms, with or without | |
8 | .\" modification, are permitted provided that the following conditions | 8 | .\" modification, are permitted provided that the following conditions | |
9 | .\" are met: | 9 | .\" are met: | |
10 | .\" 1. Redistributions of source code must retain the above copyright | 10 | .\" 1. Redistributions of source code must retain the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer. | 11 | .\" notice, this list of conditions and the following disclaimer. | |
12 | .\" | 12 | .\" | |
13 | .\" THIS SOFTWARE IS PROVIDED BY Berkeley Software Design, Inc. ``AS IS'' AND | 13 | .\" THIS SOFTWARE IS PROVIDED BY Berkeley Software Design, Inc. ``AS IS'' AND | |
14 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
@@ -41,27 +41,27 @@ The | @@ -41,27 +41,27 @@ The | |||
41 | function stores a reference to a linked list of the network interfaces | 41 | function stores a reference to a linked list of the network interfaces | |
42 | on the local machine in the memory referenced by | 42 | on the local machine in the memory referenced by | |
43 | .Fa ifap . | 43 | .Fa ifap . | |
44 | The list consists of | 44 | The list consists of | |
45 | .Nm ifaddrs | 45 | .Nm ifaddrs | |
46 | structures, as defined in the include file | 46 | structures, as defined in the include file | |
47 | .In ifaddrs.h . | 47 | .In ifaddrs.h . | |
48 | The | 48 | The | |
49 | .Nm ifaddrs | 49 | .Nm ifaddrs | |
50 | structure contains at least the following entries: | 50 | structure contains at least the following entries: | |
51 | .Bd -literal | 51 | .Bd -literal | |
52 | struct ifaddrs *ifa_next; /* Pointer to next struct */ | 52 | struct ifaddrs *ifa_next; /* Pointer to next struct */ | |
53 | char *ifa_name; /* Interface name */ | 53 | char *ifa_name; /* Interface name */ | |
54 | u_int ifa_flags; /* Interface flags */ | 54 | unsigned ifa_flags; /* Interface flags */ | |
55 | struct sockaddr *ifa_addr; /* Interface address */ | 55 | struct sockaddr *ifa_addr; /* Interface address */ | |
56 | struct sockaddr *ifa_netmask; /* Interface netmask */ | 56 | struct sockaddr *ifa_netmask; /* Interface netmask */ | |
57 | struct sockaddr *ifa_broadaddr; /* Interface broadcast address */ | 57 | struct sockaddr *ifa_broadaddr; /* Interface broadcast address */ | |
58 | struct sockaddr *ifa_dstaddr; /* P2P interface destination */ | 58 | struct sockaddr *ifa_dstaddr; /* P2P interface destination */ | |
59 | void *ifa_data; /* Address specific data */ | 59 | void *ifa_data; /* Address specific data */ | |
60 | .Ed | 60 | .Ed | |
61 | .Pp | 61 | .Pp | |
62 | The | 62 | The | |
63 | .Li ifa_next | 63 | .Li ifa_next | |
64 | field contains a pointer to the next structure on the list. | 64 | field contains a pointer to the next structure on the list. | |
65 | This field is | 65 | This field is | |
66 | .Dv NULL | 66 | .Dv NULL | |
67 | in last structure on the list. | 67 | in last structure on the list. |
--- src/lib/libc/string/bm.3 2006/10/16 08:48:45 1.8
+++ src/lib/libc/string/bm.3 2016/01/23 00:43:42 1.9
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: bm.3,v 1.8 2006/10/16 08:48:45 wiz Exp $ | 1 | .\" $NetBSD: bm.3,v 1.9 2016/01/23 00:43:42 dholland Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\" Copyright (c) 1994 | 3 | .\" Copyright (c) 1994 | |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. | |
5 | .\" | 5 | .\" | |
6 | .\" This code is derived from software contributed to Berkeley by | 6 | .\" This code is derived from software contributed to Berkeley by | |
7 | .\" Andrew Hume of AT&T Bell Laboratories. | 7 | .\" Andrew Hume of AT&T Bell Laboratories. | |
8 | .\" | 8 | .\" | |
9 | .\" Redistribution and use in source and binary forms, with or without | 9 | .\" Redistribution and use in source and binary forms, with or without | |
10 | .\" modification, are permitted provided that the following conditions | 10 | .\" modification, are permitted provided that the following conditions | |
11 | .\" are met: | 11 | .\" are met: | |
12 | .\" 1. Redistributions of source code must retain the above copyright | 12 | .\" 1. Redistributions of source code must retain the above copyright | |
13 | .\" notice, this list of conditions and the following disclaimer. | 13 | .\" notice, this list of conditions and the following disclaimer. | |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
@@ -36,29 +36,29 @@ | @@ -36,29 +36,29 @@ | |||
36 | .Dt BM 3 | 36 | .Dt BM 3 | |
37 | .Os | 37 | .Os | |
38 | .Sh NAME | 38 | .Sh NAME | |
39 | .Nm bm_comp , | 39 | .Nm bm_comp , | |
40 | .Nm bm_exec , | 40 | .Nm bm_exec , | |
41 | .Nm bm_free | 41 | .Nm bm_free | |
42 | .Nd Boyer-Moore string search | 42 | .Nd Boyer-Moore string search | |
43 | .Sh LIBRARY | 43 | .Sh LIBRARY | |
44 | .Lb libc | 44 | .Lb libc | |
45 | .Sh SYNOPSIS | 45 | .Sh SYNOPSIS | |
46 | .In sys/types.h | 46 | .In sys/types.h | |
47 | .In bm.h | 47 | .In bm.h | |
48 | .Ft bm_pat * | 48 | .Ft bm_pat * | |
49 | .Fn bm_comp "u_char *pattern" "size_t patlen" "u_char freq[256]" | 49 | .Fn bm_comp "unsigned char *pattern" "size_t patlen" "unsigned char freq[256]" | |
50 | .Ft u_char * | 50 | .Ft unsigned char * | |
51 | .Fn bm_exec "bm_pat *pdesc" "u_char *text" "size_t len" | 51 | .Fn bm_exec "bm_pat *pdesc" "unsigned char *text" "size_t len" | |
52 | .Ft void | 52 | .Ft void | |
53 | .Fn bm_free "bm_pat *pdesc" | 53 | .Fn bm_free "bm_pat *pdesc" | |
54 | .Sh DESCRIPTION | 54 | .Sh DESCRIPTION | |
55 | These routines implement an efficient mechanism to find an | 55 | These routines implement an efficient mechanism to find an | |
56 | occurrence of a byte string within another byte string. | 56 | occurrence of a byte string within another byte string. | |
57 | .Pp | 57 | .Pp | |
58 | .Fn bm_comp | 58 | .Fn bm_comp | |
59 | evaluates the | 59 | evaluates the | |
60 | .Fa patlen | 60 | .Fa patlen | |
61 | bytes starting at | 61 | bytes starting at | |
62 | .Fa pattern , | 62 | .Fa pattern , | |
63 | and returns a pointer to a structure describing them. | 63 | and returns a pointer to a structure describing them. | |
64 | The bytes referenced by | 64 | The bytes referenced by |
--- src/lib/libkvm/kvm_getlwps.3 2009/03/10 23:49:07 1.6
+++ src/lib/libkvm/kvm_getlwps.3 2016/01/23 00:43:43 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: kvm_getlwps.3,v 1.6 2009/03/10 23:49:07 joerg Exp $ | 1 | .\" $NetBSD: kvm_getlwps.3,v 1.7 2016/01/23 00:43:43 dholland Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\"Copyright (c) 2002 The NetBSD Foundation, Inc. | 3 | .\"Copyright (c) 2002 The NetBSD Foundation, Inc. | |
4 | .\"All rights reserved. | 4 | .\"All rights reserved. | |
5 | .\" | 5 | .\" | |
6 | .\"This code is derived from software contributed to The NetBSD Foundation | 6 | .\"This code is derived from software contributed to The NetBSD Foundation | |
7 | .\"by Nathan J. Williams. | 7 | .\"by Nathan J. Williams. | |
8 | .\" | 8 | .\" | |
9 | .\"Redistribution and use in source and binary forms, with or without | 9 | .\"Redistribution and use in source and binary forms, with or without | |
10 | .\"modification, are permitted provided that the following conditions | 10 | .\"modification, are permitted provided that the following conditions | |
11 | .\"are met: | 11 | .\"are met: | |
12 | .\"1. Redistributions of source code must retain the above copyright | 12 | .\"1. Redistributions of source code must retain the above copyright | |
13 | .\" notice, this list of conditions and the following disclaimer. | 13 | .\" notice, this list of conditions and the following disclaimer. | |
14 | .\"2. Redistributions in binary form must reproduce the above copyright | 14 | .\"2. Redistributions in binary form must reproduce the above copyright | |
@@ -31,27 +31,27 @@ | @@ -31,27 +31,27 @@ | |||
31 | .Dt KVM_GETLWPS 3 | 31 | .Dt KVM_GETLWPS 3 | |
32 | .Os | 32 | .Os | |
33 | .Sh NAME | 33 | .Sh NAME | |
34 | .Nm kvm_getlwps | 34 | .Nm kvm_getlwps | |
35 | .Nd access state of LWPs belonging to a user process | 35 | .Nd access state of LWPs belonging to a user process | |
36 | .Sh LIBRARY | 36 | .Sh LIBRARY | |
37 | .Lb libkvm | 37 | .Lb libkvm | |
38 | .Sh SYNOPSIS | 38 | .Sh SYNOPSIS | |
39 | .In kvm.h | 39 | .In kvm.h | |
40 | .In sys/param.h | 40 | .In sys/param.h | |
41 | .In sys/sysctl.h | 41 | .In sys/sysctl.h | |
42 | .\" .Fa kvm_t *kd | 42 | .\" .Fa kvm_t *kd | |
43 | .Ft struct kinfo_lwp * | 43 | .Ft struct kinfo_lwp * | |
44 | .Fn kvm_getlwps "kvm_t *kd" "int pid" "u_long procaddr" "int *elemsize" "int *cnt" | 44 | .Fn kvm_getlwps "kvm_t *kd" "int pid" "unsigned long procaddr" "int *elemsize" "int *cnt" | |
45 | .Sh DESCRIPTION | 45 | .Sh DESCRIPTION | |
46 | .Fn kvm_getlwps | 46 | .Fn kvm_getlwps | |
47 | returns the set of LWPs belonging to the process specified by | 47 | returns the set of LWPs belonging to the process specified by | |
48 | .Fa pid | 48 | .Fa pid | |
49 | or | 49 | or | |
50 | .Fa procaddr | 50 | .Fa procaddr | |
51 | in the kernel indicated by | 51 | in the kernel indicated by | |
52 | .Fa kd . | 52 | .Fa kd . | |
53 | The number of LWPs found is returned in the reference parameter | 53 | The number of LWPs found is returned in the reference parameter | |
54 | .Fa cnt . | 54 | .Fa cnt . | |
55 | The LWPs are returned as a contiguous array of | 55 | The LWPs are returned as a contiguous array of | |
56 | .Sy kinfo_lwp | 56 | .Sy kinfo_lwp | |
57 | structures. | 57 | structures. |
--- src/lib/libkvm/kvm_read.3 2003/08/07 16:44:39 1.8
+++ src/lib/libkvm/kvm_read.3 2016/01/23 00:43:43 1.9
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: kvm_read.3,v 1.8 2003/08/07 16:44:39 agc Exp $ | 1 | .\" $NetBSD: kvm_read.3,v 1.9 2016/01/23 00:43:43 dholland Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\" Copyright (c) 1992, 1993 | 3 | .\" Copyright (c) 1992, 1993 | |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. | |
5 | .\" | 5 | .\" | |
6 | .\" This code is derived from software developed by the Computer Systems | 6 | .\" This code is derived from software developed by the Computer Systems | |
7 | .\" Engineering group at Lawrence Berkeley Laboratory under DARPA contract | 7 | .\" Engineering group at Lawrence Berkeley Laboratory under DARPA contract | |
8 | .\" BG 91-66 and contributed to Berkeley. | 8 | .\" BG 91-66 and contributed to Berkeley. | |
9 | .\" | 9 | .\" | |
10 | .\" Redistribution and use in source and binary forms, with or without | 10 | .\" Redistribution and use in source and binary forms, with or without | |
11 | .\" modification, are permitted provided that the following conditions | 11 | .\" modification, are permitted provided that the following conditions | |
12 | .\" are met: | 12 | .\" are met: | |
13 | .\" 1. Redistributions of source code must retain the above copyright | 13 | .\" 1. Redistributions of source code must retain the above copyright | |
14 | .\" notice, this list of conditions and the following disclaimer. | 14 | .\" notice, this list of conditions and the following disclaimer. | |
@@ -35,29 +35,29 @@ | @@ -35,29 +35,29 @@ | |||
35 | .\" | 35 | .\" | |
36 | .Dd June 4, 1993 | 36 | .Dd June 4, 1993 | |
37 | .Dt KVM_READ 3 | 37 | .Dt KVM_READ 3 | |
38 | .Os | 38 | .Os | |
39 | .Sh NAME | 39 | .Sh NAME | |
40 | .Nm kvm_read , | 40 | .Nm kvm_read , | |
41 | .Nm kvm_write | 41 | .Nm kvm_write | |
42 | .Nd read or write kernel virtual memory | 42 | .Nd read or write kernel virtual memory | |
43 | .Sh LIBRARY | 43 | .Sh LIBRARY | |
44 | .Lb libkvm | 44 | .Lb libkvm | |
45 | .Sh SYNOPSIS | 45 | .Sh SYNOPSIS | |
46 | .In kvm.h | 46 | .In kvm.h | |
47 | .Ft ssize_t | 47 | .Ft ssize_t | |
48 | .Fn kvm_read "kvm_t *kd" "u_long addr" "void *buf" "size_t nbytes" | 48 | .Fn kvm_read "kvm_t *kd" "unsigned long addr" "void *buf" "size_t nbytes" | |
49 | .Ft ssize_t | 49 | .Ft ssize_t | |
50 | .Fn kvm_write "kvm_t *kd" "u_long addr" "const void *buf" "size_t nbytes" | 50 | .Fn kvm_write "kvm_t *kd" "unsigned long addr" "const void *buf" "size_t nbytes" | |
51 | .Sh DESCRIPTION | 51 | .Sh DESCRIPTION | |
52 | The | 52 | The | |
53 | .Fn kvm_read | 53 | .Fn kvm_read | |
54 | and | 54 | and | |
55 | .Fn kvm_write | 55 | .Fn kvm_write | |
56 | functions are used to read and write kernel virtual memory (or a crash | 56 | functions are used to read and write kernel virtual memory (or a crash | |
57 | dump file). | 57 | dump file). | |
58 | See | 58 | See | |
59 | .Fn kvm_open 3 | 59 | .Fn kvm_open 3 | |
60 | or | 60 | or | |
61 | .Fn kvm_openfiles 3 | 61 | .Fn kvm_openfiles 3 | |
62 | for information regarding opening kernel virtual memory and crash dumps. | 62 | for information regarding opening kernel virtual memory and crash dumps. | |
63 | .Pp | 63 | .Pp |
--- src/lib/libpci/pci.3 2014/12/16 13:38:36 1.10
+++ src/lib/libpci/pci.3 2016/01/23 00:43:43 1.11
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: pci.3,v 1.10 2014/12/16 13:38:36 msaitoh Exp $ | 1 | .\" $NetBSD: pci.3,v 1.11 2016/01/23 00:43:43 dholland Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\" Copyright 2001 Wasabi Systems, Inc. | 3 | .\" Copyright 2001 Wasabi Systems, Inc. | |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. | |
5 | .\" | 5 | .\" | |
6 | .\" Written by Jason R. Thorpe for Wasabi Systems, Inc. | 6 | .\" Written by Jason R. Thorpe for Wasabi Systems, Inc. | |
7 | .\" | 7 | .\" | |
8 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without | |
9 | .\" modification, are permitted provided that the following conditions | 9 | .\" modification, are permitted provided that the following conditions | |
10 | .\" are met: | 10 | .\" are met: | |
11 | .\" 1. Redistributions of source code must retain the above copyright | 11 | .\" 1. Redistributions of source code must retain the above copyright | |
12 | .\" notice, this list of conditions and the following disclaimer. | 12 | .\" notice, this list of conditions and the following disclaimer. | |
13 | .\" 2. Redistributions in binary form must reproduce the above copyright | 13 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
14 | .\" notice, this list of conditions and the following disclaimer in the | 14 | .\" notice, this list of conditions and the following disclaimer in the | |
@@ -34,43 +34,43 @@ | @@ -34,43 +34,43 @@ | |||
34 | .\" POSSIBILITY OF SUCH DAMAGE. | 34 | .\" POSSIBILITY OF SUCH DAMAGE. | |
35 | .\" | 35 | .\" | |
36 | .Dd December 16, 2014 | 36 | .Dd December 16, 2014 | |
37 | .Dt PCI 3 | 37 | .Dt PCI 3 | |
38 | .Os | 38 | .Os | |
39 | .Sh NAME | 39 | .Sh NAME | |
40 | .Nm pci | 40 | .Nm pci | |
41 | .Nd library interface for PCI bus access | 41 | .Nd library interface for PCI bus access | |
42 | .Sh LIBRARY | 42 | .Sh LIBRARY | |
43 | .Lb libpci | 43 | .Lb libpci | |
44 | .Sh SYNOPSIS | 44 | .Sh SYNOPSIS | |
45 | .In pci.h | 45 | .In pci.h | |
46 | .Ft int | 46 | .Ft int | |
47 | .Fn pcibus_conf_read "int pcifd" "u_int bus" "u_int dev" "u_int func" \ | 47 | .Fn pcibus_conf_read "int pcifd" "unsigned bus" "unsigned dev" "unsigned func" \ | |
48 | "u_int reg" "pcireg_t *valp" | 48 | "unsigned reg" "pcireg_t *valp" | |
49 | .Ft int | 49 | .Ft int | |
50 | .Fn pcibus_conf_write "int pcifd" "u_int bus" "u_int dev" "u_int func" \ | 50 | .Fn pcibus_conf_write "int pcifd" "unsigned bus" "unsigned dev" "unsigned func" \ | |
51 | "u_int reg" "pcireg_t val" | 51 | "unsigned reg" "pcireg_t val" | |
52 | .Ft int | 52 | .Ft int | |
53 | .Fn pcidev_conf_read "int devfd" "u_int reg" "pcireg_t *valp" | 53 | .Fn pcidev_conf_read "int devfd" "unsigned reg" "pcireg_t *valp" | |
54 | .Ft int | 54 | .Ft int | |
55 | .Fn pcidev_conf_write "int devfd" "u_int reg" "pcireg_t val" | 55 | .Fn pcidev_conf_write "int devfd" "unsigned reg" "pcireg_t val" | |
56 | .Ft char * | 56 | .Ft char * | |
57 | .Fn pci_findvendor "pcireg_t id_reg" | 57 | .Fn pci_findvendor "pcireg_t id_reg" | |
58 | .Ft void | 58 | .Ft void | |
59 | .Fn pci_devinfo "pcireg_t id_reg" "pcireg_t class_reg" "int showclass" "char *devinfo" "size_t len" | 59 | .Fn pci_devinfo "pcireg_t id_reg" "pcireg_t class_reg" "int showclass" "char *devinfo" "size_t len" | |
60 | .Ft void | 60 | .Ft void | |
61 | .Fn pci_conf_print "int pcifd" "u_int bus" "u_int dev" "u_int func" | 61 | .Fn pci_conf_print "int pcifd" "unsigned bus" "unsigned dev" "unsigned func" | |
62 | .Ft int | 62 | .Ft int | |
63 | .Fn pci_drvname "int pcifd" "u_int dev" "u_int func" "char *drvname" "size_t len" | 63 | .Fn pci_drvname "int pcifd" "unsigned dev" "unsigned func" "char *drvname" "size_t len" | |
64 | .Sh DESCRIPTION | 64 | .Sh DESCRIPTION | |
65 | The | 65 | The | |
66 | .Nm | 66 | .Nm | |
67 | library provides support for accessing the PCI bus by user programs. | 67 | library provides support for accessing the PCI bus by user programs. | |
68 | .Pp | 68 | .Pp | |
69 | These functions are available in the | 69 | These functions are available in the | |
70 | .Nm libpci | 70 | .Nm libpci | |
71 | library. | 71 | library. | |
72 | Programs should be linked with | 72 | Programs should be linked with | |
73 | .Fl lpci . | 73 | .Fl lpci . | |
74 | .Sh CONFIGURATION SPACE FUNCTIONS | 74 | .Sh CONFIGURATION SPACE FUNCTIONS | |
75 | The following functions are used to access PCI configuration space: | 75 | The following functions are used to access PCI configuration space: | |
76 | .Bl -tag -width 4n | 76 | .Bl -tag -width 4n |
--- src/lib/libutil/login_cap.3 2013/06/23 08:38:41 1.21
+++ src/lib/libutil/login_cap.3 2016/01/23 00:43:43 1.22
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: login_cap.3,v 1.21 2013/06/23 08:38:41 wiz Exp $ | 1 | .\" $NetBSD: login_cap.3,v 1.22 2016/01/23 00:43:43 dholland Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\" Copyright (c) 1996,1997 Berkeley Software Design, Inc. All rights reserved. | 3 | .\" Copyright (c) 1996,1997 Berkeley Software Design, Inc. All rights reserved. | |
4 | .\" | 4 | .\" | |
5 | .\" Redistribution and use in source and binary forms, with or without | 5 | .\" Redistribution and use in source and binary forms, with or without | |
6 | .\" modification, are permitted provided that the following conditions | 6 | .\" modification, are permitted provided that the following conditions | |
7 | .\" are met: | 7 | .\" are met: | |
8 | .\" 1. Redistributions of source code must retain the above copyright | 8 | .\" 1. Redistributions of source code must retain the above copyright | |
9 | .\" notice, this list of conditions and the following disclaimer. | 9 | .\" notice, this list of conditions and the following disclaimer. | |
10 | .\" 2. Redistributions in binary form must reproduce the above copyright | 10 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer in the | 11 | .\" notice, this list of conditions and the following disclaimer in the | |
12 | .\" documentation and/or other materials provided with the distribution. | 12 | .\" documentation and/or other materials provided with the distribution. | |
13 | .\" 3. All advertising materials mentioning features or use of this software | 13 | .\" 3. All advertising materials mentioning features or use of this software | |
14 | .\" must display the following acknowledgement: | 14 | .\" must display the following acknowledgement: | |
@@ -45,43 +45,43 @@ | @@ -45,43 +45,43 @@ | |||
45 | .Nm login_getpwclass , | 45 | .Nm login_getpwclass , | |
46 | .Nm login_close , | 46 | .Nm login_close , | |
47 | .Nm setclasscontext , | 47 | .Nm setclasscontext , | |
48 | .Nm setusercontext | 48 | .Nm setusercontext | |
49 | .Nd query login.conf database about a user class | 49 | .Nd query login.conf database about a user class | |
50 | .Sh LIBRARY | 50 | .Sh LIBRARY | |
51 | .Lb libutil | 51 | .Lb libutil | |
52 | .Sh SYNOPSIS | 52 | .Sh SYNOPSIS | |
53 | .In sys/types.h | 53 | .In sys/types.h | |
54 | .In login_cap.h | 54 | .In login_cap.h | |
55 | .Ft login_cap_t * | 55 | .Ft login_cap_t * | |
56 | .Fn login_getclass "char *class" | 56 | .Fn login_getclass "char *class" | |
57 | .Ft int | 57 | .Ft int | |
58 | .Fn login_getcapbool "login_cap_t *lc" "const char *cap" "u_int def" | 58 | .Fn login_getcapbool "login_cap_t *lc" "const char *cap" "unsigned def" | |
59 | .Ft quad_t | 59 | .Ft quad_t | |
60 | .Fn login_getcapnum "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | 60 | .Fn login_getcapnum "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | |
61 | .Ft quad_t | 61 | .Ft quad_t | |
62 | .Fn login_getcapsize "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | 62 | .Fn login_getcapsize "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | |
63 | .Ft char * | 63 | .Ft char * | |
64 | .Fn login_getcapstr "login_cap_t *lc" "const char *cap" "char *def" "char *err" | 64 | .Fn login_getcapstr "login_cap_t *lc" "const char *cap" "char *def" "char *err" | |
65 | .Ft quad_t | 65 | .Ft quad_t | |
66 | .Fn login_getcaptime "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | 66 | .Fn login_getcaptime "login_cap_t *lc" "const char *cap" "quad_t def" "quad_t err" | |
67 | .Ft login_cap_t * | 67 | .Ft login_cap_t * | |
68 | .Fn login_getpwclass "struct passwd *pwd" | 68 | .Fn login_getpwclass "struct passwd *pwd" | |
69 | .Ft void | 69 | .Ft void | |
70 | .Fn login_close "login_cap_t *lc" | 70 | .Fn login_close "login_cap_t *lc" | |
71 | .Ft int | 71 | .Ft int | |
72 | .Fn setclasscontext "const char *class" "u_int flags" | 72 | .Fn setclasscontext "const char *class" "unsigned flags" | |
73 | .Ft int | 73 | .Ft int | |
74 | .Fn setusercontext "login_cap_t *lc" "const struct passwd *pwd" "uid_t uid" "u_int flags" | 74 | .Fn setusercontext "login_cap_t *lc" "const struct passwd *pwd" "uid_t uid" "unsigned flags" | |
75 | .Sh DESCRIPTION | 75 | .Sh DESCRIPTION | |
76 | The | 76 | The | |
77 | .Fn login_getclass | 77 | .Fn login_getclass | |
78 | function extracts the entry specified by | 78 | function extracts the entry specified by | |
79 | .Ar class | 79 | .Ar class | |
80 | (or | 80 | (or | |
81 | .Li default | 81 | .Li default | |
82 | if | 82 | if | |
83 | .Ar class | 83 | .Ar class | |
84 | is | 84 | is | |
85 | .Dv NULL | 85 | .Dv NULL | |
86 | or the empty string) | 86 | or the empty string) | |
87 | from | 87 | from |