Fossil

File History
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/util.c

2018-07-15
19:56
Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. file: [8c7d4b56] check-in: [3f5ab717] user: drh branch: trunk, size: 14086
2018-07-13
21:36
Improved process debugging for "fossil ui" and "fossil server". Sanely close the open database connection upon receiving SIGPIPE. file: [49632b48] check-in: [83b171bc] user: drh branch: trunk, size: 14086
2018-03-17
22:33
Merge updates from trunk. file: [74d0258c] check-in: [5447bc90] user: mistachkin branch: withMman, size: 13942
22:32
Fix harmless compiler warning. file: [a633e660] check-in: [e2a90ed5] user: mistachkin branch: trunk, size: 13358
21:16
POSIX enhancements for fossil_get_page_size(). file: [f7610cb5] check-in: [fd1bee72] user: mistachkin branch: withMman, size: 13938
20:31
Experimental support for using 'mman.h' when compiling for POSIX. file: [c61345cf] check-in: [37b69e7d] user: mistachkin branch: withMman, size: 13843
2018-03-07
19:46
Rid the code of the legacy UUID_SIZE macro. Replace it everywhere with either HNAME_MAX or HNAME_LEN_SHA1 or HNAME_LEN_K256, as appropriate. file: [a9ee84f1] check-in: [323299cb] user: drh branch: trunk, size: 13354
2018-01-17
19:29
Only make the first argument to pledge() available using the fossil_pledge() interface. The second argument is always NULL. file: [c4d7bb8b] check-in: [91ccde50] user: drh branch: trunk, size: 13296
19:04
Automatically detect the presence of the pledge() system interface and use it if it is available. file: [220c7023] check-in: [64def88f] user: drh branch: trunk, size: 13350
2018-01-15
21:50
Remove unnecessary whitespace. file: [d3a811d4] check-in: [73d0734a] user: andybradford branch: mistake, size: 13364
21:48
Update the comment for fossil_pledge to reflect the new change in [1180676e]. file: [0b1ad26c] check-in: [8993c332] user: andybradford branch: trunk, size: 13365
21:43
Only #define fossil_pledge in config.h if FOSSIL_HAVE_PLEDGE is not defined so that makeheaders can pick up the function prototype for checkin.h when FOSSIL_HAVE_PLEDGE is defined. file: [4ca8629c] check-in: [1180676e] user: andybradford branch: trunk, size: 13364
17:35
End comment with matching #define for new fossil_pledge_impl() routine---no functional change. file: [c9a07aa8] check-in: [cefcc87e] user: andybradford branch: trunk, size: 13369
16:18
Add the fossil_pledge() utility routine, that is a no-op unless compiled with FOSSIL_HAVE_PLEDGE. file: [f537e969] check-in: [7b81a999] user: drh branch: trunk, size: 13362
2017-12-15
18:27
Remove pointless code that initializes a BSS data structure to zeros, even though it is already all-zero. This avoids a compiler warning in GCC7. file: [89f917cf] check-in: [5419e7fc] user: drh branch: trunk, size: 12829
2017-06-24
16:28
Fixed "integer constant is too large for long type" warning on 32-bit Linux file: [58828762] check-in: [caf26817] user: andygoth branch: trunk, size: 12952
13:59
Increase the stack size limit to 8MB. Disable stack and heap size limits prior to invoking subprocesses. file: [2634b301] check-in: [3f193ba6] user: drh branch: trunk, size: 12944
2017-06-20
13:35
On unix, use setrlimit() to limit total heap space usage to 1GB on 32-bit systems and 10GB on 64-bit systems, and total stack space to 2MB, as a proactive defense again the "stack clash" vulnerability found on many unix-like OSes. I do not yet know if these limits are reasonable. file: [ae9317b0] check-in: [6e6e4b1d] user: drh branch: trunk, size: 12452
2016-10-04
19:05
Add an assert(). file: [9a3cc502] check-in: [e6a5634f] user: mistachkin branch: seeEnhanced, size: 11784
2016-09-23
02:28
Merge updates from trunk. file: [72608920] check-in: [4f619c02] user: mistachkin branch: seeEnhanced, size: 11757
2016-08-24
14:56
Unbreak compilation on Cygwin. Allow notepad to be used as unversioned content editor (notepad cannot handle UNIX line-endings) file: [08c5fc01] check-in: [6728970b] user: jan.nijtmans branch: trunk, size: 10319
2016-08-23
13:01
Add the "fossil unversioned edit UVFILE" command. file: [cad066de] check-in: [1d6b6782] user: drh branch: trunk, size: 10345
2016-05-28
21:23
Enhancements to SEE integration. file: [2b396c37] check-in: [4e34191c] user: mistachkin branch: seeEnhanced, size: 10602
2015-01-21
18:55
Enhance the ad-unit processing to allow for tall right-side column ads as an alternative to banner ads. file: [9f02b013] check-in: [4bc5b6cf] user: drh branch: ad-unit-enhancement, size: 9164
2014-10-21
09:27
merge trunk file: [e515fb32] check-in: [154abe4d] user: baruch branch: svn-import, size: 8932
09:22
Very very basic svn-dump import. Can not handle anything realistic yet file: [8c956791] check-in: [287cd78e] user: baruch branch: svn-import, size: 8571
2014-10-06
00:58
Add an assert() to prove that Fossil server instances are not vulnerable to the ShellShock bug because it never shells-out while processing an HTTP request. file: [227890c0] check-in: [82e30c00] user: drh branch: trunk, size: 8919
2014-08-07
10:02
"char const" -> "const char" and various other coding style improvements. No functional change. file: [d776ecab] check-in: [4e18dba6] user: jan.nijtmans branch: trunk, size: 8558
2014-04-11
15:44
Refactored ATTACHMENT crosslinking a bit to remove some duplicate code (tested on libfossil repo). Replaced free() with fossil_free() (consistency). Added fossil_is_uuid(), the c-string counterpart of blob_is_uuid(). file: [369a0bac] check-in: [b7ff537d] user: stephan branch: trunk, size: 8559
2013-09-19
11:48
Fix MSVC build error and warnings: c:\localdata\workspace\fossil\src\util.c(249) : warning C4715: 'fossil_timer_fetch' : not all control paths return a value c:\localdata\workspace\fossil\src\util.c(270) : warning C4715: 'fossil_timer_reset' : not all control paths return a value file: [70545101] check-in: [6e1e4bb8] user: jan.nijtmans branch: trunk, size: 8314
2013-08-30
12:18
Add the --errorlog command-line option and the errorlog: parameter to CGI scripts. Log all panics, fatal errors, and warnings to the error log, if defined. Panic if file descriptor 2 is not open on unix. Clean up some routines that deal with close(). file: [a2369fb9] check-in: [4727ef4a] user: drh branch: trunk, size: 8330
2013-05-13
10:50
unused variable "fossilTimer" file: [d31f9b92] check-in: [55d7e2c1] user: jan.nijtmans branch: trunk, size: 8016
2013-05-08
20:18
Fixed a logic error in the only-run-once timer init code. file: [a20136c9] check-in: [9fab0f81] user: stephan branch: trunk, size: 8100
20:09
Reworked the timer IDs to be positive values to simplify error checking a bit. file: [445d4421] check-in: [79945897] user: stephan branch: trunk, size: 8086
19:54
Added fossil_timer_is_active(timerId), removed fossil_has_timer(). file: [09d63130] check-in: [590406df] user: stephan branch: trunk, size: 7911
19:45
Added fossil_timer_xxx() family of functions and g.mainTimerId. file: [68ce2361] check-in: [e28433a6] user: stephan branch: trunk, size: 7725
2013-02-21
15:50
Make win32 build compile again: - missing headers <io.h> and <fcntl.h> - WCHAR -> wchar_t file: [40229a2f] check-in: [e3add2c1] user: jan.nijtmans branch: trunk, size: 3260
14:24
Code refactoring: Move utility routines (ex: fossil_malloc()) out of main.c and into a new file util.c. Try to gather I/O routines into the printf.c source file. file: [bb167adb] check-in: [bb0cedb1] user: drh branch: trunk, size: 3258 Added