#endif

3 posts · Last used 2d

Replying to
Or you could do as I did when some annoying guy asked me to “help him” with CS homework (actually wanted me to write the entire app for him, and refused to actually learn). I don’t remember what it was actually about, but I sent him something like: import sys as s class Main: def __init__(slef, av): slef.teh_arguments =av; #enddef; def main(sefl): doSomething(); do_something_else(sefl.teh_arguments); pls_DontDothis(); #enddef; #endclass; if(__name__[2:6]== 'main' ): Main(s.argv).main(); #endif It didn’t go well with his professor. I wonder if he’s a vibe coder now
0
1
0
0
Replying to
@azonenberg@ioc.exchange @hazelnoot@enby.life#ifdef __ARCH_WANT_SYS_FORK SYSCALL_DEFINE0(fork) { #ifdef CONFIG_MMU struct kernel_clone_args args = { .exit_signal = SIGCHLD, }; return kernel_clone(&args); #else /* can not support in nommu mode */ return -EINVAL; #endif } #endif fork internally just calls clone with some default arguments
0
3
0
0
Replying to on shitposter.world

@besserwisser@shitposter.world @SuperDicq@minidisc.tokyo @Ree@shitposter.world @Kyonko802@varishangout.net It's not much effort when you have GNU/Friends sharing patches with your like; diff --git a/src/lib/osinfo/uname.c b/src/lib/osinfo/uname.c index 20c5775..4aee075 100644 --- a/src/lib/osinfo/uname.c +++ b/src/lib/osinfo/uname.c @@ -72,8 +72,8 @@ get_uname,(void)) if (!uname_result_is_set) { #ifdef HAVE_UNAME if (uname(&u) != -1) {

  •  /* (Linux says 0 is success, Solaris says 1 is success) */
    
  •  strlcpy(uname_result, u.sysname, sizeof(uname_result));
    
  •  /* (GNU says 0 is success, Solaris says 1 is success) */
    
  •  strlcpy(uname_result, "GNU/Linux-libre", sizeof(uname_result));
    
    } else #endif /* defined(HAVE_UNAME) */ {
0
0
0
0
You've seen all posts