13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Libraries%x%X%y%Y%z%Z%%local date representationlocal time representationyear without century (00-99)year with centuryISO 8601 offset of time zone from UTC, or nothingtime zone name, if any%13.2.27. unistd.hThe file unistd.h contains standard UNIX I/O functions. These functions are all implemented using filesystem simulation. Except <strong>for</strong> lstat and fstat which are not implemented. This header file is notdefined in ISO C99.access(*name,mode)chdir(*path)close(fd)getcwd(*buf,size)Use file system simulation to check the permissions of a file on the host. modespecifies the type of access and is a bit pattern constructed by a logical OR ofthe following values:R_OK Checks read permission.W_OK Checks write permission.X_OK Checks execute (search) permission.F_OK Checks to see if the file exists.(FSS implementation)Use file system simulation to change the current directory on the host to thedirectory indicated by path. (FSS implementation)File close function. The given file descriptor should be properly closed. Thisfunction calls _close(). (FSS implementation)Use file system simulation to retrieve the current directory on the host. Returnsthe directory name. (FSS implementation)lseek(fd,offset,whence) Moves read-write file offset. Calls _lseek(). (FSS implementation)read(fd,*buff,cnt) Reads a sequence of characters from a file.This function calls _read(). (FSSimplementation)stat(*name,*buff)Use file system simulation to stat() a file on the host plat<strong>for</strong>m. (FSSimplementation)lstat(*name,*buff) This function is identical to stat(), except in the case of a symbolic link, wherethe link itself is 'stat'-ed, not the file that it refers to. (Not implemented)fstat(fd,*buff)unlink(*name)This function is identical to stat(), except that it uses a file descriptor insteadof a name. (Not implemented)Removes the named file, so that a subsequent attempt to open it fails. (FSSimplementation)write(fd,*buff,cnt) Write a sequence of characters to a file. Calls _write(). (FSS implementation)771

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!