This file is indexed.

/usr/share/doc/libcnf-dev/html/node48.html is in libcnf-dev 4.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Data Types</TITLE>
<META NAME="description" CONTENT="Data Types">
<META NAME="keywords" CONTENT="sun209">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="sun209.css">
<LINK REL="next" HREF="node49.html">
<LINK REL="previous" HREF="node47.html">
<LINK REL="up" HREF="node46.html">
<LINK REL="next" HREF="node49.html">
</HEAD>
<BODY >
<BR> <HR>
<A NAME="tex2html720"
 HREF="node49.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
<A NAME="tex2html718"
 HREF="node46.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
<A NAME="tex2html712"
 HREF="node47.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>   <A HREF="sun209.html#stardoccontents"><IMG
 ALIGN="BOTTOM" BORDER="0" SRC="contents_motif.gif"
 ALT="252"></A>
<BR>
<B> Next:</B> <A NAME="tex2html721"
 HREF="node49.html">External Names</A>
<BR>
<B>Up:</B> <A NAME="tex2html719"
 HREF="node46.html">Sun</A>
<BR>
<B> Previous:</B> <A NAME="tex2html713"
 HREF="node47.html">General</A>
<BR> <HR> <P>

<!--End of Navigation Panel-->

<H3><A NAME="SECTION000151200000000000000">
Data Types</A>
</H3>

<P>
There is a simple correspondence between Sun FORTRAN and C numeric variable 
types.
The standard types are given in the upper part of
the table below,
 and
non-standard extensions in the lower part. These should generally be avoided
for reasons of portability, however, they are provided since 
<A HREF="/star/docs/sun92.htx/sun92.html#xref_">HDS</A> 
has corresponding data types.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="2117"></A>
<TABLE>
<CAPTION><STRONG>Table:</STRONG>
Corresponding data types for Sun Solaris</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER" COLSPAN=1><I>type</I></TD>
<TD ALIGN="CENTER" COLSPAN=1>Sun&nbsp;FORTRAN</TD>
<TD ALIGN="CENTER" COLSPAN=1>Sun C</TD>
</TR>
<TR><TD ALIGN="LEFT">INTEGER</TD>
<TD ALIGN="LEFT">INTEGER</TD>
<TD ALIGN="LEFT">int</TD>
</TR>
<TR><TD ALIGN="LEFT">REAL</TD>
<TD ALIGN="LEFT">REAL</TD>
<TD ALIGN="LEFT">float</TD>
</TR>
<TR><TD ALIGN="LEFT">DOUBLE</TD>
<TD ALIGN="LEFT">DOUBLE PRECISION</TD>
<TD ALIGN="LEFT">double</TD>
</TR>
<TR><TD ALIGN="LEFT">LOGICAL</TD>
<TD ALIGN="LEFT">LOGICAL</TD>
<TD ALIGN="LEFT">int</TD>
</TR>
<TR><TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="LEFT">CHARACTER*1</TD>
<TD ALIGN="LEFT">char</TD>
</TR>
<TR><TD ALIGN="LEFT">CHARACTER</TD>
<TD ALIGN="LEFT">CHARACTER*n</TD>
<TD ALIGN="LEFT">char[n]</TD>
</TR>
<TR><TD ALIGN="LEFT">BYTE</TD>
<TD ALIGN="LEFT">BYTE</TD>
<TD ALIGN="LEFT">signed char</TD>
</TR>
<TR><TD ALIGN="LEFT">WORD</TD>
<TD ALIGN="LEFT">INTEGER*2</TD>
<TD ALIGN="LEFT">short int</TD>
</TR>
<TR><TD ALIGN="LEFT">UBYTE</TD>
<TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="LEFT">unsigned char</TD>
</TR>
<TR><TD ALIGN="LEFT">UWORD</TD>
<TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="LEFT">unsigned short int</TD>
</TR>
<TR><TD ALIGN="LEFT">POINTER</TD>
<TD ALIGN="LEFT">INTEGER</TD>
<TD ALIGN="LEFT">unsigned int</TD>
</TR>
</TABLE>
</DIV>

<A NAME="sun_datatypes"></A></TD></TR>
</TABLE>
</DIV>
<BR>

<P>
Although C defines unsigned data types of <TT>unsigned char</TT> 
(range 0 to 255), <TT>unsigned short</TT> (range 0 to 32767) and 
<TT>unsigned int</TT> (range 0 to 2<SUP>32</SUP>-1), there are no corresponding 
unsigned data types in FORTRAN. 
There is also a C type called <TT>long int</TT>, however on Suns, this is the 
same as an <TT>int</TT>.

<P>
The C language does not specify whether variables of type <TT>char</TT> should 
be stored as signed or unsigned values. On Suns, they are stored as signed
values in the range -128 to 127.

<P>
Similarly there is no C data type that corresponds to the FORTRAN data type of
<TT>COMPLEX</TT>. However, since Sun&nbsp;FORTRAN passes all numeric variable by 
reference, a <TT>COMPLEX</TT> variable could be passed to a C subprogram where 
it might be handled as a structure consisting of two variables of type 
<TT>float</TT>.

<P>
A Sun&nbsp;FORTRAN <TT>LOGICAL</TT> value can be passed to a C <TT>int</TT>. 
Sun&nbsp;FORTRAN and C both use zero to represent a false value and anything else 
to represent a true value, so there is no problem with converting the data 
values.

<P>
<BR> <HR>
<A NAME="tex2html720"
 HREF="node49.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
<A NAME="tex2html718"
 HREF="node46.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
<A NAME="tex2html712"
 HREF="node47.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>   <A HREF="sun209.html#stardoccontents"><IMG
 ALIGN="BOTTOM" BORDER="0" SRC="contents_motif.gif"
 ALT="252"></A>
<BR>
<B> Next:</B> <A NAME="tex2html721"
 HREF="node49.html">External Names</A>
<BR>
<B>Up:</B> <A NAME="tex2html719"
 HREF="node46.html">Sun</A>
<BR>
<B> Previous:</B> <A NAME="tex2html713"
 HREF="node47.html">General</A>
<BR> <HR> <P>

<!--End of Navigation Panel-->
<ADDRESS>
<I>CNF and F77 Mixed Language Programming -- FORTRAN and C<BR>Starlink User Note 209<BR>P.M. Allan<BR>A.J. Chipperfield<BR>R.F. Warren-Smith<BR>19 January 2000<BR>E-mail:<A HREF="mailto:ussc@star.rl.ac.uk">ussc@star.rl.ac.uk</A></I>
</ADDRESS>
</BODY>
</HTML>