Commit Graph

17359 Commits

Author SHA1 Message Date
matt
623c8b3000 OR1K support 2014-09-03 19:29:40 +00:00
matt
750c68a658 Changes for OR1K 2014-09-03 19:29:14 +00:00
manu
bcfebaff94 Improve POSIX compliance of FUSE filesystems through PERUSE
- access denied is EPERM and not EACCES
- access to file owned by someone else in a sticy-bit directory should
  be allowed for the sticy-bit directory owner
- setting sticky-bit on a non directory should produce EFTYPE
- implement PATHCONF method as much as we can.
2014-09-03 16:01:45 +00:00
matt
a4055c59ef float32_is_signalling_nan needs a prototype if SOFTFLOATM68K_FOR_GCC is
defined.
2014-09-01 07:33:31 +00:00
manu
38582b4fe4 We used to remove the trailing zeros in FUSE readlink replies, but
it seems it does not always happen. Just remove them if present.
2014-08-29 04:58:40 +00:00
christos
61598576c4 Adding extra dependencies does not affect the inference rule search anymore.
XXX[1]: should that be the case?
Simplify the code anyway via selective path search.
XXX[2]: Split arch portions to arch specific files, this is a mess
2014-08-26 11:48:20 +00:00
pooka
b124cf15b4 No longer create a special process context to fork remote clients off
of, simply always rfork off of proc1 closing all descriptors, and have
the rump kernel open 0/1/2 if the parent process is "1".

Fixes tests/rump/rumpkernel/t_sp, which was failing since the
abovementioned special process change due to attempting to deliver a
signal to the special process and the special process was not equipped
to handle one.
2014-08-25 14:58:48 +00:00
justin
404e3c9501 lso translate errno in the rumpfiber version 2014-08-25 10:33:32 +00:00
justin
103543d43b Add errno translation for bio operations 2014-08-25 10:21:39 +00:00
rmind
209a62dda0 npf_config_submit: finally, include the saved connections. 2014-08-24 20:37:35 +00:00
matt
453980f6b8 Assume anything not vax has IEEEFP. 2014-08-24 17:07:00 +00:00
pooka
82dada912f RCS Id police (because we can. or have you heard of git id police?) 2014-08-24 14:37:31 +00:00
pooka
de743a993f * attempt to clarify what "POSIX" means
* link to Platforms page on wiki for a list of known implementation
2014-08-24 14:35:27 +00:00
matt
cc87ea3a00 #if 0 some code not in use yet 2014-08-23 02:25:23 +00:00
matt
38dcdc34d9 Minimize differences between powerpc and powerpc64
Fix powerpc64 assembly to use right instructions for 64bit CPUs.
Use hidden for __curbrk and __minbrk to avoid GOT/TOC relocations.
2014-08-23 02:24:22 +00:00
justin
aaf730d309 Add missing include 2014-08-20 12:09:15 +00:00
manu
fb724fffd1 Remove usless warning that happens often with direct IO 2014-08-19 15:29:14 +00:00
christos
f8c3486fb6 fix param name 2014-08-18 07:33:21 +00:00
matt
d28139700f VAX does need __clzsi2 2014-08-17 16:14:59 +00:00
christos
0a7d28b495 remove extra initialization 2014-08-17 06:11:48 +00:00
wiz
70e44a6c96 Bump date for previous. 2014-08-16 21:50:15 +00:00
manu
beafd5bc7c Removed unimplemented mmap and seek method. seek's declaration caused
seek request to be passed backand forth between kernel and userland
while we did nothing about them.
2014-08-16 16:31:15 +00:00
manu
781f78b809 Use just introduced open2 PUFFS method and its PUFFS_OPEN_IO_DIRECT oflag
to implement FUSE's OPEN_IO_DIRECT, by which the filesystem tells the kernel
that read/write to the file should bypass the page cache.

