diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index dbd88cba22..3a3eafe3ea 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -6088,10 +6088,12 @@ interface of the same name.
mmap() and eXecute In Place (XIP)mmap() and eXecute In Place (XIP)- #include <dirent.h> - int closedir(DIR *dirp); - FAR DIR *opendir(const char *path); - FAR struct dirent *readdir(FAR DIR *dirp); - int readdir_r(FAR DIR *dirp, FAR struct dirent *entry, FAR struct dirent **result); - void rewinddir(FAR DIR *dirp); - void seekdir(FAR DIR *dirp, int loc); - int telldir(FAR DIR *dirp); +#include <dirent.h> + +int closedir(DIR *dirp); +FAR DIR *opendir(const char *path); +FAR struct dirent *readdir(FAR DIR *dirp); +int readdir_r(FAR DIR *dirp, FAR struct dirent *entry, FAR struct dirent **result); +void rewinddir(FAR DIR *dirp); +void seekdir(FAR DIR *dirp, int loc); +int telldir(FAR DIR *dirp);- +
- #include <unistd.h> - int chdir(FAR const char *path); - FAR char *getcwd(FAR char *buf, size_t size); +#include <unistd.h> + +pid_t getpid(void); +void _exit(int status) noreturn_function; +unsigned int sleep(unsigned int seconds); +void usleep(unsigned long usec); + +int close(int fd); +int dup(int fd); +int dup2(int fd1, int fd2); +int fsync(int fd); +off_t lseek(int fd, off_t offset, int whence); +ssize_t read(int fd, FAR void *buf, size_t nbytes); +ssize_t write(int fd, FAR const void *buf, size_t nbytes); + +int pipe(int filedes[2]); + +int chdir(FAR const char *path); +FAR char *getcwd(FAR char *buf, size_t size); + +int unlink(FAR const char *pathname); +int rmdir(FAR const char *pathname); +int getopt(int argc, FAR char *const argv[], FAR const char *optstring);-
- #include <stdio.h> - int fclose(FILE *stream); - int fflush(FILE *stream); - int feof(FILE *stream); /* Prototyped but not implemented */ - int ferror(FILE *stream); /* Prototyped but not implemented */ - int fgetc(FILE *stream); - int fgetpos(FILE *stream, fpos_t *pos); - char *fgets(char *s, int n, FILE *stream); - FILE *fopen(const char *path, const char *type); - int fprintf(FILE *stream, const char *format, ...); - int fputc(int c, FILE *stream); - int fputs(const char *s, FILE *stream); - size_t fread(void *ptr, size_t size, size_t n_items, FILE *stream); - int fseek(FILE *stream, long int offset, int whence); - int fsetpos(FILE *stream, fpos_t *pos); - long ftell(FILE *stream); - size_t fwrite(const void *ptr, size_t size, size_t n_items, FILE *stream); - char *gets(char *s); +#include <stdio.h> - int printf(const char *format, ...); - int puts(const char *s); - int rename(const char *source, const char *target); - int sprintf(char *dest, const char *format, ...); - int ungetc(int c, FILE *stream); - int vprintf(const char *s, va_list ap); - int vfprintf(FILE *stream, const char *s, va_list ap); - int vsprintf(char *buf, const char *s, va_list ap); +int fclose(FILE *stream); +int fflush(FILE *stream); +FILE *fdopen(int fd, const char *type); +int feof(FILE *stream); /* Prototyped but not implemented */ +int ferror(FILE *stream); /* Prototyped but not implemented */ +int fileno(FAR FILE *stream); +int fgetc(FILE *stream); +int fgetpos(FILE *stream, fpos_t *pos); +char *fgets(char *s, int n, FILE *stream); +FILE *fopen(const char *path, const char *type); +int fprintf(FILE *stream, const char *format, ...); +int fputc(int c, FILE *stream); +int fputs(const char *s, FILE *stream); +size_t fread(void *ptr, size_t size, size_t n_items, FILE *stream); +int fseek(FILE *stream, long int offset, int whence); +int fsetpos(FILE *stream, fpos_t *pos); +long ftell(FILE *stream); +size_t fwrite(const void *ptr, size_t size, size_t n_items, FILE *stream); +char *gets(char *s); - FILE *fdopen(int fd, const char *type); - int fstat(int fd, FAR struct stat *buf); /* Prototyped but not implemented */ - int mkdir(const char *path, mode_t mode); - int rmdir(const char *path); - int stat(const char *path, FAR struct stat *buf); - int statfs(const char *path, FAR struct statfs *buf); /* Prototyped but not implemented */ +int printf(const char *format, ...); +int puts(const char *s); +int rename(const char *source, const char *target); +int snprintf(FAR char *buf, size_t size, const char *format, ...); +int sprintf(char *dest, const char *format, ...); +int sscanf(const char *buf, const char *fmt, ...); +int ungetc(int c, FILE *stream); +int vprintf(const char *s, va_list ap); +int vfprintf(FILE *stream, const char *s, va_list ap); +int vsnprintf(FAR char *buf, size_t size, const char *format, va_list ap); +int vsscanf(char *buf, const char *s, va_list ap); +int vsprintf(char *buf, const char *s, va_list ap); + +#include <sys/stat.h> + +int mkdir(FAR const char *pathname, mode_t mode); +int mkfifo(FAR const char *pathname, mode_t mode); +int stat(const char *path, FAR struct stat *buf); +int fstat(int fd, FAR struct stat *buf); + +#include <sys/statfs.h> + +int statfs(const char *path, struct statfs *buf); +int fstatfs(int fd, struct statfs *buf);-
+#include <string.h> -+ +2.11.5.1
+char *strchr(const char *s, int c); +FAR char *strdup(const char *s); +const char *strerror(int); +size_t strlen(const char *); +char *strcat(char *, const char *); +char *strncat(char *, const char *, size_t); +int strcmp(const char *, const char *); +int strncmp(const char *, const char *, size_t); +int strcasecmp(const char *, const char *); +int strncasecmp(const char *, const char *, size_t); +char *strcpy(char *dest, const char *src); +char *strncpy(char *, const char *, size_t); +char *strpbrk(const char *, const char *); +char *strchr(const char *, int); +char *strrchr(const char *, int); +size_t strspn(const char *, const char *); +size_t strcspn(const char *, const char *); +char *strstr(const char *, const char *); +char *strtok(char *, const char *); +char *strtok_r(char *, const char *, char **); + +void *memset(void *s, int c, size_t n); +void *memcpy(void *dest, const void *src, size_t n); +int memcmp(const void *s1, const void *s2, size_t n); +void *memmove(void *dest, const void *src, size_t count); + +# define bzero(s,n) (void)memset(s,0,n) +pipe
pipeFunction Prototype:
@@ -6403,7 +6471,7 @@ interface of the same name. -mkfifomkfifoFunction Prototype:
@@ -6450,8 +6518,8 @@ interface of the same name. -mkfatfsmkfatfsFunction Prototype:
@@ -6528,7 +6596,7 @@ struct fat_format_s -mmap() and eXecute In Place (XIP)mmap() and eXecute In Place (XIP)
NuttX operates in a flat open address space.
Therefore, it generally does not require mmap() functionality.
@@ -6551,7 +6619,7 @@ struct fat_format_s
mmapmmapFunction Prototype: