Changeset 7c3fb9b in mainline for uspace/app/bdsh/cmds/modules


Ignore:
Timestamp:
2018-05-17T08:29:01Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

Location:
uspace/app/bdsh/cmds/modules
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    rfac0ac7 r7c3fb9b  
    274274                                                break;
    275275                                        } else if (c == U_SPECIAL && offset + 2 >= (size_t)bytes) {
    276                                                 /* If an extended character is cut off due to the size of the buffer,
    277                                                    we will copy it over to the next buffer so it can be read correctly. */
     276                                                /*
     277                                                 * If an extended character is cut off due to the size of the buffer,
     278                                                 * we will copy it over to the next buffer so it can be read correctly.
     279                                                 */
    278280                                                copied_bytes = bytes - offset + 1;
    279281                                                memcpy(buff, buff + offset - 1, copied_bytes);
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    rfac0ac7 r7c3fb9b  
    207207                        /* e.g. cp file_name /data/ */
    208208
    209                         /* dest is a directory,
     209                        /*
     210                         * dest is a directory,
    210211                         * append the src filename to it.
    211212                         */
     
    231232                        /* e.g. cp file_name existing_file */
    232233
    233                         /* dest already exists,
     234                        /*
     235                         * dest already exists,
    234236                         * if force is set we will try to remove it.
    235237                         * if interactive is set user input is required.
     
    298300                        if (str_cmp(src_dirname, "..") &&
    299301                            str_cmp(src_dirname, ".")) {
    300                                 /* The last component of src_path is
     302                                /*
     303                                 * The last component of src_path is
    301304                                 * not '.' or '..'
    302305                                 */
     
    314317                default:
    315318                case TYPE_NONE:
    316                         /* dest does not exists, this means the user wants
     319                        /*
     320                         * dest does not exists, this means the user wants
    317321                         * to specify the name of the destination directory
    318322                         *
     
    336340                }
    337341
    338                 /* Copy every single directory entry of src into the
     342                /*
     343                 * Copy every single directory entry of src into the
    339344                 * destination directory.
    340345                 */
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    rfac0ac7 r7c3fb9b  
    2727 */
    2828
    29 /* NOTE:
     29/*
     30 * NOTE:
    3031 * This is a bit of an ugly hack, working around the absence of fstat / etc.
    31  * As more stuff is completed and exposed in libc, this will improve */
     32 * As more stuff is completed and exposed in libc, this will improve
     33 */
    3234
    3335#include <errno.h>
  • uspace/app/bdsh/cmds/modules/module_aliases.h

    rfac0ac7 r7c3fb9b  
    3030#define MODULE_ALIASES_H
    3131
    32 /* Modules that declare multiple names for themselves but use the
     32/*
     33 * Modules that declare multiple names for themselves but use the
    3334 * same entry functions are aliases. This array helps to determine if
    3435 * a module is an alias, as such it can be invoked differently.
    35  * format is alias , real_name */
     36 * format is alias , real_name
     37 */
    3638
    37 /* So far, this is only used in the help display but could be used to
     39/*
     40 * So far, this is only used in the help display but could be used to
    3841 * handle a module differently even prior to reaching its entry code.
    3942 * For instance, 'exit' could behave differently than 'quit', prior to
    40  * the entry point being reached. */
     43 * the entry point being reached.
     44 */
    4145
    4246const char *mod_aliases[] = {
  • uspace/app/bdsh/cmds/modules/modules.h

    rfac0ac7 r7c3fb9b  
    3030#define MODULES_H
    3131
    32 /* Each built in function has two files, one being an entry.h file which
     32/*
     33 * Each built in function has two files, one being an entry.h file which
    3334 * prototypes the run/help entry functions, the other being a .def file
    3435 * which fills the modules[] array according to the cmd_t structure
     
    4041 *
    4142 * NOTE: See module_ aliases.h as well, this is where aliases (commands that
    42  * share an entry point with others) are indexed */
     43 * share an entry point with others) are indexed
     44 */
    4345
    4446#include "config.h"
     
    6466#include "cmp/entry.h"
    6567
    66 /* Each .def function fills the module_t struct with the individual name, entry
     68/*
     69 * Each .def function fills the module_t struct with the individual name, entry
    6770 * point, help entry point, etc. You can use config.h to control what modules
    68  * are loaded based on what libraries exist on the system. */
     71 * are loaded based on what libraries exist on the system.
     72 */
    6973
    7074module_t modules[] = {
  • uspace/app/bdsh/cmds/modules/rm/rm.c

    rfac0ac7 r7c3fb9b  
    9595        rm->safe = 0;
    9696
    97         /* Make sure we can allocate enough memory to store
    98          * what is needed in the job structure */
     97        /*
     98         * Make sure we can allocate enough memory to store
     99         * what is needed in the job structure
     100         */
    99101        if (NULL == (rm->nwd = (char *) malloc(PATH_MAX)))
    100102                return 0;
Note: See TracChangeset for help on using the changeset viewer.