Lines Matching refs:FILE
6 * you may not use this file except in compliance with the License.
276 // If a platform specifies its own PID file name, we use that
315 // the all_requests list and terminate any subbordinate operations sharing this file descriptor
321 // Now, if this request_state is not subordinate to some other primary, close file descriptor and discard replies
326 udsSupportRemoveFDFromEventLoop(req->sd, req->platform_data); // Note: This also closes file descriptor req->sd for us
937 // and terminate any subbordinate operations sharing this file descriptor
3708 LogMsg("%3d: read_msg: file ?%s? mode %o (octal) uid %d gid %d", req->sd, cliaddr.sun_path, sb.st_mode, sb.st_uid, sb.st_gid);
3980 // If a particular platform wants to opt out of having a PID file, define PID_FILE to be ""
3983 FILE *fp = fopen(PID_FILE, "w");
4051 // Set maximum number of open file descriptors
4057 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
4058 if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor limit");
4060 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
4064 if (setrlimit(RLIMIT_NOFILE, &newfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor limit");
4066 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }