[Serdev] Help and question

Edgar A. Vidal Martínez freakazoid at att.net.mx
Tue Mar 22 17:32:51 UTC 2005


Hi everybody:

First of all I have to say that this work of yours is amazing. I have a
lot of questions about SER, but I think the one could clean most of them
is the following:

I've read most of serdev.pdf, seruser.pdf, man pages of flex and yacc, some
tutorials of script-like languages and also glanced over main.c and some
related files (shm_mem.c,config.h and so on) but, however I can´t see what
is the very first function to be executed; I mean, serdev states that main
function in main.c is the first funcion called upon server startup, but
basing on this pdf file you also talk about lexical and syntactical analysis
made with flex and yacc or bison respectively, so I think the two resulting
output files (lex.yy.c and cfg.tab.c) are the first to execute, in order
to the whole system to understand all the grammar in the rest of the files,
aren´t they? Anyway, I think exists this script file which calls main at
server startup, and if it doesn't exists, if it's not the way I'm thinking,
could you please explain me (I'm begging on my knees) the way SER starts
working, because then, I'm not understanding anything.

I mean, the C code is relatively easy, what I really don't understand is
the way SER config file (I think is ser.cfg) is created: based on what files,
which other scripts files contribute in its creation and, again, what is
the especific file that calls main in what especific moment with what especific
instruction line?

I know that maybe I'm asking several things, but I'd be very thankful if
you could help me? because really want to understand the basis of SER; I
want to install and use it, but I think it's not enough and for me is very
important to understand the way things work.

                                    Thanks in advanced
                                     Edgar Vidal

P.D. Sorry for my insistance, but your answer is really important to me,
so send it again, but now as a listmember




More information about the Serdev mailing list