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 #define RS_HIPRI BIT(0) 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 struct strbuf { 15 int maxlen; 16 int len; 17 char *buf; 18 }; 19 20 int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags); 21 int fdetach(const char *path); 22 int fattach(int fildes, const char *path); 23 int getmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp); 24 int getpmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp, int *flagsp); 25 int isastream(int fildes); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif /* ZEPHYR_INCLUDE_POSIX_STROPTS_H_ */ 32