RE: [Fwd: Interrupts question]

2006-07-19 Thread John Polstra
On 17-Jul-2006 Alex Zbyslaw wrote: I was monitoring a machine with systat -vmstat and noticed something about the interrupts and I don't know if it's a problem or not. If it is a problem, is there anything I can do about it? The interrupts for the network interface (em0) on irq 64 exactly

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
(so*). What's the easy way to create a basic tcp server (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* ? Thanks in advance ! PS: the whole job must be done in the kernel. yes it can (and has been) done.. John Polstra did it many years ago.. using netgraph ksockets. He had

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Nicolas Cormier wrote: Thanks a lot for your answer, a last question why did you not used so* functions ? Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too.

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Julian Elischer wrote: I would actually like to address the performance issues. is there any chance the oldest version (4.x based) might be released, or at least it would be nice to get the code snippet that attaches to eh ng_ksocket and reads and writes the stream.. I could make a TCP ECHO

Re: in-kernel tcp server

2007-06-21 Thread John Polstra
Julian Elischer wrote: but if you did find some old ksocket based code sitting around, i'd love to try it in -current and work on the bottlenecks.. I'm sure I don't have it any more, unfortunately. It was six years old, and I just moved into a smaller house and threw out a half dozen old

Re: Login.conf (Whose problem is this) ?

1999-07-03 Thread John Polstra
rt the correct class in the class field. (See passwd(5) for details.) If you want to create a new class, just edit it into your login.conf file and then run cap_mkdb as instructed in the comment at the top of that file. John -- John Polstra [EMAIL PROTECTED]

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article [EMAIL PROTECTED], Archie Cobbs [EMAIL PROTECTED] wrote: A new, faster event notification system would be great. But don't forget to include *all* events, not just file descriptor readability/writability. Yes! Yes! Yes! (I agree.) John -- John Polstra

Re: poll() vs select()

1999-07-06 Thread John Polstra
thread. But to take advantage of it, the application has to have something useful it wants to do (and can do) in the meantime. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA

Re: mmap question

1999-07-06 Thread John Polstra
In article 000101bec73c$e20e3660$[EMAIL PROTECTED], Kelly Yancey [EMAIL PROTECTED] wrote: Also, in case it hasn't been notice already (I'm running -stable from May 18th), the mmap(2) manpage has a typo: it has "#include sys/mman.h" So what's the typo, exactly? John -- Jo

Re: a BSD identd

1999-07-11 Thread John Polstra
Doug wrote: John Polstra wrote: Are you sure? If you simply don't run an identd, the queries will get an instant connection refused error. That's even faster than sending back a bogus response. Many daemons that request ident, and almost all IRC daemons that I'm aware of don't

Re: Why 'dd' does not seek over 'char' devs (specifically raw disk

1999-07-13 Thread John Polstra
on character disk devices. I'm reasonably certain there exists some ioctl (perhaps related to reading disk labels) which could be used to figure out whether a character device was a disk or not. A simple fix like that would make dd a lot more useful for the case Luigi brought up. John -- John

Re: a BSD identd

1999-07-13 Thread John Polstra
;Warm-Fuzzy" .fakeid Ick. Please, no more abuse of symbolic links! Once (malloc) was enough. Data is held in files, not in filenames. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Wash

Re: glibc

1999-07-19 Thread John Polstra
to install libiberty from one of those places. Left as an exercise for the reader: Figure out how the two differ and which one is "better". :-) John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.

Re: glibc

1999-07-19 Thread John Polstra
Brian F. Feldman wrote: On Mon, 19 Jul 1999, John Polstra wrote: Left as an exercise for the reader: Figure out how the two differ and which one is "better". :-) I'd rather hurt myself severely. Of course. That's a prerequisite for becoming a committer. :-) John --- Jo

Re: PAM LDAP in FreeBSD

