Linux-Development-Sys Digest #602, Volume #8 Sun, 1 Apr 01 17:13:14 EDT
Contents:
Re: parse error with #include <linux/fs.h> ("Ian D. Stewart")
Re: setsockopt() return "protcol not available" please help (Madhava S Bhamy)
Re: how to create a boot disk accoring to the bootsect.S (Kasper Dupont)
Re: How to handle newline character(s) in a TCP server (Kasper Dupont)
How to setup VPN in linux? (Jimmy)
Quiet Boot for Linux ("Benjamin Scherrey")
Re: setsockopt() return "protcol not available" please help ("FREDRIK LINDSTR�M")
Re: Boot problem ("Ian D. Stewart")
Re: how to create a boot disk accoring to the bootsect.S ("hushui")
Re: boot disk creation ("Ian D. Stewart")
WinZip ("ray")
Re: WinZip (Kasper Dupont)
Re: WinZip ("ray")
Re: WinZip (Kasper Dupont)
Re: WinZip ("ray")
Re: boot disk creation ("Karl Heyes")
about kernel_thread() in 2.2.16 ("tlin")
Re: How to handle newline character(s) in a TCP server (David Schwartz)
Re: Quiet Boot for Linux (Juergen Heinzl)
Re: How to handle newline character(s) in a TCP server (anthony stuckey)
----------------------------------------------------------------------------
From: "Ian D. Stewart" <[EMAIL PROTECTED]>
Subject: Re: parse error with #include <linux/fs.h>
Date: Sat, 31 Mar 2001 16:25:40 -0500
In article <[EMAIL PROTECTED]>, "Ian
D. Stewart" <[EMAIL PROTECTED]> wrote:
> Howdy,
>
> I'm working my way through the Linux Kernel Module Programmer's Guide,
> and I've run into a hiccup in the section on character devices. I get a
> 'parse error befor 'uid_t' in mount.h when building the following simple
> test programming:
Just to follow up, apparently the types in linux/types.h are only defined
if __KERNEL_STRICT_NAMES is not defined. <features.h> defines
__KERNEL_STRICT_NAMES by default. By passing -D_LOOSE_KERNEL_NAMES to
gcc, this behaviour is disabled, and my test code compiles without
problems.
Regards,
Ian
------------------------------
From: Madhava S Bhamy <[EMAIL PROTECTED]>
Subject: Re: setsockopt() return "protcol not available" please help
Date: Sun, 01 Apr 2001 00:08:29 -0600
"FREDRIK LINDSTR�M" wrote:
> Hi folks!
>
> I want to port my OS/2 server written in C to Linux. But now I am stuck so I
> could really need som help here.
>
> When I try to set the SO_RCVTIMEO and SO_SNDTIMEO setsockopt() return
> "protocol not available". When
> setting SO_REUSEADDR with setsockopt() the return is 0 = okey.
>
>
>
what is the linux kernel version ?
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: how to create a boot disk accoring to the bootsect.S
Date: Sun, 01 Apr 2001 09:22:27 +0000
hushui wrote:
>
> I have seen the boot disk of bootsect.S does not have a file system . When
> load the kernel, the bootcode read the floppy by read each sector of the
> disk. Does it??
> When we create a boot disk in the install time ,it is a disk with ext2 file
> system .
> How can I create a raw boot disk ???
You can simply copy the image to the floppy:
cp bzImage /dev/fd0
Notice that the loader build into the kernel
image is very primitive, there are better
loaders around like LILO and SYSLINUX. Also
notice that you cannot have a filesystem on
such a disk.
On RedHat systems The bootdisk used to start
the install program is a FAT formated disk
using SYSLINUX, the bootdisk created during
install is an EXT2 formated disk using LILO.
(Other distributions might do this different.)
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: How to handle newline character(s) in a TCP server
Date: Sun, 01 Apr 2001 09:40:47 +0000
Andrew Gierth wrote:
>
> >>>>> "InterFan" == InterFan <[EMAIL PROTECTED]> writes:
>
> InterFan> I want to design a TCP server. It just receives a line from
> InterFan> client and handles it. Then, it sends the response back to
> InterFan> the client. The problem is that a line of message may end
> InterFan> with ASCII characeter 13, 10 or 13+10. I use blocking I/O
> InterFan> function. How can I handle these conditions smoothly.
>
> the best solution is to define your protocol as using a specific line
> terminator (the standard for Internet protocols is CR+LF) and require
> all clients to send in that format.
>
If you are designing a new protocol it would be best to
specify one sequence that is the only way a linebreak is
ever sent. In that case I would prefer using a single
character instead of two, the character 10 is the standard
line break on Linux/Unix systems.
OTOH if you are implementing an existing protocol you
might have to talk to all kinds of existing lousy
implementations. If you want to be able to talk to
everybody, you must be able to handle all kinds of strange
input. Of cause none of your smart tricks to talk with a
lousy implementation may course your program to fail when
talking to someone who obeys the standard.
--
Kasper Dupont
------------------------------
From: Jimmy <[EMAIL PROTECTED]>
Subject: How to setup VPN in linux?
Date: Sun, 01 Apr 2001 18:29:31 +0800
Hi all,
I want to know how to setup VPN using ethertap. Can someone show me
the steps in doing that?
Jimmy
------------------------------
From: "Benjamin Scherrey" <[EMAIL PROTECTED]>
Subject: Quiet Boot for Linux
Date: Sun, 01 Apr 2001 05:10:42 -0400
I've got a techno-phobic client who gets concerned when he sees all the
things going across his screen when linux boots up. This is enough of an
issue that I'm prepared to go in and build a customer kernel or whatever
is necessary to make a linux boot appear even simpler than windows. How
do I get control over what gets to the screen when linux is booting? Is
there some parameter I can pass while building the kernel to suppress its
screen output? Perhaps route it to /dev/null or something?
thanx & later,
Ben Scherrey
------------------------------
From: "FREDRIK LINDSTR�M" <[EMAIL PROTECTED]>
Subject: Re: setsockopt() return "protcol not available" please help
Date: Sun, 1 Apr 2001 14:50:54 +0200
The kernel version is 2.2.16-22
/Fredrik
"Madhava S Bhamy" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]...
> "FREDRIK LINDSTR�M" wrote:
>
> > Hi folks!
> >
> > I want to port my OS/2 server written in C to Linux. But now I am stuck
so I
> > could really need som help here.
> >
> > When I try to set the SO_RCVTIMEO and SO_SNDTIMEO setsockopt() return
> > "protocol not available". When
> > setting SO_REUSEADDR with setsockopt() the return is 0 = okey.
> >
> >
> >
>
> what is the linux kernel version ?
>
------------------------------
From: "Ian D. Stewart" <[EMAIL PROTECTED]>
Subject: Re: Boot problem
Date: Sun, 01 Apr 2001 09:05:49 -0400
In article <[EMAIL PROTECTED]>, "ImperatorM"
<[EMAIL PROTECTED]> wrote:
> I have recompiled my kernel and tried to make a LILO boot disk but I
> keep getting this message on boot.
>
> request_module[block-major-3] : Root fs not mounted VFS: Cannot open
> root device "hda7" or 03:07 Please append a correct "root=" boot option
> Kernel panic: VFS: Unabel to mount root fs on 03:07
>
> The problem is I did append a correct "root=" option and both I and the
> new kernel know it!! It is looking for 03:07 which is hda7 so what the
> heck!! Is the problem in my boot disk, or my recompiled kernel? Whats
> a newbie to do...
Did you re-run LILO after modifying /etc/lilo.conf? If not, LILO doesn't
know about the new settings. Running /sbin/lilo as root should update
LILO with the new configuration.
HTH,
Ian
------------------------------
From: "hushui" <[EMAIL PROTECTED]>
Subject: Re: how to create a boot disk accoring to the bootsect.S
Date: Sun, 1 Apr 2001 20:23:02 +0800
I see .Thank you .
I just want the primitive boot disk to test ,which has no file system and
only raw instructions.
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> hushui wrote:
> >
> > I have seen the boot disk of bootsect.S does not have a file system .
When
> > load the kernel, the bootcode read the floppy by read each sector of the
> > disk. Does it??
> > When we create a boot disk in the install time ,it is a disk with ext2
file
> > system .
> > How can I create a raw boot disk ???
>
> You can simply copy the image to the floppy:
> cp bzImage /dev/fd0
>
> Notice that the loader build into the kernel
> image is very primitive, there are better
> loaders around like LILO and SYSLINUX. Also
> notice that you cannot have a filesystem on
> such a disk.
>
> On RedHat systems The bootdisk used to start
> the install program is a FAT formated disk
> using SYSLINUX, the bootdisk created during
> install is an EXT2 formated disk using LILO.
> (Other distributions might do this different.)
>
> --
> Kasper Dupont
------------------------------
From: "Ian D. Stewart" <[EMAIL PROTECTED]>
Subject: Re: boot disk creation
Date: Sun, 01 Apr 2001 09:27:53 -0400
In article <99vbdo$trf$[EMAIL PROTECTED]>, "oleg" <[EMAIL PROTECTED]>
wrote:
> Hello,
> can anybody help me with boot disk creation. I've compiled a new kernel
> and done like bzdisk - to copy on /dev/fd0 but I can't use this disk on
> another mashine, only where the kernel has been compiled...
As I understand it, boot disks are specific to a particular kernel
configuration, so this would be expected behaviour...
HTH,
Ian
------------------------------
From: "ray" <[EMAIL PROTECTED]>
Subject: WinZip
Date: Sun, 1 Apr 2001 22:11:12 +0800
I have a file compressed using WinZip program in Windows.
Can I decompress it at Linux?
Thanks
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: WinZip
Date: Sun, 01 Apr 2001 14:20:11 +0000
ray wrote:
>
> I have a file compressed using WinZip program in Windows.
> Can I decompress it at Linux?
> Thanks
You can just use unzip. I think it is installed
by default on RedHat systems, I don't know about
other distributions.
--
Kasper Dupont
------------------------------
From: "ray" <[EMAIL PROTECTED]>
Subject: Re: WinZip
Date: Sun, 1 Apr 2001 23:13:40 +0800
I could not find the unzip program. Where can I download them?
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> ray wrote:
> >
> > I have a file compressed using WinZip program in Windows.
> > Can I decompress it at Linux?
> > Thanks
>
> You can just use unzip. I think it is installed
> by default on RedHat systems, I don't know about
> other distributions.
>
> --
> Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: WinZip
Date: Sun, 01 Apr 2001 15:31:13 +0000
ray wrote:
>
> I could not find the unzip program. Where can I download them?
>
> "Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > ray wrote:
> > >
> > > I have a file compressed using WinZip program in Windows.
> > > Can I decompress it at Linux?
> > > Thanks
> >
> > You can just use unzip. I think it is installed
> > by default on RedHat systems, I don't know about
> > other distributions.
> >
> > --
> > Kasper Dupont
Try looking on the CD you installed from or on the
following websites:
<URL:http://www.redhat.com/>
<URL:http://www.info-zip.org/>
--
Kasper Dupont
------------------------------
From: "ray" <[EMAIL PROTECTED]>
Subject: Re: WinZip
Date: Mon, 2 Apr 2001 00:10:36 +0800
Yup! Got it installed and it is working fine!
You are a life saver!
Thanks a lot.
Raymond
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> ray wrote:
> >
> > I could not find the unzip program. Where can I download them?
> >
> > "Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > ray wrote:
> > > >
> > > > I have a file compressed using WinZip program in Windows.
> > > > Can I decompress it at Linux?
> > > > Thanks
> > >
> > > You can just use unzip. I think it is installed
> > > by default on RedHat systems, I don't know about
> > > other distributions.
> > >
> > > --
> > > Kasper Dupont
>
> Try looking on the CD you installed from or on the
> following websites:
>
> <URL:http://www.redhat.com/>
> <URL:http://www.info-zip.org/>
>
> --
> Kasper Dupont
------------------------------
From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: boot disk creation
Date: Sun, 01 Apr 2001 19:09:54 +0100
In article <99vbdo$trf$[EMAIL PROTECTED]>, "oleg" <[EMAIL PROTECTED]> wrote:
> Hello,
> can anybody help me with boot disk creation. I've compiled a new kernel and
> done like bzdisk - to copy on /dev/fd0 but I can't use this disk on another
> mashine, only where the kernel has been compiled...
> f1
This is hard to answer as you haven't stated the config for the machines.
But provided the hardware is similar, the kernel configuration is appropriate
for each machine and the boot partition is the same then it will boot, The
messages on screen should indicate the problem area.
karl.
------------------------------
From: "tlin" <[EMAIL PROTECTED]>
Subject: about kernel_thread() in 2.2.16
Date: Sun, 1 Apr 2001 14:48:12 -0600
hi, all,
I would like to use kernel_thread() to create new threads in the 2.2.16
kernel
(called within init_module of my loadable module.). Is there anyone who has
similar experience and would like to share with me? Thanks a lot!
tlin
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: How to handle newline character(s) in a TCP server
Date: Sun, 01 Apr 2001 12:45:00 -0700
Kasper Dupont wrote:
> If you are designing a new protocol it would be best to
> specify one sequence that is the only way a linebreak is
> ever sent. In that case I would prefer using a single
> character instead of two, the character 10 is the standard
> line break on Linux/Unix systems.
Sadly, the 'Internet standard line ending' is a carriage return
followed by a newline. So you probably should use it even if designing a
new protocol.
DS
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: Quiet Boot for Linux
Date: Sun, 01 Apr 2001 20:08:00 GMT
In article <[EMAIL PROTECTED]>, Benjamin Scherrey
wrote:
>I've got a techno-phobic client who gets concerned when he sees all the
>things going across his screen when linux boots up. This is enough of an
>issue that I'm prepared to go in and build a customer kernel or whatever
>is necessary to make a linux boot appear even simpler than windows. How
>do I get control over what gets to the screen when linux is booting? Is
>there some parameter I can pass while building the kernel to suppress its
>screen output? Perhaps route it to /dev/null or something?
[-]
I've never tried, but there's an option quiet in later 2.2.x kernels
which lowers the console log level.
Ta',
Juergen
--
\ Real name : Juergen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
Crossposted-To: comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: How to handle newline character(s) in a TCP server
From: [EMAIL PROTECTED] (anthony stuckey)
Date: Sun, 01 Apr 2001 20:46:07 GMT
David Schwartz <[EMAIL PROTECTED]> writes:
>Kasper Dupont wrote:
>> If you are designing a new protocol it would be best to
>> specify one sequence that is the only way a linebreak is
>> ever sent. In that case I would prefer using a single
>> character instead of two, the character 10 is the standard
>> line break on Linux/Unix systems.
> Sadly, the 'Internet standard line ending' is a carriage return
>followed by a newline. So you probably should use it even if designing a
>new protocol.
Why is that sad? It's the correct way to do this.
--
Anthony Stuckey [EMAIL PROTECTED]
System Administrator, students.uiuc.edu
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list by posting to the
comp.os.linux.development.system newsgroup.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************