前向兼容手札 头像

消息来源频道

前向兼容手札

@zyf_at_rochester

频道122 位成员公开可见0 人在线

后向兼容什么的,才没人在意呢!

成员规模122 位成员
在线情况0 人在线
消息总数888 条消息
浏览量总数15,140 次浏览

在这个频道里搜索消息……

t.me/zyf_at_rochester

#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <stdio.h>
int main() {
pid_t tid = gettid();
int ret = syscall(SYS_fork);
if (tid == gettid() && ret == 0) {
printf("bad thing happens\n");
}
}
以上代码在glibcmusl的输出分别是?