1999-07-20 Thread John Polstra
In article [EMAIL PROTECTED], Oscar Bonilla [EMAIL PROTECTED] wrote: Couldn't we do this with /etc/auth.conf? The plan when PAM was brought in was to eliminate auth.conf. I don't think we should be looking for new uses for it. John -- John Polstra

Re: PAM LDAP in FreeBSD

1999-07-20 Thread John Polstra
separate but related functions. We're only using the authentication function currently. For an overview of PAM, see PAM(8) in the manual pages. There is also a spec in "src/contrib/libpam/doc/specs/rfc86.0.txt". John --- John Polstra [EMAIL

Re: linking question...

1999-07-21 Thread John Polstra
been the traditional behavior on every Unix system I've ever used that supported -L at all. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just

Re: PAM LDAP in FreeBSD, and userfs too.

1999-07-22 Thread John Polstra
ally better get used to it. It was the wave of the future 10 years ago. It's not going away. Dynamic linking provides flexibility and modularity that you just can't get from static linking. John -- John Polstra [EMAIL PROTECTED] John

Re: How the `struct linker_set' is used in building an ELF kernel?

1999-08-05 Thread John Polstra
en't aware of anything special about the names. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Eph

Re: cvs

1999-08-07 Thread John Polstra
with a umask of 2 then it would have worked too. It honors the umask setting unless overridden in the supfile. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cyni

Re: STAILQ macros..

1999-08-12 Thread John Polstra
the list is empty, stqh_last points at stqh_first (which means it must be a pointer to pointer). That way, STAILQ_INSERT_TAIL doesn't have to treat an empty list as a special case. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc

Getting device and inode number from a vnode

1999-08-15 Thread John Polstra
) says, "The file should not be locked on entry." But when stat calls vn_stat, the vnode is locked. Which is correct -- or doesn't it matter? Thanks, John --- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.

Re: Getting device and inode number from a vnode

1999-08-15 Thread John Polstra
Alfred Perlstein wrote: On Sun, 15 Aug 1999, John Polstra wrote: 1. I have a pointer to a vnode and I want to get the corresponding dev_t and inode number. Is there a non-sleazy way to do that other than calling vn_stat? use vn_todev from "vfs_subr.c" ~line 2970 of 2976 i

Re: buildfailure -current on Alpha?

1999-09-23 Thread John Polstra
well before the binutils changes that required it. But still it can bite people who aren't tracking -current very closely. That's life in currentland. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc

Re: Netscape Bus Error

1999-09-28 Thread John Polstra
different on FreeBSD/i386. SIGSEGV means you accessed memory that is unmapped. SIGBUS means you accessed memory that is mapped, but protected (unwritable and/or unreadable). To further confuse matters, FreeBSD/alpha generates SIGSEGV for both cases. John -- John Polstra

Re: Developer assessment (was Re: A bike shed ...)

1999-10-07 Thread John Polstra
entirely for a couple of weeks. You're not doing a thing to help our reputation. Remember, the _individual_ you are replying to is not personally responsible for the sum total of annoyances you have endured lately. John -- John Polstra [EMAIL PROTECTED

Re: FreeBSD CVS mirror

1999-10-12 Thread John Polstra
Polstra CVSup Mirrormeister -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsubscribe: send mail

Re: Search a symbol in the source tree

1999-10-13 Thread John Polstra
of the base system. :-) John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsubscribe: send mail

Re: paper on fine-grained OS timers

1999-10-13 Thread John Polstra
that some interfaces using programmed I/O may require a considerable time to output packets. So, re- ducing the granularity too much might actually cause ticks to be missed thus reducing the accuracy of operation. John -- John Polstra [EMAIL

FreeBSDCon pictures

1999-10-24 Thread John Polstra
I put a few pictures from FreeBSDCon here for your enjoyment: http://www.freebsd.org/~jdp/freebsdcon1999/ John To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: cvsup not being updated?

1999-10-24 Thread John Polstra
to a list like -hackers generally won't cut it. You need to let me personally know as soon as possible. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I g

Re: ip forwarding broken on alpha

1999-10-28 Thread John Polstra
have to ask. Are you sure you're not simply running out of mbufs? I noticed your maxusers is only 32 and I didn't see an options line to raise NMBCLUSTERS. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc

Re: RTLD_GLOBAL/RTLD_LOCAL dlopen mode flags

1999-11-01 Thread John Polstra
of that one. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsubscribe: send mail

Re: gas pseudo-ops

1999-11-02 Thread John Polstra
e previous section. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsubscribe: send mail

Re: aio Functions

1999-11-03 Thread John Polstra
vfs.aio.max_aio_queue: 1024 vfs.aio.max_buf_aio: 16 And worst of all: #define AIO_LISTIO_MAX 16 John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matte

Re: Missing symbols in LIBC ???

1999-11-14 Thread John Polstra
as the object file format. You can test for it at compile time with #ifdef __ELF__. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't ke

Re: gas pseudo-ops

1999-01-16 Thread John Polstra
, though. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsubscribe: send mail to [EMAIL

Re: Portable way to compare struct stat's?

1999-01-16 Thread John Polstra
Garance A Drosihn wrote: At 10:40 AM -0800 11/18/99, John Polstra wrote: I don't dispute that point, but it is worth mentioning that POSIX specifically guarantees that st_dev and st_ino "taken together uniquely identify the file within the system." So it is OK for applicatio

Re: Practical limit for number of TCP connections?

1999-12-19 Thread John Polstra
small farm of disk I/O subprocesses (processes, not threads), communicating with the master process via shared memory and/or pipes. Without trying it, I can't say for sure whether it will yield a net win or a net loss in speed. John -- John Polstra

Re: Practical limit for number of TCP connections?

1999-12-20 Thread John Polstra
/O devices and "fast" ones. Disks are "fast" ones, and the process always blocks until the full I/O has completed. This is not some kind of brokenness particular to FreeBSD; it's the way Unix has always behaved. John -- John Polstra

Re: Practical limit for number of TCP connections?

1999-12-20 Thread John Polstra
anticipate having to service/maintain at one time. [... etc] The "eventlib" package is pretty nice for this style of programming. It takes care of all these gory details for you. It's part of BIND (www.isc.org) and it might be distributed separately too -- I forget. John -- Jo

Re: LD_PRELOAD

2000-01-21 Thread John Polstra
separated. That could be a bug. You're probably the first person on earth to have more than one library in LD_PRELOAD. :-) What does Linux do? John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Wa

Re: LD_PRELOAD

2000-01-22 Thread John Polstra
In article [EMAIL PROTECTED], Tony Finch [EMAIL PROTECTED] wrote: John Polstra [EMAIL PROTECTED] wrote: The right way to do it on FreeBSD is like this: gcc -fpic -c *.c gcc -shared -o libshim.so *.o That works fine, thanks! Any idea why my clumsy success worked and why my clumsy

Re: java - ld-elf.so.1: assert failed: ... lockdflt.c:55

2000-01-28 Thread John Polstra
In article [EMAIL PROTECTED], Chad David [EMAIL PROTECTED] wrote: Since the ~Jan 25 I have been getting an error while running any java programs on 3.4-stable. I cvsup'd,and ran a make world this afternoon and it still fails. It doesn't always hit... about 50% of the time. The errors

Re: java - ld-elf.so.1: assert failed: ... lockdflt.c:55

2000-01-28 Thread John Polstra
In article [EMAIL PROTECTED], Chad David [EMAIL PROTECTED] wrote: Yes this fixed it. Thanks. Thanks for testing it. I have merged the fix into -stable now. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc

Re: porting linux app. Syscalls

2000-02-03 Thread John Polstra
. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL

Re: how to compile without libc (so not static)

2000-02-07 Thread John Polstra
not find entry symbol _start; defaulting to 08048074 /tmp/ccWvs216.o: In function `main': /tmp/ccWvs216.o(.text+0xf): undefined reference to `printf' John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washing

Re: how to compile without libc (so not static)

2000-02-08 Thread John Polstra
, then it works. Making it do something useful is _your_ problem, not ours. :-) We don't recommend or support linking that way. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA

Re: empty lists in for

2000-03-06 Thread John Polstra
then the framework needs to be fixed. We shouldn't let bugs there influence what we do with the shell. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good

Re: ijppp for isdn, ppp compression, and netgraph (also: load balancing)

2000-03-07 Thread John Polstra
thm itself is not patented. Is that not the case? John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Un

Re: empty lists in for

2000-03-05 Thread John Polstra
In article [EMAIL PROTECTED], Doug Barton [EMAIL PROTECTED] wrote: Given that Bash in both standard and POSIX mode complains about 'for i in ; do echo $i; done', I would say that it's not POSIX compatible. What could/does depend on this behavior "working?" It works for the realistic

Re: empty lists in for

2000-03-05 Thread John Polstra
Doug Barton wrote: Agreed on all counts. By "this behavior" I was referring to the example. Yep -- I was agreeing with you. :-) John To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: need to borrow a clue re: rtld

2000-05-16 Thread John Polstra
me and I'll try to figure out what's happening. After you're done, you should restore your original (non-debugging) rtld. It's more efficient and also probably more secure. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.

Re: RTLD_NODELETE, RTLD_NOLOAD dlopen mode flags

