|
HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
fatfs test utilities with user interface More...
#include "user_config.h"#include "fatfs.h"#include "time.h"#include "stringsup.h"#include "mathio.h"#include "posix.h"#include "posix_tests.h"Go to the source code of this file.
Macros | |
| #define | BUFSIZE 512 |
Functions | |
| MEMSPACE void | posix_help (int full) |
| MEMSPACE int | posix_tests (int argc, char *argv[]) |
| POSIX tests. More... | |
| MEMSPACE long | cat (char *name, int dopage) |
| Display the contents of a file. More... | |
| MEMSPACE long | copy (char *from, char *to) |
| Copy a file. More... | |
| MEMSPACE int | setpage (int count) |
| MEMSPACE int | testpage (int count) |
| Used to page output of functions like cat, hexdump, etc. More... | |
| MEMSPACE int | ls_info (char *name, int verbose) |
| list one file More... | |
| MEMSPACE int | ls (char *name, int verbose) |
| Directory listing. More... | |
Variables | |
| static int | _pagesize = 25 |
| Used to page output of functions like cat, hexdump, etc. More... | |
fatfs test utilities with user interface
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file posix_tests.c.
| #define BUFSIZE 512 |
Definition at line 43 of file posix_tests.c.
| MEMSPACE long cat | ( | char * | name, |
| int | dopage | ||
| ) |
Display the contents of a file.
| [in] | name | file name. |
| [in] | option | –p page display |
Definition at line 355 of file posix_tests.c.
Referenced by posix_tests().
| MEMSPACE long copy | ( | char * | from, |
| char * | to | ||
| ) |
Copy a file.
| [in] | from | source file. |
| [in] | to | destination file. |
Definition at line 398 of file posix_tests.c.
Referenced by posix_tests().
| MEMSPACE int ls | ( | char * | name, |
| int | verbose | ||
| ) |
Directory listing.
| [in] | path | file name or directory |
| [in] | option | -l for detail |
Definition at line 614 of file posix_tests.c.
Referenced by posix_tests().
| MEMSPACE int ls_info | ( | char * | name, |
| int | verbose | ||
| ) |
list one file
| [in] | path | file name or directory |
| [in] | verbose | 1 = detail, 0 = name only |
Definition at line 562 of file posix_tests.c.
Referenced by ls().
| MEMSPACE void posix_help | ( | int | full | ) |
Definition at line 46 of file posix_tests.c.
Referenced by help(), and posix_tests().
| MEMSPACE int posix_tests | ( | int | argc, |
| char * | argv[] | ||
| ) |
POSIX tests.
| [in] | agc | cont of arguments |
Definition at line 93 of file posix_tests.c.
Referenced by user_task().
| MEMSPACE int setpage | ( | int | count | ) |
Definition at line 521 of file posix_tests.c.
Referenced by posix_tests().
| MEMSPACE int testpage | ( | int | count | ) |
Used to page output of functions like cat, hexdump, etc.
| [in] | *name | file to hexdump @retrun -1 = quit, return count or 0 at new page |
Definition at line 532 of file posix_tests.c.
Referenced by cat().
|
static |
Used to page output of functions like cat, hexdump, etc.
| [in] | *name | file to hexdump @retrun void |
Definition at line 519 of file posix_tests.c.
Referenced by setpage(), and testpage().
1.8.17