Searched refs:MAXBASENAME (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/bnu/
H A Duucpname.c45 char NameBuf[MAXBASENAME + 1];
60 char NameBuf[MAXBASENAME + 1];
62 gethostname(NameBuf, MAXBASENAME);
67 s[MAXBASENAME] = '\0';
75 char NameBuf[MAXBASENAME + 1], *strchr();
83 (void) fgets(NameBuf, MAXBASENAME + 1, NameFile);
85 NameBuf[MAXBASENAME] = '\0';
96 (void) strncpy(name, s, MAXBASENAME);
97 name[MAXBASENAME] = '\0';
H A Dgnamef.c34 * must be of size MAXBASENAME+1
54 (void) strncpy(filename, dp->d_name, MAXBASENAME);
55 filename[MAXBASENAME] = '\0';
63 * must be of size MAXBASENAME+1
H A Dversys.c61 strncpy(name, iptr, MAXBASENAME);
62 name[MAXBASENAME] = '\0';
H A Dunknown.c56 char buf[LOGLEN], *ctoday, *logname, tmpbuf[MAXBASENAME+1];
74 (void) strncpy(tmpbuf, argv[1], MAXBASENAME);
75 tmpbuf[MAXBASENAME] = '\0';
H A Dgename.c48 * file -> buffer to return filename must be of size MAXBASENAME+1
106 BASENAME(seqlock, '/')[MAXBASENAME] = '\0';
176 if (EQUALSN(syslst[i].sys, sys, MAXBASENAME))
189 if (strncmp(syslst[i].sys, sys, MAXBASENAME) == SAME)
H A Duucpdefs.c54 GLOBAL char JobGrade[MAXBASENAME+1] = { NULLCHAR };
59 GLOBAL char Myname[MAXBASENAME+1];
H A Dulockf.c82 if (strlen(cp) > MAXBASENAME)
83 *(cp+MAXBASENAME) = NULLCHAR;
199 if (strlen(cp) > MAXBASENAME)
200 *(cp+MAXBASENAME) = NULLCHAR;
238 BASENAME(ln, '/')[MAXBASENAME] = '\0';
282 BASENAME(lname, '/')[MAXBASENAME] = '\0';
H A Dgrades.c718 char prevgrade[MAXBASENAME+1], curgrade[MAXBASENAME+1],
719 gradedir[MAXBASENAME+1];
721 char Cfile[MAXBASENAME+1];
749 (void) strncpy(jobgrade, prevgrade, MAXBASENAME);
750 jobgrade[MAXBASENAME] = NULLCHAR;
H A Duucp.c284 (void) strncpy(Rmtname, sys2, MAXBASENAME);
285 Rmtname[MAXBASENAME] = NULLCHAR;
348 (void) strncpy(Rmtname, sys1, MAXBASENAME);
349 Rmtname[MAXBASENAME] = NULLCHAR;
390 (void) strncpy(Rmtname, sys1, MAXBASENAME);
391 Rmtname[MAXBASENAME] = NULLCHAR;
H A Duucp.h211 /* MAXBASENAME - 1 (pre) - 1 ('.') - 1 (grade) - 4 (sequence number) */
212 #define SYSNSIZE (MAXBASENAME - 7)
324 #define MAXBASENAME 14 /* should be DIRSIZ but that is now fs dependent */ macro
330 #define NAMESIZE MAXBASENAME+1
526 EXTERN char JobGrade[MAXBASENAME+1];
H A Duustat.c204 (void) strncpy(Rmtname, optarg, MAXBASENAME);
206 Rmtname[MAXBASENAME] = '\0';
215 (void) strncpy(Rmtname, optarg, MAXBASENAME);
216 Rmtname[MAXBASENAME] = '\0';
374 if (*Rmtname && !EQUALSN(Rmtname, f, MAXBASENAME))
888 if (EQUALSN(name, m->mach, MAXBASENAME)) {
1233 char comparef[MAXBASENAME+1], afile[MAXBASENAME+1], cfile[MAXBASENAME+1];
1234 char lckfile[MAXBASENAME
[all...]
H A Danlwrk.c51 #define SUFSIZE (MAXBASENAME - 2 - SYSNSIZE)
186 char gradedir[2*MAXBASENAME];
H A Duuxqt.c250 #define XCACHESIZE (4096 / (MAXBASENAME + 1))
251 static char xcache[XCACHESIZE][MAXBASENAME + 1]; /* cache for X. files */
264 (void) strlcpy(xcache[xcachesize++], file, (MAXBASENAME + 1));
293 qsort(xcache, xcachesize, MAXBASENAME + 1, xcompare);
307 strlcpy(file, xcache[--xcachesize], (MAXBASENAME + 1));
867 (void) sprintf(sysout, "%.*s", MAXBASENAME, Myname);
868 (void) sprintf(syserr, "%.*s", MAXBASENAME, Myname);
983 * (should be MAXBASENAME, not 14, but no can do)
H A Dlogent.c62 && strncmp(Rmtname, BASENAME(logfile, '/'), MAXBASENAME) != 0) {
H A Dpermission.c101 static char _MyName[MAXBASENAME+1]; /* Myname from PERMISSIONS file */
267 strncpy(_MyName, _Flds[U_MYNAME], MAXBASENAME);
268 _MyName[MAXBASENAME] = NULLCHAR;
450 if (EQUALSN(arg, name, MAXBASENAME))
H A Duux.c475 if (!EQUALSN(Myname, xsys, MAXBASENAME)) {
613 if ((EQUALSN(xsys, Myname, MAXBASENAME))
614 && (EQUALSN(xsys, syspart, MAXBASENAME))) {
634 if (EQUALSN(syspart, Myname, MAXBASENAME)) {
H A Duucico.c62 char uuxqtarg[MAXBASENAME] = {'\0'};
211 Rmtname[MAXBASENAME] = '\0';
271 if (EQUALSN(Rmtname, Myname, MAXBASENAME)) {
345 strncpy(Rmtname, q, MAXBASENAME);
346 Rmtname[MAXBASENAME] = '\0';
594 /* This may be a problem, we check up to MAXBASENAME
601 if (!EQUALSN(&msg[6], Rmtname, MAXBASENAME)) {
H A Duucheck.c214 char myname[MAXBASENAME+1];
H A Duusched.c219 if (EQUALSN(name, m->mach, MAXBASENAME)) {
H A Duucleanup.c990 static char fuser[BUFSIZ], fsystem[MAXBASENAME+1]; /* from first From */
991 static char luser[BUFSIZ], lsystem[MAXBASENAME+1]; /* from other From */
1049 for (i = 0; (i<MAXBASENAME) && *s && *s != ' ' && *s != '\n'; i++)
H A Dperfstat.c222 static char myname[MAXBASENAME+1] = ""; /* Name of the source system
/illumos-gate/usr/src/cmd/ttymon/
H A Dulockf.c81 if (strlen(cp) > MAXBASENAME)
82 *(cp+MAXBASENAME) = NULLCHAR;
198 if (strlen(cp) > MAXBASENAME)
199 *(cp+MAXBASENAME) = NULLCHAR;
237 BASENAME(ln, '/')[MAXBASENAME] = '\0';
281 BASENAME(lname, '/')[MAXBASENAME] = '\0';
H A Duucp.h167 /* MAXBASENAME - 1 (pre) - 1 ('.') - 1 (grade) - 4 (sequence number) */
168 #define SYSNSIZE (MAXBASENAME - 7)
262 #define MAXBASENAME 14 /* should be DIRSIZ but that is now fs dependent */ macro
268 #define NAMESIZE MAXBASENAME+1
/illumos-gate/usr/src/lib/libnsl/dial/
H A Duucp.h124 /* MAXBASENAME - 1 (pre) - 1 ('.') - 1 (grade) - 4 (sequence number) */
125 #define SYSNSIZE (MAXBASENAME - 7)
219 #define MAXBASENAME 14 /* should be DIRSIZ but that is now fs dependent */ macro
225 #define NAMESIZE MAXBASENAME+1
H A Dconn.c311 if (!EQUALSN(sysnam, flds[F_NAME], MAXBASENAME))

Completed in 121 milliseconds

12