2000-05-28 Thread John Polstra
? That way I won't forget about it. If you'll include some patches in the PR it will help a lot, too. :-) John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-08 Thread John Polstra
in itself isn't sufficient. We can still call the kld svr4.ko, but it's really doing SCO/SolarisX86 syscall emulation. Yep. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "

CVSup7.FreeBSD.org is back in service

2001-01-31 Thread John Polstra
Just a note to let you know that cvsup7.freebsd.org is back in service. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelli

Re: CVSup7.FreeBSD.org is back in service

2001-02-02 Thread John Polstra
a very nice setup which uses SNMP to query the number of active CVSup clients on each mirror. They don't do automatic load balancing with it currently, but they make some nice graphs available on the web for people to use. (Sorry, I don't remember the URL.) John -- John Polstra

Re: exit() does not do dlclose()?

2001-02-04 Thread John Polstra
-contained test case that shows a bug in this, I'll be happy to take a look at it. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of bas

Re: SCSI-over-* hacks

2001-03-22 Thread John Polstra
be GREAT for cd recording on IDE CD-RW (one will be able to use cdrdao and cdrecord instead of burncd) Yes! It would definitely be nice if cdrecord worked with ATAPI CD-RW drives on FreeBSD. John, who just bought an ATAPI CD-RW drive -- John Polstra

Re: ddb - gdb help?

2001-03-29 Thread John Polstra
In article [EMAIL PROTECTED], Alfred Perlstein [EMAIL PROTECTED] wrote: I can't seem to get a crashdump, is there a way to take a ddb crash address: "Stopped at lf_setlock+0x52" and boot later and see what line of code that's on? Assuming you have a corresponding kernel with debugging

Re: cvsup.freebsd.org I/O error

2001-05-28 Thread John Polstra
failed: Read failure from /usr/sup/ports-all/checkouts.cvs: Input/output error This is an I/O error happening on your own system when cvsup is trying to read the file mentioned in the message. John -- John Polstra [EMAIL PROTECTED] John D

Re: MFC'ing new md(4) functionality?

2001-06-05 Thread John Polstra
to error. The proper way is to ``cvs add'' them in a directory checked out on the branch. I agree, that's the proper way to do it. The net effect is the same: it adds the RELENG_4 tag to the files. John -- John Polstra [EMAIL PROTECTED] John D

Re: ELF p_offset p_vaddr

2001-06-08 Thread John Polstra
CONTENTS, READONLY John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA Disappointment is a good sign of basic intelligence. -- Chögyam Trungpa To Unsubscribe: send mail

Re: use of '#pragma weak...'

