diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-01-15 01:53:25 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-01-15 01:53:25 +0000 |
commit | 869f24e0b1915ec8d3e14f8850417474200e687e (patch) | |
tree | 135d2f510af69f43f0d7bc661c1f42eef72382c2 /source3/include | |
parent | 586c6276ec78c9ee276e3d01ba017db14c30e0ce (diff) | |
download | samba-869f24e0b1915ec8d3e14f8850417474200e687e.tar.gz samba-869f24e0b1915ec8d3e14f8850417474200e687e.tar.bz2 samba-869f24e0b1915ec8d3e14f8850417474200e687e.zip |
locking.c proto.h shmem.c smb.h status.c :
Changed shm_ prefixes to smb_shm_ prefixes as shm_ is a POSIX.4
prefix. Updated fd code in FAST_SHARE_MODE code
to work with new fd indirection.
quotas.c: Fixed #ifdef not on position zero.
Jeremy. (jra@cygnus.com).
(This used to be commit c9a9d56642cc34369a42f48a28116e466240d303)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 22 | ||||
-rw-r--r-- | source3/include/smb.h | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 7f6c7d3892..8c7a8a47fe 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -702,17 +702,17 @@ int construct_reply(char *inbuf,char *outbuf,int size,int bufsize); /*The following definitions come from shmem.c */ -BOOL shm_open( char *file_name, int size); -BOOL shm_close( void ); -shm_offset_t shm_alloc(int size); -BOOL shm_free(shm_offset_t offset); -shm_offset_t shm_get_userdef_off(void); -BOOL shm_set_userdef_off(shm_offset_t userdef_off); -void * shm_offset2addr(shm_offset_t offset); -shm_offset_t shm_addr2offset(void *addr); -BOOL shm_lock(void); -BOOL shm_unlock(void); -BOOL shm_get_usage(int *bytes_free, +BOOL smb_shm_open( char *file_name, int size); +BOOL smb_shm_close( void ); +smb_shm_offset_t smb_shm_alloc(int size); +BOOL smb_shm_free(smb_shm_offset_t offset); +smb_shm_offset_t smb_shm_get_userdef_off(void); +BOOL smb_shm_set_userdef_off(smb_shm_offset_t userdef_off); +void * smb_shm_offset2addr(smb_shm_offset_t offset); +smb_shm_offset_t shm_addr2offset(void *addr); +BOOL smb_shm_lock(void); +BOOL smb_shm_unlock(void); +BOOL smb_shm_get_usage(int *bytes_free, int *bytes_used, int *bytes_overhead); diff --git a/source3/include/smb.h b/source3/include/smb.h index bbb477f5f7..543cc73adb 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -55,8 +55,8 @@ typedef int BOOL; /* offset in shared memory */ -typedef int shm_offset_t; -#define NULL_OFFSET (shm_offset_t)(0) +typedef int smb_shm_offset_t; +#define NULL_OFFSET (smb_shm_offset_t)(0) /* @@ -419,7 +419,7 @@ struct interface /* share mode record in shared memory */ typedef struct { - shm_offset_t next_offset; /* offset of next record in list in shared mem */ + smb_shm_offset_t next_offset; /* offset of next record in list in shared mem */ int locking_version; int share_mode; struct timeval time; |