Linux-Development-Sys Digest #847, Volume #6 Sun, 20 Jun 99 08:14:16 EDT
Contents:
Re: how to make tasks periodic ? ("Soohyung Lee")
Re: how to make tasks periodic ? (Arun Sharma)
Tired of 9 to 5 work? Stay at home and make $500 or more/week! ("TPS Futures")
Writing TTY drivers ([EMAIL PROTECTED])
Re: Linux uid limits! ("Scot E. Wilcoxon")
htpasswd for Linux (John Straumann)
Re: Pro/ENGINEER FlexLM and LINUX (Dave Sartori)
Needed: Driver for Motorola V.90 PCI modem ("SweetGear")
Mount problems (Zoltan Kocsi)
Re: Linux uid limits! ("Roberto P.Martins Jr.")
Q: setup signature?? ("Andrew Shiue")
Embedded Linux Question ("Adam")
Re: Linux uid limits! ("Roberto P.Martins Jr.")
Re: Embedded Linux Question ("Sarlock T.")
Re: Linux uid limits! (Justin Vallon)
Re: using C++ for linux device drivers (Justin Vallon)
Re: Can Linux Boot and Run without a BIOS? (Villy Kruse)
----------------------------------------------------------------------------
From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: Re: how to make tasks periodic ?
Date: Sun, 20 Jun 1999 04:16:37 +0900
> man sched_setscheduler. Linux doesn't support deadline scheduling AFAIK.
I know that Linux doesn't support deadline scheduling.
So, I'm trying to support it.
To do that, I need to know how to make tasks periodic .
That is what I want to know ...
OK?
Can you tell me how to ?
Thanks for your interest ..
- Lee -
------------------------------
From: [EMAIL PROTECTED] (Arun Sharma)
Subject: Re: how to make tasks periodic ?
Reply-To: [EMAIL PROTECTED]
Date: Sat, 19 Jun 1999 18:44:44 GMT
On Sun, 20 Jun 1999 01:36:51 +0900, Soohyung Lee
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have some question on scheduling.
>
> 1. I want to make tasks executed periodically and to support EDF scheduling.
> How can I make tasks periodic ?
>
man sched_setscheduler. Linux doesn't support deadline scheduling AFAIK.
> 2. I think it may be the problem that schedule() will not be called
> periodically(means predictably).
If a reschedule is needed, schedule is guaranteed to be called in
at most 1/HZ seconds. On the i386, that is 0.01 sec.
-Arun
------------------------------
From: "TPS Futures" <[EMAIL PROTECTED]>
Crossposted-To:
comp.society.development,comp.software.measurement,comp.sys.mentor,cz.soc.mensa
Subject: Tired of 9 to 5 work? Stay at home and make $500 or more/week!
Date: Sun, 13 Jun 1999 23:58:48 -0700
Stay home and make money doing simple assembly. No experience required,
training provided - full or part time.
How to start? Check our website out!
www.members.cnx.net/mdacre/tps.htm
------------------------------
From: [EMAIL PROTECTED]
Subject: Writing TTY drivers
Date: Sat, 19 Jun 1999 20:51:19 GMT
I am currently writting a TTY driver for Linux. I have been unable to
find any information on doing this, other than deciphering the nearly
comment-free kernel sources tty.h, tty_driver.h, tty_ldisc.h, tty_io.c,
n_tty.c, serial.c, and so on. Can anyone point me to some
documentation which might cover aspects such as use of the tty_struct
and tty_driver structures and using the TTY flip buffer? Any help
appreciated!
pzdev
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "Scot E. Wilcoxon" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: Sat, 19 Jun 1999 19:50:50 -0500
> How very big sites, offering web space and
> email like Geocities and Xoom, handle million user accounts?
Those sites don't need to assign a uid to provide
services. Those services are just data handling and
can be entries in databases. They don't require that
they be implemented using the common Unix tools.
------------------------------
From: John Straumann <[EMAIL PROTECTED]>
Subject: htpasswd for Linux
Date: Sat, 19 Jun 1999 23:57:23 GMT
Any idea where I can get this? The versions I found on the web for UNIX
won't compile...
--
John J. Straumann [EMAIL PROTECTED]
"Large amounts of money tend to quench any scruples I might be
having." -- Stephan Wilms
------------------------------
From: Dave Sartori <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.cad.pro-engineer,comp.os.linux.development.apps
Subject: Re: Pro/ENGINEER FlexLM and LINUX
Date: Sat, 19 Jun 1999 21:43:17 -0500
PTC does not use FlexLM by itself. It is incorporated and modified as part
of the ProE software. You could probably get PTC to generate codes for a
Linux hostid but they wouldn't work.
Dave Sartori
Project Leader
Kohler Co.
Kohler, WI
[EMAIL PROTECTED] wrote:
> Hello all!
>
> Has anyone tried to use the LINUX version of FLEXlm to do software
> license management for Pro/ENGINEER? I'd like to dump my NT
> file/license server in favor of a LINUX box. File serving is no prob
> for LINUX, of course, but with FLEXlm? Does anyone have experience with
> changing FLEXlm servers in general? Also, I'm planning on keeping all
> the same hardware; this is just and OS change (heh, just!).
>
> BTW, sorry if the cross posting is inappropriate, did a search for
> FLEXlm and posted to what may be relevant groups.
>
> some references:
> Parametric Technology Corp. -- http://www.ptc.com
> GLOBEtrotter Software, Inc. -- http://www.globetrotter.com
> LINUX General Info Home Page -- http://www.linux.org
>
> -Adolphe Youssef
>
> (note to PTC: Hurry up with Pro/E for LINUX!!!!!)
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
------------------------------
Reply-To: "SweetGear" <[EMAIL PROTECTED]>
From: "SweetGear" <[EMAIL PROTECTED]>
Subject: Needed: Driver for Motorola V.90 PCI modem
Date: Sun, 20 Jun 1999 02:45:47 GMT
Needed: Driver for Motorola V.90 PCI modem
Does it exist?
Thanks,
Brian
------------------------------
From: Zoltan Kocsi <[EMAIL PROTECTED]>
Subject: Mount problems
Date: 20 Jun 1999 11:53:40 +1000
I have a CD (an Atmel chip catalog) which I'd like to mount.
I have the following entry in fstab:
/dev/scd0 /cd0 iso9660 noauto,ro,users,unhide,mode=0555,uid=500,gid=100 0 0
As far as I understand, this means that /dev/scd0 can be mounted to
/cd0 by any user, unmounted by any user, all files on the volume will
have r-x for everyone, read only filesystem, filesystem root is owned
by 500.100, that is in this case, zoltan.users.
Interestingly enough, issuing the command (as a user)
mount /cd0
results this:
[root@tade /root]# ls -ld /cd0
drwxrwx--- 5 zoltan wheel 2048 Jan 20 08:32 /cd0
That is, the CD is mounted so that it belongs to 'zoltan' and to
group wheel (which is 10).
This is very unfortunate, because users other than 'zoltan' can't
really read this CD at all. It seems as if the gid= option did not
work.
As root, let's see what's on the CD:
[root@tade /root]# ls -l /cd0
total 1054
-rw-rw-r-- 1 zoltan wheel 1078 May 22 1998 AUTORUN.ICO
-rw-rw-r-- 1 zoltan wheel 42 May 29 1998 AUTORUN.INF
drwxr-xr-x 6 zoltan bin 47104 Jan 20 06:17 Atmel
drwxr-xr-x 5 zoltan bin 2048 Jan 14 1998 adobe
-rw-r--r-- 1 zoltan wheel 998400 May 1 1998 atmel.exe
drwxr-xr-x 5 zoltan wheel 2048 Jan 14 1998 ie
-rw-r--r-- 1 zoltan wheel 201 Jan 16 05:43 index.htm
-rw-r--r-- 1 zoltan wheel 8443 Sep 15 1998 readme.txt
-rw-r--r-- 1 zoltan wheel 8443 Sep 15 1998 readme.wri
-rw-r--r-- 1 zoltan wheel 201 Jan 16 05:43 start.htm
Well, the mode= option doesn't take effect either.
Mounting by hand:
mount -t iso9660 -o mode=0555,ro,uid=500,gid=100 /dev/scd0 /cd0
results the same.
What do I do wrong ?
What would be the proper entry that allowed to anyone to mount a CD
and it would be readable to anyone in group 'users' ?
This is a RedHat 6.0 stock installation:
[root@tade /root]# uname -a
Linux tade.bendor.com.au 2.2.5-15 #12 Fri May 21 13:18:25 EST 1999 i686 unknown
[root@tade /root]# mount --version
mount: mount-2.9o
Thanks in advance,
Zoltan
PS: The reply address is invalid, if you want to send email, please
find the address in the sig.
--
+------------------------------------------------------------------+
| ** To reach me write to zoltan in the domain of bendor com au ** |
+--------------------------------+---------------------------------+
| Zoltan Kocsi | I don't believe in miracles |
| Bendor Research Pty. Ltd. | but I rely on them. |
+--------------------------------+---------------------------------+
------------------------------
From: "Roberto P.Martins Jr." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: Sun, 20 Jun 1999 02:04:12 -0300
Hi!
David B Anderson wrote:
> In article <[EMAIL PROTECTED]> you write:
> >Hi!
> >
> >I've been wondering how many user accounts a single linux box could
> >support. And taking a look at /usr/include/pwd.h, the header file with
> >functions and data structures to handle and create user accounts, I
> >found that uid is defined as unsigned int. Is it true? If true, I could
>
> Uhhhh. unsigned int is 32 bits. Not 16 bits.
You're right! I printf the result of a sizeof(unsigned int) and it was 4.
Thus, I have 2^32 (=4294967296) possible uid's.
Thanks!
>
>
> >have "only" 65535 users! How very big sites, offering web space and
> >email like Geocities and Xoom, handle million user accounts?
> >
> >--
> >Roberto P.Martins Jr.
> >mailto:[EMAIL PROTECTED]
> >http://www.geocities.com/SiliconValley/Lab/9636
> >ICQ #12393737
>
> [EMAIL PROTECTED]
--
Roberto P.Martins Jr.
mailto:[EMAIL PROTECTED]
http://www.geocities.com/SiliconValley/Lab/9636
ICQ #12393737
------------------------------
From: "Andrew Shiue" <[EMAIL PROTECTED]>
Subject: Q: setup signature??
Date: Sun, 20 Jun 1999 01:08:46 -0400
I tried to make a new kernel to support my SB-PCI64 in RH6.0. But if I use
the new image, LILO will tell me "No setup signature found" and crash!
Could somebody tell me what's that? If I use the old image, everything will
be O.K.
Thanx a lot!
--Andy
------------------------------
From: "Adam" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.m68k,sci.electronics.design,sci.electronics.misc
Subject: Embedded Linux Question
Date: Sun, 20 Jun 1999 05:15:26 GMT
Hi:
I have an idea I want to implement. The foundation of this idea resides on
an embedded controller (I personally like Motorola) running a symplified
version of a full-blown operating system (easier to develop "embedded"
applications using exisiting kernels, and APIs).
What I have in mind is a Motorola 68K series processor/controller, running a
stripped-down version of Linux. I've seen solutions using a pentium SBC
with a 3.5" Hard drive attached to it -- thats too bulky for what I want to
do.
Instead of using a hard disk, I was thinking of using Flash memory for the
ROM section (this would store the operating system, system software -- to
flash the ROM portion when the OS needs updating, etc..) and standard DIMMs
for the RAM. The thing I can't understand (or grasp) is how Linux would use
RAM as it's file system.
Taking Linux from a destribution like Red Hat for instance, it's configured
to look for an IDE or SCSI boot device (file system). How do I take that
and make it boot from flash memory. After linux is booted I'm assuming I
can use some of my available RAM and create a ramdisk (the same way I would
on a desktop PC running linux) and use that as my file system for temporary
storage.
I've seen exisiting solutions for what I'm looking for already, but I would
like to design my own.
Any help would be apprechiated.
-- Adam.
------------------------------
From: "Roberto P.Martins Jr." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: Sun, 20 Jun 1999 02:16:25 -0300
Hi!
They had to change services like FTP and email (POP & SMTP) to
authenticate users using database, isn't it?
In one of the messages I received was written that unsigned int data is
32 bits, increasing a lot the possible uid's!
"Scot E. Wilcoxon" wrote:
> > How very big sites, offering web space and
> > email like Geocities and Xoom, handle million user accounts?
>
> Those sites don't need to assign a uid to provide
> services. Those services are just data handling and
> can be entries in databases. They don't require that
> they be implemented using the common Unix tools.
--
Roberto P.Martins Jr.
mailto:[EMAIL PROTECTED]
http://www.geocities.com/SiliconValley/Lab/9636
ICQ #12393737
------------------------------
From: "Sarlock T." <sarlock@no!spam.twcny.rr.com>
Crossposted-To: comp.os.linux.m68k,sci.electronics.design,sci.electronics.misc
Subject: Re: Embedded Linux Question
Date: Sun, 20 Jun 1999 03:18:06 -0400
Greetings,
You may be interested in the following links.
Tiny Web Server (Matchbox size, linux with 16MB RAM/16MB Flash ROM)
http://www.pctvmag.com/tiny.html
Or This one which is a more direct link for the matchbox server:
http://matchbox.stanford.edu/
Jonathon Caywood
alt.energy.high-voltage
Adam wrote in message ...
>Hi:
>
>I have an idea I want to implement. The foundation of this idea resides on
>an embedded controller (I personally like Motorola) running a symplified
>version of a full-blown operating system (easier to develop "embedded"
>applications using exisiting kernels, and APIs).
>
>What I have in mind is a Motorola 68K series processor/controller, running
a
>stripped-down version of Linux. I've seen solutions using a pentium SBC
>with a 3.5" Hard drive attached to it -- thats too bulky for what I want to
>do.
>
>Instead of using a hard disk, I was thinking of using Flash memory for the
>ROM section (this would store the operating system, system software -- to
>flash the ROM portion when the OS needs updating, etc..) and standard DIMMs
>for the RAM. The thing I can't understand (or grasp) is how Linux would
use
>RAM as it's file system.
>
>Taking Linux from a destribution like Red Hat for instance, it's configured
>to look for an IDE or SCSI boot device (file system). How do I take that
>and make it boot from flash memory. After linux is booted I'm assuming I
>can use some of my available RAM and create a ramdisk (the same way I would
>on a desktop PC running linux) and use that as my file system for temporary
>storage.
>
>I've seen exisiting solutions for what I'm looking for already, but I would
>like to design my own.
>
>Any help would be apprechiated.
>
>-- Adam.
>
>
------------------------------
From: Justin Vallon <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: 20 Jun 1999 02:11:34 -0400
[EMAIL PROTECTED] (Peter Samuelson) writes:
> Nope. I cannot quote chapter and verse, but I think ANSI (and ISO, by
> extension (no pun intended)) says something like this:
>
> sizeof(char)==1
I think sizeof(X) returns the sizeof an object of type X in chars, so
this is essentially the definition of sizeof().
> sizeof(short int) >= 2
> sizeof(int) >= 2
I don't think so. You could have 8-bit short, 8-bit int, 8-bit long.
> sizeof(long int) >= sizeof(int) >= sizeof(short int)
This is true. I believe this is the only guarantee.
> sizeof(long long int) is undefined since `long long int' is undefined
>
> I understand C9X, bowing to popular convention, will define `long long
> int' to 64 bits, or at least define it at all. Currently it's a GNU C
> (and maybe others) extension, not a standard.
[ I've used it on Solaris. ] The only thing a standards organization
will say, most likely, is that sizeof(long long int) >= sizeof(long
int).
> Common practice on many Unices is to make `int' 32 bits (because too
> much software depends on this) and `long' your biggest machine word.
^ "poorly written", that is
> So if you want to use the most natural word size for your target
> machine, you should use a `long', though `int' should be reasonably
> efficient in most cases.
int is typically the most-natural integer on a machine. Most Unix
machines have processors whose natural int size is 32 bits.
If a program breaks because int is 64 bits, that is your problem, not
the compiler's problem.
Also, most compilers with 64 bit ints will have an -int64 or -int32
compile flag for, among other things, backward compatibility with
older code, support for broken legacy code, etc.
A problem with 64-bit ints is that if 32-bit ints are also an option,
alternate system libraries would be required. Then, you need
alternate X libraries, etc. That could quickly become un-fun.
--
-Justin
[EMAIL PROTECTED]
------------------------------
From: Justin Vallon <[EMAIL PROTECTED]>
Subject: Re: using C++ for linux device drivers
Date: 20 Jun 1999 02:22:16 -0400
[EMAIL PROTECTED] (Alexander Viro) writes:
> In article <7kdqj9$l1o$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
> >Hi all,
> >
> > I am working a sound driver for linux (I will probably use OSS).I
> >am planning to use C++, instead of C. Has anyone used C++ before for
> >kernel/device driver programming for linux. If so what are the
> >complications with using C++. I heard that C++ needs some OS support,
> >especially for calls like "new", "delete" and stuff like that.
>
> It will not get it. It's beaten to death many, many times. Oh, and forget
> about try and catch - they are not going to work. Ditto for standard classes
> - runtime environment is not available too.
Too bad. All you should need is:
void *operator new(size_t s) { return malloc(s); /* kmalloc, etc */ }
void operator delete(void *p) { free(p); }
Compile with -nostdinc++ -fno-exceptions.
Static constructors may need a C++ link phase, or you could warn that
C++ static constructors will not be executed.
--
-Justin
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Can Linux Boot and Run without a BIOS?
Date: 20 Jun 1999 12:28:03 +0200
In article <7kgej7$[EMAIL PROTECTED]>,
Byron A Jeff <[EMAIL PROTECTED]> wrote:
>
>The problem is the BIOS is usch a generic term that whatever code that sits
>in non-volatile memory and boots the OS can be called a BIOS, whether it's
>a PC, Mac, Alpha, SGI, or Sparc.
>
>How about can Linux be boot without using a IBM compatible PC BIOS? Then yes.
>
Could be, but before the PC and the microcomputers before that, the rom code
that booted the OS was never called BIOS. The primary purpose of the BIOS
was to support the CP/M and later MSDOS with the very basic io functions.
The typical rom code for a non-pc system have much fewer io facilities but
much more diagnostic test functions. The rom code for for example an IBM
PowerPC can hardly be called a BIOS as it does not provide IO services for
the operating system.
Villy
------------------------------
** 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
******************************