2008-02-05 19:13:13 +01:00
|
|
|
/****************************************************************************
|
2022-12-21 14:13:14 +01:00
|
|
|
* libs/libc/stdio/lib_libgetstreams.c
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2020-05-09 17:05:29 +02:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2020-05-09 17:05:29 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2020-05-09 17:05:29 +02:00
|
|
|
* 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.
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2008-02-05 19:13:13 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-02-05 19:13:13 +01:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Included Files
|
2008-02-05 19:13:13 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2021-05-18 08:59:14 +02:00
|
|
|
#include <assert.h>
|
|
|
|
|
2022-12-21 14:13:14 +01:00
|
|
|
#include <nuttx/tls.h>
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2020-08-13 12:17:29 +02:00
|
|
|
#ifdef CONFIG_FILE_STREAM
|
2020-05-09 17:05:29 +02:00
|
|
|
|
2008-02-05 19:13:13 +01:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Public Functions
|
2008-02-05 19:13:13 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-02-05 19:13:13 +01:00
|
|
|
/****************************************************************************
|
2022-12-21 14:13:14 +01:00
|
|
|
* Name: lib_get_streams
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Return a pointer to the streams list for this thread
|
|
|
|
*
|
2018-03-13 16:52:27 +01:00
|
|
|
* Input Parameters:
|
2007-02-18 00:21:28 +01:00
|
|
|
* None
|
|
|
|
*
|
2018-02-01 17:00:02 +01:00
|
|
|
* Returned Value:
|
2007-02-18 00:21:28 +01:00
|
|
|
* A pointer to the errno.
|
|
|
|
*
|
|
|
|
* Assumptions:
|
|
|
|
*
|
2008-02-05 19:13:13 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2022-12-21 14:13:14 +01:00
|
|
|
FAR struct streamlist *lib_get_streams(void)
|
2007-02-18 00:21:28 +01:00
|
|
|
{
|
2022-12-21 14:13:14 +01:00
|
|
|
FAR struct task_info_s *info;
|
2013-01-26 23:25:21 +01:00
|
|
|
|
2022-12-21 14:13:14 +01:00
|
|
|
info = task_get_info();
|
|
|
|
return &info->ta_streamlist;
|
2014-04-13 22:32:20 +02:00
|
|
|
}
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2020-08-13 12:17:29 +02:00
|
|
|
#endif /* CONFIG_FILE_STREAM */
|