author | April Chin <april.chin@oracle.com> |
Tue, 01 Sep 2015 09:29:08 -0700 | |
changeset 4833 | b9009ad1e605 |
parent 3531 | 18f175f98e0e |
permissions | -rw-r--r-- |
3531
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
1 |
/* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
2 |
* CDDL HEADER START |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
3 |
* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
4 |
* The contents of this file are subject to the terms of the |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
5 |
* Common Development and Distribution License (the "License"). |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
6 |
* You may not use this file except in compliance with the License. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
7 |
* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
8 |
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
9 |
* or http://www.opensolaris.org/os/licensing. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
10 |
* See the License for the specific language governing permissions |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
11 |
* and limitations under the License. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
12 |
* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
13 |
* When distributing Covered Code, include this CDDL HEADER in each |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
14 |
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
15 |
* If applicable, add the following below this CDDL HEADER, with the |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
16 |
* fields enclosed by brackets "[]" replaced with your own identifying |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
17 |
* information: Portions Copyright [yyyy] [name of copyright owner] |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
18 |
* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
19 |
* CDDL HEADER END |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
20 |
*/ |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
21 |
|
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
22 |
/* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
23 |
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
24 |
*/ |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
25 |
|
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
26 |
/* LINTLIBRARY */ |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
27 |
/* PROTOLIB1 */ |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
28 |
|
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
29 |
/* |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
30 |
* This little dance is necessary to avoid ftello/fseeko |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
31 |
* complaints vs libc. We don't use them but we do #include |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
32 |
* stdio.h and as we are large file aware they get defined |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
33 |
* differently than libc. |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
34 |
*/ |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
35 |
#include <sys/types.h> |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
36 |
#undef _LARGEFILE_SOURCE |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
37 |
|
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
38 |
#include <jansson/jansson.h> |
18f175f98e0e
20147164 Lint library for Jansson needed
Tomas Heran <tomas.heran@oracle.com>
parents:
diff
changeset
|
39 |
#include <jansson/jansson_config.h> |