WM-LICENSE(1)                                       WM-LICENSE(1)

     NAME
          license - display and confirm licence terms

     SYNOPSIS
          wm/license

     DESCRIPTION
          License displays the contents of the system licence file
          /licencedb/LICENCE and prompts the user to accept or reject
          the terms.  If the licence file does not exist the command
          exits without displaying anything.

          If the user accepts the terms of the licence then a file is
          created in the /licencedb directory to indicate acceptance.
          The filename is derived from the current user and host name
          as read from /dev/user and /dev/sysname respectively.

          The acceptance file contains the text:

               Username@Hostname Timestamp

          where Timestamp is the text read from the file /dev/time at
          the time of writing the acceptance file.

          The name of the acceptance file is a 16 digit hexadecimal
          number.  The numeric value of the filename is formed as a
          64-bit value with userval in the high-order 32 bits and
          hostval in the low-order 32 bits, where userval and hostval
          are calculated from the username and hostname text by the
          following expression: val = SUM(text[n] x 3^(len-n)), where
          len is the length of the text and text[n] is the unicode
          code-point of the nth character in the string (starting at
          1).

     FILES
          /licencedb/LICENCE           The text of the licence agree-
                                       ment.
          /licencedb/xxxxxxxxxxxxxxxx  Licence acceptance file, the
                                       file name is derived from the
                                       host and user name.
          /dev/user
          /dev/sysname
          /dev/time

     SOURCE
          /appl/wm/license.b

     SEE ALSO
          wm(1), cons(3)

     Page 1                       Plan 9            (printed 12/21/24)