((krb5_fcc_data *) id->data)->fd = ret;
}
else
- lseek(((krb5_fcc_data *) id->data)->fd, 0, L_SET);
+ lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_SET);
ret = unlink(((krb5_fcc_data *) id->data)->filename);
if (ret < 0) {
MAYBE_OPEN(id, FCC_OPEN_RDONLY);
/* make sure we're beyond the vno */
- lseek(((krb5_fcc_data *) id->data)->fd, sizeof(krb5_int16), L_SET);
+ lseek(((krb5_fcc_data *) id->data)->fd, sizeof(krb5_int16), SEEK_SET);
kret = krb5_fcc_read_principal(id, princ);
fcursor = (krb5_fcc_cursor *) *cursor;
- ret = lseek(((krb5_fcc_data *) id->data)->fd, fcursor->pos, L_SET);
+ ret = lseek(((krb5_fcc_data *) id->data)->fd, fcursor->pos, SEEK_SET);
if (ret < 0) {
ret = krb5_fcc_interpret(errno);
MAYBE_CLOSE(id, ret);
}
else
/* seek after the version number */
- lseek(((krb5_fcc_data *) id->data)->fd, sizeof(krb5_int16), L_SET);
+ lseek(((krb5_fcc_data *) id->data)->fd, sizeof(krb5_int16), SEEK_SET);
/* Make sure we start reading right after the primary principal */
MAYBE_OPEN(id, FCC_OPEN_RDWR);
/* Make sure we are writing to the end of the file */
- ret = lseek(((krb5_fcc_data *) id->data)->fd, 0, L_XTND);
+ ret = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_END);
if (ret < 0) {
MAYBE_CLOSE_IGNORE(id);
return krb5_fcc_interpret(errno);