On 18.10.22 11:57, Stuart Henderson wrote:
On 2022/10/16 14:51, Alexander A. Klimov wrote:Hello OpenBSD devs! Hello Michel! I'd like OpenBSD to have a package of Michel's software "F3". https://github.com/AltraMayor/f3 Today I checked out the snapshot ports tree, but didn't find F3 even there, nor anything in the ports@ archive. Is anyone of you (going to) porting it in the near future? If no, I'm gonna give it a try. I'm looking forward to hear from you. Best, A/KI've attached a skeleton port for it, but it needs more work, OpenBSD
And I've attached the more work you mentioned. ok? (At least for me it purrs like a cat, see below.)
doesn't have posix_fadvise() or clock_nanosleep(). There is some code to emulate posix_fadvise for MacOS but it uses various fcntl(2) commands that we don't have.
82989 f3write CALL fcntl(1,F_ISATTY)
82989 f3write RET fcntl 1
82989 f3write CALL write(1,0x6a6a3e1c000,0xd)
82989 f3write GIO fd 1 wrote 13 bytes
"F3 write 8.0
"
82989 f3write RET write 13/0xd
82989 f3write CALL write(1,0x6a6a3e1c000,0x2b)
82989 f3write GIO fd 1 wrote 43 bytes
"Copyright (C) 2010 Digirati Internet LTDA.
"
82989 f3write RET write 43/0x2b
82989 f3write CALL write(1,0x6a6a3e1c000,0x3e)
82989 f3write GIO fd 1 wrote 62 bytes
"This is free software; see the source for copying conditions.
"
82989 f3write RET write 62/0x3e
82989 f3write CALL write(1,0x6a6a3e1c000,0x1)
82989 f3write GIO fd 1 wrote 1 bytes
"
"
82989 f3write RET write 1
82989 f3write CALL kbind(0x7f7fffdd7548,24,0xfc765877a3dc19cd)
82989 f3write RET kbind 0
82989 f3write CALL chdir(0x7f7ffffd7937)
82989 f3write NAMI "."
82989 f3write RET chdir 0
82989 f3write CALL kbind(0x7f7fffdd7548,24,0xfc765877a3dc19cd)
82989 f3write RET kbind 0
82989 f3write CALL chroot(0x6a48b8f790c)
82989 f3write NAMI "."
82989 f3write RET chroot 0
82989 f3write CALL chdir(0x6a48b8f790e)
82989 f3write NAMI "/"
82989 f3write RET chdir 0
82989 f3write CALL kbind(0x7f7fffdd7568,24,0xfc765877a3dc19cd)
82989 f3write RET kbind 0
82989 f3write CALL unveil(0x6a48b8f790c,0x6a48b8f7d94)
82989 f3write STRU flags="rwc"
82989 f3write NAMI "."
82989 f3write RET unveil 0
82989 f3write CALL unveil(0,0)
82989 f3write RET unveil 0
82989 f3write CALL kbind(0x7f7fffdd7568,24,0xfc765877a3dc19cd)
82989 f3write RET kbind 0
82989 f3write CALL pledge(0x6a48b8f80c2,0x6a48b8f83e8)
82989 f3write STRU promise="stdio rpath wpath cpath"
82989 f3write STRU execpromise=""
82989 f3write RET pledge 0
f3-8.0.tgz
Description: GNU Zip compressed data
