Initial commit
[o-du/l2.git] / src / cm / cm_lib.x
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 \f
20 /********************************************************************20**
21
22      Name:     common library functions
23   
24      Type:     C include file
25   
26      Desc:     Prototypes for common functions that are implemented in
27                both a portable and a performance-efficient manner. These
28                functions are selected based on the operating system.
29
30      File:     cm_lib.x
31
32 *********************************************************************21*/
33
34
35
36 #ifndef __CMLIBX__
37 #define __CMLIBX__
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 PUBLIC U8 *cmMemcpy      ARGS((U8 *tgt, CONSTANT U8 *src, PTR len));
44 PUBLIC S16 cmMemcmp      ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2, PTR len));
45 PUBLIC U8 *cmMemset      ARGS((U8 *src, U8 val, PTR len));
46
47 PUBLIC S16 cmStrcmp      ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2));
48 /* cm_lib_x_001.main_8:Changing from S16 to MsgLen.*/
49 PUBLIC S16 cmStrncmp     ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2, MsgLen len));
50 PUBLIC MsgLen cmStrlen   ARGS((CONSTANT U8 *s));
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55 #endif   /* __CMLIBX__ */
56
57 \f  
58 /********************************************************************30**
59   
60          End of file
61 **********************************************************************/