get rid of the pointless xopen wrapper, open(2) does not throw errno = EINTR
git-svn-id: https://svn.musicpd.org/mpd/trunk@4663 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -46,13 +46,6 @@ char *appendToString(char *dest, const char *src);
|
||||
unsigned long readLEuint32(const unsigned char *p);
|
||||
|
||||
/* trivial functions, keep them inlined */
|
||||
static inline int xopen(const char *path, int flags, mode_t mode)
|
||||
{
|
||||
int fd;
|
||||
while(0>(fd = open(path,flags,mode)) && errno == EINTR);
|
||||
return fd;
|
||||
}
|
||||
|
||||
static inline void xclose(int fd)
|
||||
{
|
||||
while (close(fd) && errno == EINTR);
|
||||
|
Reference in New Issue
Block a user