previous: >>108730420#define __NR_time 201https://man7.org/linux/man-pages/man2/time.2.htmltl;dr:get the timewow, back to a one syscall day. how exciting! this one's pretty neat in a few ways. one, it often doesn't even call into the kernel, instead opting for the vdso. the vdso itself it worth reading about if you're not already familiar: https://man7.org/linux/man-pages/man7/vdso.7.htmlit's quite interestingas someone mentioned a few threads back, the posix standard explicitly ignores leap seconds. rather interesting choice, but i guess it's mostly understandable given machine limitationsbeyond this, i found the error section amusing Error returns from this system call are indistinguishable from successful reports that the time is a few seconds before the Epoch, so the C library wrapper function never sets errno as a result of this call.also, the part right below this about how it can never fail seems to conflict with the part about how it can fail with EOVERFLOW, but hey, what do i know? relevant resources: man manman syscallshttps://man7.org/linux/man-pages/https://linux.die.net/man/https://elixir.bootlin.com/linux/https://elixir.bootlin.com/musl/https://elixir.bootlin.com/glibc/
#define __NR_time 201
Error returns from this system call are indistinguishable from successful reports that the time is a few seconds before the Epoch, so the C library wrapper function never sets errno as a result of this call.
man man
man syscalls
bampu
>>108737793>the vdso itself it worth reading about if you're not already familiar: https://man7.org/linux/man-pages/man7/vdso.7.htmlDoing that right now, thank you syscall anon and good thread as usual
>>108737793Upboat for better image than usual
>>108737793cute fleshlight
>>108739244is she really?
>>108738798what are your thoughts? glad you enjoy the threads, though>>108739244she is LITERALLY me
>>108739718are you a fleshlight
>>108740530.... maybe
>>108740733damn, must be nice
Is this syscall limited to 32 bits on i386? Looks that way.
>>108740822could be worse i guess
>>108739718You are not a girl.
>>108739718You are a girl.
>>108739718post syscalls that are literally you
>>108739718love u sycall anon
>time() and time_t>ftime() and struct timeb>gettimeofday() and struct timeval>clock_gettime() and struct timespecimagine taking so many iterations to make a usable time interfaceoh and kernel internally uses nanoseconds int64anyway interesting fact about clock_gettime: there are some virtual clocks in /dev (e.g. PTP clocks) that you can use in place of the CLOCK_REALTIME or CLOCK_MONOTONIC enumit's not a file descriptor directly, but somehow derived from it, don't recall exactly how
>>108742023yes i am>>108742518i know>>108742522most of the ones in pure love tier i thinkhttps://desuarchive.org/g/thread/108323183/#108323759maybe some in pure sex tieri like pipe a lot, so that one definitely >>108742531ily2 anon
>>108730420god, I wish xattrs had first-class file system support. You can't use them, because programmes will randomly strip then whenever you perform file operations, so they get rarely used, so no one extends support, and on and on the cycle goes.They're super handy for any sort of user-facing media, such as large image repositories. Such collections work much better with tags than with hierarchies, think of boorus, but you can't really use native Linux tagging because again, programmes will randomly nuke your entire tag db.
>>108743960Im gonna fill you with semen until you puke cum
>>108745312giwtwm
>>108745934Which one?
>>108745958the one being filled obviously
>>108746706wow cute there's two of us
>>108742887Yeah, C's time interface is a hot mess.
>>108746706>>108746916that's gay unless you're a girl
>>108747469Being a girl is pretty gay.
>>108747525not true, you are not a girl but youre gay
>>108737793>rather interesting choice,Not a choice, it's a pure counter. "Seconds since the epoch" doesn't include anything else.
>>108747716It was a choice to introduce discontinuities with UTC.
>vdsointeresting stuff, didn't know that.
>>108737793Yesterday I was writing seccomp filters and caught syscalls I'd never heard of, the shmat family. I looked at the man page, and did not understand what it was for. I searched the internet, and still did not receive enlightenment. I then remembered these threads exist, and found it on the archives. It too did not explain why you would use it.
>>108749636lmao