= The stdio Library = [[PageOutline]] The [source:soft/giet_vm/giet_libs/stdio.c stdio.c] and [source:soft/giet_vm/giet_libs/stdio.h stdio.h] files contains all system calls provided to user applications by the GIET-VM. They are generally prefixed by ''giet_''. == __1) Processor related system calls__ == * '''int giet_procid()''' This function returns the global processor identifier gpid, depending on (X,Y,L) where X,Y are the cluster coordinates, and L is the local processor index. The format is gpid = X< character is read. It ignores non-decimal characters, and displays an echo system function) for each decimal character. The character is interpreted, and previous characters can be cancelled. When the character is received, the string is converted to an unsigned int value. If the number of decimal digit is too large for the 32 bits range, the zero value is returned. In case or error, it makes a giet_exit(). * '''giet_tty_gets( char* buf, unsigned int bufsize )''' This blocking function fetches a string from the private terminal that must have been allocated to the calling task in the application mapping. It writes the string to a fixed length buffer. It uses the TTY_RX_IRQ interrupt, and the associated kernel buffer. Up to (bufsize - 1) characters (including the non printable characters) are copied into buffer, and the string is completed by a NUL character. The character is interpreted, and the function close the string with a NUL character if is read. The character is interpreted, and the corresponding character(s) are removed from the target buffer. It does not provide an echo. In case or error, it makes a giet_exit(). == __4) File system related system calls__ == The Giet-VM supports a FAT32 file system. == __5) Network related system calls__ == == __6) Frame Buffer related system calls__ ==