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: 251
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: 6521
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: 3434
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: 6521
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: 653
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: 251
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
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.