#include <unistd.h>
#include <stdlib.h>
#include <linux/limits.h>
char *getcwd(char *buffer, size_t size); //returns the current directory, MAX_PATH can be used as size
int chdir(const char *prt); //changes the current working directory considering the path (*prt) given, return 0 on sucess and -1 if an errors occurs
int access(const char *path, int amode);
/*checks if a file or directory can be accessed according to the mode given
: F_OK, tests for file existence; R_OK tests for read permission; W_OK tests for writing permission and X_OK test for execution permission*/
char *getenv(const char *name); //searches for the variable with *name and returns it's value string
Blackberry's QNX developers documentation
builtins not returning proper exit code
<command/builtin> | / not returning proper exit code