We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原先的 .PASSWDS 是 i386 架构下程序生成的。
如果在64位系统下编译不使用 -m32选项,能否直接使用原先的 .PASSWDS 文件?
-m32
提示:对比 struct userec 的长度,并分别注册用户,使用 od 来对比
struct userec
The text was updated successfully, but these errors were encountered:
#include "bbs.h" int main() { printf("the size of userec is %d\n", sizeof(struct userec)); return 0; }
Sorry, something went wrong.
64 位下 time_t 的长度发生了变化,若替换为 unsigned int,则 64 位下结构体长度和成员变量的偏移量均相同。
time_t
unsigned int
No branches or pull requests
原先的 .PASSWDS 是 i386 架构下程序生成的。
如果在64位系统下编译不使用
-m32
选项,能否直接使用原先的 .PASSWDS 文件?提示:对比
struct userec
的长度,并分别注册用户,使用 od 来对比The text was updated successfully, but these errors were encountered: