buf 465 ckptserializer.cpp char buf[remaining]; buf 466 ckptserializer.cpp JASSERT(Util::writeAll(fd, buf, remaining) == remaining); buf 347 coordinatorapi.cpp char buf[PATH_MAX]; buf 358 coordinatorapi.cpp _coordinatorSocket.readAll(buf, msg.extraBytes); buf 359 coordinatorapi.cpp return buf; buf 395 coordinatorapi.cpp void *buf = JALLOC_HELPER_MALLOC(msg->extraBytes); buf 396 coordinatorapi.cpp _coordinatorSocket.readAll((char*)buf, msg->extraBytes); buf 398 coordinatorapi.cpp *extraData = buf; buf 1553 dmtcp_coordinator.cpp struct stat buf; buf 1554 dmtcp_coordinator.cpp JASSERT(stat(uniqueFilename.c_str(), &buf) == 0); buf 1555 dmtcp_coordinator.cpp JASSERT(chmod(uniqueFilename.c_str(), buf.st_mode | S_IXUSR) == 0); buf 1722 dmtcp_coordinator.cpp char buf[1]; buf 1723 dmtcp_coordinator.cpp int ret = Util::readAll(STDIN_FD, buf, sizeof(buf)); buf 1726 dmtcp_coordinator.cpp handleUserCommand(buf[0]); buf 604 dmtcp_launch.cpp char buf[100]; buf 607 dmtcp_launch.cpp read(fd, buf, sizeof(meminfoPrefix) + 16) == sizeof(meminfoPrefix) + 16 && buf 608 dmtcp_launch.cpp strncmp(buf, meminfoPrefix, sizeof(meminfoPrefix)+1) == 0 && buf 609 dmtcp_launch.cpp atol(buf + sizeof(meminfoPrefix)) > 17000000) /* units of kB : mem > 4 GB */ buf 408 dmtcp_restart.cpp char buf[remaining]; buf 409 dmtcp_restart.cpp JASSERT(Util::readAll(fd, buf, remaining) == remaining); buf 541 dmtcp_restart.cpp char buf[1024]; buf 546 dmtcp_restart.cpp JASSERT(read(fd, buf, len) == len)(path) .Text("read() failed"); buf 547 dmtcp_restart.cpp if (strncmp(buf, DMTCP_FILE_HEADER, len) == 0) { buf 709 dmtcp_restart.cpp struct stat buf; buf 710 dmtcp_restart.cpp int rc = stat(restorename.c_str(), &buf); buf 723 dmtcp_restart.cpp } else if (buf.st_uid != getuid() && !noStrictUIDChecking && !runAsRoot) { buf 730 dmtcp_restart.cpp getuid(), buf.st_uid, restorename.c_str(), __FILE__, __LINE__ - 7); buf 606 dmtcpworker.cpp static jalib::JBuffer buf(0); // To force linkage of jbuffer.cpp buf 234 execwrappers.cpp char *buf = (char*)JALLOC_HELPER_MALLOC(bufSize); buf 235 execwrappers.cpp memset(buf, 0, bufSize); buf 245 execwrappers.cpp int numRead = fread(buf, 1, bufSize - 1, output); buf 254 execwrappers.cpp printf("%s", buf); // print buf, which is what /lib/libXXX would print buf 255 execwrappers.cpp JALLOC_HELPER_FREE(buf); buf 324 execwrappers.cpp char *buf = (char*) JALLOC_HELPER_MALLOC(os.str().length()+1); buf 325 execwrappers.cpp strcpy(buf, os.str().c_str()); buf 326 execwrappers.cpp int fd = _real_mkstemp(buf); buf 328 execwrappers.cpp JASSERT(unlink(buf) == 0) (JASSERT_ERRNO); buf 602 execwrappers.cpp char buf[sizeof "/proc/self/fd/" + sizeof (int) * 3]; buf 603 execwrappers.cpp snprintf (buf, sizeof (buf), "/proc/self/fd/%d", fd); buf 605 execwrappers.cpp JTRACE("fexecve() wrapper calling execve()") (fd) (buf); buf 606 execwrappers.cpp return execve(buf, argv, envp); buf 471 miscwrappers.cpp SYSCALL_GET_ARGS_3(int,shmid,int,cmd,struct shmid_ds*,buf); buf 472 miscwrappers.cpp ret = shmctl(shmid, cmd, buf); buf 472 mtcp/mtcp_restart.c char buf[MTCP_SIGNATURE_LEN+1]; buf 473 mtcp/mtcp_restart.c mtcp_memcpy(buf, mtcpHdr->signature, MTCP_SIGNATURE_LEN); buf 474 mtcp/mtcp_restart.c buf[MTCP_SIGNATURE_LEN] = '\0'; buf 475 mtcp/mtcp_restart.c mtcp_printf("\nMTCP: %s", buf); buf 198 mtcp/mtcp_util.c ssize_t mtcp_read_all(int fd, void *buf, size_t count) buf 202 mtcp/mtcp_util.c char *ptr = (char *) buf; buf 246 mtcp/mtcp_util.c int mtcp_readfile(int fd, void *buf, size_t size) buf 264 mtcp/mtcp_util.c rc = mtcp_sys_read(fd, buf + ar, size - ar); buf 318 mtcp/mtcp_util.c ssize_t mtcp_write_all(int fd, const void *buf, size_t count) buf 321 mtcp/mtcp_util.c const char *ptr = (const char *) buf; buf 166 mtcp/mtcp_util.h ssize_t mtcp_read_all(int fd, void *buf, size_t count); buf 167 mtcp/mtcp_util.h int mtcp_readfile(int fd, void *buf, size_t size); buf 173 mtcp/mtcp_util.h ssize_t mtcp_write_all(int fd, const void *buf, size_t count); buf 51 mtcp/restore_libc.h char buf[256]; \ buf 52 mtcp/restore_libc.h int c = snprintf(buf, sizeof(buf) - 1, "[%d] %s:%d in %s; REASON= " fmt, \ buf 54 mtcp/restore_libc.h if (c == sizeof(buf) - 1) buf[c] = '\n'; \ buf 57 mtcp/restore_libc.h rc = write(PROTECTED_STDERR_FD, buf, c + 1); \ buf 123 nosyscallsreal.c ssize_t _real_read(int fd, void *buf, size_t count) { buf 124 nosyscallsreal.c REAL_FUNC_PASSTHROUGH (read) (fd,buf,count); buf 127 nosyscallsreal.c ssize_t _real_write(int fd, const void *buf, size_t count) { buf 128 nosyscallsreal.c REAL_FUNC_PASSTHROUGH_TYPED (ssize_t,write) (fd,buf,count); buf 241 nosyscallsreal.c int _real_ptsname_r (int fd, char * buf, size_t buflen) buf 243 nosyscallsreal.c REAL_FUNC_PASSTHROUGH (ptsname_r) (fd, buf, buflen); buf 432 nosyscallsreal.c int _real_shmctl (int shmid, int cmd, struct shmid_ds *buf) { buf 433 nosyscallsreal.c REAL_FUNC_PASSTHROUGH (shmctl) (shmid, cmd, buf); buf 441 nosyscallsreal.c ssize_t _real_readlink(const char *path, char *buf, size_t bufsiz) { buf 442 nosyscallsreal.c REAL_FUNC_PASSTHROUGH_TYPED (ssize_t, readlink) (path, buf, bufsiz); buf 50 plugin/ipc/file/fileconnection.cpp static ssize_t ptmxWriteAll(int fd, const void *buf, bool isPacketMode); buf 153 plugin/ipc/file/fileconnection.cpp static ssize_t readOnePacket(int fd, const void *buf, size_t maxCount) buf 159 plugin/ipc/file/fileconnection.cpp rc = read(fd,(char *)buf+sizeof(hdr), maxCount-sizeof(hdr)); buf 160 plugin/ipc/file/fileconnection.cpp *(hdr *)buf = rc; // Record the number read in header buf 175 plugin/ipc/file/fileconnection.cpp char *buf =(char *)origBuf; buf 177 plugin/ipc/file/fileconnection.cpp while ((rc = readOnePacket(fd, buf, maxCount)) > 0) { buf 178 plugin/ipc/file/fileconnection.cpp buf += rc; buf 180 plugin/ipc/file/fileconnection.cpp *(hdr *)buf = 0; /* Header count of zero means we're done */ buf 181 plugin/ipc/file/fileconnection.cpp buf += sizeof(hdr); buf 182 plugin/ipc/file/fileconnection.cpp JASSERT(rc < 0 || buf -(char *)origBuf > 0) (rc) (origBuf) ((void *)buf); buf 183 plugin/ipc/file/fileconnection.cpp return(rc < 0 ? rc : buf -(char *)origBuf); buf 214 plugin/ipc/file/fileconnection.cpp static ssize_t ptmxWriteAll(int fd, const void *buf, bool isPacketMode) buf 219 plugin/ipc/file/fileconnection.cpp while ((rc = writeOnePacket(fd,(char *)buf+cum_count, isPacketMode)) buf 235 plugin/ipc/file/fileconnection.cpp char buf[PTS_PATH_MAX]; buf 246 plugin/ipc/file/fileconnection.cpp SharedData::getVirtPtyName(path, buf, sizeof(buf)); buf 247 plugin/ipc/file/fileconnection.cpp if (strlen(buf) == 0) { buf 248 plugin/ipc/file/fileconnection.cpp SharedData::createVirtualPtyName(path, buf, sizeof(buf)); buf 250 plugin/ipc/file/fileconnection.cpp _virtPtsName = buf; buf 257 plugin/ipc/file/fileconnection.cpp JASSERT(_real_ptsname_r(fd, buf, sizeof(buf)) == 0) (JASSERT_ERRNO); buf 258 plugin/ipc/file/fileconnection.cpp _ptsName = buf; buf 263 plugin/ipc/file/fileconnection.cpp JASSERT((strlen(buf) + strlen("v")) <= 20) buf 270 plugin/ipc/file/fileconnection.cpp SharedData::createVirtualPtyName(_ptsName.c_str(), buf, sizeof(buf)); buf 271 plugin/ipc/file/fileconnection.cpp _virtPtsName = buf; buf 277 plugin/ipc/file/fileconnection.cpp SharedData::getVirtPtyName(path, buf, sizeof(buf)); buf 278 plugin/ipc/file/fileconnection.cpp _virtPtsName = buf; buf 279 plugin/ipc/file/fileconnection.cpp JASSERT(strlen(buf) != 0) (path); buf 300 plugin/ipc/file/fileconnection.cpp char buf[maxCount]; buf 303 plugin/ipc/file/fileconnection.cpp numRead = ptmxReadAll(_fds[0], buf, maxCount); buf 306 plugin/ipc/file/fileconnection.cpp numWritten = ptmxWriteAll(_fds[0], buf, _ptmxIsPacketMode); buf 327 plugin/ipc/file/fileconnection.cpp char buf[32]; buf 328 plugin/ipc/file/fileconnection.cpp SharedData::getRealPtyName(_virtPtsName.c_str(), buf, sizeof(buf)); buf 329 plugin/ipc/file/fileconnection.cpp JASSERT(strlen(buf) > 0) (_virtPtsName) (_ptsName); buf 330 plugin/ipc/file/fileconnection.cpp _ptsName = buf; buf 776 plugin/ipc/file/fileconnection.cpp char buf[64]; buf 779 plugin/ipc/file/fileconnection.cpp sprintf(buf, "/proc/%d/%s", getpid(), rest); buf 780 plugin/ipc/file/fileconnection.cpp _path = buf; buf 900 plugin/ipc/file/fileconnection.cpp char *buf =(char*)JALLOC_HELPER_MALLOC(bufSize); buf 912 plugin/ipc/file/fileconnection.cpp readBytes = Util::readAll(fd, buf, bufSize); buf 915 plugin/ipc/file/fileconnection.cpp writtenBytes = Util::writeAll(destFd, buf, readBytes); buf 918 plugin/ipc/file/fileconnection.cpp JALLOC_HELPER_FREE(buf); buf 959 plugin/ipc/file/fileconnection.cpp char buf[bufsize]; buf 963 plugin/ipc/file/fileconnection.cpp size = read(ckptfd,buf,bufsize); buf 968 plugin/ipc/file/fileconnection.cpp _in_data.push_back(buf[i]); buf 982 plugin/ipc/file/fileconnection.cpp char buf[bufsize]; buf 987 plugin/ipc/file/fileconnection.cpp buf[j] = _in_data[j+i*bufsize]; buf 989 plugin/ipc/file/fileconnection.cpp ret = Util::writeAll(ckptfd,buf,j); buf 994 plugin/ipc/file/fileconnection.cpp buf[j] = _in_data[start+j]; buf 997 plugin/ipc/file/fileconnection.cpp buf[j] ='\0'; buf 998 plugin/ipc/file/fileconnection.cpp JTRACE("Buf internals.") ((const char*)buf); buf 999 plugin/ipc/file/fileconnection.cpp ret = Util::writeAll(ckptfd,buf,j); buf 1134 plugin/ipc/file/fileconnection.cpp char *buf =(char*) JALLOC_HELPER_MALLOC(attr.mq_msgsize); buf 1137 plugin/ipc/file/fileconnection.cpp ssize_t numBytes = _real_mq_receive(_fds[0], buf, attr.mq_msgsize, &prio); buf 1139 plugin/ipc/file/fileconnection.cpp _msgInQueue.push_back(jalib::JBuffer((const char*)buf, numBytes)); buf 1142 plugin/ipc/file/fileconnection.cpp JALLOC_HELPER_FREE(buf); buf 178 plugin/ipc/file/filewrappers.cpp static int ptsname_r_work(int fd, char * buf, size_t buflen) buf 197 plugin/ipc/file/filewrappers.cpp strcpy(buf, virtPtsName.c_str()); buf 202 plugin/ipc/file/filewrappers.cpp extern "C" int ptsname_r(int fd, char * buf, size_t buflen) buf 206 plugin/ipc/file/filewrappers.cpp int retVal = ptsname_r_work(fd, buf, buflen); buf 227 plugin/ipc/file/filewrappers.cpp extern "C" int __ptsname_r_chk(int fd, char * buf, size_t buflen, size_t nreal) buf 233 plugin/ipc/file/filewrappers.cpp int retVal = ptsname_r_work(fd, buf, buflen); buf 240 plugin/ipc/file/filewrappers.cpp extern "C" int ttyname_r(int fd, char *buf, size_t buflen) buf 258 plugin/ipc/file/filewrappers.cpp strncpy(buf, virtPtsName.c_str(), buflen); buf 276 plugin/ipc/file/filewrappers.cpp extern "C" int __ttyname_r_chk(int fd, char *buf, size_t buflen, size_t nreal) buf 278 plugin/ipc/file/filewrappers.cpp return ttyname_r(fd, buf, buflen); buf 581 plugin/ipc/file/filewrappers.cpp extern "C" int __xstat(int vers, const char *path, struct stat *buf) buf 587 plugin/ipc/file/filewrappers.cpp int retval = _real_xstat(vers, newpath, buf); buf 592 plugin/ipc/file/filewrappers.cpp extern "C" int __xstat64(int vers, const char *path, struct stat64 *buf) buf 598 plugin/ipc/file/filewrappers.cpp int retval = _real_xstat64(vers, newpath, buf); buf 604 plugin/ipc/file/filewrappers.cpp extern "C" int __fxstat(int vers, int fd, struct stat *buf) buf 607 plugin/ipc/file/filewrappers.cpp int retval = _real_fxstat(vers, fd, buf); buf 612 plugin/ipc/file/filewrappers.cpp extern "C" int __fxstat64(int vers, int fd, struct stat64 *buf) buf 615 plugin/ipc/file/filewrappers.cpp int retval = _real_fxstat64(vers, fd, buf); buf 621 plugin/ipc/file/filewrappers.cpp extern "C" int __lxstat(int vers, const char *path, struct stat *buf) buf 627 plugin/ipc/file/filewrappers.cpp int retval = _real_lxstat(vers, newpath, buf); buf 632 plugin/ipc/file/filewrappers.cpp extern "C" int __lxstat64(int vers, const char *path, struct stat64 *buf) buf 638 plugin/ipc/file/filewrappers.cpp int retval = _real_lxstat64(vers, newpath, buf); buf 647 plugin/ipc/file/filewrappers.cpp extern "C" ssize_t readlink(const char *path, char *buf, size_t bufsiz) buf 655 plugin/ipc/file/filewrappers.cpp strncpy(buf, procSelfExe, bufsiz); buf 659 plugin/ipc/file/filewrappers.cpp retval = _real_readlink(newpath, buf, bufsiz); buf 665 plugin/ipc/file/filewrappers.cpp extern "C" ssize_t __readlink_chk(const char *path, char *buf, buf 668 plugin/ipc/file/filewrappers.cpp return readlink(path, buf, bufsiz); buf 46 plugin/ipc/ssh/dmtcp_ssh.cpp struct stat buf; buf 47 plugin/ipc/ssh/dmtcp_ssh.cpp if (fstat(STDIN_FILENO, &buf) == -1) { buf 54 plugin/ipc/ssh/dmtcp_ssh.cpp if (fstat(STDOUT_FILENO, &buf) == -1) { buf 61 plugin/ipc/ssh/dmtcp_ssh.cpp if (fstat(STDERR_FILENO, &buf) == -1) { buf 150 plugin/ipc/ssh/dmtcp_ssh.cpp char buf[PATH_MAX + 80]; buf 184 plugin/ipc/ssh/dmtcp_ssh.cpp sprintf(buf, "%s --host %s --port %d %s", buf 186 plugin/ipc/ssh/dmtcp_ssh.cpp argv[i] = buf; buf 55 plugin/ipc/ssh/dmtcp_sshd.cpp char buf[16]; buf 90 plugin/ipc/ssh/dmtcp_sshd.cpp ret = read(pipefd[0], buf, sizeof(buf)); buf 16 plugin/ipc/ssh/util_ssh.cpp char *buf; buf 22 plugin/ipc/ssh/util_ssh.cpp static void buffer_init(struct Buffer *buf); buf 23 plugin/ipc/ssh/util_ssh.cpp static void buffer_free(struct Buffer *buf); buf 24 plugin/ipc/ssh/util_ssh.cpp static void buffer_read(struct Buffer *buf, int fd); buf 25 plugin/ipc/ssh/util_ssh.cpp static void buffer_write(struct Buffer *buf, int fd); buf 32 plugin/ipc/ssh/util_ssh.cpp static void buffer_init(struct Buffer *buf) buf 34 plugin/ipc/ssh/util_ssh.cpp assert(buf != NULL); buf 35 plugin/ipc/ssh/util_ssh.cpp buf->buf = (char*) malloc(MAX_BUFFER_SIZE); buf 36 plugin/ipc/ssh/util_ssh.cpp assert(buf->buf != NULL); buf 37 plugin/ipc/ssh/util_ssh.cpp buf->off = 0; buf 38 plugin/ipc/ssh/util_ssh.cpp buf->end = 0; buf 39 plugin/ipc/ssh/util_ssh.cpp buf->len = MAX_BUFFER_SIZE; buf 42 plugin/ipc/ssh/util_ssh.cpp static void buffer_free(struct Buffer *buf) buf 44 plugin/ipc/ssh/util_ssh.cpp free(buf->buf); buf 45 plugin/ipc/ssh/util_ssh.cpp buf->buf = NULL; buf 46 plugin/ipc/ssh/util_ssh.cpp buf->len = 0; buf 49 plugin/ipc/ssh/util_ssh.cpp static void buffer_readjust(struct Buffer *buf) buf 51 plugin/ipc/ssh/util_ssh.cpp memmove(buf->buf, &buf->buf[buf->off], buf->end - buf->off); buf 52 plugin/ipc/ssh/util_ssh.cpp buf->end -= buf->off; buf 53 plugin/ipc/ssh/util_ssh.cpp buf->off = 0; buf 56 plugin/ipc/ssh/util_ssh.cpp static bool buffer_ready_for_read(struct Buffer *buf) buf 58 plugin/ipc/ssh/util_ssh.cpp assert(buf->buf != NULL && buf->len != 0); buf 59 plugin/ipc/ssh/util_ssh.cpp return buf->end < buf->len - 1; buf 62 plugin/ipc/ssh/util_ssh.cpp static void buffer_read(struct Buffer *buf, int fd) buf 64 plugin/ipc/ssh/util_ssh.cpp assert(buf->buf != NULL && buf->len != 0); buf 66 plugin/ipc/ssh/util_ssh.cpp if (buf->end < buf->len) { buf 67 plugin/ipc/ssh/util_ssh.cpp size_t max = buf->len - buf->end; buf 68 plugin/ipc/ssh/util_ssh.cpp ssize_t rc = read(fd, &buf->buf[buf->end], max); buf 73 plugin/ipc/ssh/util_ssh.cpp buf->end += rc; buf 77 plugin/ipc/ssh/util_ssh.cpp static bool buffer_ready_for_write(struct Buffer *buf) buf 79 plugin/ipc/ssh/util_ssh.cpp assert(buf->buf != NULL && buf->len != 0); buf 80 plugin/ipc/ssh/util_ssh.cpp return buf->end > buf->off; buf 83 plugin/ipc/ssh/util_ssh.cpp static void buffer_write(struct Buffer *buf, int fd) buf 85 plugin/ipc/ssh/util_ssh.cpp assert(buf->buf != NULL && buf->len != 0); buf 87 plugin/ipc/ssh/util_ssh.cpp assert(buf->end > buf->off); buf 88 plugin/ipc/ssh/util_ssh.cpp size_t max = buf->end - buf->off; buf 89 plugin/ipc/ssh/util_ssh.cpp ssize_t rc = write(fd, &buf->buf[buf->off], max); buf 94 plugin/ipc/ssh/util_ssh.cpp buf->off += rc; buf 95 plugin/ipc/ssh/util_ssh.cpp if (buf->off > buf->len / 2) { buf 96 plugin/ipc/ssh/util_ssh.cpp buffer_readjust(buf); buf 155 plugin/pid/pid_filewrappers.cpp extern "C" int __xstat(int vers, const char *path, struct stat *buf) buf 160 plugin/pid/pid_filewrappers.cpp int retval = _real_xstat( vers, newpath, buf ); buf 164 plugin/pid/pid_filewrappers.cpp extern "C" int __xstat64(int vers, const char *path, struct stat64 *buf) buf 169 plugin/pid/pid_filewrappers.cpp int retval = _real_xstat64( vers, newpath, buf ); buf 174 plugin/pid/pid_filewrappers.cpp extern "C" int __fxstat(int vers, int fd, struct stat *buf) buf 176 plugin/pid/pid_filewrappers.cpp int retval = _real_fxstat(vers, fd, buf); buf 180 plugin/pid/pid_filewrappers.cpp extern "C" int __fxstat64(int vers, int fd, struct stat64 *buf) buf 182 plugin/pid/pid_filewrappers.cpp int retval = _real_fxstat64(vers, fd, buf); buf 187 plugin/pid/pid_filewrappers.cpp extern "C" int __lxstat(int vers, const char *path, struct stat *buf) buf 192 plugin/pid/pid_filewrappers.cpp int retval = _real_lxstat( vers, newpath, buf ); buf 196 plugin/pid/pid_filewrappers.cpp extern "C" int __lxstat64(int vers, const char *path, struct stat64 *buf) buf 201 plugin/pid/pid_filewrappers.cpp int retval = _real_lxstat64( vers, newpath, buf ); buf 205 plugin/pid/pid_filewrappers.cpp extern "C" ssize_t readlink(const char *path, char *buf, size_t bufsiz) buf 211 plugin/pid/pid_filewrappers.cpp return NEXT_FNC(readlink) (newpath, buf, bufsiz); buf 214 plugin/pid/pid_filewrappers.cpp JASSERT(ret < bufsiz)(ret)(bufsiz)(buf)(newpath); buf 215 plugin/pid/pid_filewrappers.cpp buf[ret] = '\0'; // glibc-2.13: readlink doesn't terminate buf w/ null char buf 216 plugin/pid/pid_filewrappers.cpp updateProcPathRealToVirtual(buf, newpath); buf 218 plugin/pid/pid_filewrappers.cpp strcpy(buf, newpath); buf 177 plugin/pid/pid_miscwrappers.cpp int shmctl(int shmid, int cmd, struct shmid_ds *buf) buf 180 plugin/pid/pid_miscwrappers.cpp int ret = _real_shmctl(shmid, cmd, buf); buf 181 plugin/pid/pid_miscwrappers.cpp if (buf != NULL) { buf 182 plugin/pid/pid_miscwrappers.cpp buf->shm_cpid = REAL_TO_VIRTUAL_PID(buf->shm_cpid); buf 183 plugin/pid/pid_miscwrappers.cpp buf->shm_lpid = REAL_TO_VIRTUAL_PID(buf->shm_lpid); buf 208 plugin/pid/pid_miscwrappers.cpp int msgctl(int msqid, int cmd, struct msqid_ds *buf) buf 211 plugin/pid/pid_miscwrappers.cpp int ret = _real_msgctl(msqid, cmd, buf); buf 212 plugin/pid/pid_miscwrappers.cpp if (ret != -1 && buf != NULL && ((cmd & IPC_STAT) || (cmd & MSG_STAT))) { buf 213 plugin/pid/pid_miscwrappers.cpp buf->msg_lspid = REAL_TO_VIRTUAL_PID(buf->msg_lspid); buf 214 plugin/pid/pid_miscwrappers.cpp buf->msg_lrpid = REAL_TO_VIRTUAL_PID(buf->msg_lrpid); buf 456 plugin/pid/pid_miscwrappers.cpp SYSCALL_GET_ARGS_3(int,shmid,int,cmd,struct shmid_ds*,buf); buf 457 plugin/pid/pid_miscwrappers.cpp ret = shmctl(shmid, cmd, buf); buf 310 plugin/pid/pid_syscallsreal.c int _real_shmctl (int shmid, int cmd, struct shmid_ds *buf) { buf 311 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH ( shmctl ) (shmid, cmd, buf); buf 325 plugin/pid/pid_syscallsreal.c int _real_msgctl(int msqid, int cmd, struct msqid_ds *buf) buf 327 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH (msgctl) (msqid, cmd, buf); buf 394 plugin/pid/pid_syscallsreal.c int _real_xstat(int vers, const char *path, struct stat *buf) { buf 395 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH(__xstat) (vers, path, buf); buf 398 plugin/pid/pid_syscallsreal.c int _real_xstat64(int vers, const char *path, struct stat64 *buf) { buf 399 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH(__xstat64) (vers, path, buf); buf 402 plugin/pid/pid_syscallsreal.c int _real_lxstat(int vers, const char *path, struct stat *buf) { buf 403 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH(__lxstat) (vers, path, buf); buf 406 plugin/pid/pid_syscallsreal.c int _real_lxstat64(int vers, const char *path, struct stat64 *buf) { buf 407 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH(__lxstat64) (vers, path, buf); buf 410 plugin/pid/pid_syscallsreal.c ssize_t _real_readlink(const char *path, char *buf, size_t bufsiz) { buf 411 plugin/pid/pid_syscallsreal.c REAL_FUNC_PASSTHROUGH(readlink) (path, buf, bufsiz); buf 76 plugin/pid/pidwrappers.h struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */ buf 168 plugin/pid/pidwrappers.h int _real_shmctl(int shmid, int cmd, struct shmid_ds *buf); buf 170 plugin/pid/pidwrappers.h int _real_msgctl(int msqid, int cmd, struct msqid_ds *buf); buf 219 plugin/pid/pidwrappers.h int _real_xstat(int vers, const char *path, struct stat *buf); buf 220 plugin/pid/pidwrappers.h int _real_xstat64(int vers, const char *path, struct stat64 *buf); buf 221 plugin/pid/pidwrappers.h int _real_lxstat(int vers, const char *path, struct stat *buf); buf 222 plugin/pid/pidwrappers.h int _real_lxstat64(int vers, const char *path, struct stat64 *buf); buf 223 plugin/pid/pidwrappers.h ssize_t _real_readlink(const char *path, char *buf, size_t bufsiz); buf 486 plugin/svipc/sysvipc.cpp void SysVMsq::on_msgctl(int msqid, int cmd, struct msqid_ds *buf) buf 703 plugin/svipc/sysvipc.cpp struct semid_ds buf; buf 705 plugin/svipc/sysvipc.cpp se.buf = &buf; buf 707 plugin/svipc/sysvipc.cpp _key = se.buf->sem_perm.__key; buf 708 plugin/svipc/sysvipc.cpp _nsems = se.buf->sem_nsems; buf 709 plugin/svipc/sysvipc.cpp _flags = se.buf->sem_perm.mode; buf 830 plugin/svipc/sysvipc.cpp struct msqid_ds buf; buf 831 plugin/svipc/sysvipc.cpp JASSERT(_real_msgctl(realMsqid, IPC_STAT, &buf) == 0) (_id) (JASSERT_ERRNO); buf 832 plugin/svipc/sysvipc.cpp _key = buf.msg_perm.__key; buf 833 plugin/svipc/sysvipc.cpp _flags = buf.msg_perm.mode; buf 840 plugin/svipc/sysvipc.cpp struct msqid_ds buf; buf 841 plugin/svipc/sysvipc.cpp int ret = _real_msgctl(_realId, IPC_STAT, &buf); buf 853 plugin/svipc/sysvipc.cpp struct msqid_ds buf; buf 854 plugin/svipc/sysvipc.cpp JASSERT(_real_msgctl(_realId, IPC_STAT, &buf) == 0) (_id) (JASSERT_ERRNO); buf 856 plugin/svipc/sysvipc.cpp _qnum = buf.msg_qnum; buf 875 plugin/svipc/sysvipc.cpp struct msqid_ds buf; buf 876 plugin/svipc/sysvipc.cpp memset(&buf, 0, sizeof buf); buf 877 plugin/svipc/sysvipc.cpp JASSERT(_real_msgctl(_realId, IPC_STAT, &buf) == 0) (_id) (JASSERT_ERRNO); buf 879 plugin/svipc/sysvipc.cpp if (buf.msg_lspid == getpid()) { buf 880 plugin/svipc/sysvipc.cpp size_t size = buf.__msg_cbytes; buf 911 plugin/svipc/sysvipc.cpp struct msqid_ds buf; buf 912 plugin/svipc/sysvipc.cpp JASSERT(_real_msgctl(_realId, IPC_STAT, &buf) == 0) (_id) (JASSERT_ERRNO); buf 915 plugin/svipc/sysvipc.cpp size_t size = buf.__msg_cbytes; buf 921 plugin/svipc/sysvipc.cpp JASSERT(buf.msg_qnum == 0); buf 59 plugin/svipc/sysvipc.h struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */ buf 105 plugin/svipc/sysvipc.h virtual void on_msgctl(int msqid, int cmd, struct msqid_ds *buf) {} buf 153 plugin/svipc/sysvipc.h virtual void on_msgctl(int msqid, int cmd, struct msqid_ds *buf); buf 123 plugin/svipc/sysvipcwrappers.cpp int shmctl(int shmid, int cmd, struct shmid_ds *buf) buf 128 plugin/svipc/sysvipcwrappers.cpp int ret = _real_shmctl(realShmid, cmd, buf); buf 328 plugin/svipc/sysvipcwrappers.cpp int msgctl(int msqid, int cmd, struct msqid_ds *buf) buf 333 plugin/svipc/sysvipcwrappers.cpp int ret = _real_msgctl(realId, cmd, buf); buf 335 plugin/svipc/sysvipcwrappers.cpp SysVMsq::instance().on_msgctl(msqid, cmd, buf); buf 108 processinfo.cpp char buf[PATH_MAX]; buf 125 processinfo.cpp JASSERT(getcwd(buf, sizeof buf) != NULL); buf 126 processinfo.cpp _launchCWD = buf; buf 516 processinfo.cpp char buf[PATH_MAX]; buf 517 processinfo.cpp JASSERT(getcwd(buf, sizeof buf) != NULL); buf 518 processinfo.cpp _ckptCWD = buf; buf 37 procselfmaps.cpp char buf[4096]; buf 44 procselfmaps.cpp numRead = Util::readAll(fd, buf, sizeof(buf)); buf 244 shareddata.cpp char *SharedData::getTmpDir(char *buf, uint32_t len) buf 251 shareddata.cpp strcpy(buf, sharedDataHeader->tmpDir); buf 252 shareddata.cpp return buf; buf 510 syscallsreal.c ssize_t _real_read(int fd, void *buf, size_t count) { buf 511 syscallsreal.c REAL_FUNC_PASSTHROUGH (read) (fd,buf,count); buf 515 syscallsreal.c ssize_t _real_write(int fd, const void *buf, size_t count) { buf 516 syscallsreal.c REAL_FUNC_PASSTHROUGH_TYPED (ssize_t,write) (fd,buf,count); buf 684 syscallsreal.c int _real_ptsname_r (int fd, char * buf, size_t buflen) buf 686 syscallsreal.c REAL_FUNC_PASSTHROUGH (ptsname_r) (fd, buf, buflen); buf 689 syscallsreal.c int _real_ttyname_r (int fd, char * buf, size_t buflen) buf 691 syscallsreal.c REAL_FUNC_PASSTHROUGH (ttyname_r) (fd, buf, buflen); buf 893 syscallsreal.c int _real_xstat(int vers, const char *path, struct stat *buf) { buf 894 syscallsreal.c REAL_FUNC_PASSTHROUGH (__xstat) (vers, path, buf); buf 898 syscallsreal.c int _real_xstat64(int vers, const char *path, struct stat64 *buf) { buf 899 syscallsreal.c REAL_FUNC_PASSTHROUGH (__xstat64) (vers, path, buf); buf 903 syscallsreal.c int _real_lxstat(int vers, const char *path, struct stat *buf) { buf 904 syscallsreal.c REAL_FUNC_PASSTHROUGH (__lxstat) (vers, path, buf); buf 908 syscallsreal.c int _real_lxstat64(int vers, const char *path, struct stat64 *buf) { buf 909 syscallsreal.c REAL_FUNC_PASSTHROUGH (__lxstat64) (vers, path, buf); buf 913 syscallsreal.c ssize_t _real_readlink(const char *path, char *buf, size_t bufsiz) { buf 914 syscallsreal.c REAL_FUNC_PASSTHROUGH_TYPED (ssize_t, readlink) (path, buf, bufsiz); buf 981 syscallsreal.c int _real_shmctl (int shmid, int cmd, struct shmid_ds *buf) { buf 982 syscallsreal.c REAL_FUNC_PASSTHROUGH (shmctl) (shmid, cmd | IPC64_FLAG, buf); buf 1028 syscallsreal.c int _real_msgctl(int msqid, int cmd, struct msqid_ds *buf) { buf 1029 syscallsreal.c REAL_FUNC_PASSTHROUGH (msgctl) (msqid, cmd | IPC64_FLAG, buf); buf 273 syscallwrappers.h struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */ buf 335 syscallwrappers.h int _real_ttyname_r (int fd, char *buf, size_t buflen); buf 336 syscallwrappers.h int _real_ptsname_r (int fd, char * buf, size_t buflen); buf 391 syscallwrappers.h int _real_xstat(int vers, const char *path, struct stat *buf); buf 392 syscallwrappers.h int _real_xstat64(int vers, const char *path, struct stat64 *buf); buf 393 syscallwrappers.h int _real_lxstat(int vers, const char *path, struct stat *buf); buf 394 syscallwrappers.h int _real_lxstat64(int vers, const char *path, struct stat64 *buf); buf 395 syscallwrappers.h ssize_t _real_readlink(const char *path, char *buf, size_t bufsiz); buf 419 syscallwrappers.h ssize_t _real_read(int fd, void *buf, size_t count); buf 420 syscallwrappers.h ssize_t _real_write(int fd, const void *buf, size_t count); buf 452 syscallwrappers.h int _real_shmctl (int shmid, int cmd, struct shmid_ds *buf); buf 463 syscallwrappers.h int _real_msgctl(int msqid, int cmd, struct msqid_ds *buf); buf 51 uniquepid.cpp char buf[512]; buf 52 uniquepid.cpp JASSERT(::gethostname(buf, sizeof(buf))==0)(JASSERT_ERRNO); buf 55 uniquepid.cpp for(char* i=buf; *i!='\0'; ++i) buf 64 uniquepid.cpp static char buf[sizeof(UniquePid)]; buf 71 uniquepid.cpp static char buf[sizeof(UniquePid)]; buf 78 uniquepid.cpp static char buf[sizeof(UniquePid)]; buf 181 util_exec.cpp char buf[80]; buf 184 util_exec.cpp sprintf(buf, "/lib/ld-linux.so.%d", version); buf 186 util_exec.cpp sprintf(buf, ELF_INTERPRETER); buf 189 util_exec.cpp sprintf(buf, ELF_INTERPRETER); buf 192 util_exec.cpp string cmd = buf; buf 265 util_exec.cpp struct stat buf; buf 266 util_exec.cpp if (stat(pathname, &buf) == 0 && (buf.st_mode & S_ISUID || buf 267 util_exec.cpp buf.st_mode & S_ISGID)) { buf 293 util_exec.cpp void *buf = JALLOC_HELPER_MALLOC(newArgvSize + 2 + PATH_MAX); buf 294 util_exec.cpp memset(buf, 0, newArgvSize + 2 + PATH_MAX); buf 296 util_exec.cpp *newArgv = (char**) buf; buf 297 util_exec.cpp char *newFilename = (char*)buf + newArgvSize + 1; buf 427 util_exec.cpp char buf[PATH_MAX]; buf 437 util_exec.cpp JASSERT(fscanf(fp, "%s", (char*) &buf) == 1); buf 439 util_exec.cpp JASSERT(buf[0] == '/'); buf 441 util_exec.cpp libdl = buf; buf 447 util_exec.cpp JASSERT(fread(buf, 1, sizeof(buf), fp) > 0); buf 448 util_exec.cpp base_addr = strtoull(buf, NULL, 16); buf 455 util_exec.cpp JASSERT(fread(buf, 1, sizeof(buf), fp) > 0); buf 456 util_exec.cpp dlsym_addr = strtoull(buf, NULL, 16); buf 479 util_exec.cpp char buf[64]; buf 480 util_exec.cpp sprintf(buf, "%d", fd); buf 487 util_exec.cpp buf, buf 561 util_exec.cpp char buf[100]; buf 562 util_exec.cpp sprintf(buf, "%lu", rlim.rlim_cur); // "%llu" for BSD/Mac OS buf 564 util_exec.cpp setenv("DMTCP_RLIMIT_STACK", buf, 1); buf 247 util_misc.cpp ssize_t Util::writeAll(int fd, const void *buf, size_t count) buf 249 util_misc.cpp const char *ptr = (const char *) buf; buf 273 util_misc.cpp ssize_t Util::readAll(int fd, void *buf, size_t count) buf 276 util_misc.cpp char *ptr = (char *) buf; buf 296 util_misc.cpp char buf[1024]; buf 300 util_misc.cpp rc = Util::readAll(fd, buf, MIN(count, sizeof(buf))); buf 340 util_misc.cpp int Util::readLine(int fd, char *buf, int count) buf 344 util_misc.cpp JASSERT(fd >= 0 && buf != NULL) (fd) ((void*)buf); buf 351 util_misc.cpp buf[i] = '\0'; buf 354 util_misc.cpp buf[i++] = c; buf 358 util_misc.cpp buf[i] = '\0'; buf 510 util_misc.cpp char buf[512]; buf 518 util_misc.cpp sprintf(buf, "/proc/%d/status", tid); buf 519 util_misc.cpp fd = _real_open(buf, O_RDONLY, 0); buf 520 util_misc.cpp JASSERT(fd != -1) (buf) (JASSERT_ERRNO); buf 521 util_misc.cpp readAll(fd, buf, sizeof buf); buf 523 util_misc.cpp str = strstr(buf, TRACER_PID_STR); buf 566 util_misc.cpp long long *buf = (long long*) addr; buf 568 util_misc.cpp size_t end = numPages * page_size / sizeof (*buf); buf 571 util_misc.cpp res = buf[i+0] | buf[i+1] | buf[i+2] | buf[i+3] | buf 572 util_misc.cpp buf[i+4] | buf[i+5] | buf[i+6] | buf[i+7]; buf 612 util_misc.cpp struct stat buf; buf 613 util_misc.cpp if( stat(exec_path, &buf) ){ buf 616 util_misc.cpp if( S_ISREG(buf.st_mode) )