Home
last modified time | relevance | path

Searched refs:SIZEOFPID (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/cmd/tip/
H A Duucplock.c32 #define SIZEOFPID 10 /* maximum number of digits in a pid */ macro
82 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ in ulockf()
86 (void) snprintf(pid, sizeof (pid), "%*d\n", SIZEOFPID, in ulockf()
120 char alpid[SIZEOFPID+2]; /* +2 for '\n' and NULL */ in checkLock()
129 ret = read(fd, (char *)alpid, SIZEOFPID+1); /* +1 for '\n' */ in checkLock()
131 if (ret != (SIZEOFPID+1)) in checkLock()
222 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) { in onelock()
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c53 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ in mklock()
60 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long)getpid()); in mklock()
94 char alpid[SIZEOFPID+2]; /* +2 for '\n' and NULL */ in cklock()
107 ret = read(fd, (char *)alpid, SIZEOFPID + 1); /* +1 for '\n' */ in cklock()
109 if (ret != (SIZEOFPID+1)) { in cklock()
209 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) { in onelock()
H A Duucp.h224 #define SIZEOFPID 10 /* maximum number of digits in a pid */ macro
/illumos-gate/usr/src/cmd/ttymon/
H A Dulockf.c57 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ in mklock()
65 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long)getpid()); in mklock()
107 char alpid[SIZEOFPID+2]; /* +2 for '\n' and NULL */ in cklock()
119 ret = read(fd, (char *)alpid, SIZEOFPID + 1); /* +1 for '\n' */ in cklock()
121 if (ret != (SIZEOFPID+1)) { in cklock()
294 if (write(fd, pid, SIZEOFPID + 1) != (SIZEOFPID + 1)) { in onelock()
H A Duucp.h270 #define SIZEOFPID 10 /* maximum number of digits in a pid */ macro
/illumos-gate/usr/src/cmd/bnu/
H A Dulockf.c63 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */
71 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long) getpid());
113 char alpid[SIZEOFPID+2]; /* +2 for '\n' and NULL */
124 ret = read(fd, (char *) alpid, SIZEOFPID+1); /* +1 for '\n' */
126 if (ret != (SIZEOFPID+1)) {
310 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {
H A Duucp.h329 #define SIZEOFPID 10 /* maximum number of digits in a pid */ macro
H A Duustat.c1002 char alpid[SIZEOFPID+2]; /* +2 for '\n' and null */ in lckpid()
1024 ret = read(fd, alpid, SIZEOFPID+2); /* +2 for '\n' and null */ in lckpid()