Commit Graph

11471 Commits

Author SHA1 Message Date
seanb e17c2f7f45 - Function no longer matched prototype after
move to ansi prototype in last commit; restore.
- Not noticed as weak aliases are used so the
  code is not compiled in.
2007-01-17 16:39:20 +00:00
pooka c068d370f2 revoke revoke 2007-01-16 22:37:17 +00:00
cbiere 13b350466e Fixed string truncation bug in flags_to_string(): SAPPEND() uses
sizeof(string) but string is a pointer to a malloc()ed buffer.
2007-01-16 17:34:02 +00:00
ad 8e51dbdc7e For 1:1 threads: __strong_alias(__libc_thr_yield,_sys_sched_yield) 2007-01-16 07:09:17 +00:00
ad 154a7ed75c Add: _lwp_kill, _lwp_detach, _lwp_park, _lwp_unpark, _lwp_unpark_all,
sched_yield.
2007-01-16 07:07:45 +00:00
ad b8daad9836 Fix a race between pthread_exit() and pthread_join(). 2007-01-16 05:22:55 +00:00
ad efb1fc06e2 Fix a race between pthread_create() and pthread_exit() in the 1:1 case. 2007-01-16 04:19:02 +00:00
ad 39aa27f5ce Pass in the 'hint' argument when parking/unparking LWPs. 2007-01-16 01:35:16 +00:00
cbiere f13e324ee5 Bail out on the first sysctl() error as suggested by Pierre Pronchery in
PR lib/35403. christos agreed it's cleaner.
2007-01-15 22:26:35 +00:00
pooka 05861b929d Checkpoint some more work in progress: for the benefit those file
system backends which operate purely based on paths, push out more
path management into the library and make path management more
abstract: enable a file system to define a bunch of path management
callbacks, which are used by the framework.  Management of normal
/this/is/a/path type paths is provided by the library.
2007-01-15 00:39:02 +00:00
cbiere 9946ea710f Avoid lint warning. 2007-01-14 23:41:24 +00:00
cbiere 3984c614f6 Look only at the first `n' characters to avoid traversing a potentially
huge string for nothing.
2007-01-14 18:48:28 +00:00
christos 754eed8af3 PR/35411: Matthew Wala: inconsistency in editline(3): rename "num" to the
appropriate parameter names.
2007-01-12 16:31:13 +00:00
pooka 5014a4c9c2 For directory renames we need to rename all the child nodes for
the given directory if the file system wants paths (PUFFS_FLAG_BUILDPATH).
Do this by walking the nodelist and adjusting the path prefix of
each matching node.
2007-01-11 18:18:36 +00:00
pooka a3d07fb3e9 implement fsync 2007-01-11 17:48:21 +00:00
pooka b599bb507d * do the l-variations of syscalls, since some nodes are symlinks
* truncate only regular files to set size
* do the chmod()-dance for cache flush to now write-protected files
  until I can think of a nicer way to solve this
2007-01-11 14:59:35 +00:00
pooka e639bec8c2 Add preliminary code for a nullfs layer, which can be used to mount
a directory hierarchy to another point, just like with the kernel
nullfs.  This is not really a layering scheme yet, but it should
evolve into one.  Currently it can just be used to do 1:1 mapping.
2007-01-11 01:01:55 +00:00
pooka 14b3edf81b * don't chdir in possible daemon() call for the benefit of file systems
which specify a relative path as the root
* if (buildpath), build link source full pathname for the duration of
  the operation
2007-01-10 23:02:50 +00:00
pooka 2811d45fdd Be less shy about the default stack size, it's a only virtual memory space.
TODO: put a guard page at the end
2007-01-10 20:11:04 +00:00
pooka 71ddd8df08 rename name cache invalidation interface to be in sync with the
kernel operation names, i.e. contain "namecache" instead of just "name"
2007-01-09 18:19:01 +00:00
pooka 03a190dc22 lib interface for invalidation routines 2007-01-09 18:15:08 +00:00
elad 7e90974e98 Consistent license. 2007-01-09 14:04:44 +00:00
wiz 7bbb7f45b1 Bump date for previous. 2007-01-09 06:41:57 +00:00
rillig c79f6cc521 chmod fails with EPERM when you try to set the S_ISGID bit on a file
whose group isn't one of your groups.
2007-01-09 04:03:57 +00:00
drochner 9c848e15d6 bring sched_yield() back which got lost recently 2007-01-08 20:54:42 +00:00
bouyer 6401b32154 libpam also depends on libkafs now, so .WAIT before building it. 2007-01-06 20:54:37 +00:00
pooka 7cc096d8ec * get rid of the mount callback; it's no great surprise to the
server that it needs to mount the file system backend if it wants
  to call mount
* provide some options for getmntopts(), assume that callers will parse
  command line (or fstab) args
* reorganize the puffs_cc interface just a bit, preparing for a bigger
  revamp later
2007-01-06 18:22:09 +00:00
wiz b2fb822f2d Re-add removed block:
Christian Biere suggests it was a typo, and was intended to describe
ENFILE; let it do that.
2007-01-04 00:02:43 +00:00
wiz 49a81ec436 Remove duplicate EMFILE description. 2007-01-03 23:02:53 +00:00
cbiere 8106cb099a Fixed wrong and illogical statement:
fcntl() F_DUPFD does NOT set FD_CLOEXEC for the new file descriptor.
2007-01-03 11:50:47 +00:00
ws 0ff81292cd Don't leak file descriptors. 2007-01-03 11:46:22 +00:00
pooka f70a3c8c19 * inform kernel of our version
* homegrown lib ABI check (to avoid bumping major a ludicrillion times
  before reaching stability)
2007-01-02 15:53:05 +00:00
martin cc10b3e0c8 MD_DO_NOT_NEED_FALLTHRU - from Nick Hudson. 2007-01-02 14:32:34 +00:00
yamt daa6d99693 kvm_getproc2: retry on ENOMEM.
it happens when the number of processes are changed in the mean time.
2006-12-31 16:20:18 +00:00
uebayasi d8b460bb92 Whitespace. 2006-12-31 03:17:52 +00:00
yamt 5bb88600b0 remove nqnfs. pointed by Tom Spindler. 2006-12-29 22:56:55 +00:00
pooka 184a7d787c checkpoint some experimental work-in-progress, namely:
Add support for having multiple outstanding operations.  This is done
by exposing enough interfaces so that it is convenient to have the
main event loop in the implementation itself and by providing a
continuation framework for convinient blocking and rescheduling.

works fine, but will undergo further cleanup & development
2006-12-29 15:28:11 +00:00
martin 1c4ebce529 Provide a full frame stack space in the clone'd child. 2006-12-28 17:46:03 +00:00
martin 55a9a999dd Use CCFSZ instead of 96 for standard save operations. 2006-12-28 10:02:43 +00:00
martin f666b179b1 After discussing this further with uwe, rearange stack usage slightly and
replace a comment with words suggested by him.
2006-12-27 13:40:56 +00:00
martin 520e5c8f6a When setting up the __clone()'s userland stack, make sure to allocate
an initial frame. Fixes PR 33075.
2006-12-25 21:44:37 +00:00
ad ae979b2162 Add some items for 1:1 threads. 2006-12-25 11:36:36 +00:00
ad ded2602507 Fix bugs with and improve upon previous. 2006-12-24 18:39:45 +00:00
christos f1700f07c0 But turn on PTHREAD_SA, since turning it off does not work yet. 2006-12-24 03:54:43 +00:00
christos 34bc1fc940 just get this to compile again, so that people can build. 2006-12-24 03:47:53 +00:00
wiz f77162e1ea Fix typo. 2006-12-23 09:55:47 +00:00
wiz 1073e35f2d Use more macros. Fix section in Xr. 2006-12-23 09:54:11 +00:00
ad fe9718ac7c Add another comment. 2006-12-23 09:48:18 +00:00
wiz 168147d486 Sort sections. 2006-12-23 09:04:23 +00:00
wiz 9e92895829 Sort errors; use Dv; s/=A0/ / 2006-12-23 08:09:31 +00:00