Searched hist:1.342 (Results 1 - 25 of 81) sorted by relevance

1234

/src/
H A Dbuild.sh1.342 Tue Jun 30 21:22:19 GMT 2020 riastradh New build.sh option: -c <compiler>

Could never remember what the incantation is to do a clang build, so
now it's just `build.sh -c clang'.

H A DUPDATING1.342 Wed Jul 19 17:49:40 GMT 2023 martin Warn to clean gcc objectdirs for updated compiler.
/src/sys/arch/alpha/conf/
H A DGENERIC1.342 Tue Nov 22 21:24:53 GMT 2011 tls branches: 1.342.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.

1.342 Tue Nov 22 21:24:53 GMT 2011 tls branches: 1.342.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.

/src/distrib/sets/lists/debug/
H A Dshl.mi1.342 Mon Jun 10 07:47:06 GMT 2024 kre branches: 1.342.2;

Correct a typo in libarchive set list updates for recent libarchive update

And add me to the list of people who believe that the current 99999 different
debugN/ad.arch stuff is a disaster.
1.342 Mon Jun 10 07:47:06 GMT 2024 kre branches: 1.342.2;

Correct a typo in libarchive set list updates for recent libarchive update

And add me to the list of people who believe that the current 99999 different
debugN/ad.arch stuff is a disaster.
/src/sys/arch/alpha/alpha/
H A Dmachdep.c1.342 Wed Sep 12 02:00:53 GMT 2012 manu branches: 1.342.2; 1.342.4;
setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
(powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
(hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
powerpc, sh3, sparc and sparc64 is left to portmasters
sparc64

Approved by core@

1.342 Wed Sep 12 02:00:53 GMT 2012 manu branches: 1.342.2; 1.342.4;
setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
(powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
(hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
powerpc, sh3, sparc and sparc64 is left to portmasters
sparc64

Approved by core@

1.342 Wed Sep 12 02:00:53 GMT 2012 manu branches: 1.342.2; 1.342.4;
setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
(powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
(hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
powerpc, sh3, sparc and sparc64 is left to portmasters
sparc64

Approved by core@

/src/sys/kern/
H A Dinit_sysent.c1.342 Sun May 19 22:27:15 GMT 2024 christos regen

H A Dvfs_subr.c1.368 Thu Feb 05 13:37:24 GMT 2009 enami branches: 1.368.2;
Make revoke(2) works as before:
- vfs_syscalls.c rev. 1.342 fails to invert condition correcly when
then-clause and else-clause is swapped. Since then, revoke(2) fails
if it is issued by file owner.
- Probably since rev. 1.160 of genfs_vnops.c, revoke(2) fails if it is
applied to non-device file and drops kernel into ddb.

1.342 Tue May 06 00:37:04 GMT 2008 ad PR kern/38141 lookup/vfs_busy acquire rwlock recursively

getvnode: Use vfs_trybusy, not vfs_busy. If unmount is in progress we
could deadlock, because vnode locks can be held during getnewvnode().
dounmount() locks in the reverse order (vfs_busy -> vnode).

H A Dkern_sig.c1.342 Tue May 01 16:37:23 GMT 2018 kamil Implement PTRACE_VFORK

Add support for tracing vfork(2) events in the context of ptrace(2).

This API covers other frontends to fork1(9) like posix_spawn(2) or clone(2),
if they cause parent to wait for exec(2) or exit(2) of the child.

Changes:
- Add new argument to sigswitch() determining whether we need to acquire
the proc_lock or whether it's already held.
- Refactor fork1(9) for fork(2) and vfork(2)-like events.
Call sigswitch() from fork(1) for forking or vforking parent, instead of
emitting kpsignal(9). We need to emit the signal and suspend the parent,
returning to user and relock proc_lock.
- Add missing prototype for proc_stop_done() in kern_sig.c.
- Make sigswitch a public function accessible from other kernel code
including <sys/signalvar.h>.
- Remove an entry about unimplemented PTRACE_VFORK in the ptrace(2) man page.
- Permin PTRACE_VFORK in the ptrace(2) frontend for userland.
- Remove expected failure for unimplemented PTRACE_VFORK tests in the ATF
ptrace(2) test-suite.
- Relax signal routing constraints under a debugger for a vfork(2)ed child.
This intended to protect from signaling a parent of a vfork(2)ed child that
called PT_TRACE_ME, but wrongly misrouted other signals in vfork(2)
use-cases.

Add XXX comments about still existing problems and future enhancements:
- correct vfork(2) + PT_TRACE_ME handling.
- fork1(2) handling of scenarios when a process is collected in valid but
rare cases.

All ATF ptrace(2) fork[1-8] and vfork[1-8] tests pass.

Fix PR kern/51630 by Kamil Rytarowski (myself).

Sponsored by <The NetBSD Foundation>

H A Dkern_synch.c1.342 Sun Feb 23 16:27:09 GMT 2020 ad kpause(): is only awoken via timeout or signal, so use SOBJ_SLEEPQ_NULL like
_lwp_park() does, and dispense with the hashed sleepq & lock.

/src/doc/
H A DBRANCHES1.342 Sun Jun 04 07:17:09 GMT 2017 snj note netbsd-8
/src/sys/ufs/ffs/
H A Dffs_vfsops.c1.342 Tue Dec 27 10:54:38 GMT 2016 hannken branches: 1.342.2;
Fix a bug introduced with Rev. 1.294: use LK_NOWAIT when called with MNT_LAZY.

1.342 Tue Dec 27 10:54:38 GMT 2016 hannken branches: 1.342.2;
Fix a bug introduced with Rev. 1.294: use LK_NOWAIT when called with MNT_LAZY.

/src/sys/uvm/
H A Duvm_map.c1.342 Thu Dec 01 02:09:03 GMT 2016 mrg branches: 1.342.2;
allow the sizes of the maphist and pdhist to be set in the config
file via UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE.

1.342 Thu Dec 01 02:09:03 GMT 2016 mrg branches: 1.342.2;
allow the sizes of the maphist and pdhist to be set in the config
file via UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE.

/src/sys/arch/arm/arm32/
H A Dpmap.c1.342 Fri Dec 23 07:15:27 GMT 2016 cherry branches: 1.342.2;
"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.

1.342 Fri Dec 23 07:15:27 GMT 2016 cherry branches: 1.342.2;
"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.

/src/sys/dev/scsipi/
H A Dcd.c1.342 Mon Sep 03 16:29:33 GMT 2018 riastradh branches: 1.342.4;
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)

1.342 Mon Sep 03 16:29:33 GMT 2018 riastradh branches: 1.342.4;
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)

H A Dsd.c1.342 Sun Mar 02 14:13:22 GMT 2025 riastradh sd(4): Break overlong lines.

No functional change intended.

/src/sys/dev/pci/
H A Dif_bge.c1.342 Mon Nov 25 05:35:26 GMT 2019 msaitoh branches: 1.342.2;
Modify PHY initialization code. This change fix a bug that SK-9D21 doesn't
detect MII PHY.
- Add error check to bge_miibus_writereg().
- Change return value of bge_miibus_readreg() when a read error occurred.
It also add error message using with aprint_debug_dev(). This error occurs
on some devices while detecting MII devices.
- Move the location of BGE_MI_MODE register's initialization to next to
bge_chipinit().
- Set BGE_MAC_MODE before calling ifmedia_init() and/or mii_attach().
- Add retry code for mii_attach() failed. Same as FreeBSD.

1.342 Mon Nov 25 05:35:26 GMT 2019 msaitoh branches: 1.342.2;
Modify PHY initialization code. This change fix a bug that SK-9D21 doesn't
detect MII PHY.
- Add error check to bge_miibus_writereg().
- Change return value of bge_miibus_readreg() when a read error occurred.
It also add error message using with aprint_debug_dev(). This error occurs
on some devices while detecting MII devices.
- Move the location of BGE_MI_MODE register's initialization to next to
bge_chipinit().
- Set BGE_MAC_MODE before calling ifmedia_init() and/or mii_attach().
- Add retry code for mii_attach() failed. Same as FreeBSD.

H A Dpcidevs.h1.342 Sat Jun 30 01:04:25 GMT 2001 thorpej branches: 1.342.2;
Regen.
1.342 Sat Jun 30 01:04:25 GMT 2001 thorpej branches: 1.342.2;
Regen.
/src/sys/arch/sparc/sparc/
H A Dmachdep.c1.342 Sat Apr 19 01:32:42 GMT 2025 riastradh sparc: Load the signal handler _before_ resetting it, not after.

Should fix SA_RESETHAND.

PR port-sparc/59323: t_sigaction:sigaction_resethand test is failing

/src/distrib/sets/lists/comp/
H A Dshl.mi1.342 Tue Sep 15 06:22:33 GMT 2020 mrg mark tsan files as !machine=sparc64.
/src/share/misc/
H A Dacronyms.comp1.342 Wed Mar 01 11:12:56 GMT 2023 fcambus Add RAII (resource acquisition is initialization).

/src/share/mk/
H A Dbsd.prog.mk1.342 Sun May 07 23:24:51 GMT 2023 christos Provide a hook to link in libraries statically in PROGDPLIBS.
OpenSSL protects the symbols in the shared object via a linker
script, but programs and tests need those protected symbols, so
they either must link against the archive, or I need to expose the
symbols. For now, I chose to expose the symbols. Note that we
cannot use -Bstatic -Lpath -llibrary -Bdynamic because this seems
to be broken with collect2 and so we use the path directly.

/src/sys/arch/macppc/conf/
H A DGENERIC1.342 Fri Feb 23 03:04:01 GMT 2018 sevan Enable BUFQ_PRIOCSCAN by default for NetBSD/macppc.
Drop references to NEW_BUFQ_STRATEGY and replace with currently available
options BUFQ_READPRIO and BUFQ_PRIOCSCAN.

ok <macallan>

/src/sys/ufs/lfs/
H A Dlfs_vfsops.c1.342 Tue Sep 01 06:08:37 GMT 2015 dholland Use the lfs dinode accessors in place of the ufs-derived ones.
(Mostly.)

The ufs-derived ones are fake structure member macros, which are gross
and not very safe. Also, it seems that a lot of places in the lfs code
were using the ffsv1 branch of them unconditionally, and this way it's
guaranteed all those places have been updated.

Found while doing this: for non-devices, have getattr produce NODEV
in the rdev field instead of leaking the address of the first direct
block.
H A Dlfs_vnops.c1.342 Sat Sep 06 05:02:07 GMT 2025 perseant Lock the vnode before calling lfs_set_dirop, to meet the conditions of
the assertion. Fixes a regression introduced in rev 1.341.

/src/sys/arch/sparc64/sparc64/
H A Dlocore.s1.342 Thu Nov 08 00:34:38 GMT 2012 macallan use system tick timer instead of %tick on UltraSPARC-III-ish CPUs
review & fixes by Takeshi Nakayama

Completed in 462 milliseconds

1234