Skip to content

Commit 601c434

Browse files
committed
posix: add headers for stropts
Minimal header for stropts Signed-off-by: Abhinav Srivastava <[email protected]>
1 parent 682f38f commit 601c434

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

include/zephyr/posix/stropts.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2024 Abhinav Srivastava
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#ifndef ZEPHYR_INCLUDE_POSIX_STROPTS_H_
7+
#define ZEPHYR_INCLUDE_POSIX_STROPTS_H_
8+
9+
#ifdef __cplusplus
10+
extern "C" {
11+
#endif
12+
13+
struct strbuf {
14+
int maxlen;
15+
int len;
16+
char *buf;
17+
};
18+
19+
int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags);
20+
21+
#ifdef __cplusplus
22+
}
23+
#endif
24+
25+
#endif /* ZEPHYR_INCLUDE_POSIX_STROPTS_H_ */

0 commit comments

Comments
 (0)