aboutsummaryrefslogtreecommitdiffstats
path: root/src/interfaces/timedated
Commit message (Collapse)AuthorAgeFilesLines
* remove references to deprecated tzfile.h, use previously defined constskremlin2016-07-151-5/+4
|
* property cleanupskremlin2014-12-201-14/+23
|
* change 'rcctl' invocations to /etc/rc.d/fookremlin2014-12-201-8/+9
| | | | we will switch it back when 5.7 rolls around
* add NTP property code. and timedated is done! (except for undocumented ↵kremlin2014-10-151-5/+12
| | | | properties)
* complete setNTP method, calls rcctl(8) through system(3)kremlin2014-10-151-1/+73
| | | | | setNTP takes a boolean and starts/enables ntpd through rcctl if true and stops/disables ntpd if false
* clarify RTC/UTC messages/commentskremlin2014-10-151-2/+2
|
* prevent directory traversal in setTimezonekremlin2014-10-141-2/+9
|
* complete SetTimezone functionkremlin2014-10-141-1/+99
|
* disable TZ checksumming, fix setTimekremlin2014-10-142-13/+42
| | | | | | | | the checksumming function was very ineffecient and was causing the executable to stall on launch, making dbus launch it on new PIDs. this caused a very hard to diagnose bug that would mangle the system time after several calls to setTime in short succession
* fixed logic/math bugs in set-time, still broken with GNOME toolskremlin2014-09-261-15/+10
|
* completed timedated's SetTime methodkremlin1973-03-031-4/+36
|
* began general logic for timedated's SetTime methodkremlin2014-09-141-5/+73
|
* add localtime determination system for timezone propertykremlin2014-08-262-19/+122
| | | | | | | this determines the proper timezone string (e.g. America/New_York) by first checking if /etc/localtime is symlinked to a named timezone in /usr/share/zoneinfo. if not, a warning is thrown and /etc/localtime's checksum is compared against a previously generated table.
* begin get_timezone(), begin get_timezone_path() util funckremlin2014-08-262-1/+57
|
* switch params.h with types.h and include time.h in timedated.ckremlin2014-08-261-1/+2
|
* fill in timedated skeleton funcskremlin2014-08-251-25/+92
|
* change polkit-auth.{c,h} to util.{c,h}kremlin2014-08-251-1/+1
| | | | | we are going to include the /etc/os-release changing functions in here.
* add polkit auth object, compile it in makefile, add header to interfaceskremlin2014-08-161-0/+2
| | | | | src/polkit-auth.c and its header are seperately built objects, linked to interfaces, which expose a single, safe auth checking function
* include polkit.h in all interfaces, edit makefile accordinglykremlin2014-08-161-0/+1
|
* minor, retab \t's to four spaceskremlin2014-08-061-18/+18
|
* minor, s/g_print/g_printfkremlin2014-08-051-1/+1
|
* minor, add ISC license blurbs to interfaces/foo/foo.hkremlin2014-08-051-1/+17
|
* (8) [final] modify main() to call correct clean sequencekremlin2014-08-051-1/+6
| | | | | | | main() now sets the signal handlers (via function from previous commit) before establishing the GMainLoop as well as invoke the proper clean()'s after unref'ing the loop. at this point all four interfaces are at the same place structurally. builds all cases.
* (7) add set_signal_handlers() to bind functions during initkremlin2014-08-051-0/+8
| | | | | | | this function calls attached the ones from the previous commit to the GLib runtime properly. since we are working solely in the default context (in terms on the GMainLoop) we are guaranteed the attached functions will only run once.
* (6) add handler for unix termination signalskremlin2014-08-051-0/+9
| | | | | | | | it prints a message and calls foo_mem_clean(), swiftly and safely bringing the runtime down before letting the calling thread it was ready to exit. note, this is handled through GLib which guarantees it is only fired once, rather than unwrapped signals that can occur wildly.
* (5) fix foo_mem_clean() functions to avoid race cond.kremlin2014-08-051-2/+8
| | | | | | | | | | mem_clean functions previously free()'d our pointer array without first checking that the name/interface had properly been unexported from dbus. checking first better guarantees all operations implicating that date have ceased, and that it is safe to go ahead and stop the GMainLoop before immediately returning. this causes the code just after the main_loop_begin() call to start functioning, in our case the actual free() calls (which are now *absolutley* safe to call)
* (4) move on_name_acquired functionality to on_bus_acquiredkremlin2014-08-051-14/+23
| | | | | | | | | work that was previously done in foo_on_name_acquired(), such as attaching the interface to the name, is now done in foo_on_bus_acquired(), as GIO docs suggest. this fixed a bug with logind failing to export, the name_acquired function executed executed too late to export a big interface like logind. fix some minor error msg/consistency stuff in hostnamed, merge across pals. builds
* (3) add needed GLib headers, move loop and bus descr out of main into globalkremlin2014-07-291-3/+6
| | | | | | minor variable placement changes. added gboolean dbus_interface_exported, which due to the guarantees of the name_lost, bus_acquired, and name_acquired is a reliable source of whether not it is reasonable to try and unexport it
* (2) move on_name_lost() callback to appropriate commend-bounded regionkremlin2014-07-291-9/+9
| | | | minor, builds
* (1) add <interface>.h and #include it in corresponding .ckremlin2014-07-292-0/+2
| | | | nessecary for compiler unambiguity. minor, builds
* minor, clarify what "misc functions" are in commentskremlin2014-07-291-1/+1
|
* minor, clarify "dbus signal" vs. "unix signal" in commentskremlin2014-07-291-2/+2
|
* include glib-unix.h in interface fileskremlin2014-07-291-0/+1
| | | | | it's a good idea to use glib signal handling, most use cases will be running gnome
* remove genfiles from repo, instead generate in makefilekremlin2014-07-232-2867/+0
| | | | | | genfiles (-gen.{c,h}) should be generated at build time instead of being included in the repo. remove them & add relevant recipes/pre-reqs include genfiles in 'clean' recipe
* copy and regex localed, timedated, and logind from hostnamedkremlin2014-07-221-0/+117
| | | | | they now start up and display the proper methods/functions on the system bus, albeit with no functionality
* change gen script to use ksh, remove namespace option, regen genfileskremlin2014-07-222-556/+556
| | | | | | | | | rewrite scripts/gen-gdbus-interfaces.sh to use ksh (#!/bin/sh) to cut down on inbox spam, also fixed prior bug where generated files had bad paths in their #includes. removed namespacing option from gdbus-codegen as linked objects do not run into naming conflicts as the previous commits did. regenerate all genfiles (src/interfaces/foo/foo-gen.{c.h}) accordingly.
* remove includes in non-gen'd interf files, they're linked properly nowkremlin2014-07-151-0/+5
| | | | | | | no need to include foo-gen.c as its functionality exists inside linked object built by makefile in future commit. additionally, make all non-generated interface files executable with a dummy main() that runs foo_init() after setting everything up properly with a g_main_loop
* get rid of non-generated interface headers, we don't need themkremlin2014-07-151-16/+0
|
* (1) regenerate leaner genfiles, we're not using the object manager ↵kremlin2014-07-082-706/+0
| | | | functionality (2) modify gen-gdbus-interfaces to exclude object manager functionality (3) make localed skeleton (4) namespace hostnamed's and localed's bus/name functions properly (5) edit main.c to init localed
* regenerate proper namespaced code for other 3 interfaces, fix their includes ↵kremlin2014-07-082-574/+1696
| | | | accordingly
* add license ISC license blurbskremlin2014-06-222-0/+32
|
* regenerate interface types, clean up gen scriptkremlin2014-06-202-0/+2451
|
* blow away improperly generated interface types (bad prefix)kremlin2014-06-202-2451/+0
|
* add gdbus-codegen fileskremlin2014-06-173-1/+2451
|
* remove crapfile, rename 'modules' -> 'interfaces'kremlin2014-06-031-0/+1