2000-06-16 Thread John Polstra
h to support it. See the other examples in sys/cdefs.h. It would be used like this: extern void *isp_static_fw_vector(void) __weak_definition; #pragma weak is bad because you can't put #pragmas into macros. John -- John Polstra [EMAIL PROTECTE

Re: struct proc

2000-06-26 Thread John Polstra
== curproc) in this example, and that it would be better to code with p than with curproc. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of

Please run this test on an 80386

2000-06-29 Thread John Polstra
it with ./sigill On an 80386 it should print out This CPU does not support the cmpxchg instruction Thanks in advance! John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappoin

Re: Please run this test on an 80386

2000-06-29 Thread John Polstra
Robert Muir wrote: yes, it prints: This CPU does not support the cmpxchg instruction Thanks! John To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

GCC extended asm experts please look at this

2000-07-02 Thread John Polstra
I _thought_ I was an expert in gcc's extended asm feature, but I can't figure out why this won't compile when optmization is disabled: === #define xchgl(v, m) ({ \ int __result;

Re: GCC extended asm experts please look at this

2000-07-02 Thread John Polstra
In article [EMAIL PROTECTED], Peter Wemm [EMAIL PROTECTED] wrote: If I change it to use a static inline function, it seems to work and will generate identical code (with -O): Thanks! I'll give that a try in both places where I'm having this problem. It appears to generate valid code

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread John Polstra
and commit it. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe:

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread John Polstra
and if the dir has not world write permission. That sounds OK to me. But it should be in a separate patch from the other changes you proposed. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle

Updating your CVSup mirror configs for the recent crypto changes

2000-07-09 Thread John Polstra
d remove the line containing "cvs-crypto". - Delete the symbolic link "prefixes/FreeBSD-crypto.cvs". That's all you need to do. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seatt

Re: rtld problem

2000-07-18 Thread John Polstra
to reproduce the problem? John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe:

Re: ELF rtld and environment variables...

2000-07-24 Thread John Polstra
es the a.out problem, they affect programs run under Linux emulation too. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intellige

Re: ELF rtld and environment variables...

2000-07-24 Thread John Polstra
-- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL PROTECTED] with &q

Re: ELF rtld and environment variables...

2000-07-25 Thread John Polstra
In article [EMAIL PROTECTED], Alex Zepeda [EMAIL PROTECTED] wrote: On Mon, 24 Jul 2000, John Polstra wrote: FreeBSD ELF: It's required by the ELF specification. FreeBSD a.out: Backward compatibility. Linux ELF: Because it's part of Linux and that's just what it does

Re: LD_PRELOAD odities / Documentation?

2000-08-04 Thread John Polstra
. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL

Re: CVS question

2000-08-09 Thread John Polstra
onds boundary. I hope current versions of CVS force the dates to be the same on an import. I haven't checked to see whether that's the case or not. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Wa

Re: God I feel stupid (gcc issue)

2000-08-09 Thread John Polstra
st of what is and isnt defined by default... help! From 4.1-STABLE: jedgar@wopr:~$ cpp -v That's the wrong way to do it because cpp behaves differently than cc. Another poster gave the right answer: "gcc -E -dM - /dev/null". Joh

Re: God I feel stupid (gcc issue)

2000-08-09 Thread John Polstra
Preprocessor Options and you'll find out how to get all sorts of useful information from the compiler. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good s

Re: IPC, shared memory, syncronization

2000-08-11 Thread John Polstra
uld probably create a 0-length temporary file somewhere and use the flock(2) system call on it. The file itself isn't important; it's just something to lock. Or you could use semop(2) on semaphores. But that's the SYSV way, not the BSD way. John -- John Polstra

Re: BSDi binary compatibility?

2000-08-13 Thread John Polstra
l 7,0" to the faster "int $0x80". BSD/OS doesn't support the latter, apparently. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good s

Re: CVS question

2000-08-14 Thread John Polstra
dea. It's only a 1-second difference. I've done that now. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence."

Re: IPC, shared memory, syncronization AND threads...

