Lines Matching refs:nbytes
57 * nbytes - Length of data to write
66 ssize_t file_write(struct file *filep, const void *buf, size_t nbytes)
95 ret = filep->ops->write(filep, (const char *)buf, nbytes);
119 * nbytes - Length of data to write
157 ssize_t write(int fd, const void *buf, size_t nbytes)
176 if (buf != NULL && nbytes > 0)
178 buf = malloc(nbytes);
184 if (LOS_ArchCopyFromUser((void*)buf, bufbak, nbytes) != 0)
192 ret = send(fd, buf, nbytes, 0);
242 return file_write(filep, buf, nbytes);