#
b8caef69 |
|
21-Feb-2024 |
Dan Gohman <haiku@sunfishcode.online> |
Change `AT_FDCWD` from -1 to -100. Change the value of `AT_FDCWD` from -1 to -100. Either value should work, since the Haiku implementation currently interprets any negative value as `AT_FDCWD`, however -100 is preferable to -1 since -1 is used for error return values. fixes #18809 Change-Id: I53f273dd595c39ea9e4576b90adbbf7f555107cf Reviewed-on: https://review.haiku-os.org/c/haiku/+/7423 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
2982d981 |
|
18-Nov-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
fcntl.h: define O_DIRECT directly coreutils wants to undefine O_NOCACHE, this shouldn't affect O_DIRECT though. Change-Id: Id00316a78eb91b2c7f692bb46eca65b3a7983c6f Reviewed-on: https://review.haiku-os.org/c/haiku/+/3398 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
fe357eb9 |
|
05-Nov-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
POSIX: add posix_fallocate and a preallocate syscall the preallocate syscall will call the preallocate filesystem hook, if available. fix #6285 Change-Id: Ifff4595548610c8e009d4e5ffb64c37e0884e62d Reviewed-on: https://review.haiku-os.org/c/haiku/+/3382 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
38ce9026 |
|
20-May-2019 |
Jérôme Duval <jerome.duval@gmail.com> |
posix: add posix_fadvise(), only error checks. should help for ports. Change-Id: Id504bdb79cb68db4b615f58848e0e1a86ced8d2b Reviewed-on: https://review.haiku-os.org/c/1467 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
26740b28 |
|
24-Aug-2017 |
Jérôme Duval <jerome.duval@gmail.com> |
POSIX: F_DUPFD_CLOEXEC support (POSIX.1-2008). * fix #12187.
|
#
173f54f1 |
|
19-Jul-2012 |
Matt Madia <mattmadia@gmail.com> |
Updated copyright in headers. No functional change.
|
#
0fae8733 |
|
03-Nov-2010 |
Scott McCreary <scottmc2@gmail.com> |
Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines. Cleaned up some header style violations, making sure there are two blank lines after the header guards. This fixes the posix header part of #2191. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14f487c4 |
|
13-Oct-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Removed the non-implemented O_TEMPORARY. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38963 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f0c2a38 |
|
13-Oct-2010 |
Scott McCreary <scottmc2@gmail.com> |
Removed definitions for O_BINARY and O_TEXT, and patched the few files that used them. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb2500da |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added missing AT_EACCESS. * Implemented renameat(), faccessat(), fchownat(), fchmodat(), and mkfifoat(). * Added stub for mknodat(). * The kernel backend for faccessat() does not yet differentiate between effective and real user/group IDs, though. * Removed B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT, as we now support everything (more or less). This also closes ticket #4928. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aec945c9 |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Removed the O_* modes that we currently don't and probably won't support (O_MOUNT, O_EXLOCK, and O_SHLOCK). I only left the non-standard O_TEMPORARY for the time being (as it shouldn't fool anyone). * Fixed libutil that already used O_EXLOCK, even though it did not do anything. * Moved O_NOCACHE, and O_NOFOLLOW to the section with implemented modes. * Added O_DIRECTORY. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34278 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6c00aabc |
|
12-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented POSIX.1-2008 functions unlinkat(), symlinkat(), mkdirat(), utimensat(), and futimens(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34010 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
db2b554f |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Moved the POSIX *at() functions and AT_* macros out of the default namespace as long as the full set hasn't been implemented. They are guarded by the B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT macro until then. Fixes the build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33990 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a6147679 |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added AT_SYMLINK_[NO]FOLLOW constants and fstatat(). Fixes the findutils gnulib build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33987 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
098906f1 |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* src/system/libroot/posix: Moved open.c and fcntl.c out of the unistd directory, where they were misplaced, and joined them to fcntl.cpp. * Added openat(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33976 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8eba0c54 |
|
05-Feb-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added O_NDELAY as synonym of O_NONBLOCK. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29136 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b9320128 |
|
10-May-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Patch by Andreas Faerber: Replaced single-line comments by multi-line comments for ANSI C compliance. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a32a4683 |
|
03-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented flock() semantics to the advisory locking backend. Not tested (must also compare to BSD; I've looked at their sources, but I might have missed something). * Added sys/file.h and the flock() system call. * common_fcntl() could forget to put back the file descriptor on some error conditions (I guess we should introduce and use a DescriptorGetter class). * Cleaned up fcntl.h, moved the BSD extensions S_IREAD and S_IWRITE to sys/stat.h where they belong, and added the missing S_IEXEC to them. * Added some more comments. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23836 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
923efaa8 |
|
05-Sep-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* We store the ID of the controlling terminal and the foreground process group ID with the session and let the terminal update them. * Added an "orphaned" flag to the process_group structure and code to maintain it. * Handle the death of a controlling process correctly: The foreground process group gets a SIGHUP and all newly-orphaned process groups containing at least one stopped processes are sent SIGHUP+SIGCONT. * The tty handles the O_NOCTTY flag correctly, now. * The tty handles reads/writes from processes from other sessions correctly, now. * Handle tcsetpgrp() from background processes correctly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22187 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
83e805ad |
|
06-Jan-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a note that the flock() definitions are misplaced here. * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19728 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
130b146f |
|
21-Sep-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added comments to definitions. Added preliminary O_TEMPORARY flag. Made it a bit more POSIX compliant. Cleaned up header. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9026 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
40df5bb2 |
|
05-Nov-2003 |
Axel Dörfler <axeld@pinc-software.de> |
flock() is neither POSIX, nor available in BeOS. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5265 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2b9d5ff6 |
|
23-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Some changes for an independent header system - added missing function prototypes (and those commented out), to keep the whole project be compilable and usable on BeOS. Fixed a bug in fcntl.h (definition for O_DIRECT), added new O_MOUNT. Added prototypes and "struct tm" to time.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1619 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eb11b673 |
|
20-Aug-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Added a preliminary sys/types.h that just includes ktypes.h for now. Changed other headers to include sys/types.h rather than ktypes.h. Added a license reference at the beginning of those files. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@840 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2311f9f7 |
|
04-Aug-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Added a BeOS like fcntl.h, with some additions (which might be implemented some day). Cleaned up sys/stat.h a bit, and added new definitions for different types of symlinks I plan to add - though I am still not sure if it's a good idea ;-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@580 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
173f54f1473bd6a6511c5fc6dc899c91fb8dd667 |
|
19-Jul-2012 |
Matt Madia <mattmadia@gmail.com> |
Updated copyright in headers. No functional change.
|
#
0fae873352b02792db93f721c1a2ff6b240c8ecc |
|
03-Nov-2010 |
Scott McCreary <scottmc2@gmail.com> |
Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines. Cleaned up some header style violations, making sure there are two blank lines after the header guards. This fixes the posix header part of #2191. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14f487c4de006008bc79318c35bc9728bfabb23b |
|
13-Oct-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Removed the non-implemented O_TEMPORARY. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38963 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f0c2a388c56d8cfab069cb3a3d72ae8ad12a68c |
|
13-Oct-2010 |
Scott McCreary <scottmc2@gmail.com> |
Removed definitions for O_BINARY and O_TEXT, and patched the few files that used them. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb2500da15e8c574cbb343b8fc536d7094357f54 |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added missing AT_EACCESS. * Implemented renameat(), faccessat(), fchownat(), fchmodat(), and mkfifoat(). * Added stub for mknodat(). * The kernel backend for faccessat() does not yet differentiate between effective and real user/group IDs, though. * Removed B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT, as we now support everything (more or less). This also closes ticket #4928. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aec945c95934ada0d7fda53b1d075a5c40c7a37a |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Removed the O_* modes that we currently don't and probably won't support (O_MOUNT, O_EXLOCK, and O_SHLOCK). I only left the non-standard O_TEMPORARY for the time being (as it shouldn't fool anyone). * Fixed libutil that already used O_EXLOCK, even though it did not do anything. * Moved O_NOCACHE, and O_NOFOLLOW to the section with implemented modes. * Added O_DIRECTORY. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34278 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6c00aabc9e209639ff2753ba8cc2acf3f1b5ec95 |
|
12-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented POSIX.1-2008 functions unlinkat(), symlinkat(), mkdirat(), utimensat(), and futimens(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34010 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
db2b554fa368b03940b495c2f439d4f6e738d282 |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Moved the POSIX *at() functions and AT_* macros out of the default namespace as long as the full set hasn't been implemented. They are guarded by the B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT macro until then. Fixes the build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33990 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a6147679a3c041de6591008b2f62d0a0fa825f71 |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added AT_SYMLINK_[NO]FOLLOW constants and fstatat(). Fixes the findutils gnulib build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33987 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
098906f1d4b43059bd427e27950debf7ac31a493 |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* src/system/libroot/posix: Moved open.c and fcntl.c out of the unistd directory, where they were misplaced, and joined them to fcntl.cpp. * Added openat(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33976 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8eba0c540fe3760d43610daa88b14c8c4687f24b |
|
05-Feb-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added O_NDELAY as synonym of O_NONBLOCK. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29136 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b93201281504cee31f4186f7c6548815940c576e |
|
10-May-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Patch by Andreas Faerber: Replaced single-line comments by multi-line comments for ANSI C compliance. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a32a4683ff8eb994524d5ab8eba13d93fe90c0ff |
|
03-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented flock() semantics to the advisory locking backend. Not tested (must also compare to BSD; I've looked at their sources, but I might have missed something). * Added sys/file.h and the flock() system call. * common_fcntl() could forget to put back the file descriptor on some error conditions (I guess we should introduce and use a DescriptorGetter class). * Cleaned up fcntl.h, moved the BSD extensions S_IREAD and S_IWRITE to sys/stat.h where they belong, and added the missing S_IEXEC to them. * Added some more comments. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23836 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
923efaa872b9fe4e9e9cae87effe2af5c338b98a |
|
05-Sep-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* We store the ID of the controlling terminal and the foreground process group ID with the session and let the terminal update them. * Added an "orphaned" flag to the process_group structure and code to maintain it. * Handle the death of a controlling process correctly: The foreground process group gets a SIGHUP and all newly-orphaned process groups containing at least one stopped processes are sent SIGHUP+SIGCONT. * The tty handles the O_NOCTTY flag correctly, now. * The tty handles reads/writes from processes from other sessions correctly, now. * Handle tcsetpgrp() from background processes correctly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22187 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
83e805ad15fe6d37491235ece621b4b197726d0e |
|
06-Jan-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a note that the flock() definitions are misplaced here. * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19728 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
130b146f78a6f99efeebfe93774df95fffac6e76 |
|
21-Sep-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added comments to definitions. Added preliminary O_TEMPORARY flag. Made it a bit more POSIX compliant. Cleaned up header. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9026 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
40df5bb2e8724a4f5f15600bcd666ce6bc815d92 |
|
05-Nov-2003 |
Axel Dörfler <axeld@pinc-software.de> |
flock() is neither POSIX, nor available in BeOS. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5265 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2b9d5ff6c2377b59fff0982caf72e9b4c2355a90 |
|
23-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Some changes for an independent header system - added missing function prototypes (and those commented out), to keep the whole project be compilable and usable on BeOS. Fixed a bug in fcntl.h (definition for O_DIRECT), added new O_MOUNT. Added prototypes and "struct tm" to time.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1619 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eb11b67370ab6acec53f88af085b91c4e2f64f6e |
|
20-Aug-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Added a preliminary sys/types.h that just includes ktypes.h for now. Changed other headers to include sys/types.h rather than ktypes.h. Added a license reference at the beginning of those files. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@840 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2311f9f79f4e3d08e7e5735ea4aa6be942f8aa96 |
|
04-Aug-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Added a BeOS like fcntl.h, with some additions (which might be implemented some day). Cleaned up sys/stat.h a bit, and added new definitions for different types of symlinks I plan to add - though I am still not sure if it's a good idea ;-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@580 a95241bf-73f2-0310-859d-f6bbb57e9c96
|