mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Rewrote the code that allocates the file descriptor and file
buffer tables so that all the memory allocations are in one place and it's possible to specify exactly how many table entries are required at a time. - Creation and initialization of semaphores now uses the AmigaOS4 specific functions for this purpose, if available. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14857 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: socket_socket.c,v 1.6 2005-03-03 14:20:55 obarthel Exp $
|
||||
* $Id: socket_socket.c,v 1.7 2005-03-04 09:07:09 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -61,7 +61,7 @@ socket(int domain,int type,int protocol)
|
||||
fd_slot_number = __find_vacant_fd_entry();
|
||||
if(fd_slot_number < 0)
|
||||
{
|
||||
if(__grow_fd_table() < 0)
|
||||
if(__grow_fd_table(0) < 0)
|
||||
{
|
||||
SHOWMSG("couldn't find a vacant fd slot and no memory to create one");
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user