Commit graph

26371 commits

Author SHA1 Message Date
San Mehat
2fd9c5897a nexus: OpenVPN: Instead of creating / using a configfile, use the new
dynamic service argument support so we don't need one :)

Signed-off-by: San Mehat <san@google.com>

nexus: fix property max
2009-05-20 17:16:00 -07:00
Android (Google) Code Review
a61755e5fc Merge change 2077 into donut
* changes:
  adb: adbd no longer disables OOM and now sets children's OOM adjustment to zero
2009-05-20 16:21:29 -07:00
Nick Pelly
92a7541bce Helper to perform abortable blocking operations on a socket:
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.
2009-05-20 15:20:30 -07:00
Mathias Agopian
8f13782e7b move native_handle stuff from master_gl 2009-05-20 14:51:48 -07:00
Jack Palevich
8b0624c3d3 Fix x64 int / pointer warnings. 2009-05-20 12:12:06 -07:00
San Mehat
0b5cb96fa4 am d4cdd13f: init: Clean up dynamic argument handling for services
Merge commit 'd4cdd13f6f56f3fe8d8511b609e823925fdd83f9'

* commit 'd4cdd13f6f56f3fe8d8511b609e823925fdd83f9':
  init: Clean up dynamic argument handling for services
2009-05-20 11:49:50 -07:00
Android (Google) Code Review
2ca20190af Merge change 2096
* changes:
  Implement architecture-dependent defaults.
2009-05-20 11:38:38 -07:00
Jack Palevich
e7b590666d Implement architecture-dependent defaults.
If libacc is built on x86, then x86 is the default code generator.
If libacc is built on arm. then ARM is the default code generator
And so on for future architectures.

The 64-bit x64 machine has no working code generator currently.
We may add one to support the simulator builds.

Improved the test program so we don't try to run tests if the
compile failed. Also avoid running tests that don't work on
a given platform.
2009-05-20 11:27:04 -07:00
San Mehat
d4cdd13f6f init: Clean up dynamic argument handling for services
Signed-off-by: San Mehat <san@google.com>
2009-05-20 09:52:16 -07:00
Android (Google) Code Review
d4f2fabff0 am e6be8706: Merge change 1950 into donut
Merge commit 'e6be870641d6db12493342c53344d68f464cc0a8'

* commit 'e6be870641d6db12493342c53344d68f464cc0a8':
  new cdma event log tags
2009-05-20 08:54:54 -07:00
San Mehat
8ad15685e6 resolved conflicts w/ f24e252903 merge... 2009-05-20 08:50:40 -07:00
Mike Lockwood
249ad57a88 adb: adbd no longer disables OOM and now sets children's OOM adjustment to zero
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-20 09:14:30 -04:00
Android (Google) Code Review
e6be870641 Merge change 1950 into donut
* changes:
  new cdma event log tags
2009-05-19 21:57:50 -07:00
Jack Palevich
274663bf67 Add a test script for testing the libacc compiler on ARM. 2009-05-19 14:07:41 -07:00
San Mehat
f24e252903 init: Add the ability to start services with dynamic arguments.
To add arguments dynamically to a service, start the service like so:

    setprop ctl.start service_to_run:arg1 arg2 arg3...

    To start a service with *no* dynamic arguments, start the service normally:

    setprop ctl.start service_to_run

    Dynamic arguments are only supported on 'oneshot' services

Signed-off-by: San Mehat <san@google.com>
2009-05-19 13:33:07 -07:00
Android (Google) Code Review
342520f2ed am 1b154930: Merge change 1867 into donut
Merge commit '1b154930b2c2634dce9c04d5d5cec7acb229ccb0'

* commit '1b154930b2c2634dce9c04d5d5cec7acb229ccb0':
  Cleaning up whitespace in adb sources. Nothing more, nothing less.
2009-05-19 02:53:38 -07:00
Android (Google) Code Review
1b154930b2 Merge change 1867 into donut
* changes:
  Cleaning up whitespace in adb sources. Nothing more, nothing less.
2009-05-19 02:52:19 -07:00
Tammo Spalink
473b9b21ad new cdma event log tags 2009-05-19 15:26:18 +08:00
Android (Google) Code Review
85246fee85 am b48acb0e: Merge change 1795 into donut
Merge commit 'b48acb0ebdc64d2f44cf869ac69aebbba2de192d'

* commit 'b48acb0ebdc64d2f44cf869ac69aebbba2de192d':
  Make /system/xbin/tcpdump setuid root.
2009-05-18 23:56:52 -07:00
Android (Google) Code Review
b48acb0ebd Merge change 1795 into donut
* changes:
  Make /system/xbin/tcpdump setuid root.
2009-05-18 16:35:27 -07:00
San Mehat
e78bd6a00d am b76a63b7: vold: Change VFAT mount options to enable sdcard write restrictions
Merge commit 'b76a63b7bbdf8f51c4e689e241fca6d3a0bc1b1c'

* commit 'b76a63b7bbdf8f51c4e689e241fca6d3a0bc1b1c':
  vold: Change VFAT mount options to enable sdcard write restrictions
2009-05-18 13:44:42 -07:00
San Mehat
b76a63b7bb vold: Change VFAT mount options to enable sdcard write restrictions
Signed-off-by: San Mehat <san@google.com>
2009-05-18 12:59:13 -07:00
San Mehat
735b60ebc2 am 7edc4f94: vold: If a filesystem is read/only then restart the fscheck but don\'t make any changes
Merge commit '7edc4f9454f1665b73faf0c02543cf350b741a53'

* commit '7edc4f9454f1665b73faf0c02543cf350b741a53':
  vold: If a filesystem is read/only then restart the fscheck but don't make any changes
2009-05-18 11:17:40 -07:00
San Mehat
7edc4f9454 vold: If a filesystem is read/only then restart the fscheck but don't make any changes
Signed-off-by: San Mehat <san@google.com>
2009-05-18 09:55:21 -07:00
David 'Digit' Turner
34c22c5ba9 am 414ff7d9: Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.
Merge commit '414ff7d98ac8d7610a26206335954ad15f43f3ac'

* commit '414ff7d98ac8d7610a26206335954ad15f43f3ac':
  Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.
2009-05-18 08:37:02 -07:00
David 'Digit' Turner
f6330a2eeb Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
David 'Digit' Turner
414ff7d98a Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon. 2009-05-18 17:07:46 +02:00
Android (Google) Code Review
8537cc56bb Merge change 1821
* changes:
  ACC ARM codegen: implement /, %
2009-05-15 15:19:52 -07:00
Android (Google) Code Review
986145c523 Merge change 1820
* changes:
  ACC ARM codegen: Implement calling indirect functions.
2009-05-15 15:18:24 -07:00
Android (Google) Code Review
b79c06a9bd Merge change 1819
* changes:
  ACC ARM code gen: Implement global variables.
2009-05-15 15:17:18 -07:00
Android (Google) Code Review
fd59668c96 Merge change 1818
* changes:
  Add license, document language changes.
2009-05-15 15:15:55 -07:00
Jack Palevich
3d474a74a7 ACC ARM codegen: implement /, % 2009-05-15 15:12:38 -07:00
Jack Palevich
7810bc9abd ACC ARM codegen: Implement calling indirect functions. 2009-05-15 14:31:47 -07:00
Jack Palevich
4d93f30bef ACC ARM code gen: Implement global variables.
Collapsed the inc/dec codegen into the loadEAX function, because it
allows us to generate better code for inc/dec'ing a global variable
on ARM, because we don't have to load the variable's address twice.
2009-05-15 13:30:00 -07:00
San Mehat
d99d1445fd resolved conflicts w/ b415390e74 merge 2009-05-15 13:02:13 -07:00
Dan Egnor
328a4fb535 Make /system/xbin/tcpdump setuid root. 2009-05-15 12:57:58 -07:00
Android (Google) Code Review
408bf61b94 am e398151e: Merge change 1694 into donut
Merge commit 'e398151e7830510f27305cc1cb8f9a0510106f9a'

* commit 'e398151e7830510f27305cc1cb8f9a0510106f9a':
  nexus: Flesh out VPN support a bit more, cleanup service handling
2009-05-15 11:51:35 -07:00
Android (Google) Code Review
fc1ceb63d5 am dee68663: Merge change 1693 into donut
Merge commit 'dee68663724c7117a51eb3af3d9390e00af832f5'

* commit 'dee68663724c7117a51eb3af3d9390e00af832f5':
  libsysutils: Introduce 'ServiceManager', for starting/stopping init services
2009-05-15 11:51:34 -07:00
Jack Palevich
9918d0a2ee Add license, document language changes. 2009-05-15 11:01:21 -07:00
Android (Google) Code Review
b415390e74 Merge change 1778 into donut
* changes:
  init: Create new 'vpn' user/group and set owner of '/dev/tun' to it.
2009-05-15 10:47:22 -07:00
Android (Google) Code Review
e398151e78 Merge change 1694 into donut
* changes:
  nexus: Flesh out VPN support a bit more, cleanup service handling
2009-05-15 10:44:22 -07:00
Android (Google) Code Review
dee6866372 Merge change 1693 into donut
* changes:
  libsysutils: Introduce 'ServiceManager', for starting/stopping init services
2009-05-15 10:44:06 -07:00
San Mehat
4a6f2321e7 init: Create new 'vpn' user/group and set owner of '/dev/tun' to it.
Signed-off-by: San Mehat <san@google.com>
2009-05-15 10:40:29 -07:00
San Mehat
5d6d417972 nexus: Flesh out VPN support a bit more, cleanup service handling
Signed-off-by: San Mehat <san@google.com>
2009-05-15 10:40:29 -07:00
San Mehat
c41d1c8074 libsysutils: Introduce 'ServiceManager', for starting/stopping init services
Signed-off-by: San Mehat <san@google.com>
2009-05-15 10:40:23 -07:00
Eric Fischer
035b427c70 am 722a5c04: Add support for "standalone months" to tztime\'s strftime().
Merge commit '722a5c0462f38827f4097065bfc3826b9e0e9fb4'

* commit '722a5c0462f38827f4097065bfc3826b9e0e9fb4':
  Add support for "standalone months" to tztime's strftime().
2009-05-15 10:15:18 -07:00
Mathias Agopian
b862ab74c9 Merge commit 'goog/master' into merge_master 2009-05-14 22:32:16 -07:00
Android (Google) Code Review
9ded6bb1e1 Merge change 1741
* changes:
  ACC: Arm code gen improvements ++/--, &, odds and ends
2009-05-14 19:42:45 -07:00
Android (Google) Code Review
243fb9ff0f Merge change 1740
* changes:
  Implement <, >, ==, !=, >= <=, &&, and ||.
2009-05-14 19:42:17 -07:00
Jack Palevich
bd894904f7 ACC: Arm code gen improvements ++/--, &, odds and ends
Added C++-style "//..end-of-line" comments, since I kept trying to use them when writing
test programs.

The biggest known missing piece is global variables.
2009-05-14 19:35:31 -07:00