Re: [SLUG] Writing char drivers in Redhat 9

2004-04-07 Thread Carl G Lewis
On Wednesday 07 April 2004 23:00, Richard wrote:
 Im trying to recompile a character driver for RH7 under RH9 (2.4.20-8).

 Im getting errors because /usr/include/linux/fs.h no longer has
 definitions for

 struct file_operations
 struct, inode
 struct file

My understanding is that all the headers in /usr/include are user-space 
headers. They are NOT used for compiling kernel drivers. For this reason they 
do not contain declarations of structs used only within the kernel (like 
inodes). 

You should compile the driver against the kernel headers, which if you have 
installed the kernel source RPM should be in /usr/src/linux-2.4/include/linux

Carl.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] BSD Sockets

2004-03-11 Thread Carl G Lewis

The BSD sockets API has become part of the IEEE Posix standards. The specific 
part is IEEE Std 1003.1g, Protocol Independent Interfaces. See 
http://www.pasc.org/.

All this info from page 25 of W Richard Steven's Unix Network Programming, 
which is IMHO the definitive source of information on BSD sockets.

Carl.


On Friday 12 March 2004 08:17, Bruce Badger wrote:
 Is there a definitive source of information on BSD sockets?  e.g. is
 there an RFC?

 Many thanks,
   Bruce

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] LILO problems

2003-06-14 Thread Carl G Lewis
On Saturday 14 June 2003 15:58, Geoff Howell wrote:

 6. Reinstalled Win2k
 7. No LILO!
 I haven't been able to get LILO installed and working since - at the moment
 I don't get a LILO prompt, my computer boots straight into windows unless I
 boot from a floppy, but this is a pain as I need to eject it every time I
 want to boot into Windows.

Since reinstalling W2K, what have you tried to do to get lilo working?

It's been a while since I used lilo, as Redhat has used the vastly superior 
GRUB bootloader for ages. Anyway, I thought the preferred method for setting 
up dual boot machines these days was to use the W2K bootloader, and I have 
had success doing it this way in the past, eg see this page:

http://classes.csumb.edu/CST/CST434-01/world/DualBoot.html

good luck.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Please Help

2003-06-14 Thread Carl G Lewis

Like Erik, I'm not really sure what you want to do. If you want the best 
chance of getting help on this list (and others), check out this howto:

http://catb.org/~esr/faqs/smart-questions.html

and especially:

http://catb.org/~esr/faqs/smart-questions.html#bespecific

Have you already produced the .wav file and just want to convert it, or do you 
need assistance with making the .wav file also?

Carl. 

On Sunday 15 June 2003 03:34, Edward Maloney wrote:
 I am desperately seeking the ability to record my modem data transmissions
 (from phone line recording made w/sound board) and would like to decode
 both originating/answer sides of data transmissions after call has been
 made. I have no way of converting this .wav file to ASCII data.

 Any help would greatly be appreciated.

 Thank You,
 Edward Maloney


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG]

2003-06-14 Thread Carl G Lewis
On Sunday 08 June 2003 03:56, [EMAIL PROTECTED] wrote:
 Hi There,


 relay=c68.115.75.246.euc.wi.charter.com [68.115.75.246], reject=553 5.1.8
 [EMAIL PROTECTED] Domain of sender address [EMAIL PROTECTED]
 does not exist


My sendmail admin skills are pretty much non-existent, but I have had a 
similiar problem before. The mail relay is doing a DNS lookup on the domain 
of the sender address, and rejects it if the address cannot be found. This is 
presumably a spam prevention measure. 

In my case, I registered a domain + hostname for the box and everything worked 
fine after that. Note that it's not normal to use an IP address as part of a 
mail addy, I don't know whether the relay would do a reverse DNS lookup in 
this case.

Carl. 

PS: Please use a proper subject line in future when posting.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Linux in a Laptop.

2003-06-14 Thread Carl G Lewis
On Sunday 15 June 2003 06:17, Enrique Vila wrote:

 Which distribution would be more appropiate?

What are your trying to do, start a flamewar ? :-)

I have run Redhat 9 on several different Dell laptops quite successfully, but 
never on an IBM.

If you are new to GNU/Linux, choose from Redhat, Mandrake or Suse. Any of 
these really should be fine. I use Redhat, but that's only 'cause it's what I 
am used to.

