mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Merge branch 'bugfix/dirent-definition' into 'master'
newlib: dirent d_ino type fix See merge request espressif/esp-idf!18336
This commit is contained in:
@@ -1,21 +1,14 @@
|
|||||||
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
/*
|
||||||
//
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
*
|
||||||
// you may not use this file except in compliance with the License.
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This header file provides POSIX-compatible definitions of directory
|
* This header file provides POSIX-compatible definitions of directory
|
||||||
@@ -42,7 +35,7 @@ typedef struct {
|
|||||||
* @brief Directory entry structure
|
* @brief Directory entry structure
|
||||||
*/
|
*/
|
||||||
struct dirent {
|
struct dirent {
|
||||||
int d_ino; /*!< file number */
|
ino_t d_ino; /*!< file number */
|
||||||
uint8_t d_type; /*!< not defined in POSIX, but present in BSD and Linux */
|
uint8_t d_type; /*!< not defined in POSIX, but present in BSD and Linux */
|
||||||
#define DT_UNKNOWN 0
|
#define DT_UNKNOWN 0
|
||||||
#define DT_REG 1
|
#define DT_REG 1
|
||||||
|
@@ -1044,7 +1044,6 @@ components/newlib/assert.c
|
|||||||
components/newlib/platform_include/assert.h
|
components/newlib/platform_include/assert.h
|
||||||
components/newlib/platform_include/net/if.h
|
components/newlib/platform_include/net/if.h
|
||||||
components/newlib/platform_include/pthread.h
|
components/newlib/platform_include/pthread.h
|
||||||
components/newlib/platform_include/sys/dirent.h
|
|
||||||
components/newlib/platform_include/sys/ioctl.h
|
components/newlib/platform_include/sys/ioctl.h
|
||||||
components/newlib/platform_include/sys/lock.h
|
components/newlib/platform_include/sys/lock.h
|
||||||
components/newlib/platform_include/sys/poll.h
|
components/newlib/platform_include/sys/poll.h
|
||||||
|
Reference in New Issue
Block a user