File: gtm_isanlp.c

package info (click to toggle)
fis-gtm 7.0-005-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,264 kB
  • sloc: ansic: 336,687; asm: 5,184; csh: 4,823; sh: 1,945; awk: 291; makefile: 72; sed: 13
file content (34 lines) | stat: -rwxr-xr-x 1,333 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/****************************************************************
 *								*
 *	Copyright 2001 Sanchez Computer Associates, Inc.	*
 *								*
 *	This source code contains the intellectual property	*
 *	of its copyright holder(s), and is made available	*
 *	under a license.  If you do not know the terms of	*
 *	the license, please stop and do not read further.	*
 *								*
 ****************************************************************/

#include "gtm_isanlp.h"

/* gtm_isanlp returns 1 if the indicated file is associated with
   a line printer and 0 if it isn't.                             */

/* This is a stub version that always returns 0.  */

/* gtm_isanlp is intended to be called whenever a tty-specific
   ioctl call fails; if gtm_isanlp returns true (1), then the
   device is assumed to be a line printer and the tty-specific
   ioctl failure will be ignored.  So far, systems that don't
   allow tty-specific ioctl calls for line printer devices have
   some other way to determine whether the device is a line
   printer; those systems have specific gtm_isanlp functions.
   This version is for those Unix systems that do allow tty-
   specific ioctl calls for line printers, so this function
   returns 0 to ensure the ioctl error will not be ignored.      */


int gtm_isanlp (int file_des)
{
	return (0);
}