aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Collapse)AuthorAge
* fix trivial typoRoger Dingledine2003-11-13
| | | | svn:r808
* break out the string manipulation routinesRoger Dingledine2003-11-12
| | | | svn:r804
* Check in a working cross-platform timegmNick Mathewson2003-11-10
| | | | svn:r779
* bugfix for win32 with lots of usersRoger Dingledine2003-10-27
| | | | | | | plus general cleanup on switch_id() svn:r684
* Use daemon(3) function where available.Nick Mathewson2003-10-23
| | | | svn:r665
* switch_id() no longer tries to log the user name when it's calld onSteven Hazel2003-10-22
| | | | | | | | Windows, since we don't know whether it's the user or the group that was set. svn:r659
* - fixed a bug in the id switching code -- setgid has to happen beforeSteven Hazel2003-10-22
| | | | | | | | | | | | | | | setuid, because after we setuid we don't have the priviledges we need to setgid anymore, duh. merged switch_user() and switch_group() into switch_id(), since that code has to be wound together. - return -1 from switch_id() if it's not defined to do anything else. - moved daemoinize(), write_pidfile(), and switch_id() from main.c to util.c svn:r656
* include our own timegm() impl, since it's not portableRoger Dingledine2003-10-20
| | | | svn:r635
* we've been stomping on memory while reading configRoger Dingledine2003-10-18
| | | | | | | doesn't seem to have bitten us yet, but let's fix that :) svn:r619
* rewrite close_logs so it could possibly workRoger Dingledine2003-10-18
| | | | | | | remove deadbeef memory-clobber testing (for now) svn:r616
* Build without warnings on OS X.Nick Mathewson2003-10-15
| | | | svn:r595
* Add tor_realloc to mirror tor_mallocNick Mathewson2003-10-14
| | | | svn:r582
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | svn:r570
* some early bugfixesRoger Dingledine2003-10-07
| | | | | | | | | | our log() conflicts with log(3) distribute only the correct files from doc/ and src/config/ sometimes laptops go back in time. i guess that's ok for now. and bump the version number because we're live. svn:r544
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* clean some includesRoger Dingledine2003-10-04
| | | | svn:r535
* Make testcases run again; more sanity checking to descriptor generation.Nick Mathewson2003-10-01
| | | | svn:r532
* bugfixes and features: closer to making dirserv workRoger Dingledine2003-09-29
| | | | | | | | | | | fix a variety of seg faults don't try to list OPs in running-routers write cached-directory to disk when rebuilding the dir on boot, dirservers load approved-routers file on boot, dirservers load cached directory file svn:r508
* more cleanup and rearrangingRoger Dingledine2003-09-29
| | | | | | | still not finished integrating new dirserv stuff svn:r507
* shift read_file_to_str() into util.cRoger Dingledine2003-09-28
| | | | svn:r504
* finish enforcing the log conventionRoger Dingledine2003-09-26
| | | | svn:r494
* make writing descs workRoger Dingledine2003-09-26
| | | | svn:r492
* Refactor common file code into util.c; add published to descriptorsNick Mathewson2003-09-26
| | | | svn:r487
* fix the cpuworker circ-had-vanished bug (maybe)Roger Dingledine2003-09-14
| | | | | | | still several (many) tls-related bugs outstanding. svn:r454
* implemented cpuworkersRoger Dingledine2003-08-20
| | | | | | | | | | please poke at it and report bugs still needs polishing, and only handles onions now (should handle OR handshakes too) svn:r402
* Tor now builds on win32.Nick Mathewson2003-08-14
| | | | svn:r400
* Attempt to make sockets code work right on windows.Nick Mathewson2003-08-14
| | | | svn:r398
* Make windows happier stillNick Mathewson2003-08-12
| | | | svn:r392
* Stop trying to #include the world in util.cNick Mathewson2003-08-12
| | | | svn:r390
* Adopt socketpair implementation from perl. For now, always use it.Nick Mathewson2003-08-12
| | | | svn:r389
* Add abstraction for fork vs thread.Nick Mathewson2003-08-12
| | | | svn:r387
* Start of port to win32. Missing are:Nick Mathewson2003-08-12
| | | | | | | | | | | | | | | | - signal support - forking for DNS farm - changes for async IO - daemonizing In other words, some files still don't build, and the ones that do build, do nonblocking IO incorrectly. I'm also not checking in the project files till I have a good place for them. svn:r380
* fix typos, streamlineRoger Dingledine2003-06-18
| | | | svn:r337
* Change many files to new log_fn formatNick Mathewson2003-06-17
| | | | svn:r333
* replace malloc with tor_malloc; remove broken/unused crypto_pk_set_keyRoger Dingledine2003-05-20
| | | | svn:r292
* Apply algebra; remove a conditionNick Mathewson2003-04-17
| | | | svn:r246
* tv_udiff: do not modify arguments, and compute results correctly.Nick Mathewson2003-04-17
| | | | svn:r245
* more cleanupRoger Dingledine2003-04-16
| | | | svn:r242
* Factor out timeval-related functions.Nick Mathewson2003-04-16
svn:r237