Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
dbf94632
Commit
dbf94632
authored
Nov 18, 2015
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The endianness of a DMS is now stored in the OBIDMS structure
parent
eb12af4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/obidms.c
src/obidms.c
+3
-0
src/obidms.h
src/obidms.h
+3
-0
No files found.
src/obidms.c
View file @
dbf94632
...
...
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
...
...
@@ -387,6 +388,8 @@ OBIDMS_p obi_open_dms(const char* dms_name)
close
(
infos_file_descriptor
);
dms
->
little_endian
=
little_endian_dms
;
// Open the arrays directory
dms
->
array_directory
=
private_opendirat
(
dms
->
dir_fd
,
ARRAYS_DIR_NAME
);
if
(
dms
->
array_directory
==
NULL
)
...
...
src/obidms.h
View file @
dbf94632
...
...
@@ -20,6 +20,7 @@
#include <dirent.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "obierrno.h"
...
...
@@ -52,6 +53,8 @@ typedef struct OBIDMS {
int
array_dir_fd
;
/**< The file descriptor of the directory entry
* usable to refer and scan the array directory.
*/
bool
little_endian
;
/**< Endianness of the database.
*/
}
OBIDMS_t
,
*
OBIDMS_p
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment