Re: download the source code of some commands

2012-06-21 Thread Denis Kirjanov
How does it related to the kernel?


On 6/21/12, 王哲 wangzhe5...@gmail.com wrote:
   Hi all:
I want to see some source code of some commands,for
 example,halt,reboot,uptime,and so on.

 but i don't kown where to download?   can you give me some advice?

 Thanks in advance!



-- 
Regards,
Denis

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: download the source code of some commands

2012-06-21 Thread AFT
王哲 wangzhe5...@gmail.com writes:

   Hi all:
I want to see some source code of some commands,for
 example,halt,reboot,uptime,and so on.

 but i don't kown where to download?   can you give me some advice?


 Thanks in advance!

Hi,

Although this does not relate to kernel, you can still view the codes of
common linux/unix commands. ftp.gnu.org hosts most of commands in
different packaging. Like coreutils, findutils, netutils etc. And
standalone codes are there for grep, ed etc. 

You can also get a copy of freebsd dvd. Freebsd dvd's comes with full
source code of the core system.

cheers.

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


RE: download the source code of some commands

2012-06-21 Thread jeshwanth Kumar N K
Hello 

U can download coreutils from gnu.org.

Sent from my HTC

--

Send Kernelnewbies mailing list submissions to
kernelnewbies@kernelnewbies.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
kernelnewbies-requ...@kernelnewbies.org

You can reach the person managing the list at
kernelnewbies-ow...@kernelnewbies.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of Kernelnewbies digest...




Message: 1
Date: Thu, 21 Jun 2012 18:17:36 +0800
From: ?? lovelyl...@gmail.com
Subject: Re: [RFC] tcp: How does SACK or FACK determine the time to
start   fast retransmition?
To: Vijay Subramanian subramanian.vi...@gmail.com
Cc: netdev net...@vger.kernel.org, kernelnewbies@kernelnewbies.org
Message-ID: 4fe2f4c0.4020...@gmail.com
Content-Type: text/plain; charset=UTF-8; format=flowed

? 2012/6/21 16:42, Vijay Subramanian ??:
 With SACK, number of  dupacks does not have much meaning. What matters is
 --how the SACK scoreboard looks like i.e. which packets are tagged
 Lost/Sacked/Retransmitted
 -- Whether FACK is in use (this assumes holes in between sacked
 packets are lost and have left the network and so we can send out more
 packets)

 So, stack does not count the number of dupacks that have come in. Only
 SACK blocks matter.
 You can try to track the following path:
 tcp_ack() deals with incoming acks and if it sees a dupack (does not
 matter what number), or incoming packet contains SACK it calls
 tcp_fastretrans_alert() which calls  tcp_xmit_retransmit_queue().

 tcp_xmit_retransmit_queue() decides which packets to retransmit. The
 first packet to start retransmitting from is tracked in
 tp-retransmit_skb_hint.
 Note that the dupThresh is actually tracked by tp-reordering which
 measures  the reordering in the network and is not fixed at 3.  So, if
 more than
 tp-reordering packets have been acked above a given packet, this
 packet is a candidate for retransmisson. See tcp_mark_head_lost() to
 see how the
 reordering metric is used to mark packets as lost. This corresponds to
 the check you mentioned in the RFC.

 So, window permitting, packets are sent as follows;
 (a)-- Packets marked lost as per description above
 (b)-- new packets (if any)
 (c)-- Holes between sacked packets  which are not reliably lost.

 choice between (b) and (c) is made in tcp_can_forward_retransmit().

 Hope this helps.
 Vijay

It is just I wanted! Thanks for your detailed explaination and kindness.




--

Message: 2
Date: Thu, 21 Jun 2012 17:57:22 +0530
From: Vijay Chauhan kernel.vi...@gmail.com
Subject: Kernel Memory
To: kernelnewbies@kernelnewbies.org
Message-ID:
CAJ61zBA++CFmTHSb2cRr=ckjdtkvyssvs3_igesbbf21gwa...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I am newbie.
It has been said kernel memory is not pageable
What does it mean? There is no concept of kernel virtual address?

Any simple explanation will help me to udnerstand.

Thanks,
Vijay



--

Message: 3
Date: Thu, 21 Jun 2012 20:48:48 +0800
From: ?? wangzhe5...@gmail.com
Subject: download the source code of some commands
To: kernelnewbies kernelnewbies@kernelnewbies.org
Message-ID:
cajrru3vhh719vzgccj3r8k842yemeo9d5_0swgqsgdnxe0v...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

  Hi all:
   I want to see some source code of some commands,for
example,halt,reboot,uptime,and so on.

but i don't kown where to download?   can you give me some advice?

Thanks in advance!
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/3a198ac7/attachment-0001.html
 

--

Message: 4
Date: Thu, 21 Jun 2012 05:53:00 -0700
From: ashish_bun...@dell.com
Subject: RE: download the source code of some commands
To: wangzhe5...@gmail.com, kernelnewbies@kernelnewbies.org
Message-ID:
a1a98fd909dc5248811a65c5d18e9c7635de8be...@blrx7mcdc202.amer.dell.com

Content-Type: text/plain; charset=iso-2022-jp

All commands are bin files. You should find the scripts for them in /usr/bin 
only.

Ashish Bunkar
Linux Engineering
Dell | BDC
office +91-80-28078131,  mobile +91-7259183696
ashish_bun...@dell.commailto:narayana...@dell.com



From: kernelnewbies-boun...@kernelnewbies.org 
[mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of ??
Sent: Thursday, June 21, 2012 6:19 PM
To: kernelnewbies
Subject: download the source code of some commands

  Hi all:
   I want to see some source code of some commands,for 
example,halt,reboot,uptime,and so on.

but i don't kown where to download?   can you give me some advice?

Thanks in advance!
-- next part --
An HTML attachment was scrubbed...
URL: 
http

Re: download the source code of some commands

2012-06-21 Thread Wang Lei
If you use Debian or other distribution with apt package system.

You can use whereis to locate this command.
[~]$ whereis halt
halt: /sbin/halt /usr/share/man/man5/halt.5.gz /usr/share/man/man8/halt.8.gz

Then, use dpkg -S to show which package it's included. This one is: sysvinit.
[~]$ dpkg -S /sbin/halt
sysvinit: /sbin/halt

Now, you can download the source from Debian source, use:
[~]$ apt-get source sysvinit

Or if you want the original source, use aptitude (or apt-cache) find
it's homepage.
[~]$ aptitude show sysvinit
Package: sysvinit
..
Homepage: http://savannah.nongnu.org/projects/sysvinit

At last, get it from there. As for other package systems, I think there
should be a way too. Or you can google.
 
On 2012-06-21 20:48:48 +0800, 王哲 wrote:
   Hi all:
I want to see some source code of some commands,for
 example,halt,reboot,uptime,and so on.

 but i don't kown where to download?   can you give me some advice?

 Thanks in advance!
 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Regards,
Lei

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: download the source code of some commands

2012-06-21 Thread 王哲
2012/6/21 Wang Lei f3d...@gmail.com

 If you use Debian or other distribution with apt package system.

 You can use whereis to locate this command.
 [~]$ whereis halt
 halt: /sbin/halt /usr/share/man/man5/halt.5.gz
 /usr/share/man/man8/halt.8.gz

 Then, use dpkg -S to show which package it's included. This one is:
 sysvinit.
 [~]$ dpkg -S /sbin/halt
 sysvinit: /sbin/halt

 Now, you can download the source from Debian source, use:
 [~]$ apt-get source sysvinit

 Or if you want the original source, use aptitude (or apt-cache) find
 it's homepage.
 [~]$ aptitude show sysvinit
 Package: sysvinit
 ..
 Homepage: http://savannah.nongnu.org/projects/sysvinit

 At last, get it from there. As for other package systems, I think there
 should be a way too. Or you can google.


   Thank you very much !  i follow your steps, and download the source code
successfully.

On 2012-06-21 20:48:48 +0800, 王哲 wrote:
   Hi all:
I want to see some source code of some commands,for
 example,halt,reboot,uptime,and so on.

 but i don't kown where to download?   can you give me some advice?

 Thanks in advance!

  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

 --
 Regards,
 Lei

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies