16 #if !defined(WIN32) && defined(WIN64) 40 inline errno_t memcpy_s(
void *dest,
size_t sizeInBytes,
const void *src,
size_t count)
45 ::memcpy(dest,src,count);
66 inline errno_t memmove_s(
void *dest,
size_t sizeInBytes,
const void* src,
size_t count)
71 ::memmove(dest,src,count);
95 inline errno_t strcat_s(
char *strDestination,
size_t sizeInBytes,
const char *strSource)
100 ::strcat(strDestination,strSource);
121 inline errno_t strcpy_s(
char *strDestination,
size_t sizeInBytes,
const char *strSource)
126 ::strcpy(strDestination,strSource);
150 inline errno_t strncat_s(
char *strDestination,
size_t sizeInBytes,
const char *strSource,
size_t count)
155 ::strncat(strDestination,strSource,count);
178 inline errno_t strncpy_s(
char *strDestination,
size_t sizeInBytes,
const char *strSource,
size_t count)
182 size_t len=(count>strlen(strSource)?strlen(strSource):count);
184 ::strncpy(strDestination,strSource,
len);
196 inline const char* strsignal(
int n)
201 case SIGABRT:
return "Process abort.";
202 case SIGALRM:
return "Alarm clock.";
203 case SIGBUS:
return "Bus error.";
204 case SIGCHLD:
return "Child status changed.";
205 case SIGCONT:
return "Continued.";
206 case SIGFPE:
return "Erroneous arithmetic operation.";
207 case SIGHUP:
return "Hangup.";
208 case SIGILL:
return "Illegal instruction.";
209 case SIGINT:
return "Interrupt.";
210 case SIGKILL:
return "Kill.";
211 case SIGPIPE:
return "Broken pipe.";
212 case SIGQUIT:
return "Quit.";
213 case SIGSEGV:
return "Segmentation fault.";
214 case SIGSTOP:
return "Stopped.";
215 case SIGTERM:
return "Terminated.";
216 case SIGTSTP:
return "Stopped from terminal.";
217 case SIGTTIN:
return "Background process attempting to read from terminal.";
218 case SIGTTOU:
return "Background process attempting to write to terminal.";
219 case SIGUSR1:
return "User-defined signal 1.";
220 case SIGUSR2:
return "User-defined signal 2.";
221 case SIGPOLL:
return "Pollable event.";
223 case SIGSYS:
return "Bad system call.";
224 case SIGTRAP:
return "Trace or breakpoint trap.";
225 case SIGURG:
return "High bandwidth data is available at a socket.";
226 case SIGVTALRM:
return "Virtual timer expired.";
227 case SIGXCPU:
return "CPU time limit exceeded.";
228 case SIGXFSZ:
return "File size limit exceeded.";
232 case SIGEMT:
return "Emulation trap.";
236 case SIGPWR:
return "Power fail or restart.";
240 case SIGWINCH:
return "Window size change.";
244 case SIGPROF:
return "Profiling timer expired.";
248 case SIGFREEZE:
return "Checkpoint freeze.";
252 case SIGTHAW:
return "Checkpoint thaw.";
256 case SIGLOST:
return "Resource lost.";
260 case SIGXRES:
return "Resource control exceeded.";
271 #endif // PDCstring_h #define _VALIDATE_RETURN_ERRCODE(expr, errorcode)
Definition: PDCerrno.h:21
UINT len
Definition: Msi_bstr.h:37
#define NULL
Definition: Null.h:10