Opened 10 years ago

Closed 10 years ago

#281 closed defect (fixed)

enable swab() in unistd.h

Reported by: KO Myung-Hun 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 10 years ago by bird

Milestone: 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 10 years ago by bird

Keywords: swab added
Resolution: fixed
Status: newclosed

Fixed in r3899 both places.

Note: See TracTickets for help on using tickets.