Re: Multithread safe gethostbyname() ?

2000-04-11 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > > Is there a MT-safe implementation of gethostbyname() in FreeBSD (3.4/4.0)? > > On Solaris there is gethostbyname_r(). Calling gethostbyname() with in > two threads cause both threads to block. You seem to be talking about two different things: 1. A

Re: Multithread safe gethostbyname() ?

2000-04-12 Thread Arun Sharma
On Wed, Apr 12, 2000 at 12:07:40AM -0700, Ming Zhang wrote: > > In your case, both the threads are waiting for a DNS server response, > > so the thread scheduler doesn't have a thread to schedule. > > If I only create one thread, then the gethostbyname() returns immediately. > By using truss -p,

Fwd: socket.h and _POSIX_SOURCE

2000-04-20 Thread Arun Sharma
Comments ? -Arun From: [EMAIL PROTECTED] (Arun Sharma) Newsgroups: muc.lists.freebsd.questions,mpc.lists.freebsd.questions Subject: socket.h and _POSIX_SOURCE Date: 18 Apr 2000 08:45:31 +0200 What's wrong with this ? -Arun $ cat test.c #include #include $ cc -D_POSIX_S

Re: Fwd: socket.h and _POSIX_SOURCE

2000-04-25 Thread Arun Sharma
On Mon, Apr 24, 2000 at 04:39:43PM +0200, Jeroen Ruigrok/Asmodai wrote: > -On [2420 20:02], Arun Sharma ([EMAIL PROTECTED]) wrote: > >Comments ? > > > >$ cat test.c > >#include > >#include > >$ cc -D_POSIX_SOURCE -c test.c > >In file included f

Re: Fwd: socket.h and _POSIX_SOURCE

2000-04-29 Thread Arun Sharma
On Sat, Apr 29, 2000 at 12:52:57PM +0200, Jeroen Ruigrok/Asmodai wrote: > -On [2425 20:08], Arun Sharma ([EMAIL PROTECTED]) wrote: > >Would it be fair to say this is a (POSIX non-compliance) bug in the > >header files ? > > As Bruce Evans was kind enough to reassure me:

Re: why JDK 1.1.8 on FreeBFS is so slow ?

2000-05-03 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > > As it stands, however, 1.2.2 will not have a JIT either, unless someone > finds a way to persuade Sun to help us out on this one. > > There are a number of JIT's available in the ports collection. Install and > use those. I have a description that Fuy

Volanomark numbers for FreeBSD

