Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
dpid_common.c File Reference
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include "dpid_common.h"
Include dependency graph for dpid_common.c:

Go to the source code of this file.

Functions

void errmsg (char *caller, char *called, int errornum, char *file, int line)
 
ssize_t ckd_write (int fd, char *msg, char *file, int line)
 
ssize_t ckd_close (int fd, char *file, int line)
 

Function Documentation

◆ ckd_close()

ssize_t ckd_close ( int  fd,
char *  file,
int  line 
)

Provides an error checked close() call. Call this via the CKD_CLOSE macro

Returns
close return value

Definition at line 50 of file dpid_common.c.

References dClose(), dStrerror, and MSG_ERR.

◆ ckd_write()

ssize_t ckd_write ( int  fd,
char *  msg,
char *  file,
int  line 
)

Provides an error checked write command. Call this via the CKD_WRITE macro

Returns
write return value

Definition at line 32 of file dpid_common.c.

References dStrerror, and MSG_ERR.

◆ errmsg()

void errmsg ( char *  caller,
char *  called,
int  errornum,
char *  file,
int  line 
)

Definition at line 20 of file dpid_common.c.

References dStrerror, and MSG_ERR.

Referenced by Tls_fatal_error_msg().