Commit Graph

148513 Commits

Author SHA1 Message Date
yamt
e38f237e53 if a file is sillyrename'ed because it's a destination of rename,
make sillyrename (try to) use LINK operation rather than RENAME.
PR/33861 from Jed Davis.  he provided the almost same patch.
according to him, it also happen to be what opensolaris does in this case.

from the PR:
> In nfs_rename(), if the destination appears to exist and is "in use"
> (this check is apparently satisfied even if the file isn't in use by
> anything except the rename itself), it will sillyrename it, then delete
> the sillyrenamed file even if the rename fails -- for instance, because
> the "from" file no longer exists on the server.

> mkdir a b; touch a/x; perl -e 'fork(); rename("a/x","b/x") or die "$!\n"'
>
> Afterwards, neither a/x nor b/x will exist.

> 1) Lookup of b/x; fails with NOENT.
> 2) Rename from a/x to b/x; succeeds.
> 3) Lookup of b/x; fails with NOENT.
> 4) Rename from b/x to b/.nfsA23a3; succeeds.
> 5) Rename from a/x to b/x; fails with NOENT.
> 6) Remove of b/.nfsA23a3; succeeds.
2006-07-01 11:29:42 +00:00
he
cb27e76665 Um, pointer differences are ptrdiff_t, and there's already a
printf specifier for it (t), so use it instead.
2006-07-01 11:05:42 +00:00
he
1209c64644 The type for pointer difference varies between ports, on some it's
"long int" and on others "int", so cast via long and use %ld for printing.
2006-07-01 10:58:29 +00:00
martin
931985243c Redo previous differently - just use time_second.
Pointed out by Frank Kardel.
2006-07-01 10:12:36 +00:00
jmmv
ce9f9820ee Fix order of biosbasemem and biosextmem order in a comment to match reality.
Closes PR kern/32082 by Dave J. Barnes.
2006-07-01 09:21:28 +00:00
mrg
9f0110033d noieee src is not strict-aliasing compliant. apply -fno-strict-aliasing. 2006-07-01 08:57:14 +00:00
martin
c627e877cf Make it compile post time-counter merge 2006-07-01 08:42:39 +00:00
martin
2006fdaf3e Regen 2006-07-01 08:15:16 +00:00
martin
4b488fb5fa Add an ArkMicroChips serial adapter 2006-07-01 08:14:46 +00:00
mrg
252f1af0f5 -std=gnu99 can be applied with GCC>=3, not MACHINE != vax. 2006-07-01 06:02:51 +00:00
mrg
878c667fb1 vax needs NOPIC for >= GCC3 not just == GCC3. 2006-07-01 06:02:01 +00:00
mrg
7d067137a1 document the GCC4/vax -O0 hacks. 2006-07-01 06:00:41 +00:00
mrg
b4a57177e4 update the "building for netbsd cross target list" of defined functions. 2006-07-01 06:00:04 +00:00
mrg
11762d9b99 force --disable-shared on vax so that GCC does not think it can use
shared libgcc.
2006-07-01 05:59:18 +00:00
mrg
5bf1ad3744 fix pointer signedness and build with GCC4. 2006-07-01 05:55:34 +00:00
mrg
334f3f5949 apply a little -O0 with GCC4 and vax... 2006-07-01 05:54:35 +00:00
mrg
e7473eb25e regenerate these. 2006-07-01 05:53:13 +00:00
kardel
6dc2fb00a7 L_CLR(time_adj) each round so adjtime() corrections don't
accumulate over time resulting in a constantly speeding/
slowing clock. found with wiz@ in a timecounter non NTP
kernel configuration.
2006-07-01 05:44:26 +00:00
kardel
596d823cde always call ntp initialisation for timecounter systems as
the ntp code degenerates to the adjtime implementation in the
non NTP case
2006-07-01 05:41:10 +00:00
ross
28dc42c889 fix comment 2006-07-01 01:39:17 +00:00
ross
5a664ca53d Map powerpc64 to powerpc 2006-07-01 01:29:55 +00:00
ross
5aca4cc62c ppc64 native userland elements 2006-06-30 23:25:18 +00:00
xtraeme
8ad8d8401b Add __KERNEL_RCSID(). 2006-06-30 23:21:19 +00:00
xtraeme
1f14228ee9 Remove a debug printf. 2006-06-30 23:19:40 +00:00
xtraeme
40a89559d7 Enable kse(4). 2006-06-30 23:12:48 +00:00
chap
5c86a09963 Terminates chap-midi branch. 2006-06-30 23:05:28 +00:00
ross
bbf630ab7c powerpc64 assembly for .init / .fini 2006-06-30 22:49:50 +00:00
mrg
5f4bf87665 mknative binutils for powerpc64 2006-06-30 22:48:14 +00:00
chap
80f0cf5785 The rest of merge from chap-midi branch. Version of midiplay that uses the
sequencer API definitions in sys/midiio.h (so there is a use example).
These produce the same (ABI) sequencer events as the OSS macros, but in
a more strongly-typed way; OSS API macros could be built on them and added
to the OSS compatibility header sys/soundcard.h but have not been, yet.
2006-06-30 22:19:32 +00:00
martin
1e34bd3ea3 struct ieee80211_node_sysctl does not align ns_tstamp properly to directly
access it as a 64bit int - memcpy to stack and use the aligned copy
instead.
2006-06-30 21:30:19 +00:00
wiz
d45f9162e9 Sort sections. New sentence, new line. English improvements. 2006-06-30 21:25:59 +00:00
ross
43efe1a030 Use _TOOL_PREFIX if present. 2006-06-30 19:47:46 +00:00
freza
78037d3f6d Bring ibm4xx interrupt code up to date:
- generic soft interrupts (ie. use powerpc/softintr.c)
- interrupt event counters (using the ones from powerpc/cpu.h:cpu_info
  where appropriate)
