summaryrefslogtreecommitdiffstats
path: root/posix-users
diff options
context:
space:
mode:
Diffstat (limited to 'posix-users')
-rw-r--r--posix-users/message_passing.rst2
-rw-r--r--posix-users/signal.rst16
2 files changed, 5 insertions, 13 deletions
diff --git a/posix-users/message_passing.rst b/posix-users/message_passing.rst
index 0df9cc6..50c43dd 100644
--- a/posix-users/message_passing.rst
+++ b/posix-users/message_passing.rst
@@ -77,7 +77,7 @@ queue.
.. code-block:: c
- typedef struct mq_attr{
+ struct mq_attr{
long mq_flags;
long mq_maxmsg;
long mq_msgsize;
diff --git a/posix-users/signal.rst b/posix-users/signal.rst
index 86f2a3e..1b4694c 100644
--- a/posix-users/signal.rst
+++ b/posix-users/signal.rst
@@ -400,16 +400,12 @@ The prototype of the ``siginfo_t`` structure is the following:
{
int si_signo; /* Signal number */
int si_code; /* Cause of the signal */
- pid_t si_pid; /* Sending process ID */
- uid_t si_uid; /* Real user ID of sending process */
- void* si_addr; /* Address of faulting instruction */
- int si_status; /* Exit value or signal */
union sigval
{
int sival_int; /* Integer signal value */
void* sival_ptr; /* Pointer signal value */
} si_value; /* Signal value */
- }
+ } siginfo_t;
**NOTES:**
@@ -778,16 +774,12 @@ The prototype of the ``siginfo_t`` structure is the following:
{
int si_signo; /* Signal number */
int si_code; /* Cause of the signal */
- pid_t si_pid; /* Sending process ID */
- uid_t si_uid; /* Real user ID of sending process */
- void* si_addr; /* Address of faulting instruction */
- int si_status; /* Exit value or signal */
union sigval
{
int sival_int; /* Integer signal value */
void* sival_ptr; /* Pointer signal value */
} si_value; /* Signal value */
- }
+ } siginfo_t;
.. _sigtimedwait:
@@ -837,7 +829,7 @@ The ``timespec`` structure is defined as follows:
{
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds */
- }
+ };
**NOTES:**
@@ -895,7 +887,7 @@ The ``sigval`` union is specified as:
{
int sival_int; /* Integer signal value */
void* sival_ptr; /* Pointer signal value */
- }
+ };
**NOTES:**