ANSI INCITS ISO IEC 14364-1996 Information technology - Open Systems Interconnection (OSI) abstract data manipulation C language interfaces - Binding for Application Program Interf.pdf
《ANSI INCITS ISO IEC 14364-1996 Information technology - Open Systems Interconnection (OSI) abstract data manipulation C language interfaces - Binding for Application Program Interf.pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS ISO IEC 14364-1996 Information technology - Open Systems Interconnection (OSI) abstract data manipulation C language interfaces - Binding for Application Program Interf.pdf(71页珍藏版)》请在麦多课文档分享上搜索。
1、INTERNATIONAL STANDARD ISO/IEC 14364 First edition 1996-06-01 Information technology - Open Systems Interconnection (03) abstract data manipulation C language interfaces - Binding for Application Program Interface (API) Technologies de /information - Interfaces de langage C pour la manipulation de d
2、on FAX: +1202 728-9614. Introduction vii INTERNATIONAL STANDARD OISO/IEC ISO/IEC 14364:1996(E) 1 Information technology-Open Systems 2 Interconnection (OSI) abstract data 3 manipulation C language 4 interfaces-Binding for Application Program 5 Interface (API) 6 Section 1: General 7 8 This Internatio
3、nal Standard defines an ISO/IEC 9989 (111 C language binding to 9 the language-independent API defined in ISO/IEC 14360 (2). It is intended to sup- 10 port application portability at the source-code level and to be used by application 11 developers, system implementors, test method writers, and user
4、s. 12 1.2 Normative References 13 The following standards contain provisions which, through reference in this text, 14 constitute provisions of this International Standard. At the time of publication, 15 the editions indicated were valid. All standards are subject to revision, and parties 16 to agre
5、ements based on this International Standard are encouraged to investigate 17 the possibility of applying the most recent editions of the standards indicated 18 below. Members of IEC and IS0 maintain registers of currently valid Interna- 19 tional Standards. 20 (11 ISO/IEC 9899: 1990,2 Programming La
6、nguages-C. 21 1) The numbers in curly brackets correspond to those of the references in 1.2. 22 2) ISO/IEC documents can be obtained from the IS0 Central Secretariat, 1 Rue de VarembB, Case 23 Postale 56, CH-1211, Gen see ISO/IEC 8824 249 Bll). 250 251 OISOLIEC ISODEX 14364:1996(E) 2.2.2.59 workspac
7、e: A repository for instances of classes in the closures of one or more packages associated with the workspace. ISOLIEC 14360 a 2.2.3 Abbreviations For the purposes of this International Standard, the following abbreviations apply: 2.2.3.1 API: Application Program Interface. 2.2.3.6 OM: OS1 abstract
8、 data Manipulation. 2.2.3.7 OSI: Open Systems Interconnection. 252 2.2.3.8 UTC: Universal Coordinated Time. 2.2 Definitions 13 0 ISO/IEC ISOLIEC 14364:1996(E) Section 3: Service Interface 2 3.1 Introduction 3 This section defines the C language binding to the service interface. 4 3.2 Datatypes 5 Thi
9、s section defines the datatypes of the C language binding to the service 6 interface. 7 3.2.1 Intermediate Datatypes 8 Some datatypes are defined in terms of the following “intermediate datatypes,” 9 whose precise definitions in C are system defined: 10 11 OM-sin t The positive and negative integers
10、 that can be represented in 16 b. 12 13 OMgintl6 The positive and negative integers that can be represented in 16 b. 14 15 OM-sint32 The positive and negative integers that can be represented in 32 b. 16 17 18 19 20 OM-uint OM-uint16 OM-uint32 OM-double The nonnegative integers that can be represent
11、ed in 16 b. The nonnegative integers that can be represented in 16 b. The nonnegative integers that can be represented in 32 b. The positive and negative floating point numbers representable in 64 b. 21 22 23 24 25 The range of integers for OM-uint shall encompass the range for OM-sint . NOTE: The O
12、M-sint and OM-uint datatypes are defined above by the ranges of integers they have to accommodate. Implementations can define them by the range of integers the word size of the host machine permits. The OM-double datatype is defined by the range and precision of real numbers that it has to accommoda
13、te. The following examples will work on most machines. 3.2 Datatypes 15 ISO/IEX 14364:1996(E) OISO/IEC 26 27 28 29 30 31 32 3.2.2 Boolean 33 34 35 3.2.2.2 C Declaration 36 37 38 39 3.2.2.3 Description 40 A data value of this datatype is a Boolean, i.e., either false or true. 41 In the C interface, f
14、alse is denoted by zero OM-FALSE, and true is denoted by 42 any other integer (although the symbolic constant OM-TRUE refers to the 43 integer one specifically). 44 3.2.3 Descriptor 45 3.2.3.1 Name 46 Descriptor-Type definition for describing an attribute type and value. 47 3.2.3.2 C Declaration 48
15、49 50 51 52 53 typedef int OM-sint; typedef int OM-sintl6; typedef long int OM-sint32; typedef unsigned OM-uint; typedef unsigned OM-uint16; typedef long unsigned OM-uint32; typedef double OM-double; 3.2.2.1 Name Boolean-Type definition for a Boolean data value. typedef OM-uint32 OM-boolean; NOTE: T
16、he type is defined as 32 b in order to facilitate aggregate initialization of the OM-value union. typedef struct OM-descriptor-struct OM-type OM-syntax OM-value OM-descriptor; tme ; syntax; value ; 54 NOTE: Other components are encoded in the syntax member. 16 3 Service Interface OISO/IEC ISOklEC 14
17、364:1996(E) 55 A data value of this datatype is a descriptor, which embodies an attribute value. A 56 sequence of descriptors (an array in C) can represent all the values of all the attri- 57 butes of an object, and is the representation called a Public Object. A descriptor 58 has the following comp
18、onents: 59 60 61 62 63 value (Value) 64 The attribute value. 65 Additional information is encoded in the syntax structure member. The syntax 66 should always be masked with the constant OM-S-SYNTAX) because of this. For 67 example: 68 my-syntax = mygublic_object3.syntax 69 mygublic_object4.syntax =
19、70 my-syntax + (mygublic_object4.syntax 71 Alternatively, the macros OM-SYNTAX(d) and OM-SYNTAX-ASSIGN(d,s) may 72 be used for this purpose: 73 74 75 The additional information can be obtained by masking the syntax with the follow- 76 ing constants: 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
20、 94 95 96 3.2.3.3 Description type (Type) Identifies the type of the attribute value. syntax (Syntax) Identifies the syntax of the attribute value and contains addi- tional information, as described below. my-syntax = OM-SYNTAX( my_public_object3) ; OM-SYNTAX-ASSIGN( myqublic_object4, my-syntax) ; O
21、M-S-LONG-STRING True (i.e., nonzero) if, and only if, the descriptor is service gen- erated and the length of the value is greater than an implementation-defined limit. The macro OM-IS-LONG-STRING(d) may be used to test this flag. Only true if the descriptor is service generated and the value is not
22、 present because OM-EXCLUDE-VALUES) or OM-EXCLUDE-MULTIPLES was set in the call to om-getf). The macro OM-HAS-VALUE(d) may be used to test this flag. OM-S-LOCAL-STRING Only significant if the Syntax is String(*). True if, and only if, the string is represented in an implementation-defined local char
23、- acter set. The local character set may be more amenable for use as keyboard input or display output than the nonlocal character set, and it may include specific treatment of line termination sequences. Certain interface functions may convert information in string syntaxes to or from the local repr
24、esentation, which may result in a loss of information. 3.2 Datatypes 17 ISO/lEC 14364:1996(E) OISO/IEC 97 The macro OMJS-LOCAL-STRING(d) may be used to test this flag and OM-SET-LONG-STRING(d) to set it. 98 OMSSERVICEGENEIWTED 99 True if, and only if, the descriptor is service-generated and is 100 e
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITSISOIEC143641996INFORMATIONTECHNOLOGYOPENSYSTEMSINTERCONNECTIONOSIABSTRACTDATAMANIPULATIONCLANGUAGEINTERFACESBINDINGFORAPPLICATIONPROGRAMINTERFPDF

链接地址:http://www.mydoc123.com/p-436129.html