提交 74ab1551 编写于 作者: mysterywolf's avatar mysterywolf

add posix 2008 limit.h

上级 a41ebbb6
# getline/getdelim for RT-Thread POSIX
# getline/getdelim for RT-Thread POSIX(IEEE Std 1003.1-2008)
[![Build Status](https://travis-ci.org/ivanrad/getline.svg?branch=master)](https://travis-ci.org/ivanrad/getline)
......
......@@ -12,7 +12,7 @@
#include <posix_getline.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <rtlibc.h>
ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream) {
char *cur_pos, *new_lineptr;
......
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* File : libc_limits.h
*
* Change Logs:
* Date Author Notes
* 2020-09-05 Meco Manthe first version
*/
#ifndef __LIBC_LIMITS_H__
#define __LIBC_LIMITS_H__
#include <limits.h>
#ifndef SSIZE_MAX
# define SSIZE_MAX LONG_MAX
#endif
#endif
......@@ -20,6 +20,7 @@
#include "libc/libc_dirent.h"
#include "libc/libc_signal.h"
#include "libc/libc_fdset.h"
#include "libc/libc_limits.h"
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
typedef signed long off_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册