Pawel Jakub Dawidek
3bb2bdaef6
Append-only flag also denies chmod(2). Is this correct behaviour?
2006-12-13 13:22:57 +00:00
Pawel Jakub Dawidek
0b149517f3
Be more precise with EPERM description. When chown(2) is a no-op, it will
...
return 0.
2006-12-13 11:46:38 +00:00
Pawel Jakub Dawidek
e4c1f0293f
Write permission if of course only needed for the parent directory of
...
the object beeing created.
Pointed out by: bde
2006-12-13 11:26:03 +00:00
Pawel Jakub Dawidek
e67ec1d4a1
mkfifo(2) returns EACCES when write permission is denied for a component of
...
the path prefix.
2006-12-13 09:58:49 +00:00
Pawel Jakub Dawidek
1619e03af7
Be more specific when ELOOP can be returned.
2006-12-12 20:06:52 +00:00
Pawel Jakub Dawidek
a2b7d92ad6
symlink(2) return EACCES if a component of the name2 path prefix denies
...
write permission.
2006-12-12 20:05:04 +00:00
Pawel Jakub Dawidek
554bc5f287
Correct ENOENT description.
2006-12-12 19:57:17 +00:00
Pawel Jakub Dawidek
b8f5525f70
The 'name1' argument to symlink(2) is only limited to 1023 characters,
...
its components are not checked.
2006-12-12 19:48:15 +00:00
Pawel Jakub Dawidek
1212ac8123
mkdir(2) creates directory, not file.
2006-12-12 15:00:08 +00:00
Julian Elischer
558c08c358
Remove reference to confusing behaviour just removed from
...
the kse_exit() syscall. Describe the correct behaviour.
2006-12-12 08:13:02 +00:00
David Xu
9e8a8aa551
Correctly check failed syscall.
2006-12-12 05:26:39 +00:00
David Xu
347126a2e2
Move checking for c_has_waiters into low level _thr_ucond_signal and
...
_thr_ucond_broadcast, clear condition variable pointer in cancellation
info after returing from _thr_ucond_wait, since kernel has already
dropped the internal lock, so we don't need to unlock it in cancellation
handler again.
2006-12-12 03:08:49 +00:00
Joseph Koshy
61e1aeb6ee
Document the ELF types supported by libelf.
...
Document the relationship between section types (SHT_*) and the
types known to the libelf.
2006-12-11 09:03:27 +00:00
Pawel Jakub Dawidek
ba4b9e0121
When directory is given as an argument for unlink(2), EPERM is returned
...
not matter if this is regular directory or a mount point.
2006-12-10 13:04:36 +00:00
Doug Barton
b02f06c3da
Changes to generated files related to the 9.3.3 import.
2006-12-10 07:11:04 +00:00
Pawel Jakub Dawidek
e799094d84
If the named file has its immutable or append-only flag set, utimes(2)
...
returns EPERM.
2006-12-09 23:13:05 +00:00
Pawel Jakub Dawidek
b10ec4d0dc
If the parent directory of the named file has its immutable flag set,
...
mkfifo(2) returns EPERM.
2006-12-09 23:06:01 +00:00
Pawel Jakub Dawidek
2f51879266
If the parent directory of the destination file has its immutable flag set,
...
symlink(2) returns EPERM.
2006-12-09 23:01:38 +00:00
Pawel Jakub Dawidek
46db118b7e
- If the source file has its immutable or append-only flag set, link(2)
...
returns EPERM.
- If the parent directory of the destination file has its immutable flag set,
link(2) returns EPERM.
2006-12-09 22:56:40 +00:00
Pawel Jakub Dawidek
9becb00c0a
If the named file has its immutable or append-only flag set, truncate(2)
...
and ftruncate(2) return EPERM.
Note, that if the append-only flag is set even increasing size of the file
is not permitted.
2006-12-09 22:49:28 +00:00
Pawel Jakub Dawidek
442cc490fd
If the named file has its immutable flag set, chown(2) returns EPERM.
2006-12-09 22:41:26 +00:00
Pawel Jakub Dawidek
54ec563e0d
If the named file has its immutable flag set, chmod(2) returns EPERM.
2006-12-09 22:41:01 +00:00
Pawel Jakub Dawidek
4e3f043c22
Add reference to chflags(2).
2006-12-09 22:39:28 +00:00
Pawel Jakub Dawidek
93dbfff0f9
If the parent directory of the named file has its immutable flag set,
...
mkdir(2) returns EPERM.
2006-12-09 22:35:55 +00:00
Pawel Jakub Dawidek
3e6f3ff080
- If the directory to be removed has its immutable, undeletable or append-only
...
flag set, rmdir(2) returns EPERM.
- If the parent directory of the directory to be removed has its immutable or
append-only flag set, rmdir(2) returns EPERM.
2006-12-09 19:44:38 +00:00
Pawel Jakub Dawidek
b7715d3d86
- If the parent directory of the file pointed at by the from argument has its
...
immutable or append-only flag set, rename(2) returns EPERM.
- If the parent directory of the file pointed at by the to argument has its
immutable flag set, rename(2) returns EPERM.
2006-12-09 19:42:58 +00:00
Pawel Jakub Dawidek
483a0e04d8
Correct last commit. The parent directory of the file to be removed can
...
have undeletable flag set.
2006-12-09 19:40:24 +00:00
Pawel Jakub Dawidek
d1eb7b96e7
When immutable, undeletable or append-only flag is set, rename(2)
...
return EPERM.
2006-12-09 19:19:46 +00:00
Pawel Jakub Dawidek
858e6c9cbd
When undeletable flag is set, unlink(2) return EPERM.
2006-12-09 19:18:39 +00:00
Joseph Koshy
37ec86bb1b
Make the generated message from `elf_errmsg(-1)' a little more readable.
2006-12-09 16:27:15 +00:00
Tim Kientzle
0a4794d3a4
Minor refactoring; move the FreeBSD-specific config info into
...
config_freebsd.h. archive_platform.h decides which config file
to bring in and uses some of those selectors to define wrapper
macros and other compatibility glue.
2006-12-08 06:13:49 +00:00
Julian Elischer
2d2f0b92c7
remove already commented out code
2006-12-06 06:44:20 +00:00
David Xu
b774466b61
test cancel_pending to save a thr_wake call in some specical cases.
2006-12-06 00:15:35 +00:00
David Xu
a8a343d2e6
_thr_ucond_wait drops lock, we should pick it up again.
2006-12-05 23:46:11 +00:00
David Xu
3b8a017442
the c_has_waiters is lazily updated, temporarily disable the false
...
alarm code.
2006-12-05 07:23:58 +00:00
David Xu
4d617f2d10
Use ucond to implement barrier.
2006-12-05 06:54:25 +00:00
David Xu
670b44d65a
Add _thr_ucond_init().
2006-12-05 06:53:44 +00:00
David Xu
3ce4e91d4e
Tweak _thr_cancel_leave_defer a bit to fix a possible race.
2006-12-05 05:01:57 +00:00
Ruslan Ermilov
a82e937c0b
Grammar.
...
OK'ed by: sam
2006-12-04 20:34:25 +00:00
Sam Leffler
78e3a7fdd5
document recent change to return ECONNRESET for tcp sockets
...
MFC after: 1 month
2006-12-04 18:39:11 +00:00
Hajimu UMEMOTO
909e7467d8
Use _kevent() instead of kevent().
...
Requested by: nork
2006-12-04 17:08:43 +00:00
David Xu
3c61d00ab6
Fix typo, I was using a wrong header file, and the typo is not detected
...
by compiler.
2006-12-04 14:27:42 +00:00
David Xu
2bd2c90703
Use kernel provided userspace condition variable to implement pthread
...
condition variable.
2006-12-04 14:20:41 +00:00
Tim Kientzle
5af1711729
Argh. Restore a stat() call that was erroneously removed.
...
Thanks to: WATANABE, Kazuo
Pointy hat: me, from the handy dispenser I keep nearby.
2006-12-04 08:01:53 +00:00
Diomidis Spinellis
aeecffebe5
Minor clarification.
2006-12-03 19:26:17 +00:00
Maxim Konovalov
88ce725781
o As POSIX requires confstr(3) returns zero on errors, not -1.
...
PR: misc/106234
Submitted by: Guy Harris
MFC after: 1 week
2006-12-03 08:22:36 +00:00
David Xu
6f54e82927
If a thread was detached, return EINVAL instead, the error code
...
is also returned by pthread_detach() if a thread was already
detached, the error code was already documented:
> [EINVAL] The implementation has detected that the value speci-
> fied by thread does not refer to a joinable thread.
2006-11-28 11:05:31 +00:00
Tim Kientzle
a6fac34b43
Improve support for large ISOs:
...
* Correct a signed/unsigned problem that broke handling of files >2G.
* Implement "skip" support for much faster "tar -t".
Thanks to: Robert Sciuk for sending me a DVD that illustrated the first problem
2006-11-27 16:30:32 +00:00
Tim Kientzle
24d698ea89
Bump the libarchive version number, correct the shell hackery to break
...
the full version down into major/minor values.
2006-11-26 19:09:42 +00:00
Tim Kientzle
dc46be1cbf
Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).
...
* If write block size is zero, don't block at all.
This supports the unusual requirement of applications
that need "no-delay" writes.
* Expose _write_finish_entry() to give such applications more
control over write boundaries. (Normal applications do not
need this, as entries are completed automatically.)
* Correct the type of write callbacks; this is a minor API
change that does not affect the ABI.
* Correct the error handling in _write_next_header() around
completing the previous entry.
* Correct the documentation for block-size markers: Remove
docs for the long-defunct _read_set_block_size(); document
all of the write block size manipulators.
MFC after: 14 days
2006-11-26 19:00:50 +00:00