2000-05-03 Thread Arun Sharma
Numbers for JDK-1.1.8 (ignore the version below - it's the client version) java.vendor= Sun Microsystems Inc. java.vendor.url= http://java.sun.com/ java.version = 1.2.2 java.class.version = 46.0 java.compiler = OpenJIT os.name= FreeBSD os.version = 4.0-S

Lazy binding

2000-05-05 Thread Arun Sharma
Is there a strong reason why FreeBSD rtld uses lazy binding by default ? In a multithreaded environment, this could make things pretty complex. What if a thread holds locks and fails at runtime due to a missing symbol ? Also, is there a significant performance benefit to doing lazy binding ?

Re: FreeBSD Port: xosview-1.7.3

2000-05-11 Thread Arun Sharma
In muc.lists.freebsd.ports, you wrote: > > Do you happen to know if Xosview can be made to show both CPU's in SMP > FreeBsd. I've just swapped from Linux to FreeBsd . See the patches I mailed to freebsd-hackers late last year. You need to patch both the kernel and the userland. I'm a litt

Can someone comment on this C++ binary compatibility Q ?

2000-05-14 Thread Arun Sharma
http://bugzilla.mozilla.org/show_bug.cgi?id=33739 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

file creation times ?

2000-05-18 Thread Arun Sharma
Is there any reason why FreeBSD doesn't store file creation times on the disk (apart from historical reasons) ? -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: file creation times ?

2000-05-18 Thread Arun Sharma
On Thu, May 18, 2000 at 09:04:52PM +0400, Aleksandr A.Babaylov wrote: > Arun Sharma writes: > > Is there any reason why FreeBSD doesn't store file creation times on > > the disk (apart from historical reasons) ? > in adddition to atime, ctime and mtime? struct timespec st

Re: mremap help ? or no support for FreeBSD ? so do what ?

2000-05-13 Thread Arun Sharma
On Sat, May 13, 2000 at 12:08:35PM -0700, Matthew Dillon wrote: > The linux mremap() is an idiotic system call. Just unmap the file and > re-mmap it. If you are just appending to the file, you can skip the munmap. mmap deletes the old mappings. -Arun To Unsubscribe: send mail

Re: mremap help ? or no support for FreeBSD ? so do what ?

2000-05-13 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > I know that this was discussed in the past but I can't find out what to > do ? > > In Linux if I have to resize a mmap 'ed object I can just use mremap > but in FreeBSD if, I want to resize it what do I do ? Have you tried mmap'ing the file again a

Re: FreeBSD Port: xosview-1.7.3

2000-05-12 Thread Arun Sharma
On Thu, May 11, 2000 at 10:52:04PM -0700, Doug Barton wrote: > Arun Sharma wrote: > > See the patches I mailed to freebsd-hackers late last year. You need to > > patch both the kernel and the userland. I'm a little disappointed at > > the lack of response. I just assumed

truss(1) with support for fork(2) and friends

2000-05-20 Thread Arun Sharma
I just implemented the "-f" flag in truss, to trace across fork(2), rfork(2) and vfork(2) (the last one is not tested). The other day I observed that there were two truss processes when I was running "truss -f" on a Solaris box. I just thought it was a much simpler way of implementing "-f" than t

truss -f, updated patch

2000-05-21 Thread Arun Sharma
Before I go to sleep, I've shortened the diff by about 50%. The new diff is at: http://sharmas.dhs.org/~adsharma/projects/freebsd/truss-diff.gz http://sharmas.dhs.org/~adsharma/projects/freebsd/truss.tar.gz To be applied as: cd truss gzcat -dc truss-diff.gz | patch -p1 The real 100 lines of ch

Re: file creation times ?

2000-05-24 Thread Arun Sharma
On Thu, May 25, 2000 at 11:03:38AM +1000, Peter Jeremy wrote: > On Thu, 18 May 2000 10:35:11 -0700, Arun Sharma <[EMAIL PROTECTED]> wrote: > > >On Thu, May 18, 2000 at 09:04:52PM +0400, Aleksandr A.Babaylov wrote: > >> Arun Sharma writes: > >> > Is there an

Re: truss(1) with support for fork(2) and friends

2000-05-26 Thread Arun Sharma
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote: > well, has another committer expressed intrest in this work? I was > looking at committing your code, but it's both for an out of date version > of truss, and run though ident... if you could provide the changes > to the -current

Re: truss(1) with support for fork(2) and friends

2000-05-27 Thread Arun Sharma
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote: > well, has another committer expressed intrest in this work? I was > looking at committing your code, but it's both for an out of date version > of truss, and run though ident... if you could provide the changes > to the -current

Re: An IA-64 port?

2000-06-03 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > On Sat, 3 Jun 2000, Jordan K. Hubbard wrote: > > > Intel has furnished us with IA-64 hardware and a porting effort is > > already underway. Contact [EMAIL PROTECTED] if you would like to > > help out in some way with the process. > > What can those of

Re: An IA-64 port?

2000-06-04 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > On Sun, Jun 04, 2000 at 11:12:22AM -0400, Will Andrews wrote: > > On Sun, Jun 04, 2000 at 01:18:39AM +0800, Belldandy wrote: > > > Is there any effort(or at least, any thought) on making an > > > IA-64 port of FreeBSD? It seems Intel is trying to push I

Re: An IA-64 port?

2000-06-04 Thread Arun Sharma
On Sun, 04 Jun 2000 15:42:28 -0700, W Gerald Hicks <[EMAIL PROTECTED]> wrote: > Arun Sharma wrote: > > > I don't know if the gas support is public, but you can certainly get the > > Intel assembler for IA-64, which has been open sourced under the BSD > > licen

IA-64 simulator

2000-06-13 Thread Arun Sharma
http://news.excite.com/news/zd/000613/09/chip-makers-cozy Starting Tuesday, Linux developers have been free to download from the Intel Web site or the HP site a copy of the IA-64 SDK. The kit includes an IA-64 simulator developed by HP labs that will allow application developers to begin writing

kern/18524

2000-06-16 Thread Arun Sharma
Not that it adds any more weight to my patch - but the linux folks are essentially doing the same thing: http://reality.sgi.com/dimitris_engr/pda_patch-2.4.0-1 http://www.freebsd.org/cgi/query-pr.cgi?pr=18524 -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebs

<    1   2