Opened 6 years ago

Closed 5 years ago

#281 closed defect (fixed)

enable swab() in unistd.h

Reported by: komh Owned by:
Priority: normal Milestone: libc-0.6.6
Component: libc Version: 0.6.5
Severity: normal Keywords: swab
Cc:

Description

Hi/2.

Currently swab() in unistd.h was commented out. Is there any special reason ?

In compliance posix, it would be better to enable swab().

Change History (2)

comment:1 Changed 5 years ago by bird

  • Milestone set to libc-0.6.6

The unistd.h edition of the function is incompatible with the one in in string.h, the last argument is signed in unistd.h while it's unsigned in string.h. According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/swab.html negative values means no action is taken.

Shouldn't be difficult to adjust the code though.

comment:2 Changed 5 years ago by bird

  • Keywords swab added
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r3899 both places.

Note: See TracTickets for help on using tickets.