Futex and SysV Semaphores...

2003-07-31 Thread James Olin Oden
Does anyone know if the implementation of System V Semaphores uses futexes under the hood on nptl based systems (i.e. RH 9)? The second question is if this is the case, can I expect an incremented semaphore to be decremented when a process dies, or is that too much to expect (or perhaps would

Re: internal buffer overflow in init...

2003-06-18 Thread James Olin Oden
On Fri, 13 Jun 2003, James Olin Oden wrote: OK, this is the original problem I was trying to figure with the debug version of init. In house we have an app that was starting a process manager from init. It was starting after the sysinit entry and before the runlevel script entries

Re: DEBUG output in init causes fifo to be ignored...

2003-06-16 Thread James Olin Oden
On Fri, 13 Jun 2003, James Olin Oden wrote: I was experience a problem with init (not running rc scripts; I will deal with this in seperate email), and so I pulled down the SysVinit srpm and rebuilt it with DEBUG set to 1 in init.h. This cause init to print lots of nice debug output

Re: DEBUG output in init causes fifo to be ignored...

2003-06-16 Thread James Olin Oden
On Mon, 16 Jun 2003, Bill Nottingham wrote: James Olin Oden ([EMAIL PROTECTED]) said: and looked at things. The last syscall I see init in after running the init 6, is: futex(0x4212f1f4, FUTEX_WAIT, -1, NULL What glibc are you running? I am running: glibc-2.3.2-27.9

Re: DEBUG output in init causes fifo to be ignored...

2003-06-16 Thread James Olin Oden
On Mon, 16 Jun 2003, Bill Nottingham wrote: James Olin Oden ([EMAIL PROTECTED]) said: On Mon, 16 Jun 2003, Bill Nottingham wrote: James Olin Oden ([EMAIL PROTECTED]) said: and looked at things. The last syscall I see init in after running the init 6

Re: DEBUG output in init causes fifo to be ignored...

2003-06-16 Thread James Olin Oden
On Mon, 16 Jun 2003, Bill Nottingham wrote: James Olin Oden ([EMAIL PROTECTED]) said: On Mon, 16 Jun 2003, Bill Nottingham wrote: James Olin Oden ([EMAIL PROTECTED]) said: and looked at things. The last syscall I see init in after running the init 6

DEBUG output in init causes fifo to be ignored...

2003-06-13 Thread James Olin Oden
I was experience a problem with init (not running rc scripts; I will deal with this in seperate email), and so I pulled down the SysVinit srpm and rebuilt it with DEBUG set to 1 in init.h. This cause init to print lots of nice debug output, but... When its in this mode on our 2GHz, duel

internal buffer overflow in init...

2003-06-13 Thread James Olin Oden
OK, this is the original problem I was trying to figure with the debug version of init. In house we have an app that was starting a process manager from init. It was starting after the sysinit entry and before the runlevel script entries (it needed to be around when the runlevel scripts were

Re: Creating a RedHat based distribution

2003-06-04 Thread James Olin Oden
On Wed, 4 Jun 2003, Jonathan Atkinson wrote: Hi, I am considering creating my own little Linux distribution for use by me and my friends. I'm an intermediate linux user, and I would like to do this to enhance my knowledge of Linux, plus I think it's be a fun little project :-) I am most

Re: Newt/Slang and non VGA tty's.

2003-03-18 Thread James Olin Oden
On Mon, 17 Mar 2003, Bill Nottingham wrote: slang and ncurses in 7.3 don't support unicode. If you run programs using those in a unicode locale, you'll have issues. (ncurses in 8.0 still has problems in unicode, FWIW.) If I remember well this problem occured somewhere between

Re: Newt/Slang and non VGA tty's.

2003-03-18 Thread James Olin Oden
James Olin Oden ([EMAIL PROTECTED]) said: Hi All, I have been using libnewt to build various system administration utitilities, and things were working pretty good until I went to Phoebe. Where I have problems is when I run the programs in a non-vga tty (such as an ssh sessioin

Newt/Slang and non VGA tty's.

2003-03-17 Thread James Olin Oden
Hi All, I have been using libnewt to build various system administration utitilities, and things were working pretty good until I went to Phoebe. Where I have problems is when I run the programs in a non-vga tty (such as an ssh sessioin or accross a serial port). I found an interesting work

Re: Is ksh available by default on Linux boxes???

2003-02-25 Thread James Olin Oden
If no, can we get one (as a patch or a package)? If my scripts are running with ksh originally (i.e. on other Unix boxes), what is the best option available with us on Linux boxes? As someone has already said it is available; the rpm is pdksh. Beyond that, bash is mostly a superset of

Re: Xconfigurator ncurses

2002-12-10 Thread James Olin Oden
Em Qua 04 Dez 2002 04:48, John escreveu: On Wed, 4 Dec 2002, Carlos wrote: I was thinking about writing a application like Xconfigurator using ncurses. What do you think? Why? It is hard to find documentation about newt. Ncurses is mored documented and used. Also ncurses is

Re: Xconfigurator ncurses

2002-12-10 Thread James Olin Oden
Hi James, On Tue, 10 Dec 2002, James Olin Oden wrote: Em Qua 04 Dez 2002 04:48, John escreveu: It is hard to find documentation about newt. Ncurses is mored documented and used. Also ncurses is defined in LSB . Just look in /usr/share/doc/newt-devel*/tutorial.sgml

Re: thread save mysql client...

2002-11-11 Thread James Olin Oden
maybe a better place would be the mysql folks. Theymight be able to tell you if the default configuration under Linux is with threads ( server client ). And if there is a choice, how can one tell what one has. If they cant tellwhat u have, then maybe a build would be good for your

Re: thread save mysql client...

2002-11-08 Thread James Olin Oden
maybe a better place would be the mysql folks. Theymight be able to tell you if the default configuration under Linux is with threads ( server client ). And if there is a choice, how can one tell what one has. If they cant tellwhat u have, then maybe a build would be good for your state

thread save mysql client...

2002-11-04 Thread James Olin Oden
Hi All, We are porting an application to Linux from Solaris that is threaded and uses mysql. On Solaris we would link against the thread safe/blessed libmysqlclient_r. None of the RedHat RPM's seem to come with this library? Is it unnecessary under linux or do we need to build our own mysql

Re: a simple question

2002-09-03 Thread James Olin Oden
What is the command to open an xml file on Linux RH7.2? vi (-: ...james Thanks __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com ___

Re: perl module version ordering differing from RPM

2002-09-03 Thread James Olin Oden
No, the RPM version compare algorithm is very simple, and well documented. It does the best it can given that is has to handle all the different versioning schemes used by different programs with a single function. It gets it right probably 90% of the time. The challenge is that if you

Re: perl module version ordering differing from RPM

2002-09-03 Thread James Olin Oden
On Tue, 3 Sep 2002 09:26:22 -0400 (EDT), James Olin Oden [EMAIL PROTECTED] wrote: This could be extended further such that a rpm could provide a function that comparies versions (kind of like passing a function to the sort routines that understands how to discern the magnitude

Re: Passwd file conversion?

2002-08-19 Thread James Olin Oden
While the formats of the files are the same, the Salts used for the crypt functions are not the same. What might you mean by that? I do understand what the salt is for, so are you saying that Solaris uses a different range of characters for the two byte salt? If not what are you saying?

Re: Passwd file conversion?

2002-08-19 Thread James Olin Oden
Is there not a function to convert from crypt to md5 passwords, similar to pwconv and grpconv ? Is it even possible? -Thomas Hi Thomas, pwconv and grpconv do not convert the crypt hash, they move it forom /etc/passwd to /etc/shadow, and /etc/group to /etc/gshadow. Hashes are intended

Re: Passwd file conversion?

2002-08-16 Thread James Olin Oden
Does anyone know if you can transport a Solaris Passwd file to a Linux Server? If so How? Hi Albert, Without getting too deep into the details, yes. The passwd file and shadow file on Solaris is: /etc/passwd /etc/shadow just like on Linux. They are both text files with

/etc/sysctl.conf...

2002-08-12 Thread James Olin Oden
Hi All, I noticed today that /etc/sysctl.conf actually gets ran twice. Once in /etc/rd.d/rc.sysinit and once in /etc/init.d/network. Why is this? Is this a bug? Thanks...james ___ Redhat-devel-list mailing list [EMAIL PROTECTED]

Re: /etc/sysctl.conf...

2002-08-12 Thread James Olin Oden
James Olin Oden ([EMAIL PROTECTED]) said: I noticed today that /etc/sysctl.conf actually gets ran twice. Once in /etc/rd.d/rc.sysinit and once in /etc/init.d/network. Why is this? Is this a bug? No, it's so 'service network restart' does the right thing if you change settings

Re: Number of CPU's...

2002-07-26 Thread James Olin Oden
On Thu, 25 Jul 2002, James Olin Oden wrote: Hi, A while back we had a discusion about how to detect the number of cpu's that were really on the system. The previous discussion was centered around hyperthreading, but I am not really concerned with that aspect of the problem

Number of CPU's...

2002-07-25 Thread James Olin Oden
Hi, A while back we had a discusion about how to detect the number of cpu's that were really on the system. The previous discussion was centered around hyperthreading, but I am not really concerned with that aspect of the problem. What I would like to be able to do is be able to know how

Dynamic or Static major minor number allocation...

2002-07-15 Thread James Olin Oden
Hi All, Where I am working we developing some device drivers for some proprietary hardware. In the development of these device drivers we came across the issue of major and minor numbers for the device. On one hand we can staticly assign them; on the other hand we can get the dynamically.

Re: OpenSSH

2002-06-26 Thread James Olin Oden
I know you're all probably aware of this by now, but a serious hole is in all versions of OpenSSH shipped with all versions of RedHat: http://online.securityfocus.com/archive/1/278818/2002-06-23/2002-06-29/0 This was, according to Theo De Raadt, not supposed to come out till after a

Re: pls help me

2002-06-18 Thread James Olin Oden
If you really want to know how to do it: http://www.linuxworks.com.au/redhat-installer-howto.html which is the best documentation on the net concerning this. I know you say you don't want to deal with details, but if you really want to do this you are going to have to swim in them.

Re: Build/Development environments...

2002-06-15 Thread James Olin Oden
On Fri, 14 Jun 2002, James Olin Oden wrote: The only issue with that is how well it scales. Also, I quickly did look at it and it looks like you have to provide a file per environment (i.e. representing the HD). I bet you could have that file live on a NFS mount, but again I wonder

OT: clearcase ...

2002-06-15 Thread James Olin Oden
...Not that this has anything to do with the original topic but since you mention ClearCase, I'll briefly add that _every_single_person_ I know who knows the source-code management marketplace says to stay away from ClearCase like it's the plague. Favored systems are cvs and Perforce.

Re: GCC Differences

2002-06-14 Thread James Olin Oden
float toot(int x, float y) { if (y == 20) { return y; } else { toot(x, x*y); } } The code itself is broken as other have said you need: return(toot(x, x*y)); The reason it ever did work has to do with the internal mechanics of how function calls are

Build/Development environments...

2002-06-14 Thread James Olin Oden
Hi All, I have been given the task reasearching possible ways of setting up a development environment such that: - Multiple releases can be supported on the same machine (e.g. the perl in the 7.3 and 7.2 on the same machine). - Try to avoid rebuilding (and altering)

Re: Build/Development environments...

2002-06-14 Thread James Olin Oden
Have you looked at UML (User Mode Linux) No I haven't but that is exactly the sort of thing I was looking for. Not that its the perfect soultion necessarily (I still have to play with it), but I needed some advice from out side the box I was thinking in (-:

Re: What about breaking rc.sysint up into an rc.sysinit.d

2002-06-05 Thread James Olin Oden
Some of the pieces I am building and adding to my RedHat installation are requiring modifications to the /etc/rc.d/rc.sysinit script. What would be the response to creating an rc.sysinit.d, breaking the rc.sysinit script into smaller scripts that live in rc.sysinit.d and modifying

Re: What about breaking rc.sysint up into an rc.sysinit.d

2002-06-05 Thread James Olin Oden
James Olin Oden wrote: Some of the pieces I am building and adding to my RedHat installation are requiring modifications to the /etc/rc.d/rc.sysinit script. What would be the response to creating an rc.sysinit.d, breaking the rc.sysinit script into smaller scripts that live

Re: implantisomd5 returning 6?

2002-06-03 Thread James Olin Oden
printf returns the number of characters written; eg., 6. ;) So since the int main() function did not return anything like it should (and thus populate the stack), the printf that did return something ends up populating the stack with its return instead. I am actually glad someone oopsed on

Intel Illegal Instruction patch?

2002-05-29 Thread James Olin Oden
Hi All, This morning I was requested to build a 2.4.18 kernel with a recent Intel patch which supposedly fixes a problem with that has the symptoms of illegal instructions being sent to the processor. The real issue had to do with the order that page tables are freed on P4 SMP systems. For

Re: Detecting number of Physical CPUs in Intel Hyperthreaded CPU

2002-05-21 Thread James Olin Oden
processors=`egrep -c ^cpu[0-9]+ /proc/stat || :` I don't believe this works. It simply tells me how many logical processors I have on my machine, i.e. it yields 4 opposed to 2. Does anyone know the current state of hyper-threading support for Linux? I've heard that

Re: Altering the MANPATH in RPM

2002-05-04 Thread James Olin Oden
Some of the ways to work out environment for /opt applications are a) You add PATH, MANPATH, LD_LIBRARY_PATH etc to all Handled by man by default with AUTOPATH so MANPATH can be left alone. Just fix PATH Again, this is only handled if your files you have man pages for are

Re: Altering the MANPATH in RPM

2002-05-04 Thread James Olin Oden
SNIP is invoked from /opt/bin which then sets the environment before launching the application from /opt/application/bin. So add a man link farm as /opt/man to match those in /opt/bin It does work, though migh not be pretty if you have many man pages. Also, I imagine that

Re: hdlist check?

2002-05-04 Thread James Olin Oden
does anyone have a good tool to check if hdlist generated by genhdlist is useable and it's not gonna crap out on my next kickstart? any of those tools in anaconda-runtime? i check for two versions of same package, each comps entry should stat and rpm in RPMs, anything else? v I know

Re: glob'in the MANPATH (Was: Altering the MANPATH in RPM)

2002-04-29 Thread James Olin Oden
On Sat, 27 Apr 2002, Riku Meskanen wrote: Ok, spent some more time on it and it config directory is now fully functional with relevant IMHO security checks etc. Thanks Riku. I will download them today and try them out. Also, as soon as I get a chance I will closely examine your patch.

Re: Passing parameters with options to a C program

2002-04-29 Thread James Olin Oden
I need to pass some parameters to a C prorgam, but in the form program_name -i input_file -o output_file . There is another way than inspecting the String[] that comes as parameter in main ? If it is, please let me know, because i think it's better than my solution!!

Re: Altering the MANPATH in RPM

2002-04-29 Thread James Olin Oden
James Olin Oden wrote: - SNIP - I like the man.config.d idea, but I think gnu-man has a solution already in place. In the man(1) page MANPATH_MAP and the NOAUTOPATH control the automatic construction of MANPATH. if NOAUTOPATH is not set in /etc/man.config then it can

Re: next release

2002-04-29 Thread James Olin Oden
Presumably he's one who hopes that Red Hat will eventually understand that its customers really do need to plan these things. And I would hope that maybe Red Hat will finally think about their business plan... Some how - with a ratio of 1000:10 (10 purchases for almost every 1000

Re: Altering the MANPATH in RPM

2002-04-26 Thread James Olin Oden
- SNIP - IMHO, best way I can think would be to enhance GNU man to support include directory, like xinetd with /etc/xinetd.d, logrotate with /etc/logrotate.d etc. Thus patch it use /etc/man.config.d if it already doesn't and contrib to project :) Actually, I do think that idea is better

Re: smp kernel rpm from rawhide

2002-04-25 Thread James Olin Oden
Hello All, I am trying to build an smp kernel rpm from src rpm provided at rawhide. For some reason I get plenty of errors and build fails. UP/BOOT kernels build fine from the same src rpm. Am I doing something wrong, or there is a problem? Hi Leonid, Could you posibly send the

Re: Altering the MANPATH in RPM

2002-04-25 Thread James Olin Oden
I guess since know one has responded to this question concerning a clean way for an RPM to alter the MANPATH (i.e. alter it non-destructively and using a safe mechanism to do so) says that there is not such a clean method (please someone correct me if I am wrong). If this is the case

Re: Altering the MANPATH in RPM

2002-04-25 Thread James Olin Oden
On Thu, 25 Apr 2002, James Olin Oden wrote: The /opt/package/{etc,bin,man} practise can lead to quite riducule length with PATH, MANPATH etc. components when you have plenty of softare in your system, so beware. Agreed, but there are times when you don't want your stuff to go

Altering the MANPATH in RPM

2002-04-24 Thread James Olin Oden
Hi All, I have built a set of RPMs that install to some place like: /usr/build with bin, man and lib directories under their. I would like to in the RPM make the man pages from these RPM's available. I tried altering the MANPATH, but when I did this it completely overrided

X Server selection by anaconda

2002-04-15 Thread James Olin Oden
I am trying to build a pared down RH distribution (fits on one CDROM and installs itself [the kickstart config is on CDROM]). Anyway, most everything works, except that now I am trying to add minimal X support. I mistakenly thought that the X servers would be part of the comps files, and so