Commit Graph

17569 Commits

Author SHA1 Message Date
joerg
3d415a7996 HAVE_GCC might not be defined at all... 2014-10-24 22:42:40 +00:00
joerg
145c684320 Don't overwrite the real unwind.h if it is present. 2014-10-24 22:42:16 +00:00
christos
71012c8f3e pam library has moved and new files 2014-10-24 18:27:41 +00:00
christos
0a409b4552 remove stray endif 2014-10-23 21:19:53 +00:00
christos
67431d7357 merge 2014i 2014-10-23 18:45:58 +00:00
martin
91eb09ff7d Only visit libasan if ${HAVE_GCC} == "48" 2014-10-23 15:29:06 +00:00
christos
f6fe66d5cb add asan to the libraries we build. 2014-10-22 23:20:48 +00:00
christos
e25713fc10 don't kill the existing includes 2014-10-22 19:29:31 +00:00
christos
98d839c6b3 Make unwind.h installable. 2014-10-22 16:30:21 +00:00
joerg
514c5293cd Add missing muldc3.c. 2014-10-22 10:33:27 +00:00
joerg
6602b2dcba Support copysignl on PowerPC. 2014-10-22 10:32:50 +00:00
njoly
0df29bec99 Do not use hard-coded values with ENAMETOOLONG, use symbolic constants
instead.
2014-10-19 16:47:51 +00:00
justin
7cbb46f7c6 Add negative offset checks to fseeko
These were not strictly needed before, as lseek would error on negative
arguments, but having added open_memstream we have a virtual file pointer
that assumes that it gets sane values, so we get an assertion triggered
on a negative value. Best to check in one place rather than at all the
relevant points.
2014-10-19 11:17:43 +00:00
riz
41482d7745 callers's -> caller's 2014-10-18 15:07:02 +00:00
snj
f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
joerg
85bde16a84 PPC64 uses the double-double code too 2014-10-17 20:02:12 +00:00
joerg
0d1500f401 Complex division for long double uses different function names on PPC. 2014-10-17 14:53:59 +00:00
christos
5b3acd55fe - don't leak errno in mktime()
- when we load a new timezone, don't change anything unless the load succeeded.
2014-10-16 17:53:32 +00:00
christos
355ccc569e PR/49284: Andreas Gustafsson: sysinst segfaults when configuring network
manually. When tzload() fails called from zoneinit(), when trying to set the
local timezone for the first time in tzsetlcl(), we end up with a lclptr
that contains garbage, so settzname() core-dumps.

Thanks Andreas for the analysis!
2014-10-15 15:13:45 +00:00
christos
0230240a4a improve error checking (setting errno) 2014-10-14 20:35:40 +00:00
wiz
7ed90a21cf Fix whitespace in Xr. Remove sbuf(3) Xr, we do not have that. 2014-10-13 22:41:59 +00:00
christos
3483aef36d bump for open_{,w}memstream. 2014-10-13 00:40:57 +00:00
christos
dfe69df4d4 PR/49279: Justin Cormack: add open_memstream 2014-10-13 00:40:36 +00:00
christos
02807d50d6 Fix fnmatch issues according to POSIX.
http://pubs.opengroup.org/onlinepubs/009695399/utilities/\
xcu_chap02.html#tag_02_13_01
1. A [...] pattern containing a slash is not a pattern; the [ ]'s become regular
   characters
2. A [] or a [!] is not an empty pattern, why would it? The first would never
   match and the second would always match which makes it equivalent to ?
   In those cases the ] is taken as a literal character and does not have
   special meaning.
