Changeset 1035 for trunk


Ignore:
Timestamp:
Jan 24, 2004, 10:59:04 PM (22 years ago)
Author:
bird
Message:

strsignal(), and sys_signame,sys_siglist and sys_nsig.

Location:
trunk/src/emx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/signal.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1034 r1035  
    33#ifndef _SIGNAL_H
    44#define _SIGNAL_H
     5#include <sys/cdefs.h>
    56#include <sys/signal.h>
     7
     8#if __BSD_VISIBLE
     9/*
     10 * XXX should enlarge these, if only to give empty names instead of bounds
     11 * errors for large signal numbers.
     12 */
     13extern __const char *__const sys_signame[NSIG];
     14extern __const char *__const sys_siglist[NSIG];
     15extern __const int sys_nsig;
     16#endif
     17
     18
    619#endif /* not _SIGNAL_H */
  • trunk/src/emx/include/string.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1034 r1035  
    8989char    *strerror(int);
    9090#if __POSIX_VISIBLE >= 200112
    91 /** @todo int    strerror_r(int, char *, size_t);*/
     91int      strerror_r(int, char *, size_t);
    9292#endif
    9393#if __BSD_VISIBLE
     
    109109#if __BSD_VISIBLE
    110110char    *strsep(char **, const char *);
    111 /** @todo char  *strsignal(int); */
     111 char   *strsignal(int);
    112112#endif
    113113size_t   strspn(const char *, const char *);
  • trunk/src/emx/src/lib/bsd/gen/siglist.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1034 r1035  
    7171        "prof",                         /* SIGPROF */
    7272        "winch",                        /* SIGWINCH */
     73#ifndef __EMX__
    7374        "info",                         /* SIGINFO */
    7475        "usr1",                         /* SIGUSR1 */
    7576        "usr2"                          /* SIGUSR2 */
     77#endif
    7678};
    7779
     
    106108        "Profiling timer expired",      /* SIGPROF */
    107109        "Window size changes",          /* SIGWINCH */
     110#ifndef __EMX__
    108111        "Information request",          /* SIGINFO */
    109112        "User defined signal 1",        /* SIGUSR1 */
    110113        "User defined signal 2"         /* SIGUSR2 */
     114#endif
    111115};
    112116const int sys_nsig = sizeof(sys_siglist) / sizeof(sys_siglist[0]);
  • trunk/src/emx/src/lib/bsd/string/strsignal.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1034 r1035  
    3232 */
    3333
     34#ifdef __EMX__
     35#include "libc-alias.h"
     36#endif
    3437#if defined(LIBC_SCCS) && !defined(lint)
    3538static char sccsid[] = "@(#)strerror.c  8.1 (Berkeley) 6/4/93";
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.41 to 1.42
    r1034 r1035  
    6666    "_optreset" @46
    6767    "___progname" @47
     68    "_sys_nsig" @48
     69    "_sys_siglist" @49
     70    "_sys_signame" @50
    6871
    6972
     
    987990    "___posix_spawn_file_actions_realloc" @1017
    988991    "___spawni" @1018
     992    "_strsignal" @1019
Note: See TracChangeset for help on using the changeset viewer.