Changeset 1517 for trunk/src/emx/include


Ignore:
Timestamp:
Sep 19, 2004, 5:53:31 PM (21 years ago)
Author:
bird
Message:

Fixing warnings. -Znofork

Location:
trunk/src/emx/include
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1516 r1517  
    129129 * @returns -1 and errno on failure.
    130130 * @param   paStatFs    Where to to store the statistics.
    131  * @parma   cStatFS     Number of structures the array pointed to by paStatFs can hold.
     131 * @param   cStatFS     Number of structures the array pointed to by paStatFs can hold.
    132132 * @param   fFlags      Flags, currently ignored.
    133133 */
     
    140140 */
    141141void __libc_Back_fsSync(void);
     142
     143/**
     144 * Sets or change the unixroot of the current process.
     145 *
     146 * @returns 0 on success.
     147 * @returns -1 and errno on failure.
     148 * @param   pszNewRoot  The new root.
     149 */
     150int __libc_Back_fsChRoot(const char *pszNewRoot);
    142151
    143152/** @} */
  • trunk/src/emx/include/error.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1516 r1517  
    22/** @file
    33 * GLIBC v2.3.2
     4 *
     5 * @changed bird: shut up -Wundef.
    46 */
    57
     
    2931#ifndef __attribute__
    3032/* This feature is available in gcc versions 2.5 and later.  */
    31 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
     33# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (defined(__STRICT_ANSI__) && __STRICT_ANSI__) /* bird: shut up -Wundef */
    3234#  define __attribute__(Spec) /* empty */
    3335# endif
  • trunk/src/emx/include/os2thunk.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1516 r1517  
    1616void *_libc_16to32 (_far16ptr ptr);
    1717
     18typedef union _thunk_u
     19{
     20    void *pv;
     21    unsigned short *pus;
     22    unsigned long *pul;
     23} _thunk_t;
     24
    1825unsigned long _libc_thunk1 (void *args, void *fun);
    1926
    2027#define _THUNK_PASCAL_PROLOG(SIZE) \
    21   ({ char _tb[(SIZE)+4]; void *_tp = _tb + sizeof (_tb); \
     28  __extension__ ({ char _tb[(SIZE)+4]; _thunk_t _tu; _tu.pv = _tb + sizeof (_tb); \
    2229       *(unsigned long *)_tb = (SIZE);
    2330#define _THUNK_PASCAL_CHAR(ARG)     _THUNK_PASCAL_SHORT (ARG)
    24 #define _THUNK_PASCAL_SHORT(ARG)    (*--((unsigned short *)_tp) = (ARG))
    25 #define _THUNK_PASCAL_LONG(ARG)     (*--((unsigned long *)_tp) = (ARG))
     31#define _THUNK_PASCAL_SHORT(ARG)    (*--_tu.pus = (ARG))
     32#define _THUNK_PASCAL_LONG(ARG)     (*--_tu.pul = (ARG))
    2633#define _THUNK_PASCAL_FLAT(ARG)     _THUNK_PASCAL_LONG (_libc_32to16 (ARG))
    2734#define _THUNK_PASCAL_FAR16(ARG)    _THUNK_PASCAL_LONG (ARG)
     
    3138
    3239#define _THUNK_C_PROLOG(SIZE) \
    33   ({ char _tb[(SIZE)+4]; void *_tp = _tb + sizeof (unsigned long); \
     40  __extension__ ({ char _tb[(SIZE)+4]; _thunk_t _tu; _tu.pv = _tb + sizeof (unsigned long); \
    3441       *(unsigned long *)_tb = (SIZE);
    3542#define _THUNK_C_CHAR(ARG)     _THUNK_C_SHORT (ARG)
    36 #define _THUNK_C_SHORT(ARG)    (*((unsigned short *)_tp)++ = (ARG))
    37 #define _THUNK_C_LONG(ARG)     (*((unsigned long *)_tp)++ = (ARG))
     43#define _THUNK_C_SHORT(ARG)    (*_tu.pus++ = (ARG))
     44#define _THUNK_C_LONG(ARG)     (*_tu.pul++ = (ARG))
    3845#define _THUNK_C_FLAT(ARG)     _THUNK_C_LONG (_libc_32to16 (ARG))
    3946#define _THUNK_C_FAR16(ARG)    _THUNK_C_LONG (ARG)
  • trunk/src/emx/include/string.h

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r1516 r1517  
    9898size_t   strlen(const char *);
    9999#if __BSD_VISIBLE
    100 /** @todo void   strmode(int, char *); */
     100void     strmode(int, char *);
    101101#endif
    102102char    *strncat(char * __restrict, const char * __restrict, size_t);
     
    116116char    *strtok(char * __restrict, const char * __restrict);
    117117#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
    118 /**@todo char   *strtok_r(char *, const char *, char **); */
     118char    *strtok_r(char *, const char *, char **);
    119119#endif
    120120size_t   strxfrm(char * __restrict, const char * __restrict, size_t);
     
    138138char *  strset(char *, int);
    139139char *  strupr(char *);
    140 /* bird: Are we sure we actually want this stuff _here_ ? */
    141 extern char *__gnu_basename (const char *);
    142 #ifndef _LIBGEN_H
    143 #define basename __gnu_basename
    144 #endif
    145140#endif
    146141
     
    168163/* bird: GNU stuff - start */
    169164#ifdef __USE_GNU
     165char    *basename(const char *);
    170166size_t   strnlen(const char *, size_t);
    171167void    *mempcpy(void *, const void *, size_t);
    172168char    *strndup(const char *, size_t);
    173169void    *memrchr(const void *, int, size_t);
     170#define  memrchr(pach, ch, cch)     _memrchr(pach, ch, cch)
     171int      strverscmp(const char *, const char *);
    174172
    175173size_t   __strnlen(const char *, size_t);
    176174void    *__mempcpy(void *, const void *, size_t);
    177175char    *__strndup(const char *, size_t);
     176void    *_memrchr(const void *, int, size_t);
    178177void    *__memrchr(const void *, int, size_t);
    179 void    *_memrchr(const void *, int, size_t);
    180 
    181 #define memrchr(pach, ch, cch)    _memrchr(pach, ch, cch)
    182 #define __memrchr(pach, ch, cch)  _memrchr(pach, ch, cch)
     178#define  __memrchr(pach, ch, cch)   _memrchr(pach, ch, cch)
     179int      __strverscmp(const char *, const char *);
    183180
    184181#endif
  • trunk/src/emx/include/sys/cdefs.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1516 r1517  
    171171 */
    172172#if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95)
    173 #if __STDC_VERSION__ < 199901
     173#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 /* bird: check if not defined. (-pedantic) */
    174174#define __restrict
    175175#else
  • trunk/src/emx/include/sys/ioccom.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1516 r1517  
    8383 */
    8484int         TCPCALL os2_ioctl __P((int, int, char *, int));
     85/** Wrapper around the ioctl() interface of OS/2 BSD 4.3. */
     86int         TCPCALL so_ioctl __P((int, unsigned long, ...));
    8587#else
    86 /** The v41+ BSD socket ioctl interface.
    87  * @remark sys based libc have separeate handle spaces for sockets and files
    88  *         therefore this socket specific call.
    89  */
     88/** The v41+ BSD socket ioctl interface. */
    9089int         TCPCALL so_ioctl __P((int, unsigned long, ...));
    9190/** The v41+ OS/2 specific socket ioctl interface. */
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r1516 r1517  
    307307#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
    308308int      brk(const void *);
    309 /** @todo int    chroot(const char *); */
    310 /** @todo int    getdtablesize(void); */
     309int      chroot(const char *);
     310int      getdtablesize(void);
    311311int      getpagesize(void) __pure2;
    312312char    *getpass(const char *);
Note: See TracChangeset for help on using the changeset viewer.