Home | History | Annotate | Download | only in common

Lines Matching refs:fileDesc

79     int fileDesc = open(strKeyFilename, O_RDONLY);
80 if (fileDesc >= 0) {
81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) {
84 (void)close(fileDesc);
88 fileDesc = open(strKeyFilename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR);
89 if (fileDesc >= 0) {
90 if (write(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) {
93 (void)close(fileDesc);
130 int fileDesc = open("/dev/urandom", O_RDONLY);
131 if (fileDesc >= 0) {
132 numBytesRead = read(fileDesc, pBuffer, numBytes);
133 (void)close(fileDesc);