the underlying file.
I assume (but have not tested) that it is OK to remove the file after
the dlopen call. The file is still mmapped, so I don't think the
underlying storage will go away.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra
sites you weren't aware
of before.
John Polstra
FreeBSD CVSup Mirror Coordinator
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
?) package which he used to analyze the
"conversation" between the camera and the PC.
Right. That's the "comms/snooper" port that I recommended.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.
quot; port.
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
In article [EMAIL PROTECTED],
Max Khon [EMAIL PROTECTED] wrote:
hi, there!
On Fri, 15 Sep 2000, John Polstra wrote:
Here is another possibility: we could call _thread_init() from
crt1.o. The patch (untested) is below. It calls _thread_init() if
and only if that symbol is defined
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
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
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:
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.
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
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
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
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
, 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
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
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
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
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
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
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
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
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."
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
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.
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
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
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
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
.
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
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
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
--
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
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:
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:
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
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
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;
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
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
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
== 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
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
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
"
? 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
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.
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
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
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
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
, 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
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
.
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
)
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.
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
)
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 j...@polstra.com
John D. Polstra Co., Inc.Seattle
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 if you just
need
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
the head
pointer)
When 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 j...@polstra.com
John
Mike Pritchard wrote:
Note, if you would have just _run_ the program with a umask of 2
then it would have worked too. It honors the umask setting unless
overridden in the supfile.
Yes, but if I ever run cvsup by hand I wind up with cvsup
going through my whole tree and resetting
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
.
Note, if you would have just _run_ the program with a umask of 2
then it would have worked too. It honors the umask setting unless
overridden in the supfile.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc
bits on the Alpha. Ints are 32 bits, though.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle, Washington USA
No matter how cynical I get, I just can't keep up.-- Nora Ephron
To Unsubscribe
should be
consistent with that file's conventions.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle, Washington USA
No matter how cynical I get, I just can't keep up.-- Nora Ephron
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
or not.
John
--
John Polstra j...@polstra.com
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 majord...@freebsd.org
, and linker
aren't aware of anything special about the names.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle, Washington USA
No matter how cynical I get, I just can't keep up.-- Nora Ephron
there are cases where we
can do useful things which rely on dynamic linking, we shouldn't let
static linking hold us back. Plenty of people disagree with me,
though.
John
---
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle
understand the issues I think it's necessary to read through
the dynamic linker sources and understand what it's doing. There used
to be books that described how it all worked (Prentice-Hall System V
Application Binary Interface), but as far as I know they're out of
print now.
John
--
John
--
John Polstra j...@polstra.com
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 majord...@freebsd.org
with unsubscribe
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 j...@polstra.com
John D. Polstra Co
In article 37882150.87a93...@newsguy.com,
Daniel C. Sobral d...@newsguy.com wrote:
Do whatever you want: as a fs layer.
That would be good advice, if FS layers worked.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc
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
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
about. That's been the traditional behavior
on every Unix system I've ever used that supported -L at all.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle, Washington USA
No matter how cynical I get, I
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
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
In article 19990720082825.b...@fisicc-ufm.edu,
Oscar Bonilla oboni...@fisicc-ufm.edu 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
kernel without also rebuilding userland.
John
--
John Polstra j...@polstra.com
John D. Polstra Co., Inc.Seattle, Washington USA
No matter how cynical I get, I just can't keep up.-- Nora Ephron
To Unsubscribe
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 j...@polstra.com
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.
101 - 200 of 237 matches
Mail list logo