Hi all,

This is a little offtopic (it deals with luatex only) but as
Mojca said:  there are many more luatex-using people here than
on dev-luatex.



In a discussion with Yue Wang he convinced me that it would
be better to use uname() for finding os.name instead of the
current jungle of #ifdefs.

Because I do not want to alter the lua return values, that
means I will have to interpret the contents of the returned
structure a bit. To do that, I would appreciate it if the people
on a non-linux32intel platform would compile and run the
attached minimalistic C file.

Thanks in advance,
Taco

#include <sys/utsname.h>
#include <stdio.h>


int main () {
  struct utsname uts;
  if (uname(&uts)) {
    puts("uname() failed");
  } else {
    printf("sysname:  %s\n", uts.sysname);
    printf("nodename: %s\n", uts.nodename);
    printf("release:  %s\n", uts.release);
    printf("version:  %s\n", uts.version);
    printf("machine:  %s\n", uts.machine);
  }
  return 0;
}



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to