Lines Matching defs:out
136 goto out;
143 goto out;
148 out:
164 static int encode_key(char* out, const Value* key) {
167 for (int i = length; i > 0; --i, ++in, ++out) {
169 *out = *in;
171 *out = '+' + (*in >> 6);
172 *++out = '0' + (*in & 0x3F);
176 *out = '\0';
180 static int encode_key_for_uid(char* out, uid_t uid, const Value* key) {
181 int n = snprintf(out, NAME_MAX, "%u_", uid);
182 out += n;
184 return n + encode_key(out, key);
187 static int decode_key(uint8_t* out, const char* in, int length) {
188 for (int i = 0; i < length; ++i, ++in, ++out) {
190 *out = *in;
192 *out = (*in - '+') << 6;
193 *out |= (*++in - '0') & 0x3F;
197 *out = '\0';
379 int out = open(tmpFileName, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);
380 if (out == -1) {
383 size_t writtenBytes = writeFully(out, (uint8_t*) &mBlob, fileLength);
384 if (close(out) != 0) {