mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Make space for 512TiB in blocks
This commit is contained in:
parent
04c38ecf3d
commit
448a4203bc
|
@ -33,7 +33,7 @@ cp -v libcurses/libcurses.a libterminfo/libterminfo.a libs/
|
||||||
# Compile nnn
|
# Compile nnn
|
||||||
cd ..
|
cd ..
|
||||||
[ -e "./netbsd-curses" ] || rm "$BIN"
|
[ -e "./netbsd-curses" ] || rm "$BIN"
|
||||||
musl-gcc -O3 -DNORL -DNOMOUSE -Wall -Wextra -Wshadow -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static
|
musl-gcc -O3 -DNORL -DNOMOUSE -std=c11 -Wall -Wextra -Wshadow -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static
|
||||||
strip "$BIN"
|
strip "$BIN"
|
||||||
|
|
||||||
# Run the binary with it selected
|
# Run the binary with it selected
|
||||||
|
|
|
@ -252,13 +252,15 @@ typedef struct entry {
|
||||||
uint_t nsec; /* 4 bytes (enough to store nanosec) */
|
uint_t nsec; /* 4 bytes (enough to store nanosec) */
|
||||||
mode_t mode; /* 4 bytes */
|
mode_t mode; /* 4 bytes */
|
||||||
off_t size; /* 8 bytes */
|
off_t size; /* 8 bytes */
|
||||||
uint_t blocks; /* number of 512B blocks allocated; 4 bytes (enough to store 2048TiB) */
|
struct {
|
||||||
|
ulong_t blocks : 40; /* 8 bytes (enough for 512 TiB in 512B blocks allocated) */
|
||||||
|
ulong_t nlen : 16; /* 2 bytes (length of file name) */
|
||||||
|
ulong_t flags : 8; /* 1 byte (flags specific to the file) */
|
||||||
|
};
|
||||||
#ifndef NOUG
|
#ifndef NOUG
|
||||||
uid_t uid; /* 4 bytes */
|
uid_t uid; /* 4 bytes */
|
||||||
gid_t gid; /* 4 bytes */
|
gid_t gid; /* 4 bytes */
|
||||||
#endif
|
#endif
|
||||||
ushort_t nlen; /* Length of file name */
|
|
||||||
uchar_t flags; /* Flags specific to the file */
|
|
||||||
} *pEntry;
|
} *pEntry;
|
||||||
|
|
||||||
/* Key-value pairs from env */
|
/* Key-value pairs from env */
|
||||||
|
|
Loading…
Reference in a new issue