Re: How do I daemonize a process?

2007-07-23 Thread Maxime Henrion
Garrett Cooper wrote: >As the subject suggests I'm trying to determine how I can daemonize > a C process, outside of using the rc infrastructure, so that it won't > exit when the TTY exists. Does anyone know any quick references or examples? > Thanks, > -Garrett The proper way to do this is

Re: ATI drivers for FreeBSD - anything?

2005-11-21 Thread Maxime Henrion
Albert Vest wrote: > On Sat, 19 Nov 2005 01:58:25 +0200 (EET) > Vladimir Kushnir <[EMAIL PROTECTED]> wrote: > > > Hi all, > > Is there any project on FreeBSD wrapper for ATI Linux drivers (like > > nVidia's used to be)? If so - I'd be more than happy to test (sorry I can > > hardly write it myse

Re: Userland version of struct vnode ?

2006-02-14 Thread Maxime Henrion
Pranav Peshwe wrote: > Hello, > Why is the 'Userland version' struct vnode created i.e struct > xvnode (in vnode.h) ? The comment says that it is 'for sysctl'.There are > also userland versions of struct file and struct tty.Can anybody please > explain about their use ? Those structures

Re: How to Use ddb(4)?

2006-07-28 Thread Maxime Henrion
Dag-Erling Sm?rgrav wrote: > Maksim Yevmenkin <[EMAIL PROTECTED]> writes: > > so far i only got one (successful) report. would people please give > > it a try to see if work, so i can commit it. > > Please commit it. I don't see how it can do any harm. Yes please; I'd like to see this patch in H

Re: How to Use ddb(4)?

2006-07-28 Thread Maxime Henrion
maksim yevmenkin wrote: > Maxime Henrion wrote: > >Dag-Erling Sm?rgrav wrote: > >>Maksim Yevmenkin <[EMAIL PROTECTED]> writes: > >>>so far i only got one (successful) report. would people please give > >>>it a try to see if work, so i can commit it.

Re: network stack problem in sparc64?

2006-09-27 Thread Maxime Henrion
Maksim Yevmenkin wrote: > Maksim Yevmenkin wrote: > >Borja Marcos wrote: > >>Hello, > >> > >>I saw this some time ago but always forgot to report it. > >> > >>I'm running a pair of machines with FreeBSD/sparc64 (various versions, > >>one of them is running -STABLE now), and I've seen a problem wit

fdescfs oddities

2001-02-01 Thread Maxime Henrion
Hi, I run a 4.2-STABLE machine, world done this morning. I had some troubles with fdescfs. Reading the fdesc(5) manual page, I have to mount the fdescfs like I would mount procfs. But if I compile my kernel with options FDESC or if I load the fdesc.ko kernel module, I have access to /dev/

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Maxime Henrion
Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Greg Black writes: > >Matt Dillon wrote: > > > >It seems to me that you're saying that softupdates is now the > >recommended way to go -- so why does 4.2-Release still have the > >dire warnings in /sys/ufs/ffs/README.softupdates? Is that

talk(1) patch to allow 8bits characters

2001-02-27 Thread Maxime Henrion
Hello, talk(1) uses the isprint() function to determine if a character is printable. If it's not, it outputs '^' followed by the character without his 8th bit. However, isprint() and friends are broken currently on FreeBSD (at least on -STABLE), so it will never recognize an accentued ch

Re: [hackers] Re: Setting memory allocators for library functions.

2001-02-27 Thread Maxime Henrion
Tony Finch wrote: > Drew Eckhardt <[EMAIL PROTECTED]> wrote: > >In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > >>In most cases it is impossible to declare the data read-only because > >>it originally had to be read-write and you can't change its attributes > >>later. > > > >mprotect(

Re: talk(1) patch to allow 8bits characters

2001-02-27 Thread Maxime Henrion
Michael C . Wu wrote: > On Tue, Feb 27, 2001 at 08:53:09PM +0100, Maxime Henrion scribbled: > isprint() has been broken for a long long time. Clive Lin > <[EMAIL PROTECTED]> was about to fix it. I know that > we have been slacking, but please give us some time. Of course, t

Re: talk(1) patch to allow 8bits characters

2001-02-27 Thread Maxime Henrion
Matt Dillon wrote: >This is an extremely dangerous patch. A number of terminal protocols >have a 'talkback' escape sequence that allow you to write data >that the terminal then copies back as if someone typed it. I remember >using this feature quite a lot while at Berkeley to, a

Patch to disallow the build of modules

2001-03-24 Thread Maxime Henrion
Hi, Here is a patch to select the modules you want and don't want. The patch is for /usr/src/sys/modules/Makefile from RELENG_4. Then you have to put variables in make.conf (i'm writing the patch for defaults/make.conf) like this : NO_KMOD_FPU=true NO_KMOD_GNUFPU=true ... Thanks for any

Help to port brltty to BSD

2001-05-26 Thread Maxime Henrion
Hello all, I have been discussing on IRC with a blind people who can't use BSD because ``brltty'', the software used to render the console tty with braille displays, doesn't appear to work on BSD. I have been experiencing troubles while trying to compile it and moreover, it uses ``/dev/

Re: Sound driver changes between 4.2 and 4.3

2001-06-22 Thread Maxime Henrion
Farooq Mela wrote: > Hi -hackers, > > Several people have made it known to me that games such as Quake2 > which ran fine with sound under the 4.2 kernel are not able to have > sound in 4.3. I have verified this myself - with quake2 under 4.3 > ktrace reports that opening /dev/dsp fails with EBUS

Re: organization

2005-03-28 Thread Maxime Henrion
Devon H. O'Dell wrote: > On Mon, Mar 28, 2005 at 01:42:16PM -0500, c0ldbyte wrote: > > On Mon, 28 Mar 2005, mohamed aslan wrote: > > > > >hi guys > > >it's my first post here, BTW i was a Linux hacker and Linux kernel > > >mailing list member for 3 years. > > > > > >and I've a comment here , i th

Re: bus error in strsep

2005-07-07 Thread Maxime Henrion
Stefan Sperling wrote: > On Wed, Jul 06, 2005 at 12:10:23PM -0700, Maksim Yevmenkin wrote: > > Maksim Yevmenkin wrote: > > >>char *c = "whats:your:name:buddy?"; > > > > > > that is not read only copy. you can not write > > >into it. replace it with > > > > made

Re: [patch] rc.d cleanup

2005-08-01 Thread Maxime Henrion
Giorgos Keramidas wrote: > On 2005-08-01 13:55, John Baldwin <[EMAIL PROTECTED]> wrote: > >On Monday 01 August 2005 01:29 pm, [EMAIL PROTECTED] wrote: > >> This patch effects most of the rc.d scripts that utilize simple IF > >> statements, converting them to logical AND/OR's instead. For example: >

why isnt there a ext2fs.ko ?

2000-07-03 Thread Maxime Henrion
27;s a bit disappointing for new users. - Maxime Henrion To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

ldconfig behaviour when no parameters are given

2000-07-08 Thread Maxime Henrion
Hi everybody, When ldconfig is invoked without any parameters, the shared library cache is reseted to the contents of /usr/lib only. I think such a behaviour isn't very useful, especially when one knows that a lot of people come to FreeBSD after having used Linux. The first time they

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread Maxime Henrion
0 and if the dir has not world write permission. Maxime Henrion wrote: > Hi everybody, > > When ldconfig is invoked without any parameters, the shared library > cache is reseted to the contents of /usr/lib only. I think such a > behaviour isn't very useful, especia

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread Maxime Henrion
Hi, Here is the small patch to activate the -R behaviour when no arguments are given :) Thanks for helping me ! I'll work on the other modification i suggested as soon as i have enough time. Best regards, - Maxime Henrion *** /usr/src/sbin/ldconfig/ldconfig.c Sun Jan 16