Remove a warning about read beyond EOF which will now normally appear when
page cache is bypassed.
2014-08-16 16:28:43 +00:00
manu
ccfb03f9b0 Add an open2 method, like open but with an additionnal oflags used
by the filesystem to send back information about the file.
This is used to implement PUFFS_OPEN_IO_DIRECT by which the filesystem
tells the kernel that read/write should bypass the page cache.
2014-08-16 16:25:44 +00:00
christos
b4cf015091 Reduce diffs with upstream by automatically defining INITIALIZE as it was
intended.
2014-08-16 16:22:21 +00:00
christos
f31197977a gcc on the sparc needs help with variables it thinks are unitialized, but are not. 2014-08-16 10:38:43 +00:00
christos
3ea928643b Fix typo in comment (Tobias Stoeckmann) 2014-08-15 13:32:53 +00:00
martin
d3d55ddfdd Intialize dstname - the invariant combination with dstlen is too complex
for gcc to follow.
2014-08-15 13:20:29 +00:00
christos
3ad51082af merge tzcode2014f via patch 2014-08-15 11:04:07 +00:00
joerg
d213e5903a [] -> () 2014-08-13 15:41:21 +00:00
joerg
bd7693847a Spell LdAddr consistently 2014-08-13 15:19:22 +00:00
joerg
9074b7ff29 Use the lint path as workaround for Clang on 32bit PPC for now.
Document this hack.
2014-08-13 14:43:48 +00:00
joerg
edff4300ae powerpc64 uses the same sources as powerpc and needs the long double as
double-double sources.
2014-08-13 14:41:45 +00:00
pooka
df2711f4e7 In case of no dup2'd fd's, make sure that F_CLOSEM for the
rump kernel starts from 0.

Fixes rumphijack fdoff test (notably, this bug had nothing to do with
fdoff, and was exposed >3 years after writing the test when rump kernels
started providing fd's 0/1/2)
2014-08-12 23:47:09 +00:00
rmind
670c10ba87 - Add and use npf_alg_export().
- npf_conn_import: handle NAT metadata correctly.
- npf_nat_newpolicy: restore the policy ID.
- npfctl_load: fix error code handling for the limit cases.
- npf_config_import: fix the inverted logic.
- npfctl_load: improve error handling.
2014-08-11 23:48:01 +00:00
mrg
6cdb313ef0 revert parts of 1.163 that affect the x86 build.
possibly, we want to build the i386 fenv.c for compat build, but they
seem largely compatible and for now, just go back to what we had before
that wasn't breaking the build or generating bug reports.
2014-08-11 08:20:57 +00:00
matt
810b61bb1a MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:39:08 +00:00
matt
11614bb2b2 MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:25:49 +00:00
joerg
b32c7c5ab8 Add -mfpu=vfp for fenv.c, since it gets those instructions from
machdep/armreg.h
2014-08-10 20:48:34 +00:00
rmind
d0850273a2 - Add npf_ruleset_export(), npf_rule_export() and npf_nat_policyexport().
- Split off npf_conn_export().  Add npf_ifmap_getname() and use it to save
  the interface name; pick it up on npf_conn_import().
- Misc fixes.  Bump NPF_VERSION.
2014-08-10 19:09:43 +00:00
joerg
76ef534724 If LINT code path uses memcpy, it should also include string.h. 2014-08-10 17:55:08 +00:00
isaki
ef13227625 Improve the code. %sp@(4) is already loaded in %fp0.
PR/49083 (2)
2014-08-10 13:30:43 +00:00
isaki
914e175cb7 Remove a meaningless conditional branch.
PR/49083 (1)
2014-08-10 13:29:10 +00:00
joerg
604b984032 Add the not-yet-used IEEE quad support files. 2014-08-10 10:15:39 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
manu
ac7134332d - Make sure non root users cannot access system namespace attributes
- honour namespace specification when listing attributes
- Also fix message memory leak introduced by previous commit
2014-08-10 03:22:33 +00:00
manu
6a9d039fd1 getextattr: fix attribute length being reported to caller. If buffer
is too small, return ENORANGE.

Caught by glusterFS regression tests
2014-08-09 19:06:50 +00:00
manu
4bef47b350 Send GETATTR to filesystem for removed but still-open files, as
it is the expected behavior (bug caught by glusterFS regression tests)
2014-08-09 03:17:11 +00:00
apb
0b92f0fef9 Ue ${GZIP_N_FLAG} instead of -n when setting GZIPFLAGS or GZIP_FLAGS.
This will allow -nT instead of just -n to be passed to pigz.
2014-08-05 15:45:49 +00:00