Home | History | Annotate | Download | only in co

Lines Matching refs:buffer

132 inline int getAccess(int accType, struct stat *buffer, char *p_path)
138 if(! buffer)
141 //idType= (buffer->st_uid== BT_UID) ? 1 : (buffer->st_uid== BT_GID) ? 2 : 3;
142 if(buffer->st_uid == BT_UID)
144 else if(buffer->st_gid == BT_GID ||
145 buffer->st_gid == AID_SYSTEM ||
146 buffer->st_gid == AID_MISC ||
147 buffer->st_gid == AID_SDCARD_RW)
163 if(buffer-> st_mode & S_IRUSR)
167 if(buffer-> st_mode & S_IRGRP)
171 if(buffer-> st_mode & S_IROTH)
178 if((buffer-> st_mode & S_IRUSR) && (buffer-> st_mode & S_IWUSR))
182 if((buffer-> st_mode & S_IRGRP) && (buffer-> st_mode & S_IWGRP))
186 if((buffer-> st_mode & S_IROTH) && (buffer-> st_mode & S_IWOTH))
435 ** p_buf - buffer to read the data into.
436 ** nbytes - number of bytes to read into the buffer.
447 ** called with the buffer of data, along with the number
448 ** of bytes read into the buffer, and a status. The
482 ** p_buf - buffer to read the data from.
566 struct stat buffer;
605 if (stat(p_path, &buffer) == 0)
608 if (S_ISDIR(buffer.st_mode))
617 status=getAccess (os_mode, &buffer, (char*)p_path);
677 struct stat buffer;
687 /* allocate a temp buffer for path with 0 char. make sure not to crash if path is too big! */
704 if (stat(dirName, &buffer) == 0)
706 status = getAccess(6, &buffer, dirName);
726 if (stat(p_path, &buffer) == 0)
728 status = getAccess(6, &buffer, (char*)p_path);
784 struct stat buffer;
790 /* buffer needs to be NULL terminated - so add one more byte to be zero'd out */
802 if (stat(dirName, &buffer) == 0)
804 status=getAccess (6, &buffer, dirName);