config and config -r

2000-07-15 Thread Maxime Henrion
ault before any kernel message :/ Is there anything to check in order to know if I can use a config instead of a config -r ? If using a config without the -r option is dangerous, I think it shouldn't be the default. Is it the case ? Regards, -Maxime Henrion To Unsubscribe: send mail to [E

Re: config and config -r

2000-07-16 Thread Maxime Henrion
Warner Losh wrote: > In message <[EMAIL PROTECTED]> Maxime Henrion writes: > : But after rebooting on this new kernel, I had a page fault before > : any kernel message :/ Is there anything to check in order to know if I > : can use a config instead of a config -r ? If usin

config and config -r

2000-07-16 Thread Maxime Henrion
The problem is that I _DID_ a make depend after the config -r, and this haven't prevent me to get a kernel which panic'ed. Larry Rosenman wrote: > config without the -r reminds you to run a make depend. > > Larry > > Warner Losh wrote: > > > > > In me

limit processes that a user can 'see'

2000-08-13 Thread Maxime Henrion
x27;ps' doesn't suffise (in fact, if it was, I would have done it :-). What do you all think of this ? Best regards, Maxime Henrion To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

sysctl from kernel

2000-08-23 Thread Maxime Henrion
Hi, I'm new to the FreeBSD kernel and I wanted to know what are the good methods to read a sysctl value from the kernel. Is it the same interface as in user-space ? Any help or links to some documentation would be greatly appreciated :) Thanks, Maxime Henrion To Unsubscribe:

