* ReviewRequest of a booklet on System Concepts
@ 2017-12-26 4:50 Rishi Agrawal
2017-12-26 4:59 ` Saket Sinha
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Rishi Agrawal @ 2017-12-26 4:50 UTC (permalink / raw)
To: kernelnewbies
Hi All,
I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
some concepts related to "glibc and system calls ". This will be useful for
the newbies who are learning Linux System Programming.
I request the members of the group to kindly review it once and let me know
if anything is incorrect or can be written and explained in a better way.
If someone wants to add more contents he/she can surely do by raising a
"pull request" in the github repo.
My apologies if this is not the right group for it as I do not know of any
other group with this level of expertise.
--
Regards,
Rishi Agrawal
A simple act of caring creates an endless ripple.
Be the change that you wish to see in the world.
Be thoroughly used up when you die, for the harder you work, the more you
live.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171226/f6cb52d0/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 4:50 ReviewRequest of a booklet on System Concepts Rishi Agrawal
@ 2017-12-26 4:59 ` Saket Sinha
2017-12-26 5:31 ` Rishi Agrawal
2017-12-26 5:54 ` Larry Chen
2017-12-26 19:19 ` Yubin Ruan
2 siblings, 1 reply; 8+ messages in thread
From: Saket Sinha @ 2017-12-26 4:59 UTC (permalink / raw)
To: kernelnewbies
Hi Rishi,
Nice work.
Would love to see something similar for ARM.
Regards,
Saket Sinha
On Tue, Dec 26, 2017 at 10:20 AM, Rishi Agrawal
<rishi.b.agrawal@gmail.com> wrote:
> Hi All,
>
> I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
> some concepts related to "glibc and system calls ". This will be useful for
> the newbies who are learning Linux System Programming.
>
> I request the members of the group to kindly review it once and let me know
> if anything is incorrect or can be written and explained in a better way. If
> someone wants to add more contents he/she can surely do by raising a "pull
> request" in the github repo.
>
> My apologies if this is not the right group for it as I do not know of any
> other group with this level of expertise.
>
> --
> Regards,
> Rishi Agrawal
>
> A simple act of caring creates an endless ripple.
> Be the change that you wish to see in the world.
> Be thoroughly used up when you die, for the harder you work, the more you
> live.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 4:59 ` Saket Sinha
@ 2017-12-26 5:31 ` Rishi Agrawal
0 siblings, 0 replies; 8+ messages in thread
From: Rishi Agrawal @ 2017-12-26 5:31 UTC (permalink / raw)
To: kernelnewbies
Hi Saket,
Thanks for the encouragement. I do not have any idea about ARM thus it will
be difficult for me to work on it.
Maybe someone from the group can start working on it.
On Tue, Dec 26, 2017 at 10:29 AM, Saket Sinha <saket.sinha89@gmail.com>
wrote:
> Hi Rishi,
>
> Nice work.
> Would love to see something similar for ARM.
>
>
> Regards,
> Saket Sinha
>
>
> On Tue, Dec 26, 2017 at 10:20 AM, Rishi Agrawal
> <rishi.b.agrawal@gmail.com> wrote:
> > Hi All,
> >
> > I have written this booklet http://sys.readthedocs.io/en/latest/
> explaining
> > some concepts related to "glibc and system calls ". This will be useful
> for
> > the newbies who are learning Linux System Programming.
> >
> > I request the members of the group to kindly review it once and let me
> know
> > if anything is incorrect or can be written and explained in a better
> way. If
> > someone wants to add more contents he/she can surely do by raising a
> "pull
> > request" in the github repo.
> >
> > My apologies if this is not the right group for it as I do not know of
> any
> > other group with this level of expertise.
> >
> > --
> > Regards,
> > Rishi Agrawal
> >
> > A simple act of caring creates an endless ripple.
> > Be the change that you wish to see in the world.
> > Be thoroughly used up when you die, for the harder you work, the more you
> > live.
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
--
Regards,
Rishi Agrawal
A simple act of caring creates an endless ripple.
Be the change that you wish to see in the world.
Be thoroughly used up when you die, for the harder you work, the more you
live.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171226/e4737dc2/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 4:50 ReviewRequest of a booklet on System Concepts Rishi Agrawal
2017-12-26 4:59 ` Saket Sinha
@ 2017-12-26 5:54 ` Larry Chen
2017-12-26 6:22 ` Denis Mulalic
2017-12-26 19:19 ` Yubin Ruan
2 siblings, 1 reply; 8+ messages in thread
From: Larry Chen @ 2017-12-26 5:54 UTC (permalink / raw)
To: kernelnewbies
Hi Rishi,
Really great docs on glibc !!!
I'm willing to read them all.
Thanks,
Larry Chen
On 12/26/2017 12:50 PM, Rishi Agrawal wrote:
> Hi All,
>
> I have written this booklet
> http://sys.readthedocs.io/en/latest/?explaining some concepts related
> to "glibc and system calls ". This will be useful for the newbies who
> are learning Linux System Programming.
>
> I request the members of the group to kindly review it once and let me
> know if anything is incorrect or can be written and explained in a
> better way. If someone wants to add more contents he/she can surely do
> by raising a "pull request" in the github repo.
>
> My apologies if this is not the right group for it as I do not know of
> any other group with this level of expertise.
>
> --
> Regards,
> Rishi Agrawal
>
> A simple act of caring creates an endless ripple.
> Be the change that you wish to see in the world.
> Be thoroughly used up when you die, for the harder you work, the more
> you live.
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171226/b1ddc2c3/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 5:54 ` Larry Chen
@ 2017-12-26 6:22 ` Denis Mulalic
2017-12-26 11:21 ` jitendra kumar khasdev
0 siblings, 1 reply; 8+ messages in thread
From: Denis Mulalic @ 2017-12-26 6:22 UTC (permalink / raw)
To: kernelnewbies
Hi Rishi,
Much appreciated!
Cheers!
Denis
On Mon, Dec 25, 2017 at 10:54 PM, Larry Chen <lchen@suse.com> wrote:
> Hi Rishi,
>
> Really great docs on glibc !!!
> I'm willing to read them all.
>
> Thanks,
> Larry Chen
>
>
> On 12/26/2017 12:50 PM, Rishi Agrawal wrote:
>
> Hi All,
>
> I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
> some concepts related to "glibc and system calls ". This will be useful for
> the newbies who are learning Linux System Programming.
>
> I request the members of the group to kindly review it once and let me
> know if anything is incorrect or can be written and explained in a better
> way. If someone wants to add more contents he/she can surely do by raising
> a "pull request" in the github repo.
>
> My apologies if this is not the right group for it as I do not know of any
> other group with this level of expertise.
>
> --
> Regards,
> Rishi Agrawal
>
> A simple act of caring creates an endless ripple.
> Be the change that you wish to see in the world.
> Be thoroughly used up when you die, for the harder you work, the more you
> live.
>
>
> _______________________________________________
> Kernelnewbies mailing listKernelnewbies at kernelnewbies.orghttps://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171225/cea62fb8/attachment-0001.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 6:22 ` Denis Mulalic
@ 2017-12-26 11:21 ` jitendra kumar khasdev
2017-12-26 11:27 ` Rishi Agrawal
0 siblings, 1 reply; 8+ messages in thread
From: jitendra kumar khasdev @ 2017-12-26 11:21 UTC (permalink / raw)
To: kernelnewbies
Hi Rishi,
Thanks for effort. Really great work.
---
Jitendra
On Tue, Dec 26, 2017 at 11:52 AM, Denis Mulalic <dmpc.computers@gmail.com>
wrote:
> Hi Rishi,
>
> Much appreciated!
>
> Cheers!
> Denis
>
> On Mon, Dec 25, 2017 at 10:54 PM, Larry Chen <lchen@suse.com> wrote:
>
>> Hi Rishi,
>>
>> Really great docs on glibc !!!
>> I'm willing to read them all.
>>
>> Thanks,
>> Larry Chen
>>
>>
>> On 12/26/2017 12:50 PM, Rishi Agrawal wrote:
>>
>> Hi All,
>>
>> I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
>> some concepts related to "glibc and system calls ". This will be useful for
>> the newbies who are learning Linux System Programming.
>>
>> I request the members of the group to kindly review it once and let me
>> know if anything is incorrect or can be written and explained in a better
>> way. If someone wants to add more contents he/she can surely do by raising
>> a "pull request" in the github repo.
>>
>> My apologies if this is not the right group for it as I do not know of
>> any other group with this level of expertise.
>>
>> --
>> Regards,
>> Rishi Agrawal
>>
>> A simple act of caring creates an endless ripple.
>> Be the change that you wish to see in the world.
>> Be thoroughly used up when you die, for the harder you work, the more you
>> live.
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing listKernelnewbies at kernelnewbies.orghttps://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171226/f45c4150/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 11:21 ` jitendra kumar khasdev
@ 2017-12-26 11:27 ` Rishi Agrawal
0 siblings, 0 replies; 8+ messages in thread
From: Rishi Agrawal @ 2017-12-26 11:27 UTC (permalink / raw)
To: kernelnewbies
Thanks a lot Jitendra, Larry, Denis and Yubin for the encouragement.
@Yubin - Right now I do not know this. I have opened an issue in the github
to track this query. I will find out the answer once the time permits.
On Tue, Dec 26, 2017 at 4:51 PM, jitendra kumar khasdev <jkhasdev@gmail.com>
wrote:
> Hi Rishi,
>
> Thanks for effort. Really great work.
>
> ---
> Jitendra
>
> On Tue, Dec 26, 2017 at 11:52 AM, Denis Mulalic <dmpc.computers@gmail.com>
> wrote:
>
>> Hi Rishi,
>>
>> Much appreciated!
>>
>> Cheers!
>> Denis
>>
>> On Mon, Dec 25, 2017 at 10:54 PM, Larry Chen <lchen@suse.com> wrote:
>>
>>> Hi Rishi,
>>>
>>> Really great docs on glibc !!!
>>> I'm willing to read them all.
>>>
>>> Thanks,
>>> Larry Chen
>>>
>>>
>>> On 12/26/2017 12:50 PM, Rishi Agrawal wrote:
>>>
>>> Hi All,
>>>
>>> I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
>>> some concepts related to "glibc and system calls ". This will be useful for
>>> the newbies who are learning Linux System Programming.
>>>
>>> I request the members of the group to kindly review it once and let me
>>> know if anything is incorrect or can be written and explained in a better
>>> way. If someone wants to add more contents he/she can surely do by raising
>>> a "pull request" in the github repo.
>>>
>>> My apologies if this is not the right group for it as I do not know of
>>> any other group with this level of expertise.
>>>
>>> --
>>> Regards,
>>> Rishi Agrawal
>>>
>>> A simple act of caring creates an endless ripple.
>>> Be the change that you wish to see in the world.
>>> Be thoroughly used up when you die, for the harder you work, the more
>>> you live.
>>>
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing listKernelnewbies at kernelnewbies.orghttps://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies at kernelnewbies.org
>>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
--
Regards,
Rishi Agrawal
A simple act of caring creates an endless ripple.
Be the change that you wish to see in the world.
Be thoroughly used up when you die, for the harder you work, the more you
live.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171226/fd3c457b/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* ReviewRequest of a booklet on System Concepts
2017-12-26 4:50 ReviewRequest of a booklet on System Concepts Rishi Agrawal
2017-12-26 4:59 ` Saket Sinha
2017-12-26 5:54 ` Larry Chen
@ 2017-12-26 19:19 ` Yubin Ruan
2 siblings, 0 replies; 8+ messages in thread
From: Yubin Ruan @ 2017-12-26 19:19 UTC (permalink / raw)
To: kernelnewbies
On Tue, Dec 26, 2017 at 10:20:21AM +0530, Rishi Agrawal wrote:
> Hi All,
>
> I have written this booklet http://sys.readthedocs.io/en/latest/ explaining
> some concepts related to "glibc and system calls ". This will be useful for
> the newbies who are learning Linux System Programming.
>
> I request the members of the group to kindly review it once and let me know
> if anything is incorrect or can be written and explained in a better way.
> If someone wants to add more contents he/she can surely do by raising a
> "pull request" in the github repo.
>
> My apologies if this is not the right group for it as I do not know of any
> other group with this level of expertise.
Good job!
>From the chapter "Setting Up Arguments"[1], it is stated that:
From the objdump we saw that __libc_open was called. This called
__open_nocancel and it had a syscall instruction.
however I check the source code of __libc_open[2] and found that __libc_open()
does not directly call __open_nocancel():
26 /* Open FILE with access OFLAG. If O_CREAT or O_TMPFILE is in OFLAG,
27 a third argument is the file protection. */
28 int
29 __libc_open (const char *file, int oflag)
30 {
31 int mode;
32
33 if (file == NULL)
34 {
35 __set_errno (EINVAL);
36 return -1;
37 }
38
39 if (__OPEN_NEEDS_MODE (oflag))
40 {
41 va_list arg;
42 va_start(arg, oflag);
43 mode = va_arg(arg, int);
44 va_end(arg);
45 }
46
47 __set_errno (ENOSYS);
48 return -1;
49 }
50 libc_hidden_def (__libc_open)
51 weak_alias (__libc_open, __open)
52 libc_hidden_weak (__open)
53 weak_alias (__libc_open, open)
I note previously that there are some scripts used to handle this when
building glibc, but never be able to see how this go through (cannot get its
intermediate form). Do you know how to do that?
Yubin
[1]: https://sys.readthedocs.io/en/latest/doc/06_setting_up_arguements.html
[2]: https://code.woboq.org/userspace/glibc/io/open.c.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-12-26 19:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-26 4:50 ReviewRequest of a booklet on System Concepts Rishi Agrawal
2017-12-26 4:59 ` Saket Sinha
2017-12-26 5:31 ` Rishi Agrawal
2017-12-26 5:54 ` Larry Chen
2017-12-26 6:22 ` Denis Mulalic
2017-12-26 11:21 ` jitendra kumar khasdev
2017-12-26 11:27 ` Rishi Agrawal
2017-12-26 19:19 ` Yubin Ruan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).