Home
last modified time | relevance | path

Searched refs:logfd (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c30 static FILE *logfd = NULL; variable
56 logfd = fd; in ldaplogconfigf()
135 if (logfd) { in ldaplog()
136 fclose(logfd); in ldaplog()
137 logfd = NULL; in ldaplog()
144 if (!logfd) { in ldaplog()
145 logfd = fopen(logfile, "aF"); in ldaplog()
150 if (logfd) { in ldaplog()
159 fprintf(logfd, "%.16s : ", timestr); in ldaplog()
161 vfprintf(logfd, fmt, ap); in ldaplog()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c847 int logfd; in parse_log() local
854 logfd = open(PKGLOG, O_RDONLY); in parse_log()
856 if (logfd < 0) { in parse_log()
863 if (fstat(logfd, &stb) != 0) { in parse_log()
869 (void) close(logfd); in parse_log()
875 logfd, 0); in parse_log()
876 (void) close(logfd); in parse_log()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c973 static int logfd = -1; variable
989 (void) close(logfd);
990 logfd = -1;
1027 (void) close(logfd);
1028 logfd = newlogfd;
1045 if (logfd >= 0) {
1056 (void) write(logfd, buffer, strlen(buffer));
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c579 int dirfd, logfd; in log_init() local
674 if ((logfd = openat(dirfd, STARTD_DEFAULT_LOG, in log_init()
684 if ((logfile = fdopen(logfd, "a")) == NULL) in log_init()
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c1455 int logfd; in message_save() local
1457 logfd = Open("/dev/conslog", O_WRONLY, 0644); in message_save()
1500 if (putpmsg(logfd, &ctl, &dat, 1, MSG_BAND) == -1) in message_save()
1766 int logfd = Open("/dev/conslog", O_WRONLY, 0644); in main() local
1792 (void) putmsg(logfd, &ctl, &dat, 0); in main()
1793 (void) close(logfd); in main()