Re: sysctl from kernel

2000-08-25 Thread Maxime Henrion
f the running processes, but where this information is stored ? The function returns an int so it's probably not this :-) Second, what is an "oib" ? There are a lot of oib related stuff with sysctl and I can't understand what it is. Thanks for all future help. Maxime Henrion

Re: 4.1 lockup side question ...

2000-08-29 Thread Maxime Henrion
rowse the source code easily. It even has a little GUI but it's done primarily for console, though. Maxime Henrion Clarence Brown wrote: > As you may know I'm bashing about trying to find > the point where my 486 based machine locks up > on a warm boot. I have been programmi

Modification of the default configuration of sendmail request

2000-08-29 Thread Maxime Henrion
/mail/generics-domains')dnl Perhaps it would be nice to disallow VRFY and EXPN commands by default too. This can be easily done by adding goaway to the PrivacyOptions (and so put O PrivacyOptions=authwarnings,goaway). Hoping this will help. Regards, Maxime Henrion To Unsubscribe: se

Re: misc freebsd-internal questions.

2000-09-28 Thread Maxime Henrion
Marco van de Voort wrote: > (for the development of the Free Pascal compiler port): > > - Is there a way to easily check FreeBSD version (3.x or 4.x+, because of > the different syscallnrs for signal functions) on syscall level? > Use the sysctl kern.osreldate. > > - Can I use the assembler ins

kqueue()/kevent(), select() and poll()

2000-11-18 Thread Maxime Henrion
at it won't cause some portability problems ? Best regards, Maxime Henrion -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Where is FreeBSD going?

2004-01-06 Thread Maxime Henrion
Hi all, Since several people actually thought this mail was written by me, I'm replying here to tell it wasn't. This mail was sent by the same guy who periodically impersonate one of the FreeBSD committers to rant about the project. His mail doesn't reflect my thoughts at all. Please a

Re: [current tinderbox] failure on amd64/amd64

2004-06-17 Thread Maxime Henrion
Liam J. Foy wrote: > On Thu, 17 Jun 2004 05:47:25 -0400 (EDT) > FreeBSD Tinderbox <[EMAIL PROTECTED]> wrote: > > > TB --- 2004-06-17 08:56:11 - tinderbox 2.3 running on freebsd-current.sentex.ca > > TB --- 2004-06-17 08:56:11 - starting CURRENT tinderbox run for amd64/amd64 > > TB --- 2004-06-17 0

Re: Runtime loading

2004-09-09 Thread Maxime Henrion
db wrote: > Hi all > > In my C++ program I need to load some files/classes at runtime, so that users > can add "plugins" without recompilling my program. What functions should I > use? I'm using FreeBSD 5.3-beta2 btw. I'm not sure about C++, though I guess you could use the same functions as in

Re: Memory allocation question

2001-10-02 Thread Maxime Henrion
stem won't swap it out? > I think mlock(2) is what you want. Maxime Henrion -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Changing syscalls numbers

2001-10-31 Thread Maxime Henrion
Nickolay A.Kritsky wrote: > Hi, freebsd-hackers. > > Recently I was trying to change some syscalls numbers (i.e. syscall > exit would have number 5 and syscall open would have number 1). > My thought was, that for that operation one must edit file > /usr/src/sys/kern/syscalls.master and remake

Re: cvs commit: src/sys/vm vnode_pager.c

2001-10-16 Thread Maxime Henrion
Matthew Dillon wrote: > > This profiled output shows the system completely idle. If > something is locking up eating cpu this profile run didn't > catch it. Ok, I'll do a new one ASAP, with a system where system cpu time jump is higher. Maxime -- Don't be fooled by cheap finnish

Re: cvs commit: src/sys/vm vnode_pager.c

2001-10-16 Thread Maxime Henrion
Matthew Dillon wrote: > > The time jump is irrelevant. It's whether you feel a glitch or not > while the sync is running that counts. I don't do profiling on a sync command, I monitore the system with ``iostat -w 1'' then I see where the jump occurs and since it occurs every 30s, I try

Re: cvs commit: src/sys/vm vnode_pager.c

2001-10-16 Thread Maxime Henrion
Matthew Dillon wrote: > Well, 11% over a period of a single second, once every 30 seconds > makes sense if there are a lot of vnodes cached. I think you are > seeing the same issue, just that on -stable there is much lower > overhead. > > Basically we have two routines that

Re: D_KQFILTER & ltmdm: Patch for review?

