Questions tagged [bionic]

Bionic is a C language support library (libc), written by Google for its Android Operating System. It is BSD licensed, small and fast.

Some information about it you can get on http://codingrelic.geekhold.com/2008/11/six-million-dollar-libc.html page

63 questions
44
votes
3 answers

What library does ld option -lrt refer to (Bionic libc)?

What does this option to ld mean? -lrt I know to some degree it means that ld is looking for the library with real-time extensions, but after searching extensively, I couldn't find an exact definition (or which library) this is referring to. With…
dwerner
  • 6,462
  • 4
  • 30
  • 44
10
votes
3 answers

Thread safety in Android libraries

I'm trying to implement a native shared library(.so) for the Android system. Naturally, there are some code blocks that need to be thread-safe. I found out here that pthreads locks, mutexes, or condition variables are not supported. I'd like to…
6
votes
1 answer

How to symbolicate libart.so or libc.so stacktraces in Crashlytics Android NDK?

Note: Symbols are showing up in crashlytics for our c++ library, the problem is that they aren't showing for system libraries like libc, libart, libbase, and libandroid_runtime. We have some tricky crashes that happen entirely in the Android…
Andrew Stromme
  • 2,120
  • 23
  • 30
6
votes
2 answers

Compiling gentoo-bionic on a x86_64 linux machine

As you may know, Bionic is a C library used by Google to run Android applications. There are efforts to compile it in Linux machines, so it could be easily used outside Android. This is the code from one the latest efforts, originally called…
Ho1
  • 1,239
  • 1
  • 11
  • 29
5
votes
1 answer

Know if an embeded system is using glibc or bionic?

for example android is using bionic rather than glibc, but how to figure out it is really using bionic http://en.wikipedia.org/wiki/Bionic_(software), not glibc? can i find this information in /proc filesystem, or is there any command which can tell…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
4
votes
2 answers

'Could not handshake' : Error while doing sudo apt-get update

I am trying to install QGIS 3.4 on my Ubuntu 18.04. I am following instructions given at QGIS website. I have also updated my /etc/apt/sources.list file as below. deb https://qgis.org/ubuntu-ltr bionic main deb-src https://qgis.org/ubuntu-ltr bionic…
Ashj
  • 121
  • 1
  • 2
  • 9
4
votes
3 answers

Error showing while trying to install Docker CE on Linux Ubuntu 18.04 Bionic?

Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: docker-ce 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/33,8 MB of…
Jobin Jose
  • 51
  • 1
  • 6
4
votes
2 answers

atexit() function bionic vs glibc

I found interesting moment: the atexit() function works differently for bionic and glibc. Here is an example: #include #include extern "C" { void one(){ printf("one\n"); } void two() { printf("two\n"); …
Laser
  • 6,652
  • 8
  • 54
  • 85
3
votes
1 answer

Where is the Android libc documentation?

For glibc you can find an online documentation here. I am looking for an equivalent documentation for Android's libc implementation (headers located under sysroot/usr/include). Is there a documentation for these? (For example the call statfs() under…
zomega
  • 1,538
  • 8
  • 26
3
votes
0 answers

Unmet dependencies when installing wine 5 or higher in Zorin OS 15.3

I'm new at Linux and i need to upgrade to the latest of wine, but i got errors: The following packages have unmet dependencies: winehq-staging : Depends: wine-staging (= 6.6~groovy-1) E: Unable to correct problems, you have held broken packages. I…
skyccrfxcyr
  • 145
  • 3
3
votes
0 answers

How to spawn a new process through Android's libc

I have a cross platform library and use posix_spawn from libc to spawn new processes on Linux'y environments. However this is not included in the Bionic libc library included on Android. Is there an alternative way to spawn processes through…
Jan Jongboom
  • 26,598
  • 9
  • 83
  • 120
3
votes
1 answer

statically linking c file with android bionic c library

I just wrote a small c file and its header file. dev_access.c and dev_access.h I want to link it to the bionic library in android and create a statically/dynamically linked archive file. My files are in /home/preetam/mydev/ The android sources are…
preetam
  • 1,451
  • 1
  • 17
  • 43
3
votes
1 answer

Android libc version and malloc implementation

What libc implementation is used in Android platform? What malloc implementation is used (ptmalloc or tcmalloc or anything other)?
osgx
  • 90,338
  • 53
  • 357
  • 513
3
votes
1 answer

How to work around absence of futimes() in android (NDK)?

I have large project which needs futimes or futimens function. Unfortunately there are no such functions in header files in android ndk include folder. Is there a work-around (stub or simple code snippet using existing functions)? Documentation for…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
3
votes
0 answers

Shared native libraries on android and libc thread safety

I am new to Android development (and not an expert on C/C++ either), but find myself working on a native shared library written in C that is supposed to be used (among other platforms) by an Android app. Now, I started thinking about thread safety,…
Medo42
  • 3,821
  • 1
  • 21
  • 37
1
2 3 4 5