1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The record locking code in fcntl() is no longer part of the

regular libc.a, but only of libunix.a.

- Changed the definition of the D_S() macro to cast the pointer
  address to an unsigned 32 bit integer.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14956 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-27 13:19:30 +00:00
parent a19d60f524
commit a03ced93b0
3 changed files with 11 additions and 3 deletions

View File

@ -25,6 +25,12 @@
- For %C strtime() should return the century number, not the
year number mod 100.
- The record locking code in fcntl() is no longer part of the
regular libc.a, but only of libunix.a.
- Changed the definition of the D_S() macro to cast the pointer
address to an unsigned 32 bit integer.
c.lib 1.192 (12.5.2005)

View File

@ -1,5 +1,5 @@
/*
* $Id: fcntl_fcntl.c,v 1.17 2005-04-24 08:46:37 obarthel Exp $
* $Id: fcntl_fcntl.c,v 1.18 2005-05-27 13:19:30 obarthel Exp $
*
* :ts=4
*
@ -84,6 +84,7 @@ fcntl(int file_descriptor, int cmd, ... /* int arg */ )
switch(cmd)
{
#if defined(UNIX_PATH_SEMANTICS)
case F_GETLK:
case F_SETLK:
case F_SETLKW:
@ -133,6 +134,7 @@ fcntl(int file_descriptor, int cmd, ... /* int arg */ )
result = OK;
break;
#endif /* UNIX_PATH_SEMANTICS */
case F_GETFL:

View File

@ -1,5 +1,5 @@
/*
* $Id: macros.h,v 1.19 2005-03-18 12:38:22 obarthel Exp $
* $Id: macros.h,v 1.20 2005-05-27 13:19:30 obarthel Exp $
*
* :ts=4
*
@ -75,7 +75,7 @@
char array allocated. */
#define D_S(type, name) \
char a_##name[sizeof(type)+3]; \
type *name = (type *)((LONG)(a_##name+3) & ~3)
type *name = (type *)((ULONG)(a_##name+3) & ~3)
/****************************************************************************/