ct.c (fef2e65f) | ct.c (5b133f3f) |
---|---|
1/* $OpenBSD: ct.c,v 1.9 2004/04/07 18:24:20 mickey Exp $ */ | 1/* $OpenBSD: ct.c,v 1.10 2023/03/08 04:43:07 guenther Exp $ */ |
2 3/* 4 * Copyright (c) 1998-2004 Michael Shalayeff 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 54 unchanged lines hidden (view full) --- 64 struct hppa_dev *dp = f->f_devdata; 65 66 if (!(dp->pz_dev = pdc_findev(-1, PCL_SEQU))) 67 return (ENXIO); 68 69 return (0); 70} 71 | 2 3/* 4 * Copyright (c) 1998-2004 Michael Shalayeff 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 54 unchanged lines hidden (view full) --- 64 struct hppa_dev *dp = f->f_devdata; 65 66 if (!(dp->pz_dev = pdc_findev(-1, PCL_SEQU))) 67 return (ENXIO); 68 69 return (0); 70} 71 |
72/*ARGSUSED*/ | |
73int 74ctclose(f) 75 struct open_file *f; 76{ 77 free (f->f_devdata, sizeof(struct hppa_dev)); 78 f->f_devdata = NULL; 79 return 0; 80} | 72int 73ctclose(f) 74 struct open_file *f; 75{ 76 free (f->f_devdata, sizeof(struct hppa_dev)); 77 f->f_devdata = NULL; 78 return 0; 79} |