Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix daemon.h's use of NEED_ROOT-in-#define | Jim Meyering | 2009-08-13 | 1 | -1/+1 | |
| | ||||||
* | update all NEED_ROOT uses | Jim Meyering | 2009-08-13 | 1 | -1/+1 | |
| | | | | | | run this command: git grep -l -w NEED_ROOT|xargs perl -pi -e \ 's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/' | |||||
* | s/NEED_ROOT_OR_IS_DEVICE/REQUIRE_ROOT_OR_RESOLVE_DEVICE/ | Jim Meyering | 2009-08-13 | 1 | -1/+1 | |
| | ||||||
* | propagate semantic changes to NEED_ROOT, NEED_ROOT_OR_IS_DEVICE | Jim Meyering | 2009-08-13 | 1 | -8/+8 | |
| | | | | | | changing IS_DEVICE semantics leads to changing semantics of NEED_ROOT_OR_IS_DEVICE and NEED_ROOT, too. * daemon/daemon.h: Update definitions. | |||||
* | convert the last few, manually | Jim Meyering | 2009-08-13 | 1 | -1/+1 | |
| | ||||||
* | * daemon/daemon.h (RESOLVE_DEVICE): Rename from IS_DEVICE. | Jim Meyering | 2009-08-13 | 1 | -3/+3 | |
| | | | | | Change parameter from "errcode" (which would be returned) to "fail_stmt" so that a caller can specify e.g., "goto done" upon failure. | |||||
* | define ATTRIBUTE_UNUSED | Jim Meyering | 2009-08-10 | 1 | -0/+10 | |
| | | | | * daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define. | |||||
* | Convert all TABs-as-indentation to spaces. | Jim Meyering | 2009-08-03 | 1 | -2/+2 | |
| | | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' | |||||
* | Need to declare asprintf_nowarn as inline to avoid gcc complaining. | Richard Jones | 2009-07-28 | 1 | -1/+1 | |
| | ||||||
* | Replace shell_quote function with %Q and %R printf specifiers. | Richard Jones | 2009-07-28 | 1 | -2/+16 | |
| | | | | | | | %Q => simple shell quoted string %R => path will be prefixed by /sysroot eg. snprintf (cmd, sizeof cmd, "cat %R", path); system (cmd); | |||||
* | Make /sysroot path configurable. | Richard Jones | 2009-07-18 | 1 | -3/+8 | |
| | | | | | | | | | Currently /sysroot is hard-coded throughout the daemon code. This patch turns the path into a variable so that we can change it in future, for example to allow standalone mode to be implemented. This patch was tested by running all the C API tests successfully. | |||||
* | Generate structs and struct lists generically. | Richard Jones | 2009-07-07 | 1 | -3/+3 | |
| | | | | | | | | | | | This modifies the way that struct and struct lists are generated (for return values) so that there is no need to add an explicit new type when adding a new structure. All tests pass, and the C API should be compatible. I have also inspected the changes that are made to the generated code by hand. | |||||
* | Add list of function_names to the daemon. | Richard W.M. Jones | 2009-07-02 | 1 | -0/+3 | |
| | | | | | Messages which include the proc_nr can now also include the name of the actual function being called. | |||||
* | Call 'udevadm settle' after operations which add/remove device nodes. | Richard W.M. Jones | 2009-07-01 | 1 | -0/+2 | |
| | | | | | | | | | | | | | Because udev operates asynchronously, we found errors which were caused by a previous command (eg. sfdisk or pvremove) creating or removing a device, and that change not having happened by the time the next command was run. This patch adds calls to '/sbin/udevadm settle' after any commands which can add or remove device nodes. If udev is not being used or not available, this should have no effect. The command fails and this is silently ignored. | |||||
* | Make CHROOT_IN/OUT macros should loudly if the syscall fails. | Richard Jones | 2009-06-22 | 1 | -4/+15 | |
| | ||||||
* | Add strong note about deprecation of functions which take either device ↵ | Richard W.M. Jones | 2009-06-20 | 1 | -0/+6 | |
| | | | | names or filenames. | |||||
* | Implement device name translation. Remove device name hacks in tests. | Richard Jones | 2009-06-10 | 1 | -7/+8 | |
| | ||||||
* | Refactor line splitting code in the daemon, and fix it so it works. | Richard Jones | 2009-05-12 | 1 | -0/+2 | |
| | ||||||
* | Add generated code for 'fsck' command. | Richard Jones | 2009-04-30 | 1 | -0/+3 | |
| | ||||||
* | catsprintf leaks, use open_memstream instead. | Richard W.M. Jones | 2009-04-23 | 1 | -8/+0 | |
| | ||||||
* | Implement extensible strings with catprintf. | Richard W.M. Jones | 2009-04-23 | 1 | -0/+8 | |
| | ||||||
* | Various fixes to the daemon: | Richard Jones | 2009-04-20 | 1 | -4/+15 | |
| | | | | | | - make sure SIGPIPE doesn't kill us - warn not to use macros in FileIn functions - add shell_quote function | |||||
* | Implement upload and download commands. | Richard Jones | 2009-04-20 | 1 | -10/+19 | |
| | ||||||
* | Implement NEED_ROOT_OR_IS_DEVICE macro. | Richard Jones | 2009-04-19 | 1 | -0/+13 | |
| | ||||||
* | Implement _send_sync, _send_file_sync and _receive_file_sync. | Richard Jones | 2009-04-19 | 1 | -0/+7 | |
| | ||||||
* | Rewrite of main loop impl, start of FileIn/FileOut support. | Richard Jones | 2009-04-18 | 1 | -5/+20 | |
| | ||||||
* | Added test suite. | Richard Jones | 2009-04-11 | 1 | -3/+28 | |
| | ||||||
* | CHROOT_OUT must preserve errno. | Richard Jones | 2009-04-10 | 1 | -3/+7 | |
| | ||||||
* | pvs/vgs/lvs commands working now. | Richard Jones | 2009-04-07 | 1 | -0/+5 | |
| | ||||||
* | Implement list-devices and list-partitions. | Richard Jones | 2009-04-06 | 1 | -0/+2 | |
| | ||||||
* | Implementations of 'cat', 'ls', and some cleanups. | Richard Jones | 2009-04-06 | 1 | -2/+13 | |
| | ||||||
* | Implement RString and RStringList return types. | Richard Jones | 2009-04-04 | 1 | -0/+2 | |
| | | | | | - implement 'll' command. - outlines for 'ls' and 'cat' commands. | |||||
* | Implemented 'mount' and 'touch' commands. | Richard Jones | 2009-04-03 | 1 | -0/+22 | |
| | ||||||
* | Makes a series of non-trivial calls. | Richard Jones | 2009-04-03 | 1 | -1/+3 | |
| | ||||||
* | Daemon and library are mostly talking to each other now. | Richard Jones | 2009-04-03 | 1 | -0/+41 | |