Those files are in the Android source but not in the Linux kernel. The driver is at the kernel level and I need some way to display the current working directory that the driver is attempting to load the BIN file from.
There is a load of unistd.h files in the kernel source tree but none of them contain the getcwd() function. On Monday, 6 April 2020 23:05:34 UTC+7, Martin Brabham wrote: > > Do you have your includes setup to target bionic/libc/include? > > bionic/libc/include/unistd.h > > Line 229: char* getcwd(char* __buf, size_t __size); > > On Thu, Apr 2, 2020 at 8:27 AM Dave McLaughlin <davemcla...@gmail.com > <javascript:>> wrote: > >> Yes, tried that and I get a file not found for that header file. >> >> With the leading linux/ it finds the file but the header file does not >> contain a reference to that function. >> >> There are over 50 files called unistd.h in the source. >> >> I am trying to compile drivers/base/firmware_class.c to add some >> diagnostics to see why the wifi driver gives file not found. >> >> On Thursday, 2 April 2020 00:00:48 UTC+7, Glenn Kasten wrote: >>> >>> Did you try <unistd.h> ? Note the "h" not "g" at end, and no leading >>> "linux/" >>> >>> >>>> -- >> -- >> unsubscribe: android...@googlegroups.com <javascript:> >> website: http://groups.google.com/group/android-porting >> >> --- >> You received this message because you are subscribed to the Google Groups >> "android-porting" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to android...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/android-porting/da43688c-e590-423f-8d10-ffc1ad9ee3aa%40googlegroups.com >> >> <https://groups.google.com/d/msgid/android-porting/da43688c-e590-423f-8d10-ffc1ad9ee3aa%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > > > * • Martin Brabham* > * • *Software Engineer > * • *Android Bluetooth > • 352.327.8280 > > > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/e272decc-37a7-4f2a-b020-71efa39e1652%40googlegroups.com.