mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The _PC_MAX_INPUT query for file handles now returns the default
buffer size. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15136 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
- The _PC_MAX_INPUT query for file handles now returns the default
|
||||
buffer size.
|
||||
|
||||
- Integrated the new OS4 build makefile collection, as contributed by
|
||||
Steven Solie. Thank you very much!
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: unistd_common_pathconf.c,v 1.1 2006-07-28 14:37:27 obarthel Exp $
|
||||
* $Id: unistd_common_pathconf.c,v 1.2 2006-09-17 17:53:15 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -104,7 +104,7 @@ __pathconf(struct MsgPort *port,int name)
|
||||
{
|
||||
D_S(struct InfoData,id);
|
||||
|
||||
if(DoPkt(port,ACTION_IS_FILESYSTEM,0,0,0,0,0) == DOSFALSE) /* Not a filesystem */
|
||||
if(DoPkt(port,ACTION_IS_FILESYSTEM,0,0,0,0,0) == DOSFALSE) /* Not a filesystem. */
|
||||
{
|
||||
SHOWMSG("Not a filesystem.");
|
||||
|
||||
@ -170,14 +170,15 @@ __pathconf(struct MsgPort *port,int name)
|
||||
|
||||
#if defined(__amigaos4__)
|
||||
{
|
||||
uint32 Bufsize;
|
||||
struct TagItem TagList[2]=
|
||||
{
|
||||
{DC_FHBufferR, 0},
|
||||
{DC_FHBufferR, &Bufsize},
|
||||
{TAG_DONE, 0}
|
||||
};
|
||||
|
||||
DosControl(TagList);
|
||||
ret = TagList[0].ti_Data; /* Default is 2048 bytes. */
|
||||
ret = Bufsize; /* Default is 2048 bytes. */
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user