summaryrefslogtreecommitdiffstats
path: root/libcutils/fs.c
Commit message (Collapse)AuthorAgeFilesLines
* fs.c: Fix implicit declaration of function 'mkstemp'Nick Kralevich2012-10-151-0/+1
| | | | | | | system/core/libcutils/fs.c: In function 'fs_write_atomic_int': system/core/libcutils/fs.c:109:5: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration] Change-Id: I337ecb818f85e20b058f782df45987acf2e9d6c1
* Allow mkdir() race to succeed.Jeff Sharkey2012-09-251-2/+4
| | | | | | | | | When two zygotes are starting, they both may try creating a mount point after checking lstat(). The second mkdir() will result in EEXIST, which is okay to ignore. Bug: 7165469 Change-Id: If4411e2621f773c74cd05247899982fa5ebdd020
* Wrap more system calls in TEMP_FAILURE_RETRY.Jeff Sharkey2012-09-131-4/+4
| | | | | Bug: 7151474 Change-Id: I9fe19746104cf392f88ea5cf8061e2e21e334671
* Wrap system calls in TEMP_FAILURE_RETRY.Jeff Sharkey2012-09-131-6/+8
| | | | | | | | fs_prepare_dir() is used heavily during Zygote init, and can easily run into EINTR. Bug: 7151474 Change-Id: I7aac43a43483d55db47ca20456fff68ce51bbc46
* File-system utilities for installd and zygote.Jeff Sharkey2012-08-301-0/+138
Bug: 7008879 Change-Id: Ia54b8d4ad434e8973f235e2a4728651814bef8a9