[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rtems_libio_set_private_env() and chroot().




Sergei Organov wrote:
> 
> I've found that for some reason prototype for `rtems_libio_set_private_env()'
> has been put into `libio_.h', not in `libio.h'. Is it a mistake, or I need to
> include file marked "Libio internal information" into my code?

It is s mistake.  It is part of the public interface and should be in libio.h

> Also, prototype for `chroot()' just doesn't seem to exist, but that's a
> `newlib' issue as far as I understand.

I would agree.  The Linux man page and OpenGroup page want it to
be prototyped by including <unistd.h>.  It is prototyped in 
newlib's <sys/unistd.h> and is conditional on Cygwin.  It should 
also be enabled for __rtems__.  

I will fix this so it shows up in the next tool patch and RPMs.
 
> Sergei.

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