remove __THROW
parent
b600e2ef32
commit
3683655654
@ -1,19 +1,17 @@
|
|||||||
#ifndef MMAP_H
|
#ifndef MMAP_H
|
||||||
#define MMAP_H
|
#define MMAP_H
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
|
|
||||||
/* open file for reading, mmap whole file, close file, write length of
|
/* open file for reading, mmap whole file, close file, write length of
|
||||||
* map in filesize and return pointer to map. */
|
* map in filesize and return pointer to map. */
|
||||||
extern char* mmap_read(const char *filename,unsigned long* filesize) __THROW;
|
extern char* mmap_read(const char *filename,unsigned long* filesize);
|
||||||
|
|
||||||
/* open file for writing, mmap whole file privately (copy on write),
|
/* open file for writing, mmap whole file privately (copy on write),
|
||||||
* close file, write length of map in filesize and return pointer to
|
* close file, write length of map in filesize and return pointer to
|
||||||
* map. */
|
* map. */
|
||||||
extern int mmap_write(const char *filename,unsigned long* filesize) __THROW;
|
extern int mmap_write(const char *filename,unsigned long* filesize);
|
||||||
|
|
||||||
/* open file for writing, mmap whole file shared, close file, write
|
/* open file for writing, mmap whole file shared, close file, write
|
||||||
* length of map in filesize and return pointer to map. */
|
* length of map in filesize and return pointer to map. */
|
||||||
extern int mmap_shared(const char *filename,unsigned long* filesize) __THROW;
|
extern int mmap_shared(const char *filename,unsigned long* filesize);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,29 +1,27 @@
|
|||||||
#ifndef OPEN_H
|
#ifndef OPEN_H
|
||||||
#define OPEN_H
|
#define OPEN_H
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
|
|
||||||
/* open filename for reading and return the file handle or -1 on error */
|
/* open filename for reading and return the file handle or -1 on error */
|
||||||
extern int open_read(const char *filename) __THROW;
|
extern int open_read(const char *filename);
|
||||||
|
|
||||||
/* create filename for exclusive write only use (mode 0600) and return
|
/* create filename for exclusive write only use (mode 0600) and return
|
||||||
* the file handle or -1 on error */
|
* the file handle or -1 on error */
|
||||||
extern int open_excl(const char *filename) __THROW;
|
extern int open_excl(const char *filename);
|
||||||
|
|
||||||
/* open filename for appending write only use (mode 0600)
|
/* open filename for appending write only use (mode 0600)
|
||||||
* and return the file handle or -1 on error.
|
* and return the file handle or -1 on error.
|
||||||
* All write operation will append after the last byte, regardless of
|
* All write operation will append after the last byte, regardless of
|
||||||
* seeking or other processes also appending to the file. The file will
|
* seeking or other processes also appending to the file. The file will
|
||||||
* be created if it does not exist. */
|
* be created if it does not exist. */
|
||||||
extern int open_append(const char *filename) __THROW;
|
extern int open_append(const char *filename);
|
||||||
|
|
||||||
/* open filename for writing (mode 0644). Create the file if it does
|
/* open filename for writing (mode 0644). Create the file if it does
|
||||||
* not exist, truncate it to zero length otherwise. Return the file
|
* not exist, truncate it to zero length otherwise. Return the file
|
||||||
* handle or -1 on error. */
|
* handle or -1 on error. */
|
||||||
extern int open_trunc(const char *filename) __THROW;
|
extern int open_trunc(const char *filename);
|
||||||
|
|
||||||
/* open filename for writing. Create the file if it does not exist.
|
/* open filename for writing. Create the file if it does not exist.
|
||||||
* Return the file handle or -1 on error. */
|
* Return the file handle or -1 on error. */
|
||||||
extern int open_write(const char *filename) __THROW;
|
extern int open_write(const char *filename);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue