Changeset 371bd7d in mainline for uspace/app/bdsh/cmds/modules
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app/bdsh/cmds/modules
- Files:
-
- 8 added
- 14 edited
-
bdd/bdd.c (modified) (2 diffs)
-
cat/cat.c (modified) (3 diffs)
-
cp/cp.c (modified) (2 diffs)
-
help/help.c (modified) (2 diffs)
-
kcon/kcon.c (modified) (1 diff)
-
ls/ls.c (modified) (3 diffs)
-
mkdir/mkdir.c (modified) (2 diffs)
-
mkfile/entry.h (added)
-
mkfile/mkfile.c (added)
-
mkfile/mkfile.h (added)
-
mkfile/mkfile_def.h (added)
-
module_aliases.h (modified) (1 diff)
-
modules.h (modified) (4 diffs)
-
mount/mount.c (modified) (1 diff)
-
pwd/pwd.c (modified) (1 diff)
-
rm/rm.c (modified) (2 diffs)
-
sleep/sleep.c (modified) (1 diff)
-
touch/touch.c (modified) (2 diffs)
-
unmount/entry.h (added)
-
unmount/unmount.c (added)
-
unmount/unmount.h (added)
-
unmount/unmount_def.h (added)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/bdd/bdd.c
rcd82bb1 r371bd7d 29 29 #include <stdio.h> 30 30 #include <stdlib.h> 31 #include <str ing.h>31 #include <str.h> 32 32 #include "config.h" 33 33 #include "util.h" … … 73 73 size_t block_size; 74 74 int rc; 75 bn_t ba;75 aoff64_t ba; 76 76 uint8_t b; 77 77 -
uspace/app/bdsh/cmds/modules/cat/cat.c
rcd82bb1 r371bd7d 33 33 #include <unistd.h> 34 34 #include <getopt.h> 35 #include <str ing.h>35 #include <str.h> 36 36 #include <fcntl.h> 37 37 … … 43 43 #include "cmds.h" 44 44 45 static c har *cmdname = "cat";45 static const char *cmdname = "cat"; 46 46 #define CAT_VERSION "0.0.1" 47 47 #define CAT_DEFAULT_BUFLEN 1024 48 48 49 static c har *cat_oops = "That option is not yet supported\n";49 static const char *cat_oops = "That option is not yet supported\n"; 50 50 51 51 static struct option const long_options[] = { … … 85 85 { 86 86 int fd, bytes = 0, count = 0, reads = 0; 87 off _t total = 0;87 off64_t total = 0; 88 88 char *buff = NULL; 89 89 -
uspace/app/bdsh/cmds/modules/cp/cp.c
rcd82bb1 r371bd7d 33 33 #include <unistd.h> 34 34 #include <getopt.h> 35 #include <str ing.h>35 #include <str.h> 36 36 #include <fcntl.h> 37 37 #include "config.h" … … 74 74 { 75 75 int fd1, fd2, bytes = 0; 76 off _t total = 0;76 off64_t total = 0; 77 77 int64_t copied = 0; 78 78 char *buff = NULL; -
uspace/app/bdsh/cmds/modules/help/help.c
rcd82bb1 r371bd7d 31 31 #include <stdio.h> 32 32 #include <stdlib.h> 33 #include <str ing.h>33 #include <str.h> 34 34 35 35 #include "config.h" … … 42 42 #include "util.h" 43 43 44 static c har *cmdname = "help";44 static const char *cmdname = "help"; 45 45 extern const char *progname; 46 46 -
uspace/app/bdsh/cmds/modules/kcon/kcon.c
rcd82bb1 r371bd7d 40 40 #include "cmds.h" 41 41 42 static c har *cmdname = "kcon";42 static const char *cmdname = "kcon"; 43 43 44 44 /* Dispays help for kcon in various levels */ -
uspace/app/bdsh/cmds/modules/ls/ls.c
rcd82bb1 r371bd7d 40 40 #include <sys/types.h> 41 41 #include <sys/stat.h> 42 #include <str ing.h>42 #include <str.h> 43 43 44 44 #include "errors.h" … … 49 49 #include "cmds.h" 50 50 51 static c har *cmdname = "ls";51 static const char *cmdname = "ls"; 52 52 53 53 static void ls_scan_dir(const char *d, DIR *dirp) … … 100 100 if (s.is_file) 101 101 printf("%-40s\t%llu\n", name, (long long) s.size); 102 else if (s.is_directory) 103 printf("%-40s\t<dir>\n", name); 102 104 else 103 105 printf("%-40s\n", name); -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
rcd82bb1 r371bd7d 38 38 #include <getopt.h> 39 39 #include <stdarg.h> 40 #include <str ing.h>40 #include <str.h> 41 41 42 42 #include "config.h" … … 49 49 #define MKDIR_VERSION "0.0.1" 50 50 51 static c har *cmdname = "mkdir";51 static const char *cmdname = "mkdir"; 52 52 53 53 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/module_aliases.h
rcd82bb1 r371bd7d 12 12 * the entry point being reached. */ 13 13 14 c har *mod_aliases[] = {14 const char *mod_aliases[] = { 15 15 "ren", "mv", 16 "umount", "unmount", 16 17 NULL, NULL 17 18 }; -
uspace/app/bdsh/cmds/modules/modules.h
rcd82bb1 r371bd7d 20 20 #include "help/entry.h" 21 21 #include "mkdir/entry.h" 22 #include "mkfile/entry.h" 22 23 #include "rm/entry.h" 23 24 #include "bdd/entry.h" … … 30 31 #include "mv/entry.h" 31 32 #include "mount/entry.h" 33 #include "unmount/entry.h" 32 34 #include "kcon/entry.h" 33 35 … … 39 41 #include "help/help_def.h" 40 42 #include "mkdir/mkdir_def.h" 43 #include "mkfile/mkfile_def.h" 41 44 #include "rm/rm_def.h" 42 45 #include "bdd/bdd_def.h" … … 49 52 #include "mv/mv_def.h" 50 53 #include "mount/mount_def.h" 54 #include "unmount/unmount_def.h" 51 55 #include "kcon/kcon_def.h" 52 56 -
uspace/app/bdsh/cmds/modules/mount/mount.c
rcd82bb1 r371bd7d 58 58 { 59 59 unsigned int argc; 60 c har *mopts = "";60 const char *mopts = ""; 61 61 int rc; 62 62 -
uspace/app/bdsh/cmds/modules/pwd/pwd.c
rcd82bb1 r371bd7d 39 39 #include "pwd.h" 40 40 41 static c har *cmdname = "pwd";41 static const char *cmdname = "pwd"; 42 42 43 43 void help_cmd_pwd(unsigned int level) -
uspace/app/bdsh/cmds/modules/rm/rm.c
rcd82bb1 r371bd7d 36 36 #include <getopt.h> 37 37 #include <mem.h> 38 #include <str ing.h>38 #include <str.h> 39 39 40 40 #include "config.h" … … 45 45 #include "cmds.h" 46 46 47 static c har *cmdname = "rm";47 static const char *cmdname = "rm"; 48 48 #define RM_VERSION "0.0.1" 49 49 -
uspace/app/bdsh/cmds/modules/sleep/sleep.c
rcd82bb1 r371bd7d 38 38 #include "cmds.h" 39 39 40 static c har *cmdname = "sleep";40 static const char *cmdname = "sleep"; 41 41 42 42 /* Dispays help for sleep in various levels */ -
uspace/app/bdsh/cmds/modules/touch/touch.c
rcd82bb1 r371bd7d 38 38 #include <dirent.h> 39 39 #include <sys/types.h> 40 #include <str ing.h>40 #include <str.h> 41 41 42 42 #include "config.h" … … 47 47 #include "cmds.h" 48 48 49 static c har *cmdname = "touch";49 static const char *cmdname = "touch"; 50 50 51 51 /* Dispays help for touch in various levels */
Note:
See TracChangeset
for help on using the changeset viewer.
