aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-26Ensure that lock.h is included in utils.c with AST_API_MODULE defined so thatrussell1-0/+2
the implementations will be properly included when the AST_INLINE_API functions are not going to be inlined. (issue #9124, festr) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@56729 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Fix random crashes when using the MeetMe application. This patch converts listrussell1-0/+11
handling to use the linked list macros and most importantly, implements reference counting on the ast_conference objects. The reference counting was first backported from 1.4. However, that code has some problems that caused the reference count to never hit zero. Those problems are fixed in this patch and will be resolved in 1.4 and trunk next, with a different patch. (issues #7647, #9073, #9106, BE-115). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@55750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03Revert some changes that accidentally got committed as a part of another fix.russell1-11/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53134 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03set the DIALSTATUS variable to contain "INVALIDARGS" when the dial applicationrussell1-0/+11
exits early because of invalid arguments instead of just leaving it empty. (issue #8975) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-17When ast_strip_quoted was called with a zero-length string, it would treat atilghman1-1/+1
NULL as if it were the quoting character (and would thus return the string in memory immediately following the passed-in string). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@51194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31When handling the case where the hostname is just an IPV4 numeric address,russell1-0/+1
be sure to set the address type. (issue #8247, alexr) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46560 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12ensure that IAX2 and SIP sockets allow UDP fragmentation when running on ↵kpfleming1-0/+11
Linux (thanks to Brian Candler on the asterisk-dev list for the tip) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44955 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-12remove some more bad examples of using printfkpfleming1-8/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37419 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13correct broken math in tvfix() for timestamp values over one millionkpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7468 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5569 minus lock.h changeskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #4678kpfleming1-1/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #5549kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6930 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31provide an alternate getloadavg implementation and a fallback for systems ↵kpfleming1-6/+42
that don't have it at all (issue #5549 with minor mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6903 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31silence compiler warningkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6898 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26change ast_strlen_zero to also check for the string to be definedrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26remove duplicate headerrussell1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6859 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26more doxygenification (issue #5513)russell1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-21Fix segfault in CVS head (sorry about that)markster1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6839 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-21Be sure to avoid octal interpretations of IP's (bug #5477)markster1-2/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6838 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-16More utility cleanupsmarkster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6798 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-01add ast_build_string_va(), which accepts a varargs list directlykpfleming1-4/+13
ensure the _entire_ manager_event() output is either queued or sent via ast_carefulwrite() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6708 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-29ensure scheduling priority is inherited into new threads (issue #5293)kpfleming1-0/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6692 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-23move process_quotes_and_slashes to utils.c since it is used by both pbx_ael ↵russell1-0/+26
and pbx_config clean up some formatting remove some commented out reference code move unload_module in pbx_ael down to be with the rest of the standard module functions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6630 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14don't double define our own string functions on platforms that don't have ↵kpfleming1-2/+2
them (issue #5169) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6587 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-02fix a couple of warnings on osxrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6500 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-29encode/decode URIs in 'pedantic' mode (issue #3923)kpfleming1-83/+143
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6441 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23make the warning message be LOG_WARNING (issue #4960)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6388 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-07more fixes for gcc4 warnings ...russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6298 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03Fix solaris vasprintf (don't free the memory, duh) (bug #4890)markster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6271 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03Fix vasnprintf emulation (bug #4882)markster1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6258 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-20move strtoq into new string files (bug #4740)kpfleming1-0/+97
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6171 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-19restore warning about negative timestamps now that it is fixedrussell1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6161 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-19suppress timestamp message until we can figure out where it is coming from,russell1-2/+4
since it appears that this isn't causing a real problem git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6159 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-0/+49
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15phase two of string portability stuff:kpfleming1-13/+38
don't need ast_ prefixes on functions use individual #defines for function presence add vasprintf to portability library git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15more ifdef cleanup to match proper Linux macroskpfleming1-4/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6135 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15Fix breakage caused by bug #4669. Next time let's test the build ontwisted1-1/+1
linux before commiting a portability patch ;) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6134 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15first phase of proper fix for portable string function problems (bug #4669)kpfleming1-1/+25
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6133 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-24split up string/time functions into separate header fileskpfleming1-17/+57
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules) move compiler-specific stuff into a separate header file git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6008 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-23make inlinable functions only need the function body in one file, and ↵kpfleming1-54/+3
respond properly to LOW_MEMORY being defined make ast_copy_string inlinable, and ast_tvdiff_ms LOW_MEMORY aware git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-18Fix up utils nonsensemarkster1-5/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5932 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17don't let ast_trim_blanks operate on empty strings or run off the beginning ↵kpfleming1-6/+8
of the string git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5929 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17string/whitespace handling cleanups (bug #4449, with mods)kpfleming1-6/+27
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5924 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-0/+4
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-27Fix cast to int from pointer (duh!)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5779 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-20make IF dialplan function handle quoted strings properly (bug #4322, with ↵kpfleming1-10/+26
API mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5750 f38db490-d61c-443f-a65b-d21fe96a405b