Dec. 30th, 2010

netch80: (Default)
Продолжая тему этого...

#include <stdio.h>
#include <fcntl.h>

int main()
{
  printf("%llx\n", (off_t)(-sizeof(int)));
  return 0;
}


в 32-битке выводит 0xffffffffc. Ура, товарищи.

Исходный код, по которому увидена проблема, содержал

lseek(fd, -sizeof(buf), SEEK_END)

Profile

netch80: (Default)
netch80

January 2026

S M T W T F S
    1 23
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 3rd, 2026 01:47 pm
Powered by Dreamwidth Studios