source: spec/trunk/SPECS/libc/libc.patch@ 1566

Last change on this file since 1566 was 1092, checked in by dmik, 8 years ago

spec: libc: Release version 0.6.6-32.

File size: 3.5 KB
  • include/stdlib.h

    diff -ur -x libtool -x '*.o' -x '*.lo' -x '*.la*' -x configure.lineno -x config.status -x config.log -x '*.Plo' -x '*.Po' -x .svn -x .git usr0/include/stdlib.h usr/include/stdlib.h
    old new  
    384384int     mkdir(const char *, mode_t);
    385385void perror (const char *);
    386386int rmdir (const char *);
    387 void *sbrk(intptr_t);
     387//void *sbrk(intptr_t);
    388388unsigned sleep (unsigned);
    389389long ulimit (int, ...);
    390390
     
    413413int _mkdir (const char *, long);
    414414int _putenv (const char *);
    415415int _rmdir (const char *);
    416 void *_sbrk(intptr_t);
     416//void *_sbrk(intptr_t);
    417417unsigned _sleep (unsigned);
    418418void _swab (const void *, void *, size_t);
    419419long _ulimit (int, ...);
  • include/sys/mman.h

    diff -ur -x libtool -x '*.o' -x '*.lo' -x '*.la*' -x configure.lineno -x config.status -x config.log -x '*.Plo' -x '*.Po' -x .svn -x .git usr0/include/sys/mman.h usr/include/sys/mman.h
    old new  
    5959#define PROT_WRITE      0x02    /* pages can be written */
    6060#define PROT_EXEC       0x04    /* pages can be executed */
    6161
    62 #if 0  /* bird */
     62#if 1  /* yd, bird */
    6363/*
    6464 * Flags contain sharing type and options.
    6565 * Sharing types; choose one.
     
    183183#ifndef _MMAP_DECLARED
    184184#define _MMAP_DECLARED
    185185/** @todo void *        mmap(void *, size_t, int, int, int, off_t); */
     186void *  mmap(void *, size_t, int, int, int, off_t);
    186187#endif
    187188int     mprotect(const void *, size_t, int);
    188189/** @todo int   msync(void *, size_t, int); */
     190int     msync(void *, size_t, int);
    189191/** @todo int   munlock(const void *, size_t); */
    190192/** @todo int   munmap(void *, size_t); */
     193int     munmap(void *, size_t);
    191194#if __POSIX_VISIBLE >= 200112
    192195/** @todo int   posix_madvise(void *, size_t, int); */
    193196#endif
  • include/386/builtin.h

    diff -ur -x libtool -x '*.o' -x '*.lo' -x '*.la*' -x configure.lineno -x config.status -x config.log -x '*.Plo' -x '*.Po' -x .svn -x .git usr0/include/386/builtin.h usr/include/386/builtin.h
    old new  
    1515static __inline__ signed char __cxchg (__volatile__ signed char *p,
    1616                                       signed char v)
    1717{
    18   __asm__ __volatile__ ("xchgb %0, %1" : "=m"(*p), "=r"(v) : "1"(v));
     18  //__asm__ __volatile__ ("xchgb %0, %1" : "=m"(*p), "=r"(v) : "1"(v));
     19  __asm__ __volatile__ ("xchgb %0, %1" : "=m"(*p), "=q"(v) : "1"(v));
    1920  return v;
    2021}
    2122
  • include/stddef.h

    diff -ur -x libtool -x '*.o' -x '*.lo' -x '*.la*' -x configure.lineno -x config.status -x config.log -x '*.Plo' -x '*.Po' -x .svn -x .git usr0/include/stddef.h usr/include/stddef.h
    old new  
    8585#endif
    8686/* bird: EMX - end */
    8787
     88#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
     89  || (defined(__cplusplus) && __cplusplus >= 201103L)
     90#ifndef _GCC_MAX_ALIGN_T
     91#define _GCC_MAX_ALIGN_T
     92/* Type whose alignment is supported in every context and is at least
     93   as great as that of any standard type not using alignment
     94   specifiers.  */
     95typedef struct {
     96  long long __max_align_ll __attribute__((__aligned__(__alignof__(long long))));
     97  long double __max_align_ld __attribute__((__aligned__(__alignof__(long double))));
     98} max_align_t;
     99#endif
     100#endif /* C11 or C++11.  */
     101
    88102#endif /* _STDDEF_H_ */
Note: See TracBrowser for help on using the repository browser.