Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

stat on Linux/x86_64 (was: zsh on Opteron (Linux) and limit)



[I'm sending this reply from zsh-users to zsh-workers; I'm not
subscribed to zsh-workers, make sure I'm Cc'ed in the replies.
Thanks.]

On 2005-02-17 17:54:23 +0100, Vincent Lefevre wrote:
> and if I use the stat builtin with ~hc/bin/zsh, I get:
> 
> Shell compiled with wrong ino_t size
> Shell compiled with wrong off_t size

Concerning this problem, here's an excerpt of my config.log:

[...]
configure:8246: checking if long is 64 bits
configure:8263: gcc -o conftest  -Wall -Wmissing-prototypes -ggdb  -g conftest.c -ldl -lnsl -lcurses -lm  -lc >&5
configure:8266: $? = 0
configure:8268: ./conftest
configure:8271: $? = 0
configure:8285: result: yes
configure:8799: checking for sigset_t
[...]

In the configure.ac file:

 Note that ZSH_64_BIT_TYPE, OFF_T_IS_64_BIT, INO_T_IS_64_BIT do *not* get
 defined if long is already 64 bits, since in that case no special handling
 is required.

Are you sure?

In the Src/Modules/stat.c file:

    case ST_INO:
#ifdef INO_T_IS_64_BIT
        convbase(optr, sbuf->st_ino, 0);
#else
        DPUTS(sizeof(sbuf->st_ino) > 4,
              "Shell compiled with wrong ino_t size");
        statulprint((unsigned long)sbuf->st_ino, optr);
#endif
        break;

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Messages sorted by: Reverse Date, Date, Thread, Author