2014-10-12 22:32:33 +00:00
njoly
0ab951a98a Note that rmdir(2) fails with EINVAL when the path last component is
`.' (dot).
2014-10-11 12:06:58 +00:00
njoly
fd871e46ea Use '.Rv -std' for RETURN VALUES, sort ERRORS. 2014-10-11 11:50:11 +00:00
martin
35c9ff1477 Need powl as alias as well 2014-10-11 07:19:27 +00:00
martin
5198dd7ae2 Seems we need both sqrtl and _sqrtl as a weak alias - something must be
wrong namespapce wise here, but this should make it build for now.
2014-10-11 06:59:29 +00:00
martin
624656f169 Fix _sqrtl alias 2014-10-11 06:34:31 +00:00
manu
f14b589944 Report allocated bytes on FS correctly, instead of using file size
(which is wrong for sparse files)
2014-10-11 04:19:38 +00:00
christos
f1159e5250 namespace protection 2014-10-11 00:43:51 +00:00
martin
642e307125 More aliases 2014-10-10 22:06:33 +00:00
martin
3f7199ab7e Add a few missing weak aliases 2014-10-10 20:58:09 +00:00
christos
3595e42fe1 try to make vax work. 2014-10-10 14:06:40 +00:00
christos
aa08994621 use long constant 2014-10-10 12:43:15 +00:00
christos
c271fdcaf7 whitespace 2014-10-10 12:43:07 +00:00
martin
6b7f6880d9 copy&pasto 2014-10-10 08:34:30 +00:00
martin
ac9a1ef7c6 Add missing catanh variant (and readd it to the Makefile list) 2014-10-10 08:19:37 +00:00
martin
8fb03683a3 Add cimag (apparently accidently dropped in previous revision and reorg) 2014-10-10 08:13:07 +00:00
christos
f14e8fc429 Add the missing complex functions. 2014-10-10 00:48:18 +00:00
wiz
00e22b0153 Drop trailing whitespace. 2014-10-08 22:10:04 +00:00
apb
82cbb6b06d Improved handling of local times.
* A magic value USE_LOCAL_TIME (defined as 99999) may be passed as the
  Timezone to Convert(), instructing it to use mktime() to work
  in the local time zone, instead of using mktime_z to work in UTC
  (and then adding the specified timezone offset).
* Some old code is removed now that there's no need to find the local
  timezone offset.
* Allow either one or both of the now and zone arguments to
  parsedate() to be NULL, treating them independently.  Previously,
  if either one was NULL, the other was ignored.
* If the zone argument is specified, then the current date is calculated
  in the specified zone, not in local time.

Also add some disabled debug code.

This should fix PR lib/47916.
2014-10-08 17:38:28 +00:00
apb
8afaf3e03b The tzoff argument is in minutes (behind/west of UTC), not seconds.
While here, also say that time = NULL and tzoff = NULL are independent.
The code doesn't yet implement that, but it will soon.
2014-10-08 17:06:18 +00:00
apb
bb7c1cf124 Add a new non-terminal "time_numericzone" for a time with
a numeric timezone.  Move some productions from "time" to "time_numericzone".
Increment yyHaveZone when encountering one of these.

Previously, input of the form "HH:MM:SS +ZZZZ" would not have set the
yyhaveZone flag.
2014-10-08 14:43:48 +00:00
apb
7ab26473da A time like HH:MM:SS.sss says nothing about whether DST is on or off. 2014-10-08 14:32:29 +00:00
martin
6a83d78f0f Make yeartot() declaration match prototype. 2014-10-08 13:13:34 +00:00
msaitoh
293393def8 Fix typo. 2014-10-08 05:44:03 +00:00
apb
ba5f5ce70d Document that years in ISO 8601 dates are taken literally.
"69-09-10" is in the year 69, not 2069.
2014-10-07 22:39:32 +00:00
apb
a777540768 Some years don't need the "maybe add 1900 or 2000" adjustment
that was designed for handling two-digit abbreviated years.
For example, "1/2/70" still refers to the year 1970, as before,
but "70-01-02" now refers to the year 70.

* Add a new yyHaveFullYear member to struct dateinfo, to record whether
  or not the year needs to be adjusted.
* Code that parses years sets yyHaveFullYear=1 if they know that the
  year should not be adjusted (as is the case for ISO 8601 dates), or if
  they perform their own adjustment (as is the case for CVS timestamps).
* Move the year adjustment code into a new function, AdjustYear,
  instead of inline in Convert().
* Make Convert() assume the year doesn't need to be adjusted,
  and make Convert's callers first call AdjustYear() if appropriate.
2014-10-07 22:27:14 +00:00
christos
c3777759a4 don't define functions we define in our own headers 2014-10-07 22:20:33 +00:00
christos
6eda9e7a82 Fix backslashes 2014-10-07 22:20:17 +00:00
christos
d953dfb290 remove version stuff 2014-10-07 22:14:46 +00:00
christos
1f6103b179 Sync with tzcode2014h 2014-10-07 21:51:03 +00:00
justin
87c18243d5 Canonical Minix check as pointed out by Marc 2014-10-07 12:48:02 +00:00
apb
776c903d9b include "nbtool_config.h", not "nbtools_config.h". 2014-10-01 13:53:04 +00:00
apb
f685c2f61e It's HAVE_NBTOOL_CONFIG_H, not HAVE_NBTOOLS_CONFIG_H 2014-10-01 12:55:39 +00:00
christos
6eac8b28cf toolize 2014-09-30 17:59:06 +00:00
manu
95e87e4336 Do not trust the filesystem's readdir to give us nul-terminated file names 2014-09-30 00:06:19 +00:00
christos
c4dd2a8529 toolify opendisk 2014-09-29 21:04:52 +00:00
justin
6f964b7d23 Minix also has getenv_r support 2014-09-29 15:54:28 +00:00
christos
3a55b33865 Return EOVERFLOW like FreeBSD does if the buffer size exceeds INT_MAX
(well FreeBSD documents INT_MAX + 1, but in the code it is INT_MAX).
2014-09-29 14:58:33 +00:00
wiz
902772b4e8 Add execvpe in one more place to explain its last argument.
Call character '0' 'NUL' instead of 'null'.
2014-09-27 16:42:07 +00:00
njoly
957f6a3676 Fix synopsis, remove unneeded Pp macro before display block and add one
before prototype. While here, use "Rv -std" for RETURN VALUES.
2014-09-27 12:11:13 +00:00
wiz
8ce7ddd61a Consistency in commas. Wording. 2014-09-27 08:46:56 +00:00
christos
566336d596 missed one reference. 2014-09-26 23:57:26 +00:00
christos
718924c8d3 add execvpe, execlpe (reviewed by phone) 2014-09-26 19:28:03 +00:00
roy
a1379155fa Cannot encode \$ in VIS_CSTYLE as that looks like vis -l encoding. 2014-09-26 15:58:59 +00:00
roy
c34e5c76fb Revert prior patch as it breaks vis -l as pointed out by apb. 2014-09-26 15:43:36 +00:00
roy
45893168de Don't encode any characters in VIS_CSTYLE that have a special meaning
in unvis(3), such as n r b, etc.
2014-09-26 13:48:00 +00:00
roy
a85407d2f2 Remove \$ as a hidden marker as vis(3) wasn't setting it
and it clobbered VIS_SHELL | VIS_CSTYLE.
2014-09-26 13:03:22 +00:00
roy
6439e61ed3 Decode any printable characters encoded with VIS_CSTYLE so
unvis(3) works with vis.c r1.25
2014-09-26 12:59:28 +00:00
christos
1fcf585b38 no c99 for tools. 2014-09-26 05:01:44 +00:00
wiz
1180688fb8 Simplify even more. 2014-09-26 02:30:27 +00:00
wiz
36fc2013b1 Simplify/fix macro usage. Bump date for previous. 2014-09-26 02:18:57 +00:00
christos
e36fdb7ec1 add VIS_META/VIS_SHELL support to encode all shell metacharacters.
XXX: /etc/rc.d/wizd fix $
2014-09-26 01:21:07 +00:00
manu
724e214f8d Fix argument paddiing for posix_fallocate and fdiscard with gcc 1.x 2014-09-25 15:08:29 +00:00
christos
d2ea5f1a49 add strnstr.c from FreeBSD 2014-09-24 22:21:33 +00:00
wiz
eb81de5e86 NUL byte instead of null byte. 2014-09-24 18:43:21 +00:00
christos
155fdf3987 add strnstr from FreeBSD 2014-09-24 18:16:36 +00:00
christos
9d26a6478d undo, the right place for this is compat_defs.h 2014-09-24 13:18:52 +00:00
he
fce45f5a15 Provide a backward-compatible conditional define of O_CLOEXEC
for those systems which lack it, since these files are used in
tools builds.
2014-09-24 07:53:06 +00:00
christos
339c89dc93 Adjust to kernel changes 2014-09-21 14:32:37 +00:00
matt
9fd2283a99 Add RISC-V MD bits. 2014-09-19 17:42:44 +00:00
matt
0a0fe53ec4 Tell it about riscv. Fix mips64 case so that SIZEOF_PTR_2POW is 3. 2014-09-19 17:42:19 +00:00
matt
6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
wiz
2a65137f55 Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
christos
9a513d9643 make more descriptors that we open as close-on-exec 2014-09-18 13:58:20 +00:00
christos
7447c028c2 KNF, sign cast. 2014-09-17 23:54:42 +00:00
joerg
ff474c241d Use --no-warn only with GCC on MIPS. 2014-09-17 11:37:28 +00:00
joerg
d131912831 Explicitly set noat around instructions using $at. 2014-09-17 11:02:55 +00:00
joerg
aca672a912 Use canonical three operand form of add.d. 2014-09-17 11:01:05 +00:00
joerg
a00bc98930 Provide explicit prototypes in case HAVE_SSP=no. 2014-09-17 00:39:28 +00:00
wiz
a1bd179106 Remove trailing whitespace. 2014-09-16 08:52:02 +00:00
apb
85013cd7a1 Rephrase the NOTE about embedded NUL characters, using "apparent length"
for what strlen(3) reports, and "true length" for what the return value
reports.
2014-09-16 08:42:20 +00:00
christos
44751e4dbf belt-n-suspenders, close on exec catalog files. 2014-09-16 01:30:28 +00:00
christos
d7c0fb8fbb close on exec hostaliases 2014-09-16 01:30:00 +00:00
christos
9a0178b83d Mark the dup of the resolv fd for close on exec. 2014-09-16 01:29:48 +00:00
christos
9abd014fb5 mention what happens if the line contains NUL's. 2014-09-15 23:41:16 +00:00
christos
7a55074b17 fix markup. 2014-09-15 23:31:17 +00:00
christos
57367022db Fix documentation to reflect what happens when EOF is found before delimiter,
aligning us with POSIX.
2014-09-15 23:29:16 +00:00
mlelstv
d144aaa341 use the passed parameter instead of PATH_MAX. Change signedness
of nlen.
2014-09-12 11:38:23 +00:00
mlelstv
26dae55653 - use a private buffer to resolve symlinks, the previous code was broken
- factored out symlink handling
- handle relative symlinks now
- handle device paths that do not contain a '/'.
2014-09-12 07:59:36 +00:00
manu
e6dc4d2455 Avoid a file resize serialization deadlock when writing with
PUFFS_IO_APPEND flag. The symptom was a hang when appending to
a file with a null size.
2014-09-11 04:05:52 +00:00
nat
141dc004bd Add missing defines for 16, 24 and 32 bit NE and OE formats.
Add the ability to set 24 and 32 bit precision.

This commit was approved by wiz@
2014-09-09 10:45:18 +00:00
christos
98376426fb get rid of MB_STRZ as suggested by joerg. 2014-09-08 17:35:01 +00:00
christos
4edef697e0 PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully.
(don't abuse 0 to mean compute string length internally)
2014-09-08 16:42:09 +00:00
matt
abb9139a12 The OpenRISC calling standard only passes 6 parameters by register. Any
others are passed on the stack.  NetBSD syscalls use up to 8 parameters
so that could mean two left on the stack for the kernel to access.  It's
easier for the kernel if userland could fetch into registers beforehand.
So we generate sysassym.h which contains the number of arguments for each
syscall and then use that to determine how many arguments need to be fetched
from the stack.
2014-09-05 18:09:37 +00:00
manu
4f16513e03 rmdir dir/.. must return an error. Use ENOTEMPRY like FFS does. 2014-09-05 15:20:16 +00:00
enami
21a900455a Fix build failure on amd64. 2014-09-03 23:59:58 +00:00
matt
27620987b8 New files for OR1K support 2014-09-03 19:34:25 +00:00
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