Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coreutils/coreutils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: coreutils/coreutils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: next
Choose a head ref
  • 13 commits
  • 7 files changed
  • 2 contributors

Commits on Sep 5, 2009

  1. rm: record timing data

    * README-rm-timing-compare: new file
    * README-rm-timing-2: New file.
    Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    cf963e5 View commit details
    Browse the repository at this point in the history
  2. rm: rewrite to use fts

    * remove.c: Don't include "unlinkdir.h"; no longer used.
    Do not include <setjmp.h> or "cycle-check.h".  Likewise.
    Include "xfts.h".
    (dir_name, dir_len): Remove definitions.
    (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Likewise.
    (INODE_SORT_DIR_ENTRIES_THRESHOLD, NEED_REWIND, D_TYPE): Likewise.
    (struct dirstack_state, Dirstack_state): Likewise.
    (g_buf, g_n_allocated): Remove declarations.
    (hash_freer, hash_compare_strings, rm_malloc): Remove functions.
    (rm_free, push_dir, top_dir, pop_dir, right_justify): Likewise.
    (full_filename0, xfull_filename, full_filename_): Likewise.
    (AD_stack_height, AD_stack_top, AD_stack_pop, AD_stack_clear): Likewise.
    (obstack_init_minimal, ds_init, ds_clear, ds_free): Likewise.
    (AD_pop_and_chdir, AD_ensure_initialized, AD_mark_helper): Likewise.
    (AD_mark_as_unremovable, AD_mark_current_as_unremovable): Likewise.
    (AD_push_initial, AD_push, AD_push, AD_is_removable): Likewise.
    (write_protected_non_symlink): Change 3rd parameter from
    dirstack_state "ds" to full_name.
    (prompt): Adjust parameters.  Now, state comes from FTS/FTSENT pair.
    Those replace fd_cwd and "ds".  Remove "filename".  Remove pdirent_type
    in favor of new "is_dir" parameter.  Rename is_empty to is_empty_p.
    (DO_RMDIR, DO_UNLINK): Remove definitions.
    (remove_entry, fd_to_subdirp, compare_ino): Remove functions.
    (dirent_count, dirent_inode_sort_may_be_useful): Likewise.
    (preprocess_dir): Likewise.
    (fts_skip_tree, mark_ancestor_dirs, excise, rm_fts): New functions.
    (remove_cwd_entries, remove_dir, rm_1): Remove functions.
    (rm): Rewrite as a simple loop calling fts_read and dispatching
    each entry via rm_fts.
    * src/rm.c (main): Adapt to new signature of rm().
    * bootstrap.conf (gnulib_modules): Remove unlinkdir, no longer used.
    * src/Makefile.am (sc_tight_scope): Also recognize an extern "enum"
    declaration.
    * tests/rm/empty-name: Adjust expected output to match new diagnostic.
    Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    18c5fbd View commit details
    Browse the repository at this point in the history
  3. build: placate gcc's new -Wskip-jump-init

    * remove.c (rm_fts): Put braces around each of the two offending blocks.
    * configure.ac: Don't turn off -Wjump-misses-init.
    With the rewrite of remove.c, it is no longer needed.
    Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    4f87cc0 View commit details
    Browse the repository at this point in the history
  4. rm: improve efficiency of rm -r (without -f) from O(N^2) to O(N)

    where N is the depth of the deepest hierarchy rm is processing.
    * src/remove.c (write_protected_non_symlink): Use faccessat to
    avoid O(N)-per-entry cost of calling euidaccess.
    * m4/jm-macros.m4 (coreutils_MACROS): Check for faccessat.
    Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    0f3f7d4 View commit details
    Browse the repository at this point in the history
  5. NEWS: mention recent improvements in rm

    Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    278109b View commit details
    Browse the repository at this point in the history
  6. rm: use gnulib faccessat

    * bootstrap.conf (gnulib_modules): Add faccessat.  Replace strdup
    with strdup-posix.
    * m4/jm-macros.m4 (coreutils_MACROS): Revert previous change, now
    that gnulib does it for us.
    * src/remove.c (write_protected_non_symlink): Use faccessat in
    more situations.
    ebblake authored and Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    2df2729 View commit details
    Browse the repository at this point in the history
  7. euidaccess-stat: remove unnecessary macros

    * lib/euidaccess-stat.c (F_OK, R_OK, W_OK, X_OK): Delete; now
    guaranteed by gnulib.
    ebblake authored and Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    5f303a1 View commit details
    Browse the repository at this point in the history
  8. rm: avoid compiler warning

    * src/remove.c (rm_fts): Don't allow fall-through when assertions
    are disabled.
    ebblake authored and Jim Meyering committed Sep 5, 2009
    Configuration menu
    Copy the full SHA
    41c9e06 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2009

  1. Configuration menu
    Copy the full SHA
    2cd1577 View commit details
    Browse the repository at this point in the history
  2. copy: allow symlink timestamp preservation on more systems

    * src/copy.c (utimens_symlink): Simplify by using lutimens.
    * m4/jm-macros.m4 (coreutils_MACROS): Drop utimensat; gnulib does
    this for us.
    * tests/cp/preserve-slink-time: Recognize lutimes support.
    ebblake committed Oct 10, 2009
    Configuration menu
    Copy the full SHA
    82e344c View commit details
    Browse the repository at this point in the history
  3. touch: optimize use of utimens

    * src/touch.c (main): Use UTIME_NOW rather than calling gettime.
    (touch): Use UTIME_OMIT rather than stat.
    ebblake committed Oct 10, 2009
    Configuration menu
    Copy the full SHA
    aeaa6bf View commit details
    Browse the repository at this point in the history
  4. rm: record timing data

    * README-rm-timing-compare: new file
    * README-rm-timing-2: New file.
    Jim Meyering authored and ebblake committed Oct 10, 2009
    Configuration menu
    Copy the full SHA
    3b7dc2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c935a0 View commit details
    Browse the repository at this point in the history
Loading