Linux-Development-Sys Digest #588, Volume #6 Tue, 6 Apr 99 12:14:58 EDT
Contents:
NFSD-Bug on Solaris with Linux clients. (Part II) (Oliver Stahlhut)
Sockets? connect? (Papa Aquilino)
Re: CodeWarror for Linux (was: Re: Programming tools for ...) (Michael Powe)
documentation/specification for ext2fs and iso9660 (Jan Gl�scher)
Re: Devloping Linux apps on NT? (Gerhard Wesser)
Re: threads and stacksize (Wolfram Gloger)
Re: Trusted Linux (Tim Smith)
Re: Programming tools for Linux/Unix: Editor, IDE, Frontend to GCC. (Donal K.
Fellows)
Logging incoming users ("Rick Gocher")
Re: You can now use Winmodems in Linux!!!!!!! (Frank v Waveren)
Re: runnig more than one netscape window (Roland Latour)
Re: SMP under LINUX (BL)
----------------------------------------------------------------------------
From: Oliver Stahlhut <[EMAIL PROTECTED]>
Subject: NFSD-Bug on Solaris with Linux clients. (Part II)
Date: Tue, 06 Apr 1999 10:03:59 +0200
Hello!
A few weeks ago i posted to this newsgroup complaining about Linux NFS
problems with Solaris NFS servers (truncated files while writing to the
server, etc). It turned out that the problems weren't related to the
Linux side but to the SUN Servers (thanx Linus ;) ... well I got the
patches for SUN and they solved the problem (patched
/kernel/misc/nfssrv).
Unfortunately there is still one problem. There is no official patch for
Solaris 2.5.1 (!) - i contacted SUN and was able to get the testpatch
(ID 105299-02(T)). After installing it on more than 30 machines - well
shouldn't have done that in the first place - I got interesting failure
reports from the users. The NFSD-problem was solved, but now the audio
devices, X-servers, etc didn't work properly anymore. Very old machines
weren't able to start the Xlogin anymore ...
SO..... be careful. Don't (test)patch your 2.5.1, but install Solaris
2.6 or 7.0, or best of all: get more PC's with Linux 2.2.x !
Oliver
--
/*
Oliver Stahlhut - Universitaet Hannover
Institut f�r Theoretische Nachrichtentechnik
und Informationsverarbeitung (TNT)
mailto:[EMAIL PROTECTED]
http://www.tnt.uni-hannover.de/~stahlhut/
*/
------------------------------
From: Papa Aquilino <[EMAIL PROTECTED]>
Subject: Sockets? connect?
Date: Mon, 05 Apr 1999 22:26:26 +0200
This is a multi-part message in MIME format.
==============FEA1D1AD030EA2529CD956E0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I want to connect to process throw a network TCP/IP (ethernet). I
Attached
two programs in that mail: server.c & client.c.
Those programs work GOOD when I execute both in the same computer. But
when I
try to execute the programs in diferents computers the program client
says:
Connection refused
Because: function connect ( ... ) return -1
Could someone help me please? Thanks to read my message.
Please replay to : [EMAIL PROTECTED]
____________________________
Enrique Cespedes Sanchez.
e-mail: [EMAIL PROTECTED]
Almeria.(Spain)
==============FEA1D1AD030EA2529CD956E0
Content-Type: text/plain; charset=us-ascii; name="cient.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cient.c"
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <string.h>
#define BUFFER 40
#define HOST1 "papa.aquilino"
#define PUERTO "kike"
extern int errno;
void error (int n);
char leer_chr (void);
main ()
{
int i;
char frase[BUFFER],frase2[BUFFER];
struct hostent *hostrec;
struct servent *servrec;
struct sockaddr_in name, addr;
int retcode, sock, newsock, flag=0;
// Obtener nombre del host local
if ((hostrec=gethostbyname (HOST1))==NULL)
error(1);
// Obtener puerto local
if ((servrec=getservbyname(PUERTO,"tcp"))==NULL)
error(2);
// Crear socket
if ((sock=socket (AF_INET, SOCK_STREAM,0))==-1)
error(3);
// Actualizar nombre de socket
name.sin_port= servrec->s_port;
name.sin_family=hostrec->h_addrtype;
name.sin_addr.s_addr=INADDR_ANY;
// Contactar con el servidor
if ((retcode=connect(sock,&name,sizeof(name)))==-1)
error(4);
// Receive from Server
if ((retcode=recv(sock,frase,sizeof(char)*BUFFER,flag))==-1)
error(6);
puts (frase);
strcpy (frase2,"CLIENT: ready");
// Send to Server
if ((retcode=send(sock,frase2,sizeof(char)*BUFFER,flag))==-1)
error(5);
}
void error (int n)
{
printf ("\nSe ha producido el error %d\n",n);
perror (strerror(errno));
exit(1);
}
==============FEA1D1AD030EA2529CD956E0
Content-Type: text/plain; charset=us-ascii; name="server.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="server.c"
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <ctype.h>
#define BUFFER 40
#define HOST1 "papa.aquilino"
#define PUERTO "kike"
extern int errno;
inline void error (int n);
main ()
{
char frase[BUFFER],fin=0,chr;
struct hostent *hostrec;
struct servent *servrec;
struct sockaddr_in name, addr;
int retcode, sock, newsock, len=0;
if ((hostrec=gethostbyname (HOST1))==NULL) error(1);
// Get local port -- Obtener puerto local
if ((servrec=getservbyname(PUERTO,"tcp"))==NULL) error(2);
// Create socket -- Crear socket
if ((sock=socket (AF_INET, SOCK_STREAM,0))==-1) error(3);
// Actualizar nombre de socket
name.sin_port= servrec->s_port;
name.sin_family=hostrec->h_addrtype;
name.sin_addr.s_addr=INADDR_ANY;
// Enlazar nombre al socket
if ((retcode=bind(sock,&name,sizeof(name)))==-1)
{
close (sock);
error(4);
}
// Listen -- Escuchar solicitudes
if ((retcode=listen(sock,1))==-1)
error(5);
// Accept -- Aceptar solicitudes
memset (&addr, 0, sizeof(addr));
len = sizeof(addr);
if ((newsock=accept(sock,&addr,&len))==-1)
error(6);
puts("\nClient found.\n");
strcpy (frase,"SERVER: ready");
// Send to client
if (retcode = send(newsock,frase,sizeof(char)*BUFFER,0)==-1) error(9);
// receive from client
if (retcode = recv(newsock,frase,sizeof(char)*BUFFER,0)==-1) error(7);
puts (frase);
// Close socket
printf ("\nSERVER: Closing ports: %d, %d\n",sock,newsock);
if (close(newsock)==-1)
error(8);
if (close(sock)==-1)
error(8);
}
inline void error (int n)
{
printf ("\nSe ha producido el error %d\n",n);
perror (strerror(errno));
exit(1);
}
==============FEA1D1AD030EA2529CD956E0==
------------------------------
From: Michael Powe <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.help,comp.unix.programmer
Subject: Re: CodeWarror for Linux (was: Re: Programming tools for ...)
Date: 06 Apr 1999 02:49:55 -0700
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
>>>>> "Tim" == Tim Triemstra <[EMAIL PROTECTED]> writes:
Tim> Michael Powe wrote:
>> >>>>> "Tim" == Tim Triemstra <[EMAIL PROTECTED]> writes:
Tim> People that think using only GNU tools is somehow "right" or
Tim> "morally sound" are simply living in a world different from
Tim> most. Computers are tools, not moral or ethical decisions.
>> This is just corporate-speak. "I'll work for anyone if the
>> price is right -- I don't care what they want me to write."
>> "The business of business is business -- not making moral or
>> ethical decisions." How you use your computer is a moral
>> decision; what software you put on it and use is a moral
>> decision. To say otherwise is just silly.
Tim> This is fanatic speak, to say otherwise is just silly :) Take
Tim> 1000 random people and ask them if the software they choose
Tim> to use on their computer is a moral decision. I'd bet you
Tim> were the minority by a percentage hard to even find on any
Tim> meter. You claim it is moral because all logic fails.
No, I claim it's a moral decision because "how you get there matters."
What you're saying is that the end justifies the means. You have no
quarrel, for instance with the use of warez? Because, after all, no
moral decision is involved in the choice of software. You simply take
whatever you want, without regard to whether what you're doing is
right or wrong?
I simply say you're wrong.
>> Hah! As though emacs, linux, FreeBSD, sendmail, Apache &c &c
>> offered nothing "of unique value worth marketing."
Tim> At the time many of these things were started noone would
Tim> have paid money for them. They evolved and were created
Tim> under free licenses. They were only able to evolve because
Tim> they were free in the beginning. Can you show me an example
Tim> of a top-notch, first release free product that could have
Tim> been sold BEFORE it was made free and put into the public?
Tim> GNOME and such were free from the beginning, before it was
Tim> even released. There were no real deadlines, etc. And,
Tim> quite honestly, it isn't worth a nickel yet...
And your point is? Hmm, okay, I see it -- this is your roundabout
justification for the general commercial practice of making the first
release of the software beta, using the general user population as
beta testers, and then charging for upgrades to fix the bugs that are
uncovered.
Tim> The commercial market has the benefit of bringing products
Tim> that are useful immediately, rather than on the timeframe it
Tim> takes for free software to either catch up or fix the bugs.
Yes, like DOS 1.0, Windows 1.0, Windows 95 ... `barely useful' would
be more like it. Beyond that, it's just silly on the face of it to
claim that development for a year behind closed doors is innately
superior to development for a year in the open. And that's all you
really are saying.
>> Doubtful. If you are as smart as you claim you are, which
>> tools you use would make no difference in the amount of money
>> you're paid for your work. However, if you don't actually know
>> the internal processes that are masked by your IDE, you may
>> well find yourself outgunned when confronted with the need to
>> do some such by hand.
Tim> Show me where I claimed I'm "so" smart. Personal attacks
Tim> just make you look more like a zealot, oblivious to reason.
You mean like the sneering remarks you made about people who use
makefiles?
Tim> If your boss asks you to write a CORBA app; you write the
Tim> entire thing by hand, write your makefile and compile - then
Tim> test and debug... I open Visual Cafe, code a little IDL and
Tim> let VCafe generate some code. I drag a button onto a panel,
And when your HD crashes, and IT takes your box off to fix it, you
tell your boss, `Hmm, I have to have my IDE to finish this job.'
Tim> IDE's are just another tool that may or may not be better for
Tim> you. But people that say "don't use an IDE you wimp" and
Tim> then say "Emacs IS an IDE" don't really pay attention to
Tim> their own words, do they? If CodeWarrior doesn't compile
Of course, I didn't say anything about using an IDE being wimpy, and I
did say that emacs WAS an IDE. So, I guess you weren't paying close
attention to what I was writing. It seems like a lot of your response
was a knee-jerk reaction to what you assumed I wrote rather than to
the actual words.
Tim> distribution requirements, then don't use it. The original
Tim> value of the software is still there regardless of its
Tim> commercial or free status. And if that value is high enough,
Tim> you should pay money for it.
I don't think money is the only measure of value. The measure of
value in software is in usage. As Stallman says, think free speech,
not free beer.
mp
powered by GNU/linux since Sept 1997
- --
Michael Powe Portland, Oregon USA
[EMAIL PROTECTED] http://www.trollope.org
"Would John the Baptist have lost his head if his name was Steve?"
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard
iD8DBQE3Cdie755rgEMD+T8RAuo6AJ0SbQ9+XCXmacJoQMKBXMnjcew73wCeJTI1
wTmdPZ22dXA9cxZ+aFR+z/g=
=/4wg
=====END PGP SIGNATURE=====
------------------------------
From: [EMAIL PROTECTED] (Jan Gl�scher)
Subject: documentation/specification for ext2fs and iso9660
Date: 6 Apr 1999 08:41:48 GMT
I was wondering if anyone knows a good an possibly complete
documentation/specification of the ext2fs and the iso9660 file system standard
besides the kernel sources ...
Thanks for any suggestions!
Jan
------------------------------
From: Gerhard Wesser <[EMAIL PROTECTED]>
Subject: Re: Devloping Linux apps on NT?
Date: Tue, 06 Apr 1999 14:05:11 +0100
[EMAIL PROTECTED] schrieb:
> On 26 Mar 1999 10:41:10 -0500, Lewis Perin <[EMAIL PROTECTED]> wrote:
> |r d t@c s.q u e e n s u.c a (Bob Tennent) writes:
> |
> |> On Thu, 25 Mar 1999 17:21:43 -0600, Bill Zimmerly wrote:
> |> >> Without sounding like treason can anyone provide any useful advice on how
> |> >i
> |> >> can go about developing linux apps on a NT workstation?
> Wait for VMWare to be stable for NT, and run linux in a Window!:-)
> I am not sure if that would be stable, so I'd vow for NT in Xwindows.:-)
> Pavel
He Parvel,
do you rearly want to wait a so long ????? :-))
Gerhard Wesser
[EMAIL PROTECTED]
------------------------------
From: Wolfram Gloger <[EMAIL PROTECTED]>
Subject: Re: threads and stacksize
Date: 06 Apr 1999 15:19:26 +0200
Andreas Jusek <[EMAIL PROTECTED]> writes:
> I seem to have a problem with the stacksize inside a multithreaded program.
> I have already set the pthread_attr_setstacksize, but yet I can't
> manipulate the stacksize of the mainthread. How can I adjust that size?
ulimit -s (in bash), or use ulimit() in your program. Note that in
order to raise the max. stack size above the soft limit, you need root
privileges.
Regards,
Wolfram.
------------------------------
From: [EMAIL PROTECTED] (Tim Smith)
Subject: Re: Trusted Linux
Date: 6 Apr 1999 06:16:19 -0700
Peter Samuelson <[EMAIL PROTECTED]> wrote:
>Not quite the same -- kernel support for capabilities is (AFAIK)
>relatively complete and functional, whereas ACL's are at the moment
>just hooks. sct apparently helped write preliminary ext2 support for
>ACL's but didn't release it at least partially because they are not
>useful without significant user-space support (hacks in libc, hacks in
>`tar', `cp' and the like, hacks in rpm/dpkg and their package formats,
>etc). This makes no sense to me, since that makes it a chicken-&-egg
>problem. The logical place to break the cycle is in kernel space, as
>with capabilities.
>
>I strongly suspect I do not know the whole story, but I would *love* to
>have ACL's to play around with even if `mv' couldn't preserve them
>across mount points.
ACL's only require significant user space support if you implement them
incorrectly. (They also don't need special support in the file system
if implemented correctly).
For the right approach, study FILDAE on TOPS-10 (the idea, not the
implementation--the implementation was a kludge leading to security
problems, but the idea is sound). I've posted descriptions of how
that scheme would work on Unix to usenet and to the kernel mailing
list in the past, so a search should find them if anyone is curious.
--Tim Smith
------------------------------
From: [EMAIL PROTECTED] (Donal K. Fellows)
Crossposted-To:
comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.help,comp.unix.programmer
Subject: Re: Programming tools for Linux/Unix: Editor, IDE, Frontend to GCC.
Date: 6 Apr 1999 13:32:32 GMT
In article <[EMAIL PROTECTED]>, Lee <[EMAIL PROTECTED]> wrote:
> The best programmer I ever knew once said to me, in all seriousness,
> "Debugging is a complete waste of time. Just write it correctly to start
> with."
>
> Easy for him to say.
He's right though. If you've adequately designed and planned your
program you'll either have no problems at all, or at the very least
will know exactly where it went wrong from the description of the
failure.
Wish I was that disciplined...
Donal.
--
Donal K. Fellows http://www.cs.man.ac.uk/~fellowsd/ [EMAIL PROTECTED]
Department of Computer Science, University of Manchester, U.K. +44-161-275-6137
--
"And remember, evidence is nothing." - Stacy Strock <[EMAIL PROTECTED]>
------------------------------
From: "Rick Gocher" <[EMAIL PROTECTED]>
Subject: Logging incoming users
Date: Tue, 06 Apr 1999 14:55:12 GMT
Hi All,
we offer a dialin service to our customers who until now have paid a flat
fee to access our data. We would like to provide 1.900 service and bill our
clients according to which number they come in on. Is there a way I can see
the number the remote user is dialing from and is there software which will
help me put this into our billing cycle? I'm not sure what format the
information would be in so I don't know how we would get it into our billing
system. i.e. 900.xxx.xxxx = .25 per min ?
thanks for any help,
Rick
------------------------------
From: [EMAIL PROTECTED] (Frank v Waveren)
Subject: Re: You can now use Winmodems in Linux!!!!!!!
Date: Tue, 06 Apr 1999 14:56:12 GMT
True, that might work.. It would depend on if the linux kernel sees
the winmodem as an accepted device. Anybody got A) a winmodem and B)
loads of spare time and C) A lot of courage? :-)
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Viljo Hakala) writes:
> On Mon, 05 Apr 1999 23:49:38 GMT, Frank v Waveren <[EMAIL PROTECTED]> wrote:
>>You can't use a winmodem with vmware because vmware relies on the host
>>OS to use the hardware afaik.
> That's true, but perhaps you're forgetting the fact how winmodems work.
> Winmodems are seen as dumb com-devices, so yes Linux "sees" the device,
> but it isn't initialized as winmodes are setup by software.
> In this case running windoze under vmware initialized the
> com device, so I believe this should work.
>
> However,if it does work it shouldn't be hard to capture the traffic that
> the windows drivers send to the device in order to control the modem.
> This way you probably could develop a set of drivers for Linux.
>
> --
> vh
--
Frank v Waveren
[EMAIL PROTECTED]
ICQ# 10074100
------------------------------
From: Roland Latour <[EMAIL PROTECTED]>
Subject: Re: runnig more than one netscape window
Date: Tue, 06 Apr 1999 07:29:16 -0700
Bill Anderson wrote:
>
> PiX wrote:
> >
> > I have a problem with nestcape running more than
> > one windows it seems that the kernel isn't capable
> > of managing differnt server is ther a special
> > thing to do (like multicasting??)
>
> Can you be more specific? I tend to have several Netscape windows open
> at any given moment.
Me too. I think what he's saying is that if Netscape is (say)
interpreting
a web page, the news and mail screens lock up. He blames the kernel's
ability to multitask, but the real problem is that the 3 Netscape
windows come from one process with one thread. Can Mozilla do multi-
threading to get around this? Looks to me like this is the price of
integrating HTML/news/email. BTW, I use Netscape3.04.
--
Retired Tech Support Engineer http://home.cdsnet.net/~rolandl
"Beer is proof that God loves us and wants us to be happy." -Ben
Franklin
------------------------------
From: BL <[EMAIL PROTECTED]>
Subject: Re: SMP under LINUX
Date: Tue, 6 Apr 1999 14:09:51 GMT
asus p2bd.
I have built 2 systems with these boards. very stable. highly recommended.
Gerhard Wesser <[EMAIL PROTECTED]> wrote:
: Hello out there,
: I am im planing to get a dual Pentium II board for use under Linux.
: Does anyone out there have some information about this ???
: I am interessting how Linux work with 2 CPU's.
: Gerhard Wesser
: [EMAIL PROTECTED]
------------------------------
** 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 (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
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
******************************