#Lowlvl_backend 🌚 Linux 1.0
/*
* linux/kernel/panic.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* This function is used through-out the kernel (includeinh mm and fs)
* to indicate a major problem.
*/
#include <stdarg.h>
#include <linux/kernel.h>
#include <linux/sched.h>
asmlinkage void sys_sync(void); /* it's really int */
extern int vsprintf(char * buf, const char * fmt, va_list args);
NORET_TYPE void panic(const char * fmt, ...)
{
static char buf[1024];
va_list args;
va_start(args, fmt);
vsprintf(buf, fmt, args);
va_end(args);
printk(KERN_EMERG "Kernel panic: %s\n",buf);
if (current == task[0])
printk(KERN_EMERG "In swapper task - not syncing\n");
else
sys_sync();
for(;;);
}
Forwarded from iVanilla 自然科学 & 神秘学实验研究部 (iVanilla | ルビィ Developer)
Twitter
兔子鲜笙
#喜迎十九大 #惊喜2017 萌百第二次 被暂停解析
Forwarded from x64dbgbot
<torusrxxx> dammit https://github.com/curl/curl/blob/6746f8aa97b517aa201fcf7f40d9efcbec65ef35/lib/socks.c#L386
GitHub
curl/curl
A command line tool and library for transferring data with URL syntax, supporting HTTP, HTTPS, FTP, FTPS, GOPHER, TFTP, SCP, SFTP, SMB, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTSP and R...
duangsuse::Echo
#project 钦点一个叫ion的shell. github.com/redox-os/ion 和 elvish.io
elvish (https://t.me/elvish_zh)
应该是国产的, 清华大学的学生开发的.
大家可以资瓷一下国产Shell
应该是国产的, 清华大学的学生开发的.
大家可以资瓷一下国产Shell
ion is written in Rust(100%)
elvish is written in Go(100%)
duangsuse::Echo
#project 钦点一个叫ion的shell. github.com/redox-os/ion 和 elvish.io
刚才发现ion的一个大bug:
root:~# ls|rg go
go #我们在 '.' 下有一个 "go" 目录
root:~# go
ion: cannot execute directory as command
#我的PATH下有go二进制文件, 但是ion发现"./go"存在并且是一个目录以后天真的认为我是把一个目录当成了命令
root:~# mkdir ls
root:~# ls
#这是一个笑话, 如果./ls/存在那么ls就不能被执行. 想使用ls列出`pwd`的内容就是不可能的
ion: cannot execute directory as command
root:~# touch rm
root:~# rm rm
#如果用文件替代目录, 就不会出现此问题
root:~# rm
rm: missing operand
Try 'rm --help' for more information.
root:~# mkdir rm
root:~# rm rm
ion: cannot execute directory as command