matt
9decdbdfe4
Add missing */
2011-07-04 21:55:09 +00:00
mrg
cd21741236
XXX: for now, build sparc64 csu with -O1 if using GCC 4.5.
2011-07-04 21:54:18 +00:00
manu
8f6bd1b1eb
Add documentation link xdr_sizeof(3) -> xdr(3)
2011-07-04 12:05:00 +00:00
mrg
bf90b28081
avoid some uninitalised variable warnings.
2011-07-04 11:46:41 +00:00
mrg
de4475a299
add support for __floatunsisf().
2011-07-04 11:22:39 +00:00
mrg
ceb5b44c16
insert some (uintptr_t) between int and pointer casts.
2011-07-04 11:01:40 +00:00
manu
b4a55eb6f9
Document newly imported xdr_sizeof()
2011-07-04 08:19:51 +00:00
manu
be95d60797
Add a flag to VOP_LISTEXTATTR(9) so that the vnode interface can tell the
...
filesystem in which format extended attribute shall be listed.
There are currently two formats:
- NUL-terminated strings, used for listxattr(2), this is the default.
- one byte length-pprefixed, non NUL-terminated strings, used for
extattr_list_file(2), which is obtanined by setting the
EXTATTR_LIST_PREFIXLEN flag to VOP_LISTEXTATTR(9)
This approach avoid the need for converting the list back and forth, except
in libperfuse, since FUSE uses NUL-terminated strings, and the kernel may
have requested EXTATTR_LIST_PREFIXLEN.
2011-07-04 08:07:29 +00:00
matt
c2405fa58b
Add __floatunsidf __floatunsisf __floatunsitf routines.
...
XXX i think they are correct but not sure.
2011-07-04 08:02:34 +00:00
manu
319b6ef0ee
Import xdr_sizeof() from FreeBSD
2011-07-04 07:54:38 +00:00
matt
25ba5ff11d
Update to C89 style.
...
Fix name of floatundidf (uns -> un).
2011-07-04 06:23:50 +00:00
mrg
fb6b921228
sh3 also needs -Wno-enum-compare here.
2011-07-04 02:53:15 +00:00
jruoho
b825528b07
But use .Xr (and not .Fn) with references to external functions.
2011-07-03 20:36:34 +00:00
jruoho
f688e4951f
Use .Fn (and not .Nm) for functions.
2011-07-03 20:34:52 +00:00
mrg
462a335ff0
mips wants some -Wno-enum-compare here, too.
2011-07-03 15:26:58 +00:00
jruoho
cac6cf8528
Note that mknod(2) may fail with EINVAL.
2011-07-03 14:11:43 +00:00
mrg
cba8775c43
use DBL_MAX and FLT_MAX from <float.h> instead of hard coding some ieeefp values.
2011-07-03 06:45:24 +00:00
matt
532130a31c
The kernel and ld.elf_so call with a different order for
...
cleanup, obj, ps_strings so deal with it.
With this change, USE_COMPILERCRTSTUFF=no works.
2011-07-02 20:16:09 +00:00
matt
675a57b0bb
Adapt to the new ___start calling convention
2011-07-02 20:14:10 +00:00
matt
fe30c1af31
Make this adhere to the SVR4 ABI.
2011-07-02 07:28:08 +00:00
christos
cdf62a44d3
- use defines for lengths
...
- strlcpy/snprintf
- KNK
2011-07-01 15:09:28 +00:00
matt
db6dfce31a
Fix some bugs [exceed array bounds]. Simplify.
2011-07-01 03:20:06 +00:00
joerg
c4cda1a2a7
Explicitly declare ___start as hidden.
2011-07-01 02:59:05 +00:00
mrg
680385b441
XXX: apply -Wno-error/friends to a few files
2011-07-01 01:25:52 +00:00
joerg
b341a73a57
Fix memset usage.
2011-07-01 01:19:33 +00:00
joerg
cfdb8ebbda
Fix memset usage. XXX should use static allocate and proper sizeof()
2011-07-01 01:15:27 +00:00
joerg
c617617e5d
Fix memcpy usage.
2011-07-01 01:08:59 +00:00
matt
d8b68e8316
Adapt to new ___start definition.
...
Use PIC method to load %r13 with address of _SDA_BASE_
2011-06-30 20:10:17 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
matt
0d4e6aae2a
Mark ___start as .hidden (for MKPIE=yes executables).
2011-06-30 20:07:35 +00:00
joerg
226567c8f9
Assert that ps_strings is valid. Use it to drop the first three
...
arguments to ___start to make the assembler callers simpler.
2011-06-30 19:48:43 +00:00
joerg
93fc0a3ef4
Drop special cases for i386 and m68k. It is not a validate assumption
...
that the address of an argument is at the same stack slot the caller
placed in it. It is perfectely valid to copy it into the local frame
first.
2011-06-30 19:46:07 +00:00
mrg
f7fea21d51
re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
...
also build the gmp, mpfr and mpc libraries in this case.
2011-06-29 02:05:24 +00:00
riz
ad760bfaf3
Don't hardcode the libpuffs path to /usr/src/lib/libpuffs.
2011-06-28 20:28:48 +00:00
manu
8ae0a67d6d
Add support for extended attributes
2011-06-28 16:19:16 +00:00
manu
4033ef79a2
Fix multiple non compliances in our Linux-like extattr API, and make it
...
public so that it can be used.
2011-06-27 16:39:43 +00:00
manu
4f82f2460e
From Evgeniy Ivanov: puffs_node_readdir() should set eofflag to one, when
...
end-of-directory is reached.
2011-06-27 12:06:19 +00:00
wiz
846092f009
Various minor improvements.
2011-06-27 08:21:07 +00:00
matt
80229e0feb
Fix softfloat for mips*el
2011-06-27 06:40:26 +00:00
christos
a26b732aad
put back some compat code for systems that don't have O_CLOEXEC.
2011-06-26 22:27:14 +00:00
christos
dcc9c82156
- use sizeof(var) instead of sizeof(type)
...
- remove useless cast
2011-06-26 22:20:31 +00:00
christos
5589fc5ec0
- Fix bug copying only 1 byte instead of the whole page number. Broke nvi
...
joining lines that needed R_BIGDATA.
- Fix from FreeBSD for nrec IAFTER.
XXX: Should be pulled up to 5.x
2011-06-26 22:18:16 +00:00
christos
9ad6d70c15
use O_CLOEXEC
2011-06-26 22:16:46 +00:00
christos
e2bebf7172
* Arrange for interfaces that create new file descriptors to be able to
...
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html ).
- Add F_DUPFD_CLOEXEC to fcntl(2).
- Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
- Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
for socket(2) and socketpair(2).
- Add new paccept(2) syscall that takes an additional sigset_t to alter
the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
SOCK_NONBLOCK.
- Add new mode character 'e' to fopen(3) and popen(3) to open pipes
and file descriptors for close on exec.
- Add new kqueue1(2) syscall with a new flags argument to open the
kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.
* Fix the system calls that take socklen_t arguments to actually do so.
* Don't include userland header files (signal.h) from system header files
(rump_syscallargs.h).
* Bump libc version for the new syscalls.
2011-06-26 16:42:39 +00:00
nonaka
c52f9a5df2
PR/45015: ld.elf_so: support ELF symbol versioning
...
Applied latest patch.
2011-06-25 05:45:10 +00:00
manu
503fb643db
Commit fix for misc/45029.
...
Approved by pooka@
2011-06-24 16:59:29 +00:00
mrg
5ed322d90a
apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
...
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg
4791aafc2d
fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
...
yet since we don't have them fully working. XXX.
2011-06-22 05:16:37 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
joerg
e060a1ff71
Actually used SSE branch. Noticed by enami@
2011-06-21 21:52:49 +00:00
wiz
ae6b6d0795
Sort sections.
2011-06-21 09:36:43 +00:00
mrg
77c15e81ac
add a missing " to a string literal in some #if'd out code that GCC 4.5 found.
2011-06-21 09:35:23 +00:00
mrg
3a3b951b93
add HAVE_GCC=45 support.
2011-06-21 04:04:13 +00:00
jruoho
706138d7ee
Note the potential danger in the options. Fixes PR lib/31112.
2011-06-21 03:02:57 +00:00
mrg
0a0dd75b65
add some XXX'd -Wno-foo if HAVE_GCC >= 45.
...
XXX: someone should look at these.
2011-06-21 02:32:55 +00:00
mrg
493d341048
various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
...
these work properly wtf pointer aliasing, but there are no casts at
least...
the lib/libpuffs/puffs_priv.h is definately a real bug fix.
from chuq.
2011-06-20 09:11:16 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
mrg
8f161cd6d3
remove all the code that supported HAVE_GCC=3. mostly from chuq.
2011-06-20 06:52:36 +00:00
roy
3a520e5e78
Make new compiled terms for our updated terminfo.
2011-06-19 16:36:04 +00:00
nakayama
a2925d9cef
__udivdi3 isn't included in sparc compat libc on sparc64, so use
...
ARCHSUBDIR instead of MACHINE_ARCH for checking whether to include
quad/Makefile.inc.
This fixes undefined symbol __udivdi3 in /libexec/ld.elf_so-sparc
on sparc64 which is the cause of failure of hello32 test in
toolchain/cc/t_hello.
2011-06-19 11:31:55 +00:00
joerg
17f4d79daf
Use correct stack register as noticed by christos
2011-06-18 22:19:52 +00:00
joerg
7d48645456
Kill redundant ;
2011-06-18 21:24:51 +00:00
joerg
658a2a5f07
Switch to SSE code, since our gas supports it now.
2011-06-18 20:49:26 +00:00
joerg
47980a5652
SSE2 registers are only used for float and double arguments, so update
...
comment to reflect reality. Add some accessor macros for long double
arguments for i386 and x86_64.
2011-06-18 18:16:40 +00:00
wiz
a7a30c8237
Fix wording (if I understand the sentence correctly).
2011-06-17 18:12:32 +00:00
wiz
e2be1556fd
New sentence, new line. Bump date for previous.
2011-06-17 18:08:53 +00:00
manu
448e1c49b2
Add mount -o extattr option to enable extended attributs (corrently only
...
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
jdc
f18c34f949
Correctly test for __ISDIRTY.
...
Problem noticed by (and test case provided by) blymn@.
2011-06-16 22:45:46 +00:00
christos
548c989a0b
don't modify tzname unless we are the non-reentrant version.
2011-06-16 22:40:17 +00:00
plunky
bdd01b22a1
Functions that return a struct or union, must set %eax to the value
...
of the original address of the callers area before it returns.
(System V ABI, i386 supplement, fourth edition, page 3-14)
2011-06-12 20:29:25 +00:00
matt
f3fc9a4693
Use excb before and after the mt_fpcr/mf_fpcr instructions as specified
...
in the alpha ARM 4.7.8.1 (Accessing the FPCR):
Because Alpha floating-point hardware can overlap the execution of
a number of floating-point instructions, accessing the FPCR must
be synchronized with other floating-point instructions. An EXCB
instruction must be issued both prior to and after accessing the
FPCR to ensure that the FPCR access is synchronized with the
execution of previous and subsequent floating-point instructions;
otherwise synchronization is not ensured.
Use unions to convert between double and uint64_t to avoid casting.
2011-06-12 05:44:36 +00:00
njoly
5fdba0ad5a
nanl() do use strtold(), not strtod().
2011-06-10 14:10:18 +00:00
njoly
7acc235b8f
Do not indent RETURN VALUES section (which was ignored because of
...
missing dash).
2011-06-09 12:13:00 +00:00
sjg
82f4eed556
_gr_copy() can get called with fromgrp->gr_mem == NULL.
2011-06-09 05:11:17 +00:00
njoly
463c1a0c0f
Fix prologue macros order.
2011-06-08 18:09:57 +00:00
bouyer
a3a7248ce7
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
2011-06-07 14:56:12 +00:00
drochner
a4fc3a054f
make sure the infinity returned by HUGE_VALL has the "implicit"
...
bit set, otherwise it is invalid
This code is unlikely to be hit because gcc (and clang) use
their builtins for these special values.
2011-06-06 17:02:29 +00:00
christos
33c7476cb2
Revert previous and make frach be 0xc0000000 for NAN's generated by strtold()
...
as suggested by tron.
2011-06-05 14:43:12 +00:00
christos
093aa7c0f7
Make NAN tests consistent with other platforms and FreeBSD.
2011-06-04 15:45:41 +00:00
christos
85d18e0c63
remove string placed by error(1)
2011-06-04 14:18:10 +00:00
wiz
d5982f0fd8
Sort errors.
2011-06-03 08:07:48 +00:00
jruoho
7a7aafd699
Note STANDARDS and use more markup.
2011-06-03 05:50:07 +00:00
yamt
63b82de8a6
compatibility note
2011-06-02 01:04:18 +00:00
manu
5255616730
Fix race conditions between write and getattr/setattr, which lead to
...
inconsitencies between kernel and filesystem idea of file size during
writes with IO_APPEND.
At mine, this resulted in a configure script producing config.status
with ": clr\n" lines stripped (not 100% reproductible, but always this
specific string. That is of little interest except for my own future
reference).
When a write is in progress, getattr/setattr get/set the maximum size
among kernel idea (grown by write) and filesystem idea (not yet grown).
2011-06-01 15:54:10 +00:00
manu
344a543c33
Remove outdated comment about a fixed bug
2011-06-01 07:57:24 +00:00
christos
88b197ec7f
PR/38413: Takahiro Kambe: mt(1) print some junk output when using remote tape
...
Not all fields are valid in the ioctl to get tape info in the rmt protocol.
Zero out the struct so that we don't print junk.
While here, KNF.
2011-05-31 12:24:33 +00:00
christos
98715cd1ec
PR/45007: rcmd_af(3) and thusly rsh(1) ignore requested address family
...
Pass in the address family to rshrcmd and DTRT.
While here KNF.
2011-05-31 06:49:26 +00:00
manu
26381d518d
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs
...
where the FUSE filesyste replied to an operation and got an ENOBUFS it did
not handle.
We now are also able to cleanly unmount
2011-05-30 14:50:08 +00:00
joerg
28050549eb
Ignore warnings when building with clang for now.
2011-05-30 14:41:26 +00:00
haad
0c1ba949b7
Fix problem where DM_IOCTL_NAME was used in libdm_task_set_uuid except of
...
DM_IOCTL_UUID. This makes lvremove to work properly.
Thanks To hugo Silva and Toby Karyadi for reporting this issue.
2011-05-30 01:10:57 +00:00
drochner
53cdf0b54e
make the "tags" target non-.PHONY because it reflects a real file,
...
and remove some nonsense in libc Makefile which caused that
a "tags" file was written in my source tree
2011-05-27 17:06:54 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
christos
178153b0c2
use _ALIGN consistently.
2011-05-25 02:11:16 +00:00
christos
bde00486af
make this compile with DEBUG (_ALIGN was not defined).
2011-05-24 22:39:47 +00:00
ryo
52e6dde2a6
fix incorrect variable name
2011-05-24 02:31:11 +00:00
joerg
70b0796a0d
Ensure that rumpuser_thread_exit doesn't return.
2011-05-23 20:49:08 +00:00
joerg
896c6d5b09
Save space, kill some ()
2011-05-23 20:43:02 +00:00
joerg
afa03266a7
Remove pointless self-assignment
2011-05-23 15:16:27 +00:00
joerg
998c5d780f
Make intermediate size variable size_t like the rest to avoid
...
unnecessary casting.
2011-05-23 14:53:46 +00:00
joerg
04d16b5c6d
Use C99-style init in _CITRUS_PROP_HINT_END to avoid warnings for
...
uninitialised type field.
2011-05-23 14:52:32 +00:00
joerg
939ab48f97
Actually return something deterministic
2011-05-23 14:45:44 +00:00
joerg
608276435f
Remove self-assignment of an argument that is later used.
2011-05-23 14:34:29 +00:00
joerg
b53ad3df44
Use a plain float constant, no need to deal with messy 0r prefix
2011-05-22 20:11:47 +00:00
dholland
d392ff6e7a
Clarify paragraph about calling setprogname, requested by Tobias Ulmer on
...
freenode. Bump date.
2011-05-21 19:06:44 +00:00
nakayama
88e42b609b
Add fenv support for sparc. Mostly copied from sparc64 and share with it.
2011-05-20 21:42:48 +00:00
dsl
67d513dd66
Remove __P()
2011-05-18 19:36:36 +00:00
manu
e0a6df40c2
- Proper permission checks when doing directory traversal. e.g.: run
...
rm dir/file while dir was never looked up since the mount. In that
situation, we get lookup with pcn_nameiop NAMEI_DELETE for dir before
we get it for file. But for dir we are just looking for PUFFS_VEXEC.
This is solved by honouring NAMEI_ISLASTCN, which is set for the last
element only
- do not send O_EXCL to FUSE as documentation forbids it.
- fix warning
2011-05-18 15:28:12 +00:00
manu
286587ad9c
Set buffer size as big in nomal mode as we do in debug mode, when
...
perfused stays in foreground. The difference is a mistake and was not
intended.
There is still a bug ready to bite here, since SOCK_STREAM is not reliable.
We just hope that buffers are big enough to hold all packets, but if they
are overflown, we loose a packet and a file operation gets stuck.
We really nee SOCk_SEQPACKET here, but unfortunately it is very broken at
that time.
2011-05-18 15:25:19 +00:00
manu
e7a016f266
typos
2011-05-18 15:22:54 +00:00
christos
713ea1897d
cleanup saving and restoring errno, and make it similar.
2011-05-18 01:59:39 +00:00
joerg
c98c805c05
Trailing white space
2011-05-17 07:10:39 +00:00
enami
bde048cc49
Use Pq or Po macro for better output rather than putting raw open paren
...
at the end of line.
2011-05-17 03:35:38 +00:00
drochner
ccdea5df98
-fix maximum length of salt (missing prefix, rounding error)
...
-clip number of rounds at 31 -- this is log2 of the real number,
and anything larger would break exponentation
-catch possible atoi() error where log2(rounds) is parsed in the
salt prefix
-zero crypto state on exit
from Open/FreeBSD
2011-05-16 10:45:56 +00:00
drochner
9c09925b41
fix ipad/opad buffer length (was one too much), just for sanity
2011-05-16 10:39:12 +00:00
christos
ec3000cfb2
PR/44959: Henning Petersen: glob forgets to closedir on out of space condition.
2011-05-14 22:44:06 +00:00
nonaka
9af4d11fa4
Use "_end" instead of "end" for consistency with other architectures.
2011-05-13 23:14:36 +00:00
christos
1ff5a5dfd6
don't let readlink trash errno.;
2011-05-13 23:11:00 +00:00
manu
6b36a33563
Mont FUSE filesystem with proprer source and fstype so that df and mount
...
display something that makes sense
2011-05-12 10:32:41 +00:00
jakllsch
32dec9bd40
Use sysconf(_SC_PAGESIZE) instead of PAGE_SIZE.
2011-05-11 14:52:48 +00:00
njoly
411ef8d5d2
Small typo in macro (Xd -> Xr).
2011-05-10 12:14:37 +00:00
jruoho
881e57fce3
Remove trailing '\'.
2011-05-10 09:07:51 +00:00
jruoho
31061e207a
Split out the ilogb(3) family out of ieee(3) and properly document it.
2011-05-10 06:38:33 +00:00
drochner
e7c5804ca9
rearrange variable usage to kill __UNCONST
...
reviewed by sjg
2011-05-09 19:15:28 +00:00
jruoho
fa096afe20
Xref raise_default_signal(3).
2011-05-09 09:06:21 +00:00
manu
73963ae9de
Enable the build of perfused and libperfuse
2011-05-09 08:51:08 +00:00
drochner
69de8de8f1
remove excess newlines in debug output
2011-05-06 17:22:09 +00:00
wiz
93cfe89ec0
Add missing preposition.
2011-05-05 07:36:44 +00:00
jruoho
19742b4964
Fix lead paragraph.
2011-05-05 05:58:14 +00:00
manu
38ecbcf429
Fixes for the advlock method. It can now sustain pkgsrc/devel/locktests
...
with glusterfs as backend
2011-05-03 13:19:50 +00:00
manu
7f87f63c56
Call advlock method if supplied
2011-05-03 13:16:47 +00:00
manu
f8934bcc9b
Fix build (libperfuse is still not built by default, but time is coming)
2011-05-03 13:14:09 +00:00
wiz
daf04c06a3
Remove \*[q] -- not necessary, just use plain double quotes instead.
2011-05-03 09:36:24 +00:00
jruoho
5517207853
Xref bswap(3). Simplify STANDARDS.
2011-05-03 04:07:39 +00:00
jruoho
db3b8477d4
Clarify STANDARDS (i.e. cf. ualarm(3) is no longer in POSIX).
2011-05-02 17:34:05 +00:00
jruoho
a192422bb6
Note also that the interaction between setitimer(2) and alarm(3) or sleep(3)
...
is unspecified.
2011-05-02 17:14:20 +00:00
jruoho
04b57bd832
Remove NOTES as it is documented in itimerval(3). Remove #ifdefs from
...
SYNOPSIS (these are visible enough in the body of the text). Use a list for
the timers. Improve wording and markup.
2011-05-02 17:01:52 +00:00
christos
89d0622f3e
Start eliminating "super-user" from the documentation.
2011-05-01 02:54:22 +00:00
christos
0a101028d4
nice should always return EPERM, not EACCES
2011-05-01 02:49:54 +00:00
martin
251de2dee0
Save a few global registers during set/longjmp - at least the application
...
registers and the only currently used system register (%g7).
Sparc now passes the setjmp tests (and should be able to build perl again).
2011-04-30 23:41:12 +00:00
martin
9881f8de04
Fix previous: the way we calculate, we need to test the size of sigjmp_buf
2011-04-30 23:39:08 +00:00
martin
c670087695
Add another compile time assert: catch overflows of jmp_buf
2011-04-30 23:30:27 +00:00
martin
b549c67469
Save/restore some global registers (sigsetjmp compatible). Does not realy
...
make a difference currently, but is a hard to spot blackhole if something
ever starts using the application registers.
2011-04-30 19:43:17 +00:00
martin
44283e6e19
Rearange jmp_buf content again: storing the sigsetjmp() save_mask midway
...
inside the environment is not a good idea, we may overwrite it when
fetching other details of the sigjmp environment.
Instead move it to the very end again.
Do not bother to save volatile (caller saved) global registers.
Fixes PR port-sparc64/44918.
2011-04-30 19:39:38 +00:00
alnsn
df45d61f55
Save/restore errno in error path in dupgood. Check that n>0 before
...
accessing banner[n-1].
Approved a while ago by pooka@
2011-04-30 12:25:05 +00:00
wiz
3ecc6ccf87
Mark up NULL.
2011-04-29 09:43:28 +00:00
matt
e148e1968d
Use correct CALLFRAME_SIZ depending on ABI.
2011-04-29 08:05:22 +00:00
wiz
83e8266979
Sort sections and errors.
2011-04-28 16:34:01 +00:00
wiz
1536c249f7
Markup fixes.
2011-04-28 16:16:23 +00:00
wiz
0b0f158833
New sentence, new line. Use more markup.
2011-04-28 14:59:27 +00:00
wiz
29e0fd69e9
Sort sections.
2011-04-28 12:00:55 +00:00
wiz
3652074286
Sort ERRORS.
2011-04-28 11:58:50 +00:00
wiz
560b21b44e
Fix a typo.
2011-04-28 11:56:26 +00:00
wiz
dbd13d8219
Spelling.
2011-04-28 11:22:44 +00:00
martin
d21307a5d2
Fix offsets used in the assembly code to save global registers into a
...
jmp_buf, add a compile time assert to catch this kind of divergence
in the C code.
Move the fixed "%npc = %pc + 4" computation to longjmp, this frees
the sigcontext sc_npc value. Use this space to save the savemask
for siglongjmp (we have run out of space behind the globals).
Fixes the tests/lib/libc/setjmp/t_threadjmp tests, and also hopefully
fixes PR port-sparc64/44902.
2011-04-27 21:08:48 +00:00
wiz
8973a7a700
Sort sections.
2011-04-25 23:14:33 +00:00
wiz
d489035474
Markup consistency, from YOMURA Masanori. Add serial comma.
2011-04-25 22:47:27 +00:00
wiz
3f4e964f9f
Sort errors.
2011-04-25 22:38:34 +00:00
christos
736e11067f
- make log_krb5 varyadic
...
- centralize error handling to one function
- check for NULL context
2011-04-25 22:22:25 +00:00
christos
def46fd94a
fix pasto (of no consequence)
2011-04-25 22:03:20 +00:00
christos
4a04b195ef
- make log_krb5 varyadic and merge the last error message.
...
- check for NULL context.
- print a more meaningful error when things go south
2011-04-25 22:01:04 +00:00
manu
c3c545a544
- Implement proper unprivilegied user permission verifications
...
Verification is now done in the lookup method, as it is the way to
go. Of course there are corner cases, such as the sticky bit which
need special handling in the remove method.
- Set full fsidx in vftstat method
- Do not pass O_APPEND to the filesystem. FUSE always sends the
write offset, so setting O_APPEND is useless. If the filesystem
uses it in an open(2) system call, it will even cause file
corruptions, since offsets given to pwrite(2) will be ignored.
This fix allows glusterfs to host a NetBSD ./build.sh -o build
- Do not use the FUSE access method, use getattr and check for
permission on our own. The problem is that a FUSE filesystem will
typically use the Linux-specific setfsuid() to perform access
control. If that is missing, any chack is likely to occur on
behalf of the user running the filesystem (typically root), causing
access method to return wrong information.
- When possible, avoid performing a getattr method call and use
cached value in puffs_node instead. We still retreive the latest
value by calling getattr when performing append write operation,
to minimize the chances that another writer appended since the
last time we did.
- Update puffs_node cached file size in write method
- Remove unused argument to perfuse_destroy_pn()
2011-04-25 04:54:53 +00:00
elric
8d159f43a8
We no longer need to -I/usr/include/krb5.
2011-04-24 19:00:56 +00:00
elric
6daa88e0a9
Stop using functions that are deprecated in Heimdal.
2011-04-24 19:00:31 +00:00
elric
0fce8776fa
Stop using functions that are marked as deprecated in Heimdal.
2011-04-24 18:53:55 +00:00
elric
a9c7955034
Remove use of functions marked as deprecated in Heimdal.
2011-04-24 18:48:04 +00:00
christos
322a9e7966
fix freudian slip
2011-04-24 01:56:44 +00:00
joerg
5c2887509e
Don't kill the read(2) stub, just the magic around it.
2011-04-22 14:18:34 +00:00
joerg
77abb554dc
Disable Fortification for pthread and rump stubs.
2011-04-21 13:38:14 +00:00
martin
211a501951
Backout previous, it breaks lots of tests (tests/lib/librumphijack for
...
example).
2011-04-21 08:21:13 +00:00
martin
a128c5080b
Backout previous, it causes lots of test failures (tests/fs/nfs for
...
example).
2011-04-21 08:17:00 +00:00
blymn
e0662f42c2
Fix deleting a key definition, it did not work. Also improve tracing
...
of key definition deletion.
2011-04-21 08:10:49 +00:00
enami
9aed075519
- Put empty line after the local variable definition in the sample code
...
to improve readability.
- Remove indirection operator to clarify error condition.
2011-04-20 23:37:51 +00:00
christos
57ddf70a57
sync with reality (prototype of open is varyadic)
2011-04-20 19:57:58 +00:00
manu
7a675e4eab
In node_lookup() ops, pcn->pcn_nameiop contains a NAMEI_* constant, not
...
PUFFSLOOKUP_*
2011-04-19 10:35:24 +00:00
drochner
1e1bb256ba
according to C99/POSIX, nextafter(x,y) should return y if x==y, from
...
Henning Petersen per PR lib/44875
2011-04-18 15:59:09 +00:00
christos
4957358ed5
Correct check for snprintf() overflow via Maksymilian Arciemowicz from FreeBSD.
...
(the bt one was ok, but set errno and make it the same for consistency).
[to be pulled up]
2011-04-17 23:12:38 +00:00
christos
5b8e5cb4eb
Fix markup
2011-04-16 23:58:01 +00:00
plunky
5bbcd2919f
when placing an attribute/value pair, validate that the value given
...
is a single data element
2011-04-16 07:19:36 +00:00
jruoho
e77640da5b
Merge floor(3) to ceil(3).
2011-04-16 05:48:50 +00:00
jym
e09db11815
Duplicate item detected, destroying duplicate.
2011-04-15 22:57:05 +00:00
elric
98fbe74f8c
Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
...
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
jruoho
ff8dfca355
Xref tm(3).
2011-04-14 05:50:49 +00:00
he
b974c45b30
Move the forward declaration of _sys_readlink() outside of the #if,
...
so that the build succeeds even if _FORTIFY_SOURCE isn't > 0.
2011-04-13 12:40:54 +00:00
jruoho
b29fd93227
Collect also the division functions to single place, div(3).
2011-04-13 07:12:52 +00:00
jruoho
19606f522d
Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page.
2011-04-13 06:56:50 +00:00
jruoho
2ba8acef07
Fix another bug (no 'imaxint_t' type).
2011-04-13 06:41:11 +00:00
jruoho
5bbfa36d7b
Fix obvious bug.
2011-04-13 06:35:48 +00:00
jruoho
9d56ec39d7
Split out from ieee(3) also the remainder(3) and copysign(3) families.
2011-04-13 04:57:10 +00:00
christos
e6eca274ad
Fix SSP builds (Vladimir Kirillov)
2011-04-12 19:49:48 +00:00
jruoho
e615e396bd
Split out FUNCTIONS to make this tolerable to read. Also improve readability
...
with lists. Describe the functions in the order of appearance in SYNOPSIS.
Use CAVEATS instead of NOTES. Remove "man page spam". Etc.
2011-04-12 13:46:38 +00:00
jruoho
72e27957d4
Xref tm(3).
2011-04-12 08:40:34 +00:00
jruoho
47a900e8bc
Move some of the discussion from the messy ctime(3) to tm(3).
2011-04-12 08:39:26 +00:00
jruoho
9305ee0c33
Split the nextafter(3) family of functions to their own page and properly
...
document these.
2011-04-12 07:29:50 +00:00
jruoho
8ee666bc1f
.Dv NULL.
2011-04-12 05:41:22 +00:00
jruoho
28629a5be1
Use RETURN VALUES rather than DIAGNOSTIC for... return values.
2011-04-12 04:55:05 +00:00
mrg
e9f4b70f7d
rm -f ${.TARGET} before trying to > write to it; some how mine ended up
...
being mode 444 and the build failed.
2011-04-12 03:35:47 +00:00
roy
ed684e08ea
Clean up some compile warnings
2011-04-11 21:37:19 +00:00
roy
9a92225ded
POSIX says that term.h should define tgetstr and friends
...
Fixes PR lib/43941
2011-04-11 21:13:09 +00:00
drochner
997b81175f
let log(<0) return NaN rather than -inf in POSIX/XOPEN modes, as
...
requested in PR lib/41931 by Havard Eidnes (the PR refers to POSIX,
the OSF/1 manpage suggests that XOPEN should behave that way too)
being here, do the same to log10 and log2
2011-04-11 15:17:33 +00:00
jruoho
32e685d288
Markup improvements.
2011-04-11 05:59:11 +00:00
wiz
a4af43db58
exec is on a higher plane of existence.
2011-04-11 00:21:45 +00:00
joerg
61ae1a1c52
Define _REENT. Extend CPPFLAGS.
2011-04-10 16:47:39 +00:00
christos
a87c855671
Document O_CLOEXEC.
2011-04-10 15:46:15 +00:00
christos
037499057e
make infinityl match what gdtoa thinks.
2011-04-10 13:51:18 +00:00
matt
14d704c9e9
Add a workaround for older crt0.o that overwrite r2 (tcb pointer).
...
(save tcb pointer using _lwp_setprivate in ld.elf_so and retrieve the tcb
via _lwp_getprivate in libc and use it to restore the value in r2).
2011-04-07 02:19:28 +00:00
christos
962e9ad63f
fix long double infinity.
2011-04-06 21:55:36 +00:00
jruoho
6e3ec5b1a3
Fix PR # 41894.
2011-04-06 08:38:43 +00:00
plunky
c5f754b958
inc pointer, so we store the value in the correct place
2011-04-05 18:58:43 +00:00
plunky
63f86cb4b8
Don't add the passed in 'len' value while testing if the data
...
space is large enough, to handle the edge case where len is
large (up to SSIZE_MAX may be valid on some machines) causing
pointers to wrap around and the fail condition to be missed.
2011-04-05 18:19:04 +00:00
plunky
354f9cc3c3
correct inverted logic (if sdp_put_data fails, sdp_put_attr should fail)
2011-04-04 19:51:33 +00:00
plunky
0d74ee67d3
remove compile time guard from previous commit, it is not needed
...
(C99 guarantees [u]intmax types are at least 64-bits)
2011-04-04 18:29:47 +00:00
plunky
a468cfe851
handle overflowed values correctly,
...
also put a compile time guard to warn if INTMAX won't fit in INT64
(all our ports currently have INTMAX = INT64)
2011-04-04 16:19:25 +00:00
blymn
eff7afe2e8
Add man page link for define_key
2011-04-04 10:32:04 +00:00
jruoho
cbe6dc2e1c
Use .Fn for functions.
2011-04-04 08:00:53 +00:00
christos
8056bccd98
Protect against stack smashes (Maksymilian Arciemowicz)
2011-04-03 22:14:15 +00:00
jruoho
dc9fc4f125
.Xr uvm_map_protect, not .Fn.
2011-04-03 06:54:30 +00:00
jruoho
f364f2ef05
Offset indent.
2011-04-03 06:05:21 +00:00
mbalmer
8ac2ff5d25
Fix misplaced parenthesis, from henning.petersen@t-online.de, thanks.
2011-04-02 10:22:09 +00:00
jruoho
132da5fb56
Offset indent.
2011-03-31 07:52:34 +00:00
jruoho
88d19f0f7c
.Li -> .Em.
2011-03-30 16:41:00 +00:00
jruoho
d1a07d838a
+ .Pp.
2011-03-30 16:37:09 +00:00
jruoho
423f8d7704
Improve -width.
2011-03-30 16:29:26 +00:00
blymn
3da4a766de
fflush the outfd after setting the cursor visibility so it takes effect
...
immediately.
2011-03-30 09:47:02 +00:00
jruoho
29a43bf561
From Henning Petersen in PR # 44641: C99 primitive type 'bool' used
...
as a variable name. Also small KNF, as in FreeBSD.
2011-03-30 08:22:01 +00:00
joerg
928f301be9
Rework TLS initialisation:
...
- Update TCB for the initial thread in pthread__initthread, not
pthread__init to get it valid as soon as possible.
- Don't overwrite the pt_tls field in pthread__initthread.
- Don't deallocate pt_tls in pthread__scrubthread. This worked more by
chance than by design.
- Handle freeing the TLS area in pthread_create after removing the
thread instance from the dead queue.
2011-03-30 00:03:26 +00:00
jruoho
cb0f983e60
Improve -width.
2011-03-29 18:54:54 +00:00
jmmv
255271589f
Extend pidfile(3) to support creating pid files in arbitrary locations.
...
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.
Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid. This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
martin
ecf8c9b0f0
ABI police: avoid cluttering global registers %g2 and %g7. Not quite there
...
yet for %g2, but the target is not very well defined. %g7 should be clean
now.
2011-03-28 11:19:12 +00:00
wiz
7091eebfa9
Whitespace and punctuation.
2011-03-27 22:55:07 +00:00
wiz
971b386cde
Oh no -- a space! get rid of it, quick.
2011-03-27 22:51:35 +00:00
njoly
119aff4da3
Fix sigprocmask section (3 -> 2).
2011-03-27 12:53:16 +00:00
njoly
63adbe29fb
Fix xref, arm32_sync_icache -> arm_sync_icache.
2011-03-27 12:48:41 +00:00
he
08a8bf5254
Fix this so that it builds for vax; where the compiler balks at the
...
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.
OK'ed by christos@
2011-03-27 11:21:54 +00:00
christos
2587e6e437
add fpgetprec/fpsetprec
2011-03-26 19:51:41 +00:00
njoly
82815469fb
Add quotes for multi-words width string.
2011-03-25 17:15:26 +00:00
pooka
9fdb8e5eff
mention rumphijack
2011-03-25 16:13:05 +00:00
pooka
0446c4bc83
add paragraph about kernel clients
2011-03-25 16:07:43 +00:00
joerg
6c7179c5fb
Remove support for the old BSDCTYPE format.
2011-03-25 00:45:24 +00:00
bouyer
d9210c2405
Add a new libquota library, which contains some blocks to build and/or
...
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
dholland
8ba9dddb47
Eliminate dead store. From Henning Petersen in PR 42776. Doesn't change
...
the output .o file.
2011-03-24 02:29:33 +00:00
martin
d2c615416b
Avoid using %g7
2011-03-23 20:54:35 +00:00
pooka
f347b4496a
make work on nb5 again
2011-03-22 22:27:33 +00:00
martin
0c3a269fd8
Remove the sparc-v7 compatibility wrapper functions (.div, .mul, ... .urem),
...
the compiler never generates (or did generate in the past) 64bit code to call
them, and they are still present in our 32bit compat library.
2011-03-22 12:24:53 +00:00
jruoho
a8287d0554
* As is customary, append the parameter names from
...
SYNOPSIS to the description of the functions.
* Use .Ss for non-standard subtitles.
* Fix two identical subtitles.
* Add missing .It's, fix few .Ft's.
* Use a little more markup.
* Improve offsets.
2011-03-22 07:28:41 +00:00
enami
df36fea7b7
Don't use #endif where #else is expected.
2011-03-21 23:37:42 +00:00
christos
2b13247b7f
pacify lint.
2011-03-21 22:33:46 +00:00
christos
a9f77bad7a
Add Emin for the vax. Need to check
2011-03-21 22:33:29 +00:00
christos
ab9f1e36c8
fix vax typo.
2011-03-21 19:46:41 +00:00
pooka
dc8b381a32
update copyright
2011-03-21 16:41:27 +00:00
christos
374ecd4b4c
more de-linting.
2011-03-21 12:53:50 +00:00