flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Linux > my HeavyThing general purpose x86_64 linux library

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
redsock



Joined: 09 Oct 2009
Posts: 263
Location: Australia

sleepsleep wrote:
but how webops team could generate those files listing dynamically?

a few different ways... if it were me, I'd modify the webserver's assembly language hooks and make use of the https://2ton.com.au/library_as_html/dir.inc.html directory reading goods from the library to custom generate HTML/CSS/images for a given listing. (making sure to bake in some access controls/permissions).

Your other alternatives might be to use a FastCGI -indexfiles option and code the directory listing generator in your FastCGI/CGI language of choice... (Even other assembly language CGI environments, like @JohnFound's that runs https://fresh.flatassembler.net via rwasa)

Granted that isn't necessarily "out of the box" easy to do I suppose, haha... most of the other webservers I have played with either have templates that ship alongside the webserver, or the HTML/etc is all hardcoded/baked in ... and since I like the idea of rwasa being a standalone binary (without an install package/configuration script, lots of extra required files, etc), adding these sorts of "you are _definitely_ going to want to customise this feature, or that) didn't really go hand in hand.

Open to ideas/commentary though Smile

_________________
2 Ton Digital - https://2ton.com.au/
Post 15 Sep 2016, 02:47
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6924
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
imo, a web server should has a flag whether to list files or no, i think, almost all web server came with this function, Smile

i suggest, it probably could be, if no -indexfiles flag during execute, will turn on listing mode,

not really sure how to integrate, but i am thinking using ls -l?, the representation could be [D] for directory, [F] files, [E] executable, without any images,?

maybe with a capped size (512 kb)? because the worse usually happened when listing linux packages, browser just hang.
Post 15 Sep 2016, 09:55
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3439
Location: Bulgaria
If I can find some time, I will write some example implementation of CGI and/or FastCGI directory lister for RWASA.
Post 15 Sep 2016, 11:21
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6924
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
cross fingers, much appreciate,
Post 15 Sep 2016, 19:27
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 699
Hello. Could you tell me the meaning of line 200 of vdso.inc?

Code:
calign
.foundit:
        movzx   eaxword [rbx+6]   ; ??????????????????
        mov     rcx, [rbx+8]
        add     rcx, [rsp+992]  
        sub     rcx, [rsp+1008; the address of our symbol

        mov     [vdso_gettimeofday], rcx

        add     rsp1024
        pop     r15 r14 r13 r12 rbx
        epilog

Post 19 Jan 2017, 02:43
View user's profile Send private message Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 263
Location: Australia

tthsqe wrote:
Hello. Could you tell me the meaning of line 200 of vdso.inc?

Lol good eye! When I wrote it initially, it was a hand-compile of a C++ version I have here somewhere, line 200 is a remnant that didn't get deleted after I got what I wanted Wink Next release of the library will have it commented out thusly. Is it the ELF64_ST_TYPE uint16? something like that from vague recollection. Anyway, you are correct in that it is unused in the HeavyThing implementation.

Cheers and thanks for that!

_________________
2 Ton Digital - https://2ton.com.au/
Post 19 Jan 2017, 06:45
View user's profile Send private message Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 263
Location: Australia
After a long hiatus, I released v1.20 today: https://2ton.com.au/HeavyThing-1.20.tar.gz

From the ChangeLog:

Code:
September 26th2017v1.20
        -- Business has been booming along this last year! Thanks for the
        -- continued supportit is very much appreciated.
        mimelike.inc:
                Fixed a bug dealing with external body handling related to
                rwasa -backpath handling for NodeJS.
        webserver.inc:
                Added -backpath related no-response-modify for NodeJS.
        dataseg_macros.inc:
                A huge shout-out to Tomasz Grysztar (author of fasm itself)
                for modifying the globals macro functionality such that it
                now correctly applies conditionally (all binaries prior to
                this release contained _all_ global variablesnow only if
                their corresponding code is actually used). Note that this
                also upped our fasm memory requirements (262144 is no
                longer sufficient to compile HeavyThing programs).
        xmlparser.inc:
                Added pull-style UTF8UTF16UTF32 forward and backward
                fast tag parser.
        vector.inc:
                Added simple 64bit resizable "vector" functionality.
        xmlmemnode.inc:
                Added DOM-style XML support.
        string32.inc:
                Fixed return value bug in string$from_utf16 and incorrect
                length error.
                Added a simple placeholder/memcpy for to_utf32.
        sysinfo.inc:
                Got rid of the pathetic /proc/cpuinfo parsing and replaced
                with the correct sched_getaffinity syscall to determine
                CPU count.
        ht.inc:
                Added xmlparser.incvector.incxmlmemnode.inc to the
                includes section.
        * version update to v1.20



_________________
2 Ton Digital - https://2ton.com.au/
Post 26 Sep 2017, 02:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.