Commit Graph

14166 Commits

Author SHA1 Message Date
joerg c1e0a5bd50 Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
2010-08-28 21:30:02 +00:00
wiz 9538d798d1 Fix Dd argument, sort sections. 2010-08-28 15:49:08 +00:00
christos 7741aae941 setup a callback to be invoked on resize buffers so that readline can
reset rl_line_buffer which unfortunately some applications use it directly.
2010-08-28 15:44:59 +00:00
tron a38ccbe49f Mention recent enhancement and not that this function is neither
re-entrant nor thread-safe.
2010-08-28 13:42:07 +00:00
manu 374b973db4 - set user/group ownership after object creation.
- enforce permissios checks. This needs to be  reviewed.
2010-08-28 03:46:21 +00:00
wiz 392a19e562 Fix typo. 2010-08-27 18:31:18 +00:00
manu 1326029781 - if perfused is not already started (cannot connect to /dev/fuse),
FUSE filesystems will attempt to start it on their own, and will
communicate using a socketpair

- do not advertise NULL file handle as being valid when sending themback to the FUSE filesystem.

- unmount if we cannot talk to the FUSE process anymore

- set calling process gid properly

- debug message cleanup
2010-08-27 09:58:17 +00:00
christos 3991ffd1e1 add psiginfo. 2010-08-27 08:38:41 +00:00
pooka 33e9636157 Move the manpage from the kernel sources into lib, 'cause that's
where it's used.
2010-08-27 08:21:43 +00:00
manu 516b1c9016 - open the file before doing fsync: glusterfs wants that.
- Automatically call fsync on close for files. If we just close, fsync
will come later and we will have to reopen

- Add a PND_DIRTY flag to keep track of files that really need a sync.
perfuse_node_fsync only calls the FUSE fsync method if there are data
to push.

- Add a PND_OPEN flag to keep track of open files. Checking non NULL
fh is not enough, as some filesystems will always set fh to 0.

- Add a sync diagnostic flag, to watch fsync and dirty flag activity.
Make the fh diagnostic flag more verbose

- Send the fh in setattr (it was hardcoded to 0)

I am now able to build libperfuse in a glusterfs mounted filesystem. Yeah!
2010-08-26 13:29:01 +00:00
manu 7b1d1ee680 libperfuse(3) is a PUFFS relay to FUSE. In order to use it,
FUSE filesystem must be patched to #include <perfuse.h> in the source
files that open /dev/fuse and perform the mount(2) system call. The
FUSE filesystem must be linked with -lperfuse.

libperfuse(3) implements the FUSE kernel interface, on which libfuse or
any FUSE filesystem that opens /dev/fuse directly can be used.

For now, an external daemon called perfused(8) is used. This may change
in the future.
2010-08-25 07:16:00 +00:00
christos 389aa89258 PR/43795: Guy Harris: describe return values and error handling. 2010-08-24 12:05:01 +00:00
tron 90493f6f08 Add support for parsing the data format "@<seconds since epoch>" e.g.
"@735275209" for "Tue Apr 20 03:06:49 UTC 1993". This change was inspired
by coreutil's "date" utility.
2010-08-21 16:17:40 +00:00
pooka 65cdb57245 print to stderr instead of stdout 2010-08-20 16:35:05 +00:00
christos 6afe6deefa Log why pwd_mkdb failed. Currently on aslr systems, pwd_mkdb either aborts
or when s/vfork/fork/ dies with SEGV accessing the the stack. The same abort
effect can be achieved when we remove all resource limits.
2010-08-18 08:32:02 +00:00
christos 90f5be5cdd Log via syslog(3) when we run pwd_mkdb(8). 2010-08-18 08:09:17 +00:00
pgoyette a3f95ef31a Add a couple more possible return values. 2010-08-18 01:55:32 +00:00
jakllsch e43287544b Improve usbhid(3) descriptor/report parsing:
Handle signed Physical Minimums
 Handle signed Unit Exponents
2010-08-13 19:56:34 +00:00
pooka a5e213b348 * if kevent() fails with EINTR, try again instead of returning an error
* stuff rumpuser_dprintf to stderr instead of stdout
2010-08-11 10:25:59 +00:00
drochner 2dcdd0a999 two disgusting hacks:
-mk/bsd.lib.mk picks up a .S asm file behind our back (did it do so
 always?). s_modf.S is incorrect; I'm undecided whether it makes sense
 to fix it, so add a stupid rule to enforce the .c file to be used.
