Skip to content
Snippets Groups Projects
  1. Oct 12, 2018
    • Corey Farrell's avatar
      main/astfd: Fix GCC8 format-truncation warning. · 675d8a46
      Corey Farrell authored
      The field used to store call arguments was not large enough to hold the
      arguments string that can be constructed for 'open'.  Expand it to
      prevent this warning/error.
      
      Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
      675d8a46
  2. Dec 22, 2017
  3. Nov 08, 2017
  4. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  5. Jun 10, 2016
    • Alexander Traud's avatar
      astfd: With RLIMIT_NOFILE only the current value is sensible. · 0bf1a53d
      Alexander Traud authored
      With menuselect "DEBUG_FD_LEAKS" and CLI "core show fd", both the maximum max
      and current max of possible file descriptors were shown. Both show the same
      value always. Not to confuse users, just the current maximum is shown now.
      
      ASTERISK-26097
      
      Change-Id: I49cf7952d73aec9e3f6a88942842c39be18380fa
      0bf1a53d
  6. Sep 19, 2015
    • Alexander Traud's avatar
      astfd: Adds a timestamp for each entry. · 9200ad03
      Alexander Traud authored
      Now with menuselect "DEBUG_FD_LEAKS" and CLI "core show fd", a timestamp is
      shown with each file descriptor. This helps to debug leaked UDP/TCP ports on
      long-lived servers, for example.
      
      ASTERISK-25405 #close
      
      Change-Id: I968339e5155a512eba1032a5263f1ec8b5e1f80b
      9200ad03
  7. Jul 02, 2015
    • Walter Doekes's avatar
      astfd: Fix buffer overflow in DEBUG_FD_LEAKS. · 40274e36
      Walter Doekes authored
      If DEBUG_FD_LEAKS was used and more file descriptors than the default of
      1024 were available, some DEBUG_FD_LEAKS-patched functions would
      overwrite memory past the fixed-size (1024) fdleaks buffer.
      
      This change:
      - adds bounds checks to __ast_fdleak_fopen and __ast_fdleak_pipe
      - consistently uses ARRAY_LEN() instead of sizeof() or 1023 or 1024
      - stores pointers to constants instead of copying the contents
      - reorders the fdleaks struct for possibly tighter packing
      - adds a tiny bit of documentation
      
      ASTERISK-25212 #close
      
      Change-Id: Iacb69e7701c0f0a113786bd946cea5b6335a85e5
      40274e36
  8. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  9. Mar 26, 2015
  10. Aug 20, 2013
  11. Sep 22, 2012
    • Andrew Latham's avatar
      Doxygen Updates Janitor Work · fd98835f
      Andrew Latham authored
      * Whitespace, doc-blocks, spelling, case, missing and incorrect tags.
      * Add cleanup to Makefile for the Doxygen configuration update
      * Start updating Doxygen configuration for cleaner output
      * Enable inclusion of configuration files into documentation
      * remove mantisworkflow...
      * update documentation README
      * Add markup to Tilghman's email and talk with him about updating his email, he knows...
      * no code changes on this commit other than the mentioned Makefile change
      
      (issue ASTERISK-20259)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fd98835f
  12. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  13. Apr 23, 2012
  14. Nov 06, 2009
  15. Aug 09, 2009
  16. Apr 09, 2009
Loading