You may be interested in reading:
http://www.msu.edu/~pfaffben/t30.html
http://www.jeo.net/T30/

I found these links at:
http://www.linux-laptop.net/


Carl.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Docbook with XML examples

2003-06-05 Thread Carl G Lewis
On Thursday 05 June 2003 10:04, Stuart Guthrie wrote:
 Does anyone know how to embed an example of XML in a DocBook formatted
 XML document. CDATA?


This may be what you are looking for:
http://www.docbook.org/tdg/en/html/markup.html


--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] pid timeout

2003-03-22 Thread Carl G Lewis
On Sat, 22 Mar 2003 04:17 pm, Amanda Wynne wrote:
 timeout 25442 return 0


 When it stops, it looks like this:
 pid reading 0 return 0
 pid timeout 25444 return -1


Well the pid value is clearly incorrect, (no such pid as zero) suggesting that 
the call to pthread_create failed. You may want to check the return value 
from both calls to pthread_create, although since 
Mbm_get_data() and Mbm_sleep() both print to stderr when Mb_verbose is true, 
that may not be necessary. (This should be checked anyway, so maybe the 
library maintainer would like a patch?)

The man page says that pthread_create will fail if more than 
PTHREAD_THREADS_MAX threads are active, you could check what this value is 
defined to by grepping in /usr/include or wherever the system headers are if 
you are cross-compiling.

The failure of pthread_create seems related to the fact that the function uses 
pthread_cancel, which (I think) will not release the resources from the 
created threads, instead pthread_join should be used (maybe in addition to 
pthread_cancel). From the pthread_join manpage:

When  a  joinable  thread  terminates,  its  memory  resources  (thread
descriptor and stack) are not deallocated until another thread performs
pthread_join on it. Therefore, pthread_join must  be  called  once  for
each joinable thread created to avoid memory leaks.

The two threads in this case are definitely joinable.

You know life has taken a strange turn when you're debugging someone *else's* 
code on a Saturday night :-P




-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] make menuconfig ncurses

2003-02-13 Thread Carl G Lewis

See:
http://info.ccone.at/INFO/Mail-Archives/redhat/Dec-2002/msg00514.html

Actually my /etc/sysconfig/i18n now looks like:

LANG=en_US
SUPPORTED=en_US:en:pt_BR:pt
SYSFONT=iso01.16

#LANG=en_AU.UTF-8
#SUPPORTED=en_AU.UTF-8:en_AU:en:en_US.UTF-8:en_US:en
#SYSFONT=latarcyrheb-sun16

HTH


On Friday 14 February 2003 09:18, Daniel Harper wrote:
 I have just installed Redhat 8.0 professional on a Dell PowerServer,
 however I am having problems with make menuconfig.

 Now make menuconfig works, however what is displayed is a jumbled mess, and
 the selection displays (The thing in the *) aren't being displayed
 properly.

 Any ideas? A ncurses problem or perhaps some colour or display settings???

 Any help would be appreciated as redhat technical support won't help as it
 is not classified as a 'installation support' problem.

 Daniel

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] Hard Drives

2003-02-12 Thread Carl G Lewis
On Thursday 13 February 2003 16:54, David wrote:
 yes.. but what about reliability? is there a difference? I need two new
 drives, but I much prefer reliability to size (I'm told that size isn't
 everything ;-)

Every time I go see the friendly chinese guy down at my local pc shop for a 
new drive, he sells me a different brand. I asked him about this and he said 
that the quality of a given brand can vary greatly, because manufacturer A's 
drives can be made in different places at different times. He sells whatever 
he thinks is best this week (up to you whether you believe that!).

Actually I believe him because there have been long discussions on /. about 
hard drives, and in the same thread you'll find slashbot A arguing that he 
swears by brand Foo, whereas slashbot B lost his job, car and girlfriend due 
to a crashed drive of the same brand.

Moral of the story:
ASSUME ALL DRIVES ARE CRAP.

This is OK, because Linux gives us fantabulous software RAID. If you care 
about data integrity, get two drives, do mirroring, and the chance of data 
loss is very, very small. Better yet, get 3, so that you have one on hand 
when one dies. You should still do backups, of course. Personally I use RH, 
the installer makes setting up RAID pretty easy, other distros are probably 
not that hard either. RAID costs more, but I reckon the peace of mind is 
worth it.


--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug