#
ae901935 |
|
24-Nov-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Introduce __set_errno() throughout libroot. * add errno_private.h, which defines the __set_errno() macro with and without tracing * instead of setting errno manually, all libroot's code now invokes __set_errno(), which makes it much easier to trace changes to errno * redirect glibc's use of __set_errno() to our own version
|
#
bee827e2 |
|
06-Jan-2011 |
Jérôme Duval <korli@users.berlios.de> |
changed dirfd() to its POSIX signature, without const (see #4947). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40137 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cee04e80 |
|
08-Feb-2010 |
Artur Wyszynski <aljen-mlists@o2.pl> |
Fixed various errors/warnings reported by cppcheck: * memory leaks * resource leaks * added const's to getters * removed a few reundant conditions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a7cc5352 |
|
01-Jan-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Our userland build obviously adds some default headers with GCC2 - why would it do that? This fixes the kernel build, and probably GCC4, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34840 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
31e49a2f |
|
01-Jan-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented missing alphasort(), and scandir() POSIX functions. Completely untested yet, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34838 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a4faebeb |
|
30-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Replace the FD used for fopendir() instead of closing the old one - according to the specs, the application may still use the FD without changing its state, and only closedir() should finally close it. * This fixes bug #5055. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34362 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d8280284 |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34290 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9e81ddee |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Fixed fdopendir(): We have to explicitly (re-)open the directory, because FDs returned by open() aren't suitable for directory iteration and because checks have to be performed (like whether this is a directory at all and whether the user has read permission). * Added __create_dir_struct() for the attribute, index, and query open functions to use instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33974 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
425cb3d7 |
|
09-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* revert r32999 and adjusted each filesystem to return B_NOT_A_DIRECTORY in its open_dir() implementation instead (as suggested by Ingo). -alphabranch (it's only a cleanup) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
be628a94 |
|
08-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* opendir() is supposed to return ENOTDIR if the given path is not a directory, we returned EINVAL instead, which caused Perl's internal glob() implementation to fail prematurely +alphabranch (will do that myself in a minute) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32999 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
adbf8b25 |
|
29-Aug-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added fdopendir() (POSIX). * Got rid of <dirent_private.h> -- the __DIR structure is private to dirent.c, now. The attribute directory, index directory, and query functions use the the public POSIX API, so does the kernel module code. Those components were not initializing the structure correctly anymore since the introduction of telldir()/seekdir(). +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32819 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b02c147c |
|
25-Aug-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented seekdir() and telldir(). They were declared in <dirent.h> already. So either +alphabranch or remove the declarations from <dirent.h>. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32679 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaf71fbd |
|
16-Jul-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Build fix: coreutils had a replacement for dirfd(). * Made DIR argument const in dirfd(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26469 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d73327e2 |
|
16-Jul-2008 |
Michael Lotz <mmlr@mlotz.ch> |
Make dirfd() publically available. It used on other systems as well it seems. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26466 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9c5c79ad |
|
09-Jul-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Made DIR definition private, and moved it into the new dirent_private.h header. * Added fields necessary to make it possible to retrieve more than one dirent from the underlying file system. * Unless some app creates a DIR on its own to it to feed readdir(), this change should be binary compatible. If we find an application misbehaving, we can still make it a GCC4 only thing. * fs_attr/fs_index/fs_query now all use readdir() directly (as that one contains the logic to iterate through a number of dirents in userspace). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26339 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5af32e75 |
|
13-Apr-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Renamed src/kernel to src/system. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ae9019359606f1db67632ef51a77ce70001d3770 |
|
24-Nov-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Introduce __set_errno() throughout libroot. * add errno_private.h, which defines the __set_errno() macro with and without tracing * instead of setting errno manually, all libroot's code now invokes __set_errno(), which makes it much easier to trace changes to errno * redirect glibc's use of __set_errno() to our own version
|
#
bee827e203112ee6b4f73a782db046bbce7ed45c |
|
06-Jan-2011 |
Jérôme Duval <korli@users.berlios.de> |
changed dirfd() to its POSIX signature, without const (see #4947). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40137 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cee04e8074ec61fd8c6dac3539c5b821c3618888 |
|
08-Feb-2010 |
Artur Wyszynski <aljen-mlists@o2.pl> |
Fixed various errors/warnings reported by cppcheck: * memory leaks * resource leaks * added const's to getters * removed a few reundant conditions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a7cc5352d80f2011e13a93bba1c9035b1631798b |
|
01-Jan-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Our userland build obviously adds some default headers with GCC2 - why would it do that? This fixes the kernel build, and probably GCC4, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34840 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
31e49a2f1de5dbf89d312330180b5ee8cfd3f460 |
|
01-Jan-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented missing alphasort(), and scandir() POSIX functions. Completely untested yet, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34838 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a4faebeb11aec132d75cb08999423c72f747f1b3 |
|
30-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Replace the FD used for fopendir() instead of closing the old one - according to the specs, the application may still use the FD without changing its state, and only closedir() should finally close it. * This fixes bug #5055. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34362 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d82802841cb7b86dfcf4efc90900fbeff4459fd1 |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34290 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9e81ddee876757a3eb1ccabbb406bd1b8e910a5a |
|
10-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Fixed fdopendir(): We have to explicitly (re-)open the directory, because FDs returned by open() aren't suitable for directory iteration and because checks have to be performed (like whether this is a directory at all and whether the user has read permission). * Added __create_dir_struct() for the attribute, index, and query open functions to use instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33974 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
425cb3d71644c19d925f97846964a32475b09b95 |
|
09-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* revert r32999 and adjusted each filesystem to return B_NOT_A_DIRECTORY in its open_dir() implementation instead (as suggested by Ingo). -alphabranch (it's only a cleanup) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
be628a94e2582fa8415284d21047514354a76515 |
|
08-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* opendir() is supposed to return ENOTDIR if the given path is not a directory, we returned EINVAL instead, which caused Perl's internal glob() implementation to fail prematurely +alphabranch (will do that myself in a minute) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32999 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
adbf8b25f8b29263fcb344ac86beceb9e83ce594 |
|
29-Aug-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added fdopendir() (POSIX). * Got rid of <dirent_private.h> -- the __DIR structure is private to dirent.c, now. The attribute directory, index directory, and query functions use the the public POSIX API, so does the kernel module code. Those components were not initializing the structure correctly anymore since the introduction of telldir()/seekdir(). +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32819 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b02c147c052fb3c7672e8ba8c15975c31d56a066 |
|
25-Aug-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented seekdir() and telldir(). They were declared in <dirent.h> already. So either +alphabranch or remove the declarations from <dirent.h>. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32679 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaf71fbdb659656fd0fb429305051e64afb8cb65 |
|
16-Jul-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Build fix: coreutils had a replacement for dirfd(). * Made DIR argument const in dirfd(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26469 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d73327e2744b81f295e25d1e13f27bf791990a5c |
|
16-Jul-2008 |
Michael Lotz <mmlr@mlotz.ch> |
Make dirfd() publically available. It used on other systems as well it seems. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26466 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9c5c79ad8679dfbb8c0d611cfc95c3ee767aef77 |
|
09-Jul-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Made DIR definition private, and moved it into the new dirent_private.h header. * Added fields necessary to make it possible to retrieve more than one dirent from the underlying file system. * Unless some app creates a DIR on its own to it to feed readdir(), this change should be binary compatible. If we find an application misbehaving, we can still make it a GCC4 only thing. * fs_attr/fs_index/fs_query now all use readdir() directly (as that one contains the logic to iterate through a number of dirents in userspace). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26339 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5af32e752606778be5dd7379f319fe43cb3f6b8c |
|
13-Apr-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Renamed src/kernel to src/system. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96
|