Changeset 1a552fd in mainline


Ignore:
Timestamp:
2011-06-26T01:23:03Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d41821
Parents:
5e628c64
Message:

Some minor improvements/corrections in signal.h to avoid compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/signal.h

    r5e628c64 r1a552fd  
    6464typedef int posix_sigset_t;
    6565typedef struct posix_mcontext {
     66        // FIXME: should not be empty to avoid compiler warnings (-pedantic)
     67        int dummy;
    6668} posix_mcontext_t;
    6769
     
    7577        int sigev_signo; /* Signal number. */
    7678        union posix_sigval sigev_value; /* Signal value. */
    77         void (*sigev_notify_function)(union sigval); /* Notification function. */
     79        void (*sigev_notify_function)(union posix_sigval); /* Notification function. */
    7880        posix_thread_attr_t *sigev_notify_attributes; /* Notification attributes. */
    7981};
     
    193195};
    194196
     197/* Just declared to avoid compiler warnings. */
     198extern int posix_sigemptyset(posix_sigset_t *set);
     199extern int posix_sigprocmask(int how, const posix_sigset_t *restrict set,
     200    posix_sigset_t *restrict oset);
     201
    195202#ifndef LIBPOSIX_INTERNAL
    196203        #define sig_atomic_t posix_sig_atomic_t
     
    203210        #define stack_t posix_stack_t
    204211        #define siginfo_t posix_siginfo_t
     212        #define sigemptyset posix_sigemptyset
     213        #define sigprocmask posix_sigprocmask
    205214#endif
    206215
Note: See TracChangeset for help on using the changeset viewer.