Print this page
4023 - Typo in file(1) manpage and various others

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man7d/tsalarm.7d
          +++ new/usr/src/man/man7d/tsalarm.7d
   1    1  '\" te
   2    2  .\" Copyright (c) 2004, Sun Microsystems, Inc.
   3    3  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    4  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    5  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6      -.TH TSALARM 7D "Mar 16, 2004"
        6 +.TH TSALARM 7D "Sep 10, 2013"
   7    7  .SH NAME
   8    8  tsalarm \- Alarm device driver
   9    9  .SH SYNOPSIS
  10   10  .LP
  11   11  .nf
  12   12  tsalarm@0:ctl
  13   13  .fi
  14   14  
  15   15  .SH DESCRIPTION
  16   16  .sp
↓ open down ↓ 186 lines elided ↑ open up ↑
 203  203  
 204  204       #define LOM_DEVICE "/dev/lom"
 205  205  
 206  206       int
 207  207       main()
 208  208       {
 209  209          lom_aldata_t lld;
 210  210          int fd = open(LOM_DEVICE, O_RDWR);
 211  211  
 212  212          if (fd == -1) {
 213      -                printf("Error opening device: %s\n", LOM_DEVICE);
      213 +                printf("Error opening device: %s\en", LOM_DEVICE);
 214  214                  exit (1);
 215  215          }
 216  216  
 217  217          lld.alarm_no = ALARM_CRITICAL;   /* Set the critical alarm */
 218  218          lld.state = ALARM_ON;   /* Set the alarm */
 219  219  
 220  220          if (ioctl(fd, LOMIOCALCTL, (char *)&lld) != 0)
 221  221                  printf("Setting alarm failed");
 222  222          else
 223  223                  printf("Alarm set successfully");
↓ open down ↓ 71 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX