summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Merge korg/donut into korg/masterJean-Baptiste Queru2009-07-256-511/+97
|\
| * Added ashmem_get_size_region() function.Bjorn Bringert2009-06-022-0/+25
| | | | | | | | | | | | | | This is needed by the MemoryFile changes in https://android-git.corp.google.com/g/2714 where it is used to find out whether a file descriptor refers to an ashmem region.
| * move native_handle stuff from master_glMathias Agopian2009-05-202-0/+61
| |
| * Move fdevent from libcutils into adb directory. ADB is the only client of ↵David 'Digit' Turner2009-05-182-507/+0
| | | | | | | | this API, and I intend to modify it extensively to clean its codebase soon.
| * Add support for "standalone months" to tztime's strftime().Eric Fischer2009-05-141-4/+11
| | | | | | | | | | | | | | | | The idea here is that some languages need a different form of the month name in constructions like "January 2" than in "January 2009", since the one in the "January 2" case really means "of January." So with this change, a format string of "%-B" will use the standalone month, while "%B" will continue to use the format month.
* | Fix bug where ECONNABORTED would have always occured on asocket_write.Nick Pelly2009-05-291-1/+1
| | | | | | | | Use POLLOUT for writes. Duh.
* | Helper to perform abortable blocking operations on a socket:Nick Pelly2009-05-292-0/+294
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asocket_connect() asocket_accept() asocket_read() asocket_write() These calls are similar to the regular syscalls, but can be aborted with: asocket_abort() Calling close() on a regular POSIX socket does not abort blocked syscalls on that socket in other threads. After calling asocket_abort() the socket cannot be reused. Call asocket_destory() *after* all threads have finished with the socket to finish closing the socket and free the asocket structure. The helper is implemented by setting the socket non-blocking to initiate syscalls connect(), accept(), read(), write(), then using a blocking poll() on both the primary socket and a local pipe. This makes the poll() abortable by writing a byte to the local pipe in asocket_abort(). asocket_create() sets the fd to non-blocking mode. It must not be changed to blocking mode. Using asocket will triple the number of file descriptors required per socket, due to the local pipe. It may be possible to use a global pipe per process rather than per socket, but we have not been able to come up with a race-free implementation yet. All functions except asocket_init() and asocket_destroy() are thread safe.
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-132-6/+26
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0344-0/+10830
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0344-10830/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-173-2/+895
|
* Initial ContributionThe Android Open Source Project2008-10-2143-0/+9937