1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX API Implementation |
---|
5 | * |
---|
6 | * This include file defines the top level interface to the POSIX API |
---|
7 | * implementation in RTEMS. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 1989-2011. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.com/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_POSIX_POSIXAPI_H |
---|
20 | #define _RTEMS_POSIX_POSIXAPI_H |
---|
21 | |
---|
22 | #include <rtems/config.h> |
---|
23 | #include <rtems/score/objectimpl.h> |
---|
24 | |
---|
25 | /** |
---|
26 | * @defgroup POSIXAPI RTEMS POSIX API |
---|
27 | * |
---|
28 | * RTEMS POSIX API definitions and modules. |
---|
29 | * |
---|
30 | */ |
---|
31 | /**@{**/ |
---|
32 | |
---|
33 | /** |
---|
34 | * @brief Initialize POSIX API. |
---|
35 | * |
---|
36 | * This method is responsible for initializing each of the POSIX |
---|
37 | * API managers. |
---|
38 | */ |
---|
39 | void _POSIX_API_Initialize(void); |
---|
40 | |
---|
41 | /** |
---|
42 | * @brief Queries the object identifier @a id for a @a name. |
---|
43 | * |
---|
44 | * @param[in] information Object information. |
---|
45 | * @param[in] name Zero terminated name string to look up. |
---|
46 | * @param[out] id Pointer for identifier. The pointer must be valid. |
---|
47 | * @param[out] len Pointer for string length. The pointer must be valid. |
---|
48 | * |
---|
49 | * @retval 0 Successful operation. |
---|
50 | * @retval EINVAL The @a name pointer is @c NULL or the @a name string has |
---|
51 | * zero length. |
---|
52 | * @retval ENAMETOOLONG The @a name string length is greater than or equal to |
---|
53 | * @c NAME_MAX. |
---|
54 | * @retval ENOENT Found no corresponding identifier. |
---|
55 | */ |
---|
56 | int _POSIX_Name_to_id( |
---|
57 | Objects_Information *information, |
---|
58 | const char *name, |
---|
59 | Objects_Id *id, |
---|
60 | size_t *len |
---|
61 | ); |
---|
62 | |
---|
63 | /** @} */ |
---|
64 | |
---|
65 | #endif |
---|
66 | /* end of include file */ |
---|