Print this page
14249 pseudo-terminal nomenclature should reflect POSIX
Change-Id: Ib4a3cef899ff4c71b09cb0dc6878863c5e8357bc

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3utempter/utempter_add_record.3utempter
          +++ new/usr/src/man/man3utempter/utempter_add_record.3utempter
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  17   17  .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18   18  .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19   19  .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20   20  .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21   21  .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22   22  .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23   23  .\" SUCH DAMAGE.
  24   24  .\"
  25   25  .\"
  26      -.Dd May 5, 2020
       26 +.Dd February 5, 2022
  27   27  .Dt UTEMPTER_ADD_RECORD 3UTEMPTER
  28   28  .Os
  29   29  .Sh NAME
  30   30  .Nm utempter_add_record ,
  31   31  .Nm utempter_remove_added_record ,
  32   32  .Nm utempter_remove_record ,
  33   33  .Nm addToUtmp ,
  34   34  .Nm removeFromUtmp ,
  35   35  .Nm removeLineFromUtmp
  36   36  .Nd utempter compatibility interface
↓ open down ↓ 23 lines elided ↑ open up ↑
  60   60  .Xr utmpx 4
  61   61  database, these functions should not be used because they cannot communicate
  62   62  that for compatibility reasons.
  63   63  .Pp
  64   64  The
  65   65  .Fn utempter_add_record
  66   66  and
  67   67  .Fn addToUtmp
  68   68  functions add a login record to the
  69   69  .Xr utmpx 4
  70      -database for the TTY belonging to the pseudo-terminal master file descriptor
       70 +database for the TTY belonging to the pseudo-terminal manager file descriptor
  71   71  .Fa fd ,
  72   72  using the username corresponding with the real user ID of the calling
  73   73  process and the optional hostname
  74   74  .Fa host ,
  75   75  limited to 256 characters, that is the size of
  76   76  .Va ut_host
  77   77  member of
  78   78  .Vt struct utmpx
  79   79  minus terminating NUL character.
  80   80  .Pp
  81   81  The
  82   82  .Fn utempter_remove_record
  83   83  and
  84   84  .Fn removeLineFromUtmp
  85   85  functions mark the login session as being closed for the TTY belonging
  86      -to the pseudo-terminal master file descriptor
       86 +to the pseudo-terminal manager file descriptor
  87   87  .Fa fd .
  88   88  .Pp
  89   89  The
  90   90  .Fn utempter_remove_added_record
  91   91  and
  92   92  .Fn removeFromUtmp
  93   93  functions have the same properties as the previously mentioned
  94   94  functions, except that they use an internally cached value of the file
  95   95  descriptor passed to
  96   96  .Fn utempter_add_record
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX