android_system_core/include/cutils
Ken Sumrall e3aeeb4de3 Try to unmount writable filesystems when rebooting
Ext4 filesystems like to be unmounted before rebooting.  The Android system
doesn't have a traditional Linux init setup, and shutting down the system
was not much more than calling sync(2) and reboot(2).  This adds a new
function to libcutils called android_reboot().  By default, it calls sync()
and then remounts all writable filesystems as read-only and marks them clean.
There is a flag parameter in which the caller can ask for sync() not to be
called, or to not remount the filesystems as read-only.  Then it will call
reboot(2) as directed by the other parameters.  This change also updates
adb, init and toolbox to call the new android_reboot() function.
Fixes bugs 3350709 and 3495575.

Change-Id: I16d71ffce3134310d7a260f61ec6f4dd204124a7
2011-03-10 18:11:46 -08:00
..
abort_socket.h Helper to perform abortable blocking operations on a socket: 2009-05-20 15:20:30 -07:00
android_reboot.h Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
array.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
ashmem.h Fix sim-eng build. 2010-06-30 22:20:49 -07:00
atomic-arm.h Remove unconditional swap from the android atomic operations suite. 2011-01-23 14:09:17 -08:00
atomic-inline.h Add definitions for store barrier. 2010-09-24 10:56:43 -07:00
atomic-x86.h Remove unconditional swap from the android atomic operations suite. 2011-01-23 14:09:17 -08:00
atomic.h Remove unconditional swap from the android atomic operations suite. 2011-01-23 14:09:17 -08:00
compiler.h fix copyright notice 2009-04-17 15:16:02 -07:00
config_utils.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
cpu_info.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dir_hash.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
event_tag_map.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
hashmap.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
iosched_policy.h system: Add support for getting/setting i/o priorities and include a userspace tool 2010-02-25 14:02:55 -08:00
jstring.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
log.h Fixed LOG_ASSERT() compilation errors in native debug builds. 2010-07-16 07:56:03 -07:00
logd.h Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h> 2009-05-29 14:45:04 +02:00
logger.h Make logcat print both the main and system buffers by default. Make SLOGx macros work. 2010-03-01 13:03:19 -08:00
logprint.h Make logcat print both the main and system buffers by default. Make SLOGx macros work. 2010-03-01 13:03:19 -08:00
memory.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
misc.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mq.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mspace.h Tracking merge of dalvik-dev to gingerbread 2010-08-04 15:45:52 -07:00
native_handle.h don't use cdefs.h as it breaks the windows build. 2009-05-21 13:08:39 -07:00
open_memstream.h Implementation of open_memstream(). 2010-01-25 15:06:03 -08:00
process_name.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
properties.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
record_stream.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sched_policy.h cutils: Add support for reading a processes scheduler policy 2009-10-27 12:27:42 -07:00
selector.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sockets.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
threads.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tztime.h am 722a5c04: Add support for "standalone months" to tztime\'s strftime(). 2009-05-15 10:15:18 -07:00
uio.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
zygote.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00