Yeah, I missed where this was shown in the email.

As far as the link for Drerk's web page is concerned, I suspect it is a
reference to the first ed of his book.

>From what I gathered, syscall is not POSIX compliant and could cause
compatibility issues so it's use is discouraged. This I would suspect is
why there are suggestions from the error when running the example to use
'swscanf' and 'getpt' instead.

However, as you found, 'syscall' is defined in 'unistd.h' so having this
included is required which does not seem that new. Then again, the code on
Derek's site is at least 6 years old and may not be kept up to date which
could explain the use of syscall there.


Cheers,

Jon

On Wed, Sep 9, 2020 at 8:30 AM Dennis Lee Bieber <[email protected]>
wrote:

> On Tue, 8 Sep 2020 08:57:45 -0700 (PDT), in
> gmane.comp.hardware.beagleboard.user Pavel Yermolenko
> <[email protected]> wrote:
> >>
> >
> >2nd Ed. I cloned the source from github.com/derekmolloy/exploringbb.git
> >This link is proposed in the 2nd edidtion of the book (p. xxxiv)
> >
>
>         Interesting... the program shown on
>
> http://exploringbeaglebone.com/chapter5/#Using_a_System_Call_to_use_the_chmod_command
> also does not have the include -- but as I mentioned, the program in the
> actual book does have the needed include.
>
> Note that the web example version of the library is a bit older, and the OS
> may have distributed things differently.
>
>
> --
> Dennis L Bieber
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/g3thlf15sthqjajpiia5q64opdadr915vp%404ax.com
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkpdhZJc7WRD3chd%2B_0RK%2Byru%2BW1UKNou7TZ3CGLny2nNw%40mail.gmail.com.

Reply via email to