Ignore:
Timestamp:
Oct 22, 2014, 9:17:00 PM (11 years ago)
Author:
bird
Message:

trunk+0.6: Modified the existing swab() function in string.h to be standard compliant (signed last argument, don't copy negative counts, truncate odd values instead of ignoring them). Fixes #281.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/unistd.h

    r2455 r3899  
    455455int      setregid(gid_t, gid_t);
    456456int      setreuid(uid_t, uid_t);
    457 /* void  swab(const void * __restrict, void * __restrict, ssize_t); */
     457
     458#ifndef _SWAB_DECLARED                                  /* bird: also in string.h */
     459# define _SWAB_DECLARED                                 /* bird: also in string.h */
     460void     swab(const void * __restrict, void * __restrict, ssize_t);
     461#endif /* !_SWAB_DECLARED */                            /* bird: also in string.h */
    458462void     sync(void);
    459463useconds_t       ualarm(useconds_t, useconds_t);
Note: See TracChangeset for help on using the changeset viewer.