提交 47ead1ef 编写于 作者: L LiFeng

clibcni: internal change at 1.19

Signed-off-by: NLiFeng <lifeng68@huawei.com>
上级 f5437845
...@@ -4,19 +4,24 @@ Description: commom source file ...@@ -4,19 +4,24 @@ Description: commom source file
Interface: None Interface: None
History: 2019-06-17 History: 2019-06-17
''' '''
# - Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved. #
# - clibcni licensed under the Mulan PSL v1. # libocispec - a C library for parsing OCI spec files.
# - You can use this software according to the terms and conditions of the Mulan PSL v1. #
# - You may obtain a copy of Mulan PSL v1 at: # Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# - http://license.coscl.org.cn/MulanPSL # Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR #
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # libocispec is free software; you can redistribute it and/or modify
# - PURPOSE. # it under the terms of the GNU General Public License as published by
# - See the Mulan PSL v1 for more details. # the Free Software Foundation; either version 3 of the License, or
# - Description: generate json # (at your option) any later version.
# - Author: tanyifeng #
# - Create: 2018-04-25 # libocispec is distributed in the hope that it will be useful,
#!/usr/bin/python -Es # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
CODE = '''// Auto generated file. Do not edit! CODE = '''// Auto generated file. Do not edit!
# define _GNU_SOURCE # define _GNU_SOURCE
......
...@@ -4,18 +4,25 @@ Description: commom header file ...@@ -4,18 +4,25 @@ Description: commom header file
Interface: None Interface: None
History: 2019-06-17 History: 2019-06-17
''' '''
# - Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved. #
# - clibcni licensed under the Mulan PSL v1. # libocispec - a C library for parsing OCI spec files.
# - You can use this software according to the terms and conditions of the Mulan PSL v1. #
# - You may obtain a copy of Mulan PSL v1 at: # Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# - http://license.coscl.org.cn/MulanPSL # Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR #
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # libocispec is free software; you can redistribute it and/or modify
# - PURPOSE. # it under the terms of the GNU General Public License as published by
# - See the Mulan PSL v1 for more details. # the Free Software Foundation; either version 3 of the License, or
# - Description: generate json # (at your option) any later version.
# - Author: tanyifeng #
# - Create: 2018-04-25 # libocispec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
#
#!/usr/bin/python -Es #!/usr/bin/python -Es
""" """
......
...@@ -4,19 +4,24 @@ Description: header class and functions ...@@ -4,19 +4,24 @@ Description: header class and functions
Interface: None Interface: None
History: 2019-06-17 History: 2019-06-17
''' '''
# - Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - clibcni licensed under the Mulan PSL v1. # libocispec - a C library for parsing OCI spec files.
# - You can use this software according to the terms and conditions of the Mulan PSL v1. #
# - You may obtain a copy of Mulan PSL v1 at: # Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# - http://license.coscl.org.cn/MulanPSL # Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR #
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # libocispec is free software; you can redistribute it and/or modify
# - PURPOSE. # it under the terms of the GNU General Public License as published by
# - See the Mulan PSL v1 for more details. # the Free Software Foundation; either version 3 of the License, or
# - Description: generate json # (at your option) any later version.
# - Author: tanyifeng #
# - Create: 2018-04-25 # libocispec is distributed in the hope that it will be useful,
#!/usr/bin/python -Es # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
import traceback import traceback
import os import os
......
...@@ -4,18 +4,25 @@ Description: header class and functions ...@@ -4,18 +4,25 @@ Description: header class and functions
Interface: None Interface: None
History: 2019-06-17 History: 2019-06-17
''' '''
# - Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved. #
# - clibcni licensed under the Mulan PSL v1. # libocispec - a C library for parsing OCI spec files.
# - You can use this software according to the terms and conditions of the Mulan PSL v1. #
# - You may obtain a copy of Mulan PSL v1 at: # Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# - http://license.coscl.org.cn/MulanPSL # Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR #
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # libocispec is free software; you can redistribute it and/or modify
# - PURPOSE. # it under the terms of the GNU General Public License as published by
# - See the Mulan PSL v1 for more details. # the Free Software Foundation; either version 3 of the License, or
# - Description: generate json # (at your option) any later version.
# - Author: tanyifeng #
# - Create: 2018-04-25 # libocispec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
#
#!/usr/bin/python -Es #!/usr/bin/python -Es
import helpers import helpers
......
...@@ -4,18 +4,25 @@ Description: helper class and functions ...@@ -4,18 +4,25 @@ Description: helper class and functions
Interface: None Interface: None
History: 2019-06-17 History: 2019-06-17
''' '''
# - Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved. #
# - clibcni licensed under the Mulan PSL v1. # libocispec - a C library for parsing OCI spec files.
# - You can use this software according to the terms and conditions of the Mulan PSL v1. #
# - You may obtain a copy of Mulan PSL v1 at: # Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# - http://license.coscl.org.cn/MulanPSL # Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR #
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # libocispec is free software; you can redistribute it and/or modify
# - PURPOSE. # it under the terms of the GNU General Public License as published by
# - See the Mulan PSL v1 for more details. # the Free Software Foundation; either version 3 of the License, or
# - Description: generate json # (at your option) any later version.
# - Author: tanyifeng #
# - Create: 2018-04-25 # libocispec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
#
#!/usr/bin/python -Es #!/usr/bin/python -Es
import os import os
import sys import sys
......
/****************************************************************************** /*
* Copyright (c) Huawei Technologies Co., Ltd. 2018-2019. All rights reserved. Copyright 2017 Giuseppe Scrivano
* clibcni licensed under the Mulan PSL v1. Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at: Licensed under the Apache License, Version 2.0 (the "License");
* http://license.coscl.org.cn/MulanPSL you may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR You may obtain a copy of the License at
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR http://www.apache.org/licenses/LICENSE-2.0
* PURPOSE. Unless required by applicable law or agreed to in writing, software
* See the Mulan PSL v1 for more details. distributed under the License is distributed on an "AS IS" BASIS,
* Author: tanyifeng WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Create: 2018-11-1 See the License for the specific language governing permissions and
* Description: provide file read functions limitations under the License.
********************************************************************************/ */
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/***************************************************************************** /*
* Copyright (c) Huawei Technologies Co., Ltd. 2018-2019. All rights reserved. Copyright 2017 Giuseppe Scrivano
* clibcni licensed under the Mulan PSL v1. Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at: Licensed under the Apache License, Version 2.0 (the "License");
* http://license.coscl.org.cn/MulanPSL you may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR You may obtain a copy of the License at
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR http://www.apache.org/licenses/LICENSE-2.0
* PURPOSE. Unless required by applicable law or agreed to in writing, software
* See the Mulan PSL v1 for more details. distributed under the License is distributed on an "AS IS" BASIS,
* Author: tanyifeng WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Create: 2018-11-08 See the License for the specific language governing permissions and
* Description: provide container read file definition limitations under the License.
****************************************************************************/ */
#ifndef __JSON_READ_FILE_H_ #ifndef __JSON_READ_FILE_H_
#define __JSON_READ_FILE_H_ #define __JSON_READ_FILE_H_
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""
Copyright (C) Huawei Technologies., Ltd. 2017-2019. All rights reserved.
# - clibcni licensed under the Mulan PSL v1.
# - You can use this software according to the terms and conditions of the Mulan PSL v1.
# - You may obtain a copy of Mulan PSL v1 at:
# - http://license.coscl.org.cn/MulanPSL
# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# - PURPOSE.
# - See the Mulan PSL v1 for more details.
Description: generate json
Author: tanyifeng
Interface: None
History: 2018-04-25 created
2019-06-17 Code specification
"""
#!/usr/bin/python -Es #!/usr/bin/python -Es
#
# libocispec - a C library for parsing OCI spec files.
#
# Copyright (C) 2017, 2019 Giuseppe Scrivano <giuseppe@scrivano.org>
# Copyright (C) Huawei Technologies., Ltd. 2018-2019. All rights reserved.
#
# libocispec is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# libocispec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libocispec. If not, see <http://www.gnu.org/licenses/>.
#
import helpers import helpers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册