- cleanup ibm4xx_intr.h, move implementation details to intr.c

Convert all affected evbppc platforms.

OK by simonb@, some points discussed with matt@
2006-06-30 17:54:50 +00:00
nisimura
a82479299d Refer to kse(4) Micrel KSZ8842/8841 PCI Ethernet controller driver. 2006-06-30 17:28:39 +00:00
nisimura
4a671d8f4a Have kse(4) man page. 2006-06-30 17:27:11 +00:00
nisimura
00ef0ad833 Refer to kse as an MI driver. 2006-06-30 17:21:00 +00:00
nisimura
28ad8aedac Regen after Micrel KSZ8842/8841 product addtion. 2006-06-30 17:19:32 +00:00
wiz
717d3757fa Split [] expression for better grepability. 2006-06-30 17:19:18 +00:00
nisimura
9a76d77bfb Add kse(4) driver for Micrel KSZ8842/8841 Ethernet controller. 2006-06-30 17:17:09 +00:00
xtraeme
93a63d1398 Mention IT8211. 2006-06-30 17:02:53 +00:00
xtraeme
cc39aa8f95 Match IT8211 IDE Controller. 2006-06-30 17:01:32 +00:00
xtraeme
52905b27a4 regen 2006-06-30 17:01:09 +00:00
xtraeme
326252b4eb Add ITE IT8211 IDE Controller. 2006-06-30 17:00:18 +00:00
xtraeme
df1031319c Match ATI IXP SB600 IDE/SATA. 2006-06-30 16:28:40 +00:00
xtraeme
8edb097c79 regen 2006-06-30 16:23:27 +00:00
xtraeme
e11c4cc307 Add some missing ATI devices. 2006-06-30 16:22:54 +00:00
chap
9631f044f6 woops, meant to change .Nx version, thanks xtraeme 2006-06-30 16:18:09 +00:00
drochner
c6b8e0a9fe fix an Xref 2006-06-30 15:51:36 +00:00
drochner
ad1ca09fb9 -fix for previous: don't malloc() with spinlock held
-wrap some long lines
2006-06-30 15:50:46 +00:00
chap
710af63468 Ankh-Morpork, we have a MIDI driver....
Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@
2006-06-30 13:56:25 +00:00