mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 07:36:50 +08:00
posix-users/device_and_class_specific.rst: Add Prototypes
Add and update Device and Class Specific APIs in POSIX Users Guide. This work was part of GCI 2018.
This commit is contained in:
parent
1b05464954
commit
0522994231
@ -69,8 +69,8 @@ cfgetispeed - Reads terminal input baud rate
|
|||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
int cfgetispeed(
|
speed_t cfgetispeed(
|
||||||
const struct termios *p
|
const struct termios *termios_p
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -105,8 +105,8 @@ cfgetospeed - Reads terminal output baud rate
|
|||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
int cfgetospeed(
|
speed_t cfgetospeed(
|
||||||
const struct termios *p
|
const struct termios *termios_p
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -142,8 +142,8 @@ cfsetispeed - Sets terminal input baud rate
|
|||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
int cfsetispeed(
|
int cfsetispeed(
|
||||||
struct termios *p,
|
struct termios *termios_p,
|
||||||
speed_t speed
|
speed_t speed
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -178,8 +178,8 @@ cfsetospeed - Sets terminal output baud rate
|
|||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
int cfsetospeed(
|
int cfsetospeed(
|
||||||
struct termios *p,
|
struct termios *termios_p,
|
||||||
speed_t speed
|
speed_t speed
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -216,10 +216,9 @@ tcgetattr - Gets terminal attributes
|
|||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
|
||||||
int tcgetattr(
|
int tcgetattr(
|
||||||
int fildes,
|
int fildes,
|
||||||
struct termios *p
|
struct termios *termios_p
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -254,11 +253,10 @@ tcsetattr - Set terminal attributes
|
|||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
|
||||||
int tcsetattr(
|
int tcsetattr(
|
||||||
int fildes,
|
int fildes,
|
||||||
int options,
|
int optional_actions,
|
||||||
const struct termios *tp
|
const struct termios *termios_p
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -284,8 +282,10 @@ tcsendbreak - Sends a break to a terminal
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
|
#include <termios.h>
|
||||||
int tcsendbreak(
|
int tcsendbreak(
|
||||||
int fd
|
int fildes,
|
||||||
|
int duration
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -315,7 +315,6 @@ tcdrain - Waits for all output to be transmitted to the terminal.
|
|||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
|
||||||
int tcdrain(
|
int tcdrain(
|
||||||
int fildes
|
int fildes
|
||||||
);
|
);
|
||||||
@ -352,8 +351,10 @@ tcflush - Discards terminal data
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
|
#include <termios.h>
|
||||||
int tcflush(
|
int tcflush(
|
||||||
int fd
|
int fildes,
|
||||||
|
int queue_selector
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -382,8 +383,10 @@ tcflow - Suspends/restarts terminal output.
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
|
#include <termios.h>
|
||||||
int tcflow(
|
int tcflow(
|
||||||
int fd
|
int fildes,
|
||||||
|
int action
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -412,7 +415,9 @@ tcgetpgrp - Gets foreground process group ID
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
int tcgetpgrp(
|
#include <unistd.h>
|
||||||
|
pid_t tcgetpgrp(
|
||||||
|
int fildes
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
@ -441,7 +446,10 @@ tcsetpgrp - Sets foreground process group ID
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
int tcsetpgrp(
|
int tcsetpgrp(
|
||||||
|
int fildes,
|
||||||
|
pid_t pgid_id
|
||||||
);
|
);
|
||||||
|
|
||||||
**STATUS CODES:**
|
**STATUS CODES:**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user