-on i386, s_tanh.c gets miscompiled. It works with -O0, so add
 COPTS for exactly that file.
2010-08-10 17:53:08 +00:00
christos b584c39e1d fix the build; we need libmj installed before compiling netpgp binaries. 2010-08-07 21:32:28 +00:00
wiz ab7858d6ea Remove reference to fpresetsticky(3), which doesn't exist.
From Stathis Kamperis.
2010-08-07 18:13:12 +00:00
wiz 16b537c3d2 Fix typo in MLINKS, from Stathis Kamperis. Adapt set lists, and run
them through sort while there.
2010-08-07 18:12:45 +00:00
joerg fcd549e0e4 Retire old crtbegin/crtend implementation. It is not compatible with the
expectations of modern C++
2010-08-07 18:06:59 +00:00
joerg 01bc9d5012 Switch i386 and x86_64 to the new CRT layout. The crt0.c body is shared
between all platforms and a small assembler stub in crt0.S is used for
setting up the proper stack and whatever else MD needs.

Extract crti.S and crtn. from the old dot_init.h files. Prepare other
platforms that use the 6-argument form of __(_)start for this.

Rewrite the crtbegin and crtend modules in assembler to make them
compiler independent. Document the interface in README.
2010-08-07 18:01:32 +00:00
christos 5861d73fd7 move namespace protection before inclusion. 2010-08-06 15:21:50 +00:00
christos e8deba048f Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner. 2010-08-06 14:23:06 +00:00
wiz 6abd2b9ccc Fix typo. 2010-08-06 06:29:38 +00:00
christos ea1f852ab8 document pthread_getattr_np 2010-08-06 05:35:42 +00:00
christos eaa5239efc weakasm for kevent so it can be a cancelation point. 2010-08-06 05:26:35 +00:00
christos f6cf46930e make kevent(2) a cancelation point, and document properly all the cancelation
points we currently support.
2010-08-06 05:25:46 +00:00
christos 32d8a48951 Add pthread_getattr_np() 2010-08-06 05:25:02 +00:00
dholland de3d24d6c6 avoid writing in parseltongue 2010-08-06 04:03:26 +00:00
christos 6e1c968db3 provide rl_on_newline 2010-08-04 20:29:18 +00:00
wiz 33c5cb75ad Remove trailing comma in enumeration, make HTML-ready. 2010-08-04 18:58:28 +00:00
wiz 3b43a9401a Remove trailing comma in enumeration. 2010-08-04 18:58:18 +00:00
taca 5dad8344cc Fix compile error. 2010-08-01 06:34:38 +00:00
joerg c271d4f25f Fix merge error: drop machine from an older workaround for machine.sse
under compat32, drop the assertion, initialize oldlen.
2010-07-31 22:14:18 +00:00
joerg 7f1183f226 Add support for fenv.h interface for i386 and amd64.
Submitted by Stathis Kamperis as part of GSoC 2010 and ported from
FreeBSD.
2010-07-31 21:47:52 +00:00
tnozaki 9731566dda initialize fake FILE, not fp. 2010-07-31 08:47:34 +00:00
christos e408681794 undo unrelated diff. 2010-07-31 07:58:22 +00:00
tnozaki 8c1984cdde fix coredump vfwprintf(stderr) reported in current-user@
rework rev1.9, _FILEEXT_SETUP() doesn't care wcio_data. so initialize it.
2010-07-31 07:24:52 +00:00
joerg 44b309378f Define a new __c99inline macro for compilers known to implement the C99
behavior.  This unbreaks GCC 4.4's libgfortran build with the old
signal.h logic, because GCC decided to put the body for the sigsetop
functions in multiple objects.
2010-07-31 00:04:42 +00:00
jruoho c28dcae1e0 Get rid of SYSCTL_SETUP.
We want the sysctl variables also when mqueue(3) is loaded as a module.
2010-07-28 20:49:12 +00:00
njoly 29a656f391 Improve _PC_NO_TRUNC description. From Matthew Mondor on
current-users@.
2010-07-26 12:30:16 +00:00
wiz 591b4ec0ca Bump date for _PC_NO_TRUNC description fix. 2010-07-22 19:28:25 +00:00
njoly dcf57cdbc8 Fix wrong value (1 -> 0) in _PC_NO_TRUNC description. 2010-07-22 18:20:21 +00:00
christos 0ccb4e68f8 refresh only on SIGCONT not SIGWINCH from Edward Sheldrake 2010-07-21 18:18:52 +00:00
christos c157529beb retry the read after sigwinch too, from Edward Sheldrake 2010-07-19 17:18:13 +00:00
pooka 55cb844525 convert to newstyle automagic rump compat syscalls 2010-07-19 15:35:38 +00:00
pooka 01e9b21900 Default f_namemax to MAXNAMLEN, mostly for initial statvfs struct
passed to kernel in mount.

XXX: there's currently no way for a file server to override the
one passed in mount.
2010-07-15 21:53:10 +00:00
pooka e894ab517b Export the opid -> opstr tables (for outside debugging use). 2010-07-11 12:29:08 +00:00
wiz 4d7c45167f Sort sections. 2010-07-09 20:58:38 +00:00
wiz bb4a6891d0 Fix typo. 2010-07-09 20:56:01 +00:00
jruoho b46f888960 Add a compatibility note. Also some minor improvements. 2010-07-09 18:16:31 +00:00
jruoho be670be457 Update ERRORS, tidy SEE ALSO. 2010-07-09 18:07:20 +00:00
jruoho 267d79598f Rearrange, reword, clarify. Remove duplicate paragraphs and recurring
sentences. Update the ERRORS to reflect reality in NetBSD.
2010-07-09 18:01:53 +00:00
jruoho bc665d2683 Re-add EINVAL for pthread_condattr_destroy(3) (misread the pthread__error()). 2010-07-09 17:54:08 +00:00
jruoho e328c0292c Note also alignment via mmap(2), as done in NetBSD. 2010-07-09 17:15:59 +00:00
jruoho c42287d313 As per (now closed) PR lib/43581, add a note about unsupported modifications
to the red zone size.
2010-07-09 17:03:04 +00:00
jruoho dd981aaaa6 Remove error conditions. Add CAVEATS to note the questionable value of the
functions in NetBSD, which does not support additional condition attributes.
Note that these do not conform to SUSv4, where two additional attributes are
mandated.
2010-07-09 16:54:30 +00:00
jruoho 4ec5f0283b Use .Ss for non-standard subtitle. 2010-07-09 12:00:38 +00:00
jruoho 10bc8c491b Rewrite this for clarity. Also remove AUTHORS; someone was proud enough to
put himself as the author, even though the page was directly cut-and-pasted
from the Open Group's specification.
2010-07-09 11:03:26 +00:00
jruoho 70d17355ab Add missing prototypes. Noted by wiz@ -- thanks. 2010-07-09 10:55:57 +00:00
wiz 83d2a68694 Mark up NULL. 2010-07-09 10:55:11 +00:00
wiz f42b354e7d Mark up NULL, remove double space. 2010-07-09 10:49:48 +00:00
wiz 2fb2239c33 Add missing word. 2010-07-09 10:45:36 +00:00
jruoho 379ef6d482 Fix the return values; pthread_resume_np() may fail with ESRCH. In addition,
some improvements to markup and wording.
2010-07-09 09:18:45 +00:00
jruoho 6f7f6ed0ba Add the last compatibility note for the NetBSD extensions. 2010-07-09 09:10:34 +00:00
jruoho 9c4ae7f5c2 Update conformance to the 2001 revision. 2010-07-09 08:51:28 +00:00
wiz b4d7d4fbfb Sort errors. 2010-07-09 08:32:39 +00:00
wiz c351e7655b Remove empty line. 2010-07-09 08:31:35 +00:00
jruoho 6aa4892177 Rationalize by moving
pthread_key_delete(3) to pthread_key_create(3); and
	pthread_setspecific(3) to pthread_getspecific(3)
2010-07-09 08:22:04 +00:00
jruoho 3cc3be4df9 Rationalize by moving
pthread_attr_setname_np(3) to pthread_attr_getname_np(3); and
	pthread_setname_np(3) to pthread_getname_np(3).
2010-07-09 07:31:01 +00:00
jruoho 950e52c1c6 Ups. pthread_barrierattr_destroy(3) may fail with EINVAL. 2010-07-08 23:27:50 +00:00
jruoho 16fcf35f93 Cleanup errors; no error returns are defined in NetBSD. (The error codes
should be audited, and tested, for all pthread functions. Also the used
separation between "shall fail" and "may fail" should probably be removed.)
2010-07-08 23:23:37 +00:00
jruoho 8fe295c535 .Xr instaed of .Fn for pthread_mutex_init(3), update the error codes,
cleanup STANDARDS, etc.
2010-07-08 22:46:34 +00:00
jruoho ec0cdba3c9 Group also pthread_attr_getschedparam(3) and pthread_attr_getschedpolicy(3),
as these two pages fit well together.
2010-07-08 22:19:26 +00:00
jruoho 290a8eeeb6 Add some remarks and clarifications, simplify RETURN VALUES, grammar, etc. 2010-07-08 21:48:07 +00:00
wiz 0ce392a24d Add comma in enumeration, remove Xr to itself from SEE ALSO. 2010-07-08 21:35:09 +00:00
wiz 5a5247a953 Add comma in enumeration, sort errors. 2010-07-08 21:34:22 +00:00
wiz 75c6ae8ffe Sort errors. 2010-07-08 21:34:06 +00:00
wiz 2376f0c4a6 Add comma in enumeration, sort errors. 2010-07-08 21:33:38 +00:00
jruoho acb018ea1d Split long lines, .Dv NULL, note pthread_barrierattr_init(3). 2010-07-08 20:59:43 +00:00
tron 98e3b3e4ec Explicitly cast argument of ffs(3) to fix lint error. 2010-07-08 20:12:37 +00:00
jruoho 0fcec3f1b2 Add missing word. 2010-07-08 20:09:29 +00:00
jruoho baea5f9773 Continue the discussion with few remarks and rearrange slightly. 2010-07-08 20:07:23 +00:00
rmind d199be9733 Merge/group man pages:
- pthread_barrier_{init,destroy,wait} into pthread_barrier(3).
- pthread_cond_* into pthread_cond(3).
- pthread_mutex_* into pthread_mutex(3).
- pthread_rwlock_* into pthread_rwlock(3).
- pthread_spin_* into pthread_spin(3).
Cross-link amongst groups.
OK jruoho@
2010-07-08 19:20:16 +00:00
wiz feae669037 Add missing word. 2010-07-08 18:30:00 +00:00
wiz 92345efbda Whitespace nit. 2010-07-08 18:24:34 +00:00
wiz 228b1868fd Sort sections. 2010-07-08 18:15:27 +00:00
rmind 0dcf29f92e pthread_create: simplify error path slightly. 2010-07-08 15:13:35 +00:00
rmind cb0faac14c svc_getreq[set]: use unsigned when assigning to fds_bits.
XXX: This code should not invade fd_set internals at all.
2010-07-08 14:45:08 +00:00
jruoho 9d6f993b89 Rewrite and include a short summary. 2010-07-08 06:47:49 +00:00
jruoho 1540fc21ba Finally, split pthread_attr_getschedpolicy() and pthread_attr_setschedpolicy()
to their own page.
2010-07-07 16:22:30 +00:00
jruoho 6218b6cbdb Xref pthread_attr_getschedparam(3) and sched(3). Use a list for clarity. 2010-07-07 16:07:10 +00:00
jruoho edddb28a67 Split pthread_attr_getschedparam() and pthread_attr_setschedparam() to a
separate page.
2010-07-07 16:04:19 +00:00
jruoho cf6053f7b6 Split pthread_attr_getinheritsched() and pthread_attr_setinheritsched() to a
separate page, and actually document these.
2010-07-07 15:30:32 +00:00
jruoho 904af291c8 Move pthread_attr_getguardsize() and pthread_attr_setguardsize() to a
separate page, and actually document these.
2010-07-07 13:04:20 +00:00
jruoho 40267ee9ae Fix some minor errors/typos and clarify. 2010-07-07 12:49:15 +00:00