Changeset 2b3dd78 in mainline for uspace/app
- Timestamp:
- 2018-01-31T12:02:00Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5595841
- Parents:
- a0a9cc2 (diff), 14d789c (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
- Files:
-
- 1 deleted
- 56 edited
-
bdsh/cmds/builtins/batch/batch.c (modified) (1 diff)
-
bdsh/cmds/modules/cat/cat.c (modified) (1 diff)
-
bdsh/cmds/modules/cp/cp.c (modified) (3 diffs)
-
bdsh/cmds/modules/ls/ls.h (modified) (1 diff)
-
bdsh/cmds/modules/mount/mount.c (modified) (1 diff)
-
bdsh/cmds/modules/sleep/sleep.c (modified) (1 diff)
-
bdsh/cmds/modules/touch/touch.c (modified) (1 diff)
-
bdsh/compl.c (modified) (4 diffs)
-
bdsh/errors.h (modified) (1 diff)
-
bdsh/tok.h (modified) (1 diff)
-
blkdump/blkdump.c (modified) (1 diff)
-
bnchmark/bnchmark.c (modified) (1 diff)
-
corecfg/corecfg.c (modified) (1 diff)
-
date/date.c (modified) (1 diff)
-
devctl/devctl.c (modified) (1 diff)
-
df/df.c (modified) (3 diffs)
-
dltest/dltest.c (modified) (1 diff)
-
dnscfg/dnscfg.c (modified) (1 diff)
-
dnsres/dnsres.c (modified) (1 diff)
-
edit/search_impl.h (modified) (1 diff)
-
fdisk/fdisk.c (modified) (1 diff)
-
fontviewer/fontviewer.c (modified) (1 diff)
-
getterm/getterm.c (modified) (1 diff)
-
inet/inet.c (modified) (1 diff)
-
init/init.c (modified) (1 diff)
-
kill/kill.c (modified) (1 diff)
-
killall/killall.c (modified) (1 diff)
-
mixerctl/mixerctl.c (modified) (2 diffs)
-
mkfat/mkfat.c (modified) (1 diff)
-
netecho/comm.c (modified) (1 diff)
-
netstart/self_test.c (deleted)
-
nic/nic.c (modified) (1 diff)
-
nterm/nterm.c (modified) (1 diff)
-
pkg/pkg.c (modified) (1 diff)
-
rcubench/rcubench.c (modified) (1 diff)
-
rcutest/rcutest.c (modified) (1 diff)
-
sportdmp/sportdmp.c (modified) (1 diff)
-
sysinfo/sysinfo.c (modified) (1 diff)
-
sysinst/futil.c (modified) (2 diffs)
-
sysinst/sysinst.c (modified) (1 diff)
-
taskdump/elf_core.c (modified) (1 diff)
-
taskdump/symtab.c (modified) (1 diff)
-
taskdump/taskdump.c (modified) (1 diff)
-
tester/print/print5.c (modified) (1 diff)
-
testread/testread.c (modified) (1 diff)
-
testwrit/testwrit.c (modified) (1 diff)
-
tetris/tetris.c (modified) (2 diffs)
-
tmon/burst_tests.c (modified) (1 diff)
-
tmon/main.c (modified) (1 diff)
-
top/screen.c (modified) (1 diff)
-
top/screen.h (modified) (1 diff)
-
top/top.c (modified) (1 diff)
-
usbinfo/list.c (modified) (1 diff)
-
viewer/viewer.c (modified) (2 diffs)
-
wavplay/dplay.c (modified) (1 diff)
-
wavplay/drec.c (modified) (2 diffs)
-
wifi_supplicant/wifi_supplicant.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtins/batch/batch.c
ra0a9cc2 r2b3dd78 32 32 #include <stddef.h> 33 33 #include <errno.h> 34 #include <str.h> 34 35 #include "config.h" 35 36 #include "util.h" -
uspace/app/bdsh/cmds/modules/cat/cat.c
ra0a9cc2 r2b3dd78 215 215 216 216 if (tail != CAT_FULL_FILE) { 217 struct stat st;217 vfs_stat_t st; 218 218 219 219 if (vfs_stat(fd, &st) != EOK) { -
uspace/app/bdsh/cmds/modules/cp/cp.c
ra0a9cc2 r2b3dd78 80 80 static dentry_type_t get_type(const char *path) 81 81 { 82 struct stat s;82 vfs_stat_t s; 83 83 84 84 errno_t r = vfs_stat_path(path, &s); … … 340 340 */ 341 341 while ((dp = readdir(dir))) { 342 struct stat src_s;343 struct stat dest_s;342 vfs_stat_t src_s; 343 vfs_stat_t dest_s; 344 344 345 345 char src_dent[PATH_MAX]; … … 392 392 char *buff = NULL; 393 393 aoff64_t posr = 0, posw = 0; 394 struct stat st;394 vfs_stat_t st; 395 395 396 396 if (vb) -
uspace/app/bdsh/cmds/modules/ls/ls.h
ra0a9cc2 r2b3dd78 23 23 struct dir_elem_t { 24 24 char *name; 25 struct stat s;25 vfs_stat_t s; 26 26 }; 27 27 -
uspace/app/bdsh/cmds/modules/mount/mount.c
ra0a9cc2 r2b3dd78 37 37 #include <getopt.h> 38 38 #include <inttypes.h> 39 #include <str.h> 39 40 #include "config.h" 40 41 #include "util.h" -
uspace/app/bdsh/cmds/modules/sleep/sleep.c
ra0a9cc2 r2b3dd78 31 31 #include <stdio.h> 32 32 #include <stdlib.h> 33 #include <str.h> 33 34 #include "config.h" 34 35 #include "util.h" -
uspace/app/bdsh/cmds/modules/touch/touch.c
ra0a9cc2 r2b3dd78 82 82 int longind; 83 83 bool no_create = false; 84 struct stat file_stat;84 vfs_stat_t file_stat; 85 85 int fd = -1; 86 86 char *buff = NULL; -
uspace/app/bdsh/compl.c
ra0a9cc2 r2b3dd78 34 34 #include <stdlib.h> 35 35 #include <vfs/vfs.h> 36 #include <str.h> 36 37 37 38 #include "cmds/cmds.h" … … 68 69 69 70 /** Pointer inside list of directories */ 70 const char * *path;71 const char *const *path; 71 72 /** If not @c NULL, should be freed in the end. */ 72 c onst char **path_list;73 char **path_list; 73 74 /** Current open directory */ 74 75 DIR *dir; … … 218 219 cs->path_list[0] = dirname; 219 220 cs->path_list[1] = NULL; 220 cs->path = cs->path_list; 221 /* The second const ensures that we can't assign a const 222 * string to the non-const array. */ 223 cs->path = (const char *const *) cs->path_list; 221 224 222 225 } else if (cs->is_command) { … … 359 362 char *ent_path; 360 363 asprintf(&ent_path, "%s/%s", *cs->path, dent->d_name); 361 struct stat ent_stat;364 vfs_stat_t ent_stat; 362 365 if (vfs_stat_path(ent_path, &ent_stat) != EOK) { 363 366 /* Error */ -
uspace/app/bdsh/errors.h
ra0a9cc2 r2b3dd78 49 49 50 50 extern void cli_error(int, const char *, ...) 51 PRINTF_ATTRIBUTE(2, 3);51 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 52 52 53 53 #endif -
uspace/app/bdsh/tok.h
ra0a9cc2 r2b3dd78 42 42 size_t byte_length; 43 43 size_t char_length; 44 token_type_t type;44 token_type_t type; 45 45 } token_t; 46 46 -
uspace/app/blkdump/blkdump.c
ra0a9cc2 r2b3dd78 49 49 #include <inttypes.h> 50 50 #include <errno.h> 51 #include <str.h> 51 52 52 53 #define NAME "blkdump" -
uspace/app/bnchmark/bnchmark.c
ra0a9cc2 r2b3dd78 49 49 #include <time.h> 50 50 #include <dirent.h> 51 #include <str.h> 51 52 52 53 #define NAME "bnchmark" -
uspace/app/corecfg/corecfg.c
ra0a9cc2 r2b3dd78 36 36 #include <errno.h> 37 37 #include <stdio.h> 38 #include <str.h> 38 39 39 40 #define NAME "corecfg" -
uspace/app/date/date.c
ra0a9cc2 r2b3dd78 36 36 #include <getopt.h> 37 37 #include <ctype.h> 38 #include <str.h> 38 39 39 40 #define NAME "date" -
uspace/app/devctl/devctl.c
ra0a9cc2 r2b3dd78 39 39 #include <stdio.h> 40 40 #include <stdlib.h> 41 #include <str.h> 41 42 #include <str_error.h> 42 43 -
uspace/app/df/df.c
ra0a9cc2 r2b3dd78 58 58 static errno_t size_to_human_readable(uint64_t, size_t, char **); 59 59 static void print_header(void); 60 static errno_t print_statfs( struct statfs*, char *, char *);60 static errno_t print_statfs(vfs_statfs_t *, char *, char *); 61 61 static void print_usage(void); 62 62 … … 64 64 { 65 65 int optres, errflg = 0; 66 struct statfsst;66 vfs_statfs_t st; 67 67 errno_t rc; 68 68 … … 147 147 } 148 148 149 static errno_t print_statfs( struct statfs*st, char *name, char *mountpoint)149 static errno_t print_statfs(vfs_statfs_t *st, char *name, char *mountpoint) 150 150 { 151 151 uint64_t const used_blocks = st->f_blocks - st->f_bfree; -
uspace/app/dltest/dltest.c
ra0a9cc2 r2b3dd78 41 41 #include <stdio.h> 42 42 #include <stdlib.h> 43 #include <str.h> 43 44 44 45 /** libdltest library handle */ -
uspace/app/dnscfg/dnscfg.c
ra0a9cc2 r2b3dd78 43 43 #include <stdlib.h> 44 44 #include <stdint.h> 45 #include <str.h> 45 46 #include <str_error.h> 46 47 -
uspace/app/dnsres/dnsres.c
ra0a9cc2 r2b3dd78 38 38 #include <stdio.h> 39 39 #include <stdlib.h> 40 #include <str.h> 40 41 41 42 #define NAME "dnsres" -
uspace/app/edit/search_impl.h
ra0a9cc2 r2b3dd78 43 43 /* Note: This structure is opaque for the user. */ 44 44 45 constwchar_t *pattern;45 wchar_t *pattern; 46 46 size_t pattern_length; 47 47 ssize_t *back_table; -
uspace/app/fdisk/fdisk.c
ra0a9cc2 r2b3dd78 42 42 #include <stdlib.h> 43 43 #include <fdisk.h> 44 #include <str.h> 44 45 45 46 #define NO_LABEL_CAPTION "(No name)" -
uspace/app/fontviewer/fontviewer.c
ra0a9cc2 r2b3dd78 139 139 140 140 static int text(drawctx_t *, font_t *, source_t *, surface_coord_t x, 141 surface_coord_t , const char *, ...) PRINTF_ATTRIBUTE(6, 7);141 surface_coord_t , const char *, ...) _HELENOS_PRINTF_ATTRIBUTE(6, 7); 142 142 static int text(drawctx_t *drawctx, font_t *font, source_t *source, 143 143 surface_coord_t x, surface_coord_t y, const char *fmt, ...) -
uspace/app/getterm/getterm.c
ra0a9cc2 r2b3dd78 42 42 #include <loc.h> 43 43 #include <vfs/vfs.h> 44 #include <str.h> 44 45 #include "version.h" 45 46 #include "welcome.h" -
uspace/app/inet/inet.c
ra0a9cc2 r2b3dd78 43 43 #include <stdlib.h> 44 44 #include <stdint.h> 45 #include <str.h> 45 46 #include <str_error.h> 46 47 -
uspace/app/init/init.c
ra0a9cc2 r2b3dd78 152 152 static errno_t srv_startl(const char *path, ...) 153 153 { 154 struct stat s;154 vfs_stat_t s; 155 155 if (vfs_stat_path(path, &s) != EOK) { 156 156 printf("%s: Unable to stat %s\n", NAME, path); -
uspace/app/kill/kill.c
ra0a9cc2 r2b3dd78 37 37 #include <stdio.h> 38 38 #include <task.h> 39 #include <str.h> 39 40 #include <str_error.h> 40 41 -
uspace/app/killall/killall.c
ra0a9cc2 r2b3dd78 40 40 #include <str_error.h> 41 41 #include <stdlib.h> 42 #include <str.h> 42 43 43 44 #define NAME "killall" -
uspace/app/mixerctl/mixerctl.c
ra0a9cc2 r2b3dd78 49 49 static void print_levels(async_exch_t *exch) 50 50 { 51 c onst char* name = NULL;51 char* name = NULL; 52 52 unsigned count = 0; 53 53 errno_t ret = audio_mixer_get_info(exch, &name, &count); … … 59 59 60 60 for (unsigned i = 0; i < count; ++i) { 61 c onst char *name = NULL;61 char *name = NULL; 62 62 unsigned levels = 0, current = 0; 63 63 errno_t ret = -
uspace/app/mkfat/mkfat.c
ra0a9cc2 r2b3dd78 48 48 #include <inttypes.h> 49 49 #include <errno.h> 50 #include <str.h> 50 51 #include "fat.h" 51 52 #include "fat_dentry.h" -
uspace/app/netecho/comm.c
ra0a9cc2 r2b3dd78 44 44 #include <stdlib.h> 45 45 #include <stdint.h> 46 #include <str.h> 46 47 #include <str_error.h> 47 48 -
uspace/app/nic/nic.c
ra0a9cc2 r2b3dd78 40 40 #include <stdlib.h> 41 41 #include <stddef.h> 42 #include <str.h> 42 43 #include <str_error.h> 43 44 -
uspace/app/nterm/nterm.c
ra0a9cc2 r2b3dd78 37 37 #include <io/console.h> 38 38 #include <stdio.h> 39 #include <str.h> 39 40 40 41 #include "conn.h" -
uspace/app/pkg/pkg.c
ra0a9cc2 r2b3dd78 39 39 #include <stdio.h> 40 40 #include <stdlib.h> 41 #include <str.h> 41 42 #include <str_error.h> 42 43 #include <task.h> -
uspace/app/rcubench/rcubench.c
ra0a9cc2 r2b3dd78 47 47 #include <compiler/barrier.h> 48 48 #include <futex.h> 49 #include <str.h> 49 50 50 51 #include <rcu.h> -
uspace/app/rcutest/rcutest.c
ra0a9cc2 r2b3dd78 48 48 #include <compiler/barrier.h> 49 49 #include <futex.h> 50 #include <str.h> 50 51 51 52 #include <rcu.h> -
uspace/app/sportdmp/sportdmp.c
ra0a9cc2 r2b3dd78 33 33 #include <stdio.h> 34 34 #include <stdlib.h> 35 #include <str.h> 35 36 36 37 #define BUF_SIZE 1 -
uspace/app/sysinfo/sysinfo.c
ra0a9cc2 r2b3dd78 40 40 #include <sysinfo.h> 41 41 #include <stdlib.h> 42 #include <str.h> 42 43 43 44 static void dump_bytes_hex(char *data, size_t size) -
uspace/app/sysinst/futil.c
ra0a9cc2 r2b3dd78 108 108 DIR *dir; 109 109 struct dirent *de; 110 struct stat s;110 vfs_stat_t s; 111 111 char *srcp, *destp; 112 112 errno_t rc; … … 165 165 size_t fsize; 166 166 char *data; 167 struct stat st;167 vfs_stat_t st; 168 168 169 169 rc = vfs_lookup_open(srcp, WALK_REGULAR, MODE_READ, &sf); -
uspace/app/sysinst/sysinst.c
ra0a9cc2 r2b3dd78 47 47 #include <task.h> 48 48 #include <vfs/vfs.h> 49 #include <str.h> 49 50 50 51 #include "futil.h" -
uspace/app/taskdump/elf_core.c
ra0a9cc2 r2b3dd78 62 62 #include <libarch/istate.h> 63 63 #include <vfs/vfs.h> 64 #include <str.h> 64 65 65 66 #include "elf_core.h" -
uspace/app/taskdump/symtab.c
ra0a9cc2 r2b3dd78 41 41 #include <stddef.h> 42 42 #include <errno.h> 43 #include <str.h> 43 44 #include <str_error.h> 44 45 #include <vfs/vfs.h> -
uspace/app/taskdump/taskdump.c
ra0a9cc2 r2b3dd78 48 48 #include <macros.h> 49 49 #include <assert.h> 50 #include <str.h> 50 51 51 52 #include <symtab.h> -
uspace/app/tester/print/print5.c
ra0a9cc2 r2b3dd78 37 37 * 38 38 */ 39 #define NVERIFY_PRINTF39 #define _HELENOS_NVERIFY_PRINTF 40 40 41 41 #include <stdio.h> -
uspace/app/testread/testread.c
ra0a9cc2 r2b3dd78 58 58 #include <time.h> 59 59 #include <offset.h> 60 #include <str.h> 60 61 61 62 #define NAME "testread" -
uspace/app/testwrit/testwrit.c
ra0a9cc2 r2b3dd78 33 33 #include <stdio.h> 34 34 #include <stddef.h> 35 #include <str.h> 35 36 36 37 #define BUF_SIZE 1024 -
uspace/app/tetris/tetris.c
ra0a9cc2 r2b3dd78 156 156 const struct shape *randshape(void) 157 157 { 158 const struct shape *tmp = &shapes[rand om() % 7];158 const struct shape *tmp = &shapes[rand() % 7]; 159 159 int i; 160 int j = rand om() % 4;160 int j = rand() % 4; 161 161 162 162 for (i = 0; i < j; i++) … … 171 171 172 172 gettimeofday(&tv, NULL); 173 srand om(tv.tv_sec + tv.tv_usec / 100000);173 srand(tv.tv_sec + tv.tv_usec / 100000); 174 174 } 175 175 -
uspace/app/tmon/burst_tests.c
ra0a9cc2 r2b3dd78 37 37 #include <stdio.h> 38 38 #include <errno.h> 39 #include <str.h> 39 40 #include <str_error.h> 40 41 #include <getopt.h> -
uspace/app/tmon/main.c
ra0a9cc2 r2b3dd78 36 36 37 37 #include <stdio.h> 38 #include <stddef.h> 39 #include <str.h> 38 40 #include <macros.h> 39 41 #include "commands.h" -
uspace/app/top/screen.c
ra0a9cc2 r2b3dd78 45 45 #include <inttypes.h> 46 46 #include <macros.h> 47 #include <str.h> 47 48 #include "screen.h" 48 49 #include "top.h" -
uspace/app/top/screen.h
ra0a9cc2 r2b3dd78 45 45 extern void print_data(data_t *); 46 46 extern void show_warning(const char *, ...) 47 PRINTF_ATTRIBUTE(1, 2);47 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 48 48 49 49 extern int tgetchar(unsigned int); -
uspace/app/top/top.c
ra0a9cc2 r2b3dd78 43 43 #include <errno.h> 44 44 #include <gsort.h> 45 #include <str.h> 45 46 #include "screen.h" 46 47 #include "top.h" -
uspace/app/usbinfo/list.c
ra0a9cc2 r2b3dd78 45 45 #include <loc.h> 46 46 #include <usb_iface.h> 47 #include <str.h> 47 48 48 49 #include "usbinfo.h" -
uspace/app/viewer/viewer.c
ra0a9cc2 r2b3dd78 44 44 #include <codec/tga.h> 45 45 #include <task.h> 46 #include <str.h> 46 47 47 48 #define NAME "viewer" … … 114 115 return false; 115 116 116 struct stat stat;117 vfs_stat_t stat; 117 118 rc = vfs_stat(fd, &stat); 118 119 if (rc != EOK) { -
uspace/app/wavplay/dplay.c
ra0a9cc2 r2b3dd78 353 353 } 354 354 355 c onst char* info = NULL;355 char* info = NULL; 356 356 ret = audio_pcm_get_info_str(session, &info); 357 357 if (ret != EOK) { -
uspace/app/wavplay/drec.c
ra0a9cc2 r2b3dd78 42 42 #include <as.h> 43 43 #include <inttypes.h> 44 #include <str.h> 44 45 45 46 #include "wave.h" … … 194 195 } 195 196 196 c onst char* info = NULL;197 char* info = NULL; 197 198 ret = audio_pcm_get_info_str(session, &info); 198 199 if (ret != EOK) { -
uspace/app/wifi_supplicant/wifi_supplicant.c
ra0a9cc2 r2b3dd78 41 41 #include <stdio.h> 42 42 #include <stdlib.h> 43 #include <str.h> 43 44 #include <str_error.h> 44 45 #include <loc.h>
Note:
See TracChangeset
for help on using the changeset viewer.