2000-08-15 Thread John Polstra
In article [EMAIL PROTECTED], Jonas Bulow [EMAIL PROTECTED] wrote: John Polstra wrote: I think the ideal solution would first try to lock the test-and-set lock, maybe spinning on it just a few times. If that failed it would fall back to using a system-call lock such as flock() which

Re: Critical (or equivalent) section in Userland?

2000-08-17 Thread John Polstra
their priorities are. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail

Re: IPC, shared memory, syncronization

2000-08-12 Thread John Polstra
In article [EMAIL PROTECTED], Jonas Bulow [EMAIL PROTECTED] wrote: John Polstra wrote: If you want the "BSD way" you should probably create a 0-length temporary file somewhere and use the flock(2) system call on it. The file itself isn't important; it's just something to lock.

Re: ports cvsup

2000-09-12 Thread John Polstra
ry to figure out what's going wrong. If a thread stack is overflowing, it is probably caused by a corrupted file. However, I would prefer that you let me analyze the problem before you try to correct it by removing files, since it's a bug if cvsup dumps core beca

Re: ports cvsup

2000-09-12 Thread John Polstra
In article [EMAIL PROTECTED], Wilko Bulte [EMAIL PROTECTED] wrote: On Tue, Sep 12, 2000 at 12:51:15PM -0700, John Polstra wrote: Illegal instruction faults may indicate that a thread stack overflowed, or they might be symptomatic of HW or kernel problems. Or an executable built

Re: ports cvsup

2000-09-13 Thread John Polstra
are using the "-s" option on the cvsup command line, but you have modified a file locally, or - One of your "checkouts.*" files (most likely the "ports-base" one) is corrupted. John -- John Polstra [EMAIL PR

Re: c++ error

2000-09-13 Thread John Polstra
, then I get the diagnostic. Is this the standard compiler installation, or are you using the ports version? If it's the ports version, maybe it has an incorrect notion of where the system headers are. I ran my tests using the standard FreeBSD compiler installation. John -- John Polstra

Re: c++ error

2000-09-13 Thread John Polstra
to remove it. From netinet/in.h it looks like a couple of [gs]etsockopt calls use it. Search for "ip_opts" just past that structure declaration. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Sea

Re: c++ error

2000-09-13 Thread John Polstra
In article [EMAIL PROTECTED], Archie Cobbs [EMAIL PROTECTED] wrote: John Polstra writes: On the other hand, nothing in the kernel actually uses "struct ip_opts", though I haven't checked all of userland.. so we may just be able to remove it. From netinet/in.h it

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-13 Thread John Polstra
kludge_city)(void) = terminate; Another possibility would be to link explicitly with libgcc when creating your dynamic library: cc -shared -o libphptest.so ... -lgcc That might cause other problems, but probably not. John -- John Polstra [EMAI

Re: c++ error

2000-09-14 Thread John Polstra
ing case. As per the PR, I'm against #ifdef'ing structures like ip_opts for C++, since it is likely that a later C++ standard will be corrected. I can't argue with that. I don't like my "solution" very much either. :-) John -- John Polstra

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
you told me.) John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe:

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
on support uses more stuff from libgcc, so you're more likely to run into an undefined symbol if libgcc is not shared. Probably a bogus point for this discussion. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
s any more. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail

Re: c++ error

2000-09-14 Thread John Polstra
it then. John -- John Polstra [EMAIL PROTECTED] John D. Polstra Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
c implies the entire enchilada is linked static, which may not be the case. :( Then you can sprinkle in the appropriate "-Wl,-Bstatic" and "-Wl,-Bdynamic" options in the right places. John -- John Polstra [EMAI

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-15 Thread John Polstra
In article [EMAIL PROTECTED], Max Khon [EMAIL PROTECTED] wrote: `__register_frame_info' should be called from `do_ctors' in src/lib/csu/common/crtbegin.c to load frame information from .eh_frame sections before any constructors are executed because try/catch can be used in constructors of

  1   2   3   >