2003-03-05 Thread Maxime Henrion
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "M. Warner Losh" <[EMAIL PROTECTED]> writes: > : : static struct cdevsw sio_cdevsw = { > : : +#if __FreeBSD_version >= 500104 /* >= 20030303 */ > : > : This syntax works even for old versions of FreeBSD. You can make it > : sa

Re: PCI ID Patch for Intel Ether Express Pro 100 VE (82801BA)

2003-06-12 Thread Maxime Henrion
Tom Alsberg wrote: > Having got a new machine here a few days ago, an Intel ICH D865 PERL > board based Pentium IV machine, with an on-board Intel EtherExpress > Pro 100 VE, it failed to detect the network adapter. > > Seeing that it is an EtherExpress Pro 100, I though the fxp module > should wor

Re: Dell fast ethernet 3ccfe575bt-d

2003-08-26 Thread Maxime Henrion
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Sandeep Kumar Davu <[EMAIL PROTECTED]> writes: > : I was intalling freebsd on laptop and could not find the drivers for > : 3ccfe575bt-d fast ethernet 10/100base-tx ethernet card. Could anyone please > : enligten me where can I

Re: BUS DMA sync

2003-09-24 Thread Maxime Henrion
Vincent Jardin wrote: > Hi, > > I try to understand the purpose of the PRE sync (BUS_DMASYNC_PREREAD, > BUS_DMASYNC_PREWRITE). > > I understand POST synchronization (BUS_DMASYNC_POSTREAD, > BUS_DMASYNC_POSTWRITE) when a device to memory or a memory to device > transfert needs to be synchroniz

New vhost bugs.FreeBSD.org

2001-12-13 Thread Maxime Henrion
access the PR database. Opinions ? Maxime Henrion -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: init code in dynamic libraries

2001-12-19 Thread Maxime Henrion
Bernd Walter wrote: > How can I add initalisation code to a library without needing to > call a function in the using application? > What I saw is that libc does something like this but havn't found > the starting point of this. There are two special functions for that : _init() which will be cal

Re: randompid

2002-06-07 Thread Maxime Henrion
Alexey Privalov wrote: > hi all. > > i`m trying to set randompid: > > root@land3# sysctl kern.randompid=1 > kern.randompid: 0 -> 0 > > what`s a need to set on? The value you give to this sysctl is not a boolean, it's a value used in the formula which computes the randompid. This value is sani

Re: CHN_LOCK()

2002-06-15 Thread Maxime Henrion
Evan Sarmiento wrote: > I keep on getting debug messages like this, both at startup > and right before any sound plays: > > Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could > sleep with > "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 > heyeh, Jun 14 23:44:38

Re: Updating bsd.cpu.mk (Re: -fomit-frame-pointer for the world build)

2002-09-06 Thread Maxime Henrion
Kris Kennaway wrote: > On Tue, Aug 06, 2002 at 06:55:11PM -0700, Peter Wemm wrote: > > > `-mcpu=CPU-TYPE' > > Tune to CPU-TYPE everything applicable about the generated code, > > except for the ABI and the set of available instructions. The > > choices for CPU-TYPE are `i386', `i4

Re: Updating bsd.cpu.mk (Re: -fomit-frame-pointer for the world build)

2002-09-06 Thread Maxime Henrion
Kris Kennaway wrote: > On Fri, Sep 06, 2002 at 05:55:47PM -0700, Maxime Henrion wrote: > > > I've got a very similar patch which I believe to be a bit more complete > > because it also updates the MACHINE_CPU variable which lists the > > features available on a pa

Re: Checking syscall arguments

2002-09-11 Thread Maxime Henrion
Grahame Bowland wrote: > > Hi all, > > When implementing a syscall for FreeBSD, how do you ensure that the arguments > you have been passed are sane? I'm interested in the following syscall: > int setattr(char *file, struct stat *st, unsigned bitmap); > > As far as I can see from reading sim

Re: Hey, is there space for a newbie? =)

2002-09-24 Thread Maxime Henrion
Paolo Pisati wrote: > Hi guys, > > as I said in the subject i'm a newbies of the kernel, but i used > FreeBSD for years, so when the time to write my final thesis > in my university arrived i immediately thought to help in some > way the FreeBSD group. > > Here there's a mini list of things i

Re: load time module parameters?

2002-11-06 Thread Maxime Henrion
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Chuck Tuffli <[EMAIL PROTECTED]> writes: > : I'm a newbie to FreeBSD and am wondering if there is a way to pass > : loadable kernel modules parameters. Under Linux, if a module had > : configurable parameters "a" and "b", you can

Re: load time module parameters?

2002-11-06 Thread Maxime Henrion
Terry Lambert wrote: > Maxime Henrion wrote: > > With kenv(1) you can modify kernel environment variables, which hold the > > tunables. Previously, you could only set those at boot time. > > Note that there are some values which are used to determine the > size of KV