]> git.eshelyaron.com Git - emacs.git/commit
Update Android port
authorPo Lu <luangruo@yahoo.com>
Sun, 6 Aug 2023 13:45:29 +0000 (21:45 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 6 Aug 2023 13:45:29 +0000 (21:45 +0800)
commit7873369338ee0159ca285153fd4592cbcff65d7a
treebd4fb3b1c8b19836d8d78b3ff4173470cfefd687
parent669a4b96c374801faa137f43b4497b2ed6511104
Update Android port

* java/org/gnu/emacs/EmacsNative.java: Declare ftruncate.

* java/org/gnu/emacs/EmacsSafThread.java (openDocument1): If
initially opening with rwt, verify the file descriptor is really
writable; if not, resort to rw and truncating the file descriptor
by hand instead.

* src/androidvfs.c (NATIVE_NAME (ftruncate)): New function.
Truncate file descriptor and return whether that was successful.
ChangeLog.android
java/org/gnu/emacs/EmacsNative.java
java/org/gnu/emacs/EmacsSafThread.java
src/androidvfs.c