Patch - Add restrict to unistd.h

Jeff Johnston
Fri Nov 22 21:10:00 GMT 2013

Yes, go ahead.

----- Original Message -----
From: "Joel Sherrill" <>
Sent: Friday, November 22, 2013 4:01:11 PM
Subject: Patch - Add restrict to unistd.h


Another patch in the add restrict series from Google
Code-In students.

FWIW readlinkat() is what was wrapped in a CYGWIN
ifdef which made me wonder why and send the other

OK to commit?

2013-11-22  Chirayu Desai  <>

        * libc/include/sys/unistd.h (readlink): Add restrict keyword.
        (readlinkat): Ditto.
        (swab): Ditto.
        * libc/sys/rdos/readlink.c (readlink): Ditto.
        * libc/string/swab.c (swab): Ditto.

Joel Sherrill, Ph.D.             Director of Research & Development